+ exportAnalyticsMetricsSettings() {
+ return getStubSettingsBuilder().exportAnalyticsMetricsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to exportAnalyticsMetrics. */
+ public OperationCallSettings.Builder<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationSettings() {
+ return getStubSettingsBuilder().exportAnalyticsMetricsOperationSettings();
+ }
+
+ @Override
+ public AnalyticsServiceSettings build() throws IOException {
+ return new AnalyticsServiceSettings(this);
+ }
+ }
+}
diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json
index eba32c42939b..5dfd9bec5833 100644
--- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json
@@ -5,6 +5,18 @@
"protoPackage": "google.cloud.retail.v2",
"libraryPackage": "com.google.cloud.retail.v2",
"services": {
+ "AnalyticsService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "AnalyticsServiceClient",
+ "rpcs": {
+ "ExportAnalyticsMetrics": {
+ "methods": ["exportAnalyticsMetricsAsync", "exportAnalyticsMetricsOperationCallable", "exportAnalyticsMetricsCallable"]
+ }
+ }
+ }
+ }
+ },
"CatalogService": {
"clients": {
"grpc": {
diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java
index 363b9d8fa214..b307580301f6 100644
--- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java
@@ -19,6 +19,31 @@
*
* The interfaces provided are listed below, along with usage samples.
*
+ *
======================= AnalyticsServiceClient =======================
+ *
+ *
Service Description: Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ *
Sample for AnalyticsServiceClient:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AnalyticsServiceClient analyticsServiceClient = AnalyticsServiceClient.create()) {
+ * ExportAnalyticsMetricsRequest request =
+ * ExportAnalyticsMetricsRequest.newBuilder()
+ * .setCatalog("catalog555704345")
+ * .setOutputConfig(OutputConfig.newBuilder().build())
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ExportAnalyticsMetricsResponse response =
+ * analyticsServiceClient.exportAnalyticsMetricsAsync(request).get();
+ * }
+ * }
+ *
* ======================= CatalogServiceClient =======================
*
*
Service Description: Service for managing catalog configuration.
diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java
new file mode 100644
index 000000000000..f6e6d3a2bae4
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java
@@ -0,0 +1,59 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.stub;
+
+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.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse;
+import com.google.cloud.retail.v2.ExportMetadata;
+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 AnalyticsService service API.
+ *
+ *
This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class AnalyticsServiceStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ return null;
+ }
+
+ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+ return null;
+ }
+
+ public OperationCallable<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: exportAnalyticsMetricsOperationCallable()");
+ }
+
+ public UnaryCallable exportAnalyticsMetricsCallable() {
+ throw new UnsupportedOperationException("Not implemented: exportAnalyticsMetricsCallable()");
+ }
+
+ @Override
+ public abstract void close();
+}
diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java
new file mode 100644
index 000000000000..bc9ce3f9c1c0
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java
@@ -0,0 +1,411 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.stub;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+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.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.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse;
+import com.google.cloud.retail.v2.ExportMetadata;
+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.util.List;
+import javax.annotation.Generated;
+import org.threeten.bp.Duration;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link AnalyticsServiceStub}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * The default service address (retail.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 total timeout of exportAnalyticsMetrics to 30 seconds:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AnalyticsServiceStubSettings.Builder analyticsServiceSettingsBuilder =
+ * AnalyticsServiceStubSettings.newBuilder();
+ * analyticsServiceSettingsBuilder
+ * .exportAnalyticsMetricsSettings()
+ * .setRetrySettings(
+ * analyticsServiceSettingsBuilder
+ * .exportAnalyticsMetricsSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * AnalyticsServiceStubSettings analyticsServiceSettings = analyticsServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class AnalyticsServiceStubSettings 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();
+
+ private final UnaryCallSettings
+ exportAnalyticsMetricsSettings;
+ private final OperationCallSettings<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationSettings;
+
+ /** Returns the object with the settings used for calls to exportAnalyticsMetrics. */
+ public UnaryCallSettings
+ exportAnalyticsMetricsSettings() {
+ return exportAnalyticsMetricsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to exportAnalyticsMetrics. */
+ public OperationCallSettings<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationSettings() {
+ return exportAnalyticsMetricsOperationSettings;
+ }
+
+ public AnalyticsServiceStub createStub() throws IOException {
+ if (getTransportChannelProvider()
+ .getTransportName()
+ .equals(GrpcTransportChannel.getGrpcTransportName())) {
+ return GrpcAnalyticsServiceStub.create(this);
+ }
+ if (getTransportChannelProvider()
+ .getTransportName()
+ .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+ return HttpJsonAnalyticsServiceStub.create(this);
+ }
+ throw new UnsupportedOperationException(
+ String.format(
+ "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
+ }
+
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
+ /** Returns the default service name. */
+ @Override
+ public String getServiceName() {
+ return "retail";
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return InstantiatingExecutorProvider.newBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return "retail.googleapis.com:443";
+ }
+
+ /** Returns the default mTLS service endpoint. */
+ public static String getDefaultMtlsEndpoint() {
+ return "retail.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();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
+ return ApiClientHeaderProvider.newBuilder()
+ .setGeneratedLibToken(
+ "gapic", GaxProperties.getLibraryVersion(AnalyticsServiceStubSettings.class))
+ .setTransportToken(
+ GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+ return ApiClientHeaderProvider.newBuilder()
+ .setGeneratedLibToken(
+ "gapic", GaxProperties.getLibraryVersion(AnalyticsServiceStubSettings.class))
+ .setTransportToken(
+ GaxHttpJsonProperties.getHttpJsonTokenName(),
+ GaxHttpJsonProperties.getHttpJsonVersion());
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return AnalyticsServiceStubSettings.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 AnalyticsServiceStubSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+
+ exportAnalyticsMetricsSettings = settingsBuilder.exportAnalyticsMetricsSettings().build();
+ exportAnalyticsMetricsOperationSettings =
+ settingsBuilder.exportAnalyticsMetricsOperationSettings().build();
+ }
+
+ /** Builder for AnalyticsServiceStubSettings. */
+ public static class Builder extends StubSettings.Builder {
+ private final ImmutableList> unaryMethodSettingsBuilders;
+ private final UnaryCallSettings.Builder
+ exportAnalyticsMetricsSettings;
+ private final OperationCallSettings.Builder<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationSettings;
+ private static final ImmutableMap>
+ RETRYABLE_CODE_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder> definitions =
+ ImmutableMap.builder();
+ definitions.put(
+ "retry_policy_2_codes",
+ ImmutableSet.copyOf(
+ Lists.newArrayList(
+ StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
+ RETRYABLE_CODE_DEFINITIONS = definitions.build();
+ }
+
+ private static final ImmutableMap RETRY_PARAM_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder definitions = ImmutableMap.builder();
+ RetrySettings settings = null;
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(100L))
+ .setRetryDelayMultiplier(1.3)
+ .setMaxRetryDelay(Duration.ofMillis(60000L))
+ .setInitialRpcTimeout(Duration.ofMillis(60000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(60000L))
+ .setTotalTimeout(Duration.ofMillis(60000L))
+ .build();
+ definitions.put("retry_policy_2_params", settings);
+ RETRY_PARAM_DEFINITIONS = definitions.build();
+ }
+
+ protected Builder() {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(clientContext);
+
+ exportAnalyticsMetricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ exportAnalyticsMetricsOperationSettings = OperationCallSettings.newBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(exportAnalyticsMetricsSettings);
+ initDefaults(this);
+ }
+
+ protected Builder(AnalyticsServiceStubSettings settings) {
+ super(settings);
+
+ exportAnalyticsMetricsSettings = settings.exportAnalyticsMetricsSettings.toBuilder();
+ exportAnalyticsMetricsOperationSettings =
+ settings.exportAnalyticsMetricsOperationSettings.toBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(exportAnalyticsMetricsSettings);
+ }
+
+ 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
+ .exportAnalyticsMetricsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"));
+
+ builder
+ .exportAnalyticsMetricsOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(
+ ExportAnalyticsMetricsResponse.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(ExportMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelay(Duration.ofMillis(45000L))
+ .setInitialRpcTimeout(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ZERO)
+ .setTotalTimeout(Duration.ofMillis(300000L))
+ .build()));
+
+ return builder;
+ }
+
+ /**
+ * 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 exportAnalyticsMetrics. */
+ public UnaryCallSettings.Builder
+ exportAnalyticsMetricsSettings() {
+ return exportAnalyticsMetricsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to exportAnalyticsMetrics. */
+ @BetaApi(
+ "The surface for use by generated code is not stable yet and may change in the future.")
+ public OperationCallSettings.Builder<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationSettings() {
+ return exportAnalyticsMetricsOperationSettings;
+ }
+
+ /** Returns the endpoint set by the user or the the service's default endpoint. */
+ @Override
+ public String getEndpoint() {
+ if (super.getEndpoint() != null) {
+ return super.getEndpoint();
+ }
+ return getDefaultEndpoint();
+ }
+
+ @Override
+ public AnalyticsServiceStubSettings build() throws IOException {
+ return new AnalyticsServiceStubSettings(this);
+ }
+ }
+}
diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcAnalyticsServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcAnalyticsServiceCallableFactory.java
new file mode 100644
index 000000000000..329c57329911
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcAnalyticsServiceCallableFactory.java
@@ -0,0 +1,113 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.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 AnalyticsService service API.
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcAnalyticsServiceCallableFactory 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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcAnalyticsServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcAnalyticsServiceStub.java
new file mode 100644
index 000000000000..a975f858193a
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcAnalyticsServiceStub.java
@@ -0,0 +1,185 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.stub;
+
+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.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse;
+import com.google.cloud.retail.v2.ExportMetadata;
+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 AnalyticsService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcAnalyticsServiceStub extends AnalyticsServiceStub {
+ private static final MethodDescriptor
+ exportAnalyticsMetricsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.retail.v2.AnalyticsService/ExportAnalyticsMetrics")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ExportAnalyticsMetricsRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private final UnaryCallable
+ exportAnalyticsMetricsCallable;
+ private final OperationCallable<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationCallable;
+
+ private final BackgroundResource backgroundResources;
+ private final GrpcOperationsStub operationsStub;
+ private final GrpcStubCallableFactory callableFactory;
+
+ public static final GrpcAnalyticsServiceStub create(AnalyticsServiceStubSettings settings)
+ throws IOException {
+ return new GrpcAnalyticsServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final GrpcAnalyticsServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new GrpcAnalyticsServiceStub(
+ AnalyticsServiceStubSettings.newBuilder().build(), clientContext);
+ }
+
+ public static final GrpcAnalyticsServiceStub create(
+ ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
+ return new GrpcAnalyticsServiceStub(
+ AnalyticsServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of GrpcAnalyticsServiceStub, 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 GrpcAnalyticsServiceStub(
+ AnalyticsServiceStubSettings settings, ClientContext clientContext) throws IOException {
+ this(settings, clientContext, new GrpcAnalyticsServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of GrpcAnalyticsServiceStub, 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 GrpcAnalyticsServiceStub(
+ AnalyticsServiceStubSettings settings,
+ ClientContext clientContext,
+ GrpcStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+ this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
+
+ GrpcCallSettings
+ exportAnalyticsMetricsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(exportAnalyticsMetricsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("catalog", String.valueOf(request.getCatalog()));
+ return builder.build();
+ })
+ .build();
+
+ this.exportAnalyticsMetricsCallable =
+ callableFactory.createUnaryCallable(
+ exportAnalyticsMetricsTransportSettings,
+ settings.exportAnalyticsMetricsSettings(),
+ clientContext);
+ this.exportAnalyticsMetricsOperationCallable =
+ callableFactory.createOperationCallable(
+ exportAnalyticsMetricsTransportSettings,
+ settings.exportAnalyticsMetricsOperationSettings(),
+ clientContext,
+ operationsStub);
+
+ this.backgroundResources =
+ new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ public GrpcOperationsStub getOperationsStub() {
+ return operationsStub;
+ }
+
+ @Override
+ public UnaryCallable exportAnalyticsMetricsCallable() {
+ return exportAnalyticsMetricsCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationCallable() {
+ return exportAnalyticsMetricsOperationCallable;
+ }
+
+ @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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonAnalyticsServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonAnalyticsServiceCallableFactory.java
new file mode 100644
index 000000000000..88c8255a8809
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonAnalyticsServiceCallableFactory.java
@@ -0,0 +1,105 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.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 AnalyticsService service API.
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+@BetaApi
+public class HttpJsonAnalyticsServiceCallableFactory
+ 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);
+ }
+
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ @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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonAnalyticsServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonAnalyticsServiceStub.java
new file mode 100644
index 000000000000..e1257e646823
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonAnalyticsServiceStub.java
@@ -0,0 +1,279 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.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.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse;
+import com.google.cloud.retail.v2.ExportMetadata;
+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 AnalyticsService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+@BetaApi
+public class HttpJsonAnalyticsServiceStub extends AnalyticsServiceStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder()
+ .add(ExportMetadata.getDescriptor())
+ .add(ExportAnalyticsMetricsResponse.getDescriptor())
+ .build();
+
+ private static final ApiMethodDescriptor
+ exportAnalyticsMetricsMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.retail.v2.AnalyticsService/ExportAnalyticsMetrics")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v2/{catalog=projects/*/locations/*/catalogs/*}:exportAnalyticsMetrics",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "catalog", request.getCatalog());
+ 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().clearCatalog().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (ExportAnalyticsMetricsRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
+ private final UnaryCallable
+ exportAnalyticsMetricsCallable;
+ private final OperationCallable<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationCallable;
+
+ private final BackgroundResource backgroundResources;
+ private final HttpJsonOperationsStub httpJsonOperationsStub;
+ private final HttpJsonStubCallableFactory callableFactory;
+
+ public static final HttpJsonAnalyticsServiceStub create(AnalyticsServiceStubSettings settings)
+ throws IOException {
+ return new HttpJsonAnalyticsServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final HttpJsonAnalyticsServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new HttpJsonAnalyticsServiceStub(
+ AnalyticsServiceStubSettings.newHttpJsonBuilder().build(), clientContext);
+ }
+
+ public static final HttpJsonAnalyticsServiceStub create(
+ ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException {
+ return new HttpJsonAnalyticsServiceStub(
+ AnalyticsServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of HttpJsonAnalyticsServiceStub, 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 HttpJsonAnalyticsServiceStub(
+ AnalyticsServiceStubSettings settings, ClientContext clientContext) throws IOException {
+ this(settings, clientContext, new HttpJsonAnalyticsServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of HttpJsonAnalyticsServiceStub, 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 HttpJsonAnalyticsServiceStub(
+ AnalyticsServiceStubSettings settings,
+ ClientContext clientContext,
+ HttpJsonStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+ this.httpJsonOperationsStub =
+ HttpJsonOperationsStub.create(
+ clientContext,
+ callableFactory,
+ typeRegistry,
+ ImmutableMap.builder()
+ .put(
+ "google.longrunning.Operations.GetOperation",
+ HttpRule.newBuilder()
+ .setGet("/v2/{name=projects/*/locations/*/operations/*}")
+ .addAdditionalBindings(
+ HttpRule.newBuilder()
+ .setGet(
+ "/v2/{name=projects/*/locations/*/catalogs/*/branches/*/operations/*}")
+ .build())
+ .addAdditionalBindings(
+ HttpRule.newBuilder()
+ .setGet("/v2/{name=projects/*/locations/*/catalogs/*/operations/*}")
+ .build())
+ .addAdditionalBindings(
+ HttpRule.newBuilder()
+ .setGet("/v2/{name=projects/*/operations/*}")
+ .build())
+ .build())
+ .put(
+ "google.longrunning.Operations.ListOperations",
+ HttpRule.newBuilder()
+ .setGet("/v2/{name=projects/*/locations/*}/operations")
+ .addAdditionalBindings(
+ HttpRule.newBuilder()
+ .setGet("/v2/{name=projects/*/locations/*/catalogs/*}/operations")
+ .build())
+ .addAdditionalBindings(
+ HttpRule.newBuilder()
+ .setGet("/v2/{name=projects/*}/operations")
+ .build())
+ .build())
+ .build());
+
+ HttpJsonCallSettings
+ exportAnalyticsMetricsTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(exportAnalyticsMetricsMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("catalog", String.valueOf(request.getCatalog()));
+ return builder.build();
+ })
+ .build();
+
+ this.exportAnalyticsMetricsCallable =
+ callableFactory.createUnaryCallable(
+ exportAnalyticsMetricsTransportSettings,
+ settings.exportAnalyticsMetricsSettings(),
+ clientContext);
+ this.exportAnalyticsMetricsOperationCallable =
+ callableFactory.createOperationCallable(
+ exportAnalyticsMetricsTransportSettings,
+ settings.exportAnalyticsMetricsOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
+
+ this.backgroundResources =
+ new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ @InternalApi
+ public static List getMethodDescriptors() {
+ List methodDescriptors = new ArrayList<>();
+ methodDescriptors.add(exportAnalyticsMetricsMethodDescriptor);
+ return methodDescriptors;
+ }
+
+ public HttpJsonOperationsStub getHttpJsonOperationsStub() {
+ return httpJsonOperationsStub;
+ }
+
+ @Override
+ public UnaryCallable exportAnalyticsMetricsCallable() {
+ return exportAnalyticsMetricsCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ ExportAnalyticsMetricsRequest, ExportAnalyticsMetricsResponse, ExportMetadata>
+ exportAnalyticsMetricsOperationCallable() {
+ return exportAnalyticsMetricsOperationCallable;
+ }
+
+ @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-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json
index 1893a558dc84..3c0f2563c0f2 100644
--- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json
+++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json
@@ -584,6 +584,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.retail.v2.BigQueryOutputResult",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.BigQueryOutputResult$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.retail.v2.BigQuerySource",
"queryAllDeclaredConstructors": true,
@@ -1142,6 +1160,78 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportErrorsConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportErrorsConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.ExportMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.retail.v2.FulfillmentInfo",
"queryAllDeclaredConstructors": true,
@@ -1160,6 +1250,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.retail.v2.GcsOutputResult",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.GcsOutputResult$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.retail.v2.GcsSource",
"queryAllDeclaredConstructors": true,
@@ -1781,6 +1889,78 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.retail.v2.OutputConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputConfig$BigQueryDestination",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputConfig$BigQueryDestination$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputConfig$GcsDestination",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputConfig$GcsDestination$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputResult",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.retail.v2.OutputResult$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.retail.v2.PauseModelRequest",
"queryAllDeclaredConstructors": true,
diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/AnalyticsServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/AnalyticsServiceClientHttpJsonTest.java
new file mode 100644
index 000000000000..cada86ec2184
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/AnalyticsServiceClientHttpJsonTest.java
@@ -0,0 +1,139 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2;
+
+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.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.retail.v2.stub.HttpJsonAnalyticsServiceStub;
+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.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 AnalyticsServiceClientHttpJsonTest {
+ private static MockHttpService mockService;
+ private static AnalyticsServiceClient client;
+
+ @BeforeClass
+ public static void startStaticServer() throws IOException {
+ mockService =
+ new MockHttpService(
+ HttpJsonAnalyticsServiceStub.getMethodDescriptors(),
+ AnalyticsServiceSettings.getDefaultEndpoint());
+ AnalyticsServiceSettings settings =
+ AnalyticsServiceSettings.newHttpJsonBuilder()
+ .setTransportChannelProvider(
+ AnalyticsServiceSettings.defaultHttpJsonTransportProviderBuilder()
+ .setHttpTransport(mockService)
+ .build())
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .build();
+ client = AnalyticsServiceClient.create(settings);
+ }
+
+ @AfterClass
+ public static void stopServer() {
+ client.close();
+ }
+
+ @Before
+ public void setUp() {}
+
+ @After
+ public void tearDown() throws Exception {
+ mockService.reset();
+ }
+
+ @Test
+ public void exportAnalyticsMetricsTest() throws Exception {
+ ExportAnalyticsMetricsResponse expectedResponse =
+ ExportAnalyticsMetricsResponse.newBuilder()
+ .addAllErrorSamples(new ArrayList())
+ .setErrorsConfig(ExportErrorsConfig.newBuilder().build())
+ .setOutputResult(OutputResult.newBuilder().build())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("exportAnalyticsMetricsTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockService.addResponse(resultOperation);
+
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("projects/project-6372/locations/location-6372/catalogs/catalog-6372")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+
+ ExportAnalyticsMetricsResponse actualResponse =
+ client.exportAnalyticsMetricsAsync(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 exportAnalyticsMetricsExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("projects/project-6372/locations/location-6372/catalogs/catalog-6372")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+ client.exportAnalyticsMetricsAsync(request).get();
+ Assert.fail("No exception raised");
+ } catch (ExecutionException e) {
+ }
+ }
+}
diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/AnalyticsServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/AnalyticsServiceClientTest.java
new file mode 100644
index 000000000000..b0f80c355ae5
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/AnalyticsServiceClientTest.java
@@ -0,0 +1,145 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2;
+
+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.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 AnalyticsServiceClientTest {
+ private static MockAnalyticsService mockAnalyticsService;
+ private static MockServiceHelper mockServiceHelper;
+ private LocalChannelProvider channelProvider;
+ private AnalyticsServiceClient client;
+
+ @BeforeClass
+ public static void startStaticServer() {
+ mockAnalyticsService = new MockAnalyticsService();
+ mockServiceHelper =
+ new MockServiceHelper(
+ UUID.randomUUID().toString(), Arrays.asList(mockAnalyticsService));
+ mockServiceHelper.start();
+ }
+
+ @AfterClass
+ public static void stopServer() {
+ mockServiceHelper.stop();
+ }
+
+ @Before
+ public void setUp() throws IOException {
+ mockServiceHelper.reset();
+ channelProvider = mockServiceHelper.createChannelProvider();
+ AnalyticsServiceSettings settings =
+ AnalyticsServiceSettings.newBuilder()
+ .setTransportChannelProvider(channelProvider)
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .build();
+ client = AnalyticsServiceClient.create(settings);
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ client.close();
+ }
+
+ @Test
+ public void exportAnalyticsMetricsTest() throws Exception {
+ ExportAnalyticsMetricsResponse expectedResponse =
+ ExportAnalyticsMetricsResponse.newBuilder()
+ .addAllErrorSamples(new ArrayList())
+ .setErrorsConfig(ExportErrorsConfig.newBuilder().build())
+ .setOutputResult(OutputResult.newBuilder().build())
+ .build();
+ Operation resultOperation =
+ Operation.newBuilder()
+ .setName("exportAnalyticsMetricsTest")
+ .setDone(true)
+ .setResponse(Any.pack(expectedResponse))
+ .build();
+ mockAnalyticsService.addResponse(resultOperation);
+
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("catalog555704345")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+
+ ExportAnalyticsMetricsResponse actualResponse =
+ client.exportAnalyticsMetricsAsync(request).get();
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAnalyticsService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ExportAnalyticsMetricsRequest actualRequest =
+ ((ExportAnalyticsMetricsRequest) actualRequests.get(0));
+
+ Assert.assertEquals(request.getCatalog(), actualRequest.getCatalog());
+ Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig());
+ Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void exportAnalyticsMetricsExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockAnalyticsService.addException(exception);
+
+ try {
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("catalog555704345")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+ client.exportAnalyticsMetricsAsync(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-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockAnalyticsService.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockAnalyticsService.java
new file mode 100644
index 000000000000..dd345ef724ed
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockAnalyticsService.java
@@ -0,0 +1,59 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2;
+
+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 MockAnalyticsService implements MockGrpcService {
+ private final MockAnalyticsServiceImpl serviceImpl;
+
+ public MockAnalyticsService() {
+ serviceImpl = new MockAnalyticsServiceImpl();
+ }
+
+ @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-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockAnalyticsServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockAnalyticsServiceImpl.java
new file mode 100644
index 000000000000..7d66863ca8b5
--- /dev/null
+++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockAnalyticsServiceImpl.java
@@ -0,0 +1,82 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2;
+
+import com.google.api.core.BetaApi;
+import com.google.cloud.retail.v2.AnalyticsServiceGrpc.AnalyticsServiceImplBase;
+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 MockAnalyticsServiceImpl extends AnalyticsServiceImplBase {
+ private List requests;
+ private Queue responses;
+
+ public MockAnalyticsServiceImpl() {
+ 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 exportAnalyticsMetrics(
+ ExportAnalyticsMetricsRequest 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 ExportAnalyticsMetrics, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+}
diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java
new file mode 100644
index 000000000000..40d16f09fcdd
--- /dev/null
+++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java
@@ -0,0 +1,389 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.retail.v2;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ *
+ * Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/retail/v2/analytics_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class AnalyticsServiceGrpc {
+
+ private AnalyticsServiceGrpc() {}
+
+ public static final java.lang.String SERVICE_NAME = "google.cloud.retail.v2.AnalyticsService";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest,
+ com.google.longrunning.Operation>
+ getExportAnalyticsMetricsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ExportAnalyticsMetrics",
+ requestType = com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.class,
+ responseType = com.google.longrunning.Operation.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest,
+ com.google.longrunning.Operation>
+ getExportAnalyticsMetricsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest,
+ com.google.longrunning.Operation>
+ getExportAnalyticsMetricsMethod;
+ if ((getExportAnalyticsMetricsMethod = AnalyticsServiceGrpc.getExportAnalyticsMetricsMethod)
+ == null) {
+ synchronized (AnalyticsServiceGrpc.class) {
+ if ((getExportAnalyticsMetricsMethod = AnalyticsServiceGrpc.getExportAnalyticsMetricsMethod)
+ == null) {
+ AnalyticsServiceGrpc.getExportAnalyticsMetricsMethod =
+ getExportAnalyticsMetricsMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "ExportAnalyticsMetrics"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.longrunning.Operation.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new AnalyticsServiceMethodDescriptorSupplier("ExportAnalyticsMetrics"))
+ .build();
+ }
+ }
+ }
+ return getExportAnalyticsMetricsMethod;
+ }
+
+ /** Creates a new async stub that supports all call types for the service */
+ public static AnalyticsServiceStub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public AnalyticsServiceStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new AnalyticsServiceStub(channel, callOptions);
+ }
+ };
+ return AnalyticsServiceStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static AnalyticsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public AnalyticsServiceBlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new AnalyticsServiceBlockingStub(channel, callOptions);
+ }
+ };
+ return AnalyticsServiceBlockingStub.newStub(factory, channel);
+ }
+
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static AnalyticsServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public AnalyticsServiceFutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new AnalyticsServiceFutureStub(channel, callOptions);
+ }
+ };
+ return AnalyticsServiceFutureStub.newStub(factory, channel);
+ }
+
+ /**
+ *
+ *
+ *
+ * Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ */
+ public interface AsyncService {
+
+ /**
+ *
+ *
+ *
+ * Exports analytics metrics.
+ * `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
+ * `Operation.metadata` is of type `ExportMetadata`.
+ *
+ */
+ default void exportAnalyticsMetrics(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getExportAnalyticsMetricsMethod(), responseObserver);
+ }
+ }
+
+ /**
+ * Base class for the server implementation of the service AnalyticsService.
+ *
+ *
+ * Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ */
+ public abstract static class AnalyticsServiceImplBase
+ implements io.grpc.BindableService, AsyncService {
+
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
+ return AnalyticsServiceGrpc.bindService(this);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do asynchronous rpc calls to service AnalyticsService.
+ *
+ *
+ * Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ */
+ public static final class AnalyticsServiceStub
+ extends io.grpc.stub.AbstractAsyncStub {
+ private AnalyticsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected AnalyticsServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new AnalyticsServiceStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Exports analytics metrics.
+ * `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
+ * `Operation.metadata` is of type `ExportMetadata`.
+ *
+ */
+ public void exportAnalyticsMetrics(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getExportAnalyticsMetricsMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do synchronous rpc calls to service AnalyticsService.
+ *
+ *
+ * Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ */
+ public static final class AnalyticsServiceBlockingStub
+ extends io.grpc.stub.AbstractBlockingStub {
+ private AnalyticsServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected AnalyticsServiceBlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new AnalyticsServiceBlockingStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Exports analytics metrics.
+ * `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
+ * `Operation.metadata` is of type `ExportMetadata`.
+ *
+ */
+ public com.google.longrunning.Operation exportAnalyticsMetrics(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getExportAnalyticsMetricsMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service AnalyticsService.
+ *
+ *
+ * Service for managing & accessing retail search business metric.
+ * Retail recommendation business metric is currently not available.
+ *
+ */
+ public static final class AnalyticsServiceFutureStub
+ extends io.grpc.stub.AbstractFutureStub {
+ private AnalyticsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected AnalyticsServiceFutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new AnalyticsServiceFutureStub(channel, callOptions);
+ }
+
+ /**
+ *
+ *
+ *
+ * Exports analytics metrics.
+ * `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
+ * `Operation.metadata` is of type `ExportMetadata`.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ exportAnalyticsMetrics(com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getExportAnalyticsMetricsMethod(), getCallOptions()), request);
+ }
+ }
+
+ private static final int METHODID_EXPORT_ANALYTICS_METRICS = 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_EXPORT_ANALYTICS_METRICS:
+ serviceImpl.exportAnalyticsMetrics(
+ (com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest) 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(
+ getExportAnalyticsMetricsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest,
+ com.google.longrunning.Operation>(service, METHODID_EXPORT_ANALYTICS_METRICS)))
+ .build();
+ }
+
+ private abstract static class AnalyticsServiceBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ AnalyticsServiceBaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return com.google.cloud.retail.v2.AnalyticsServiceProto.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("AnalyticsService");
+ }
+ }
+
+ private static final class AnalyticsServiceFileDescriptorSupplier
+ extends AnalyticsServiceBaseDescriptorSupplier {
+ AnalyticsServiceFileDescriptorSupplier() {}
+ }
+
+ private static final class AnalyticsServiceMethodDescriptorSupplier
+ extends AnalyticsServiceBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final java.lang.String methodName;
+
+ AnalyticsServiceMethodDescriptorSupplier(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 (AnalyticsServiceGrpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new AnalyticsServiceFileDescriptorSupplier())
+ .addMethod(getExportAnalyticsMetricsMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceProto.java
new file mode 100644
index 000000000000..f7ba7567d71e
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceProto.java
@@ -0,0 +1,90 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/analytics_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public final class AnalyticsServiceProto {
+ private AnalyticsServiceProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n.google/cloud/retail/v2/analytics_servi"
+ + "ce.proto\022\026google.cloud.retail.v2\032\034google"
+ + "/api/annotations.proto\032\027google/api/clien"
+ + "t.proto\032\037google/api/field_behavior.proto"
+ + "\032\031google/api/resource.proto\032*google/clou"
+ + "d/retail/v2/export_config.proto\032#google/"
+ + "longrunning/operations.proto2\203\003\n\020Analyti"
+ + "csService\022\243\002\n\026ExportAnalyticsMetrics\0225.g"
+ + "oogle.cloud.retail.v2.ExportAnalyticsMet"
+ + "ricsRequest\032\035.google.longrunning.Operati"
+ + "on\"\262\001\312A^\n5google.cloud.retail.v2.ExportA"
+ + "nalyticsMetricsResponse\022%google.cloud.re"
+ + "tail.v2.ExportMetadata\202\323\344\223\002K\"F/v2/{catal"
+ + "og=projects/*/locations/*/catalogs/*}:ex"
+ + "portAnalyticsMetrics:\001*\032I\312A\025retail.googl"
+ + "eapis.com\322A.https://www.googleapis.com/a"
+ + "uth/cloud-platformB\300\001\n\032com.google.cloud."
+ + "retail.v2B\025AnalyticsServiceProtoP\001Z2clou"
+ + "d.google.com/go/retail/apiv2/retailpb;re"
+ + "tailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2"
+ + "\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Clou"
+ + "d::Retail::V2b\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.retail.v2.ExportConfigProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.longrunning.OperationsProto.operationInfo);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.retail.v2.ExportConfigProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQueryOutputResult.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQueryOutputResult.java
new file mode 100644
index 000000000000..e8a13e14c468
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQueryOutputResult.java
@@ -0,0 +1,807 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * A BigQuery output result.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.BigQueryOutputResult}
+ */
+public final class BigQueryOutputResult extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.BigQueryOutputResult)
+ BigQueryOutputResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BigQueryOutputResult.newBuilder() to construct.
+ private BigQueryOutputResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BigQueryOutputResult() {
+ datasetId_ = "";
+ tableId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BigQueryOutputResult();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_BigQueryOutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_BigQueryOutputResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.BigQueryOutputResult.class,
+ com.google.cloud.retail.v2.BigQueryOutputResult.Builder.class);
+ }
+
+ public static final int DATASET_ID_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object datasetId_ = "";
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return The datasetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetId() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return The bytes for datasetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetIdBytes() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableId_ = "";
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return The tableId.
+ */
+ @java.lang.Override
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return The bytes for tableId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableId_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.BigQueryOutputResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.BigQueryOutputResult other =
+ (com.google.cloud.retail.v2.BigQueryOutputResult) obj;
+
+ if (!getDatasetId().equals(other.getDatasetId())) return false;
+ if (!getTableId().equals(other.getTableId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATASET_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDatasetId().hashCode();
+ hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTableId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.retail.v2.BigQueryOutputResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A BigQuery output result.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.BigQueryOutputResult}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.BigQueryOutputResult)
+ com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_BigQueryOutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_BigQueryOutputResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.BigQueryOutputResult.class,
+ com.google.cloud.retail.v2.BigQueryOutputResult.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.BigQueryOutputResult.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ datasetId_ = "";
+ tableId_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_BigQueryOutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.BigQueryOutputResult getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.BigQueryOutputResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.BigQueryOutputResult build() {
+ com.google.cloud.retail.v2.BigQueryOutputResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.BigQueryOutputResult buildPartial() {
+ com.google.cloud.retail.v2.BigQueryOutputResult result =
+ new com.google.cloud.retail.v2.BigQueryOutputResult(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.BigQueryOutputResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.datasetId_ = datasetId_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.tableId_ = tableId_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.BigQueryOutputResult) {
+ return mergeFrom((com.google.cloud.retail.v2.BigQueryOutputResult) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.BigQueryOutputResult other) {
+ if (other == com.google.cloud.retail.v2.BigQueryOutputResult.getDefaultInstance())
+ return this;
+ if (!other.getDatasetId().isEmpty()) {
+ datasetId_ = other.datasetId_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getTableId().isEmpty()) {
+ tableId_ = other.tableId_;
+ 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:
+ {
+ datasetId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ tableId_ = 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 datasetId_ = "";
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return The datasetId.
+ */
+ public java.lang.String getDatasetId() {
+ java.lang.Object ref = datasetId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return The bytes for datasetId.
+ */
+ public com.google.protobuf.ByteString getDatasetIdBytes() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @param value The datasetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ datasetId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetId() {
+ datasetId_ = getDefaultInstance().getDatasetId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @param value The bytes for datasetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ datasetId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableId_ = "";
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return The tableId.
+ */
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return The bytes for tableId.
+ */
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @param value The tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableId() {
+ tableId_ = getDefaultInstance().getTableId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @param value The bytes for tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tableId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.BigQueryOutputResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.BigQueryOutputResult)
+ private static final com.google.cloud.retail.v2.BigQueryOutputResult DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.BigQueryOutputResult();
+ }
+
+ public static com.google.cloud.retail.v2.BigQueryOutputResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BigQueryOutputResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.BigQueryOutputResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQueryOutputResultOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQueryOutputResultOrBuilder.java
new file mode 100644
index 000000000000..68dec1a4ffc0
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BigQueryOutputResultOrBuilder.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface BigQueryOutputResultOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.BigQueryOutputResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return The datasetId.
+ */
+ java.lang.String getDatasetId();
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1;
+ *
+ * @return The bytes for datasetId.
+ */
+ com.google.protobuf.ByteString getDatasetIdBytes();
+
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return The tableId.
+ */
+ java.lang.String getTableId();
+ /**
+ *
+ *
+ *
+ * The ID of a BigQuery Table.
+ *
+ *
+ * string table_id = 2;
+ *
+ * @return The bytes for tableId.
+ */
+ com.google.protobuf.ByteString getTableIdBytes();
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java
index d47bba6b6ecf..7445a1ed3840 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java
@@ -68,76 +68,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "*google/cloud/retail/v2/import_config.pr"
+ "oto\"^\n\022ProductLevelConfig\022\036\n\026ingestion_p"
+ "roduct_type\030\001 \001(\t\022(\n merchant_center_pro"
- + "duct_id_field\030\002 \001(\t\"\302\t\n\020CatalogAttribute"
- + "\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\022\024\n\006in_use\030\t \001(\010B\004\342A\001"
- + "\003\022J\n\004type\030\n \001(\01626.google.cloud.retail.v2"
- + ".CatalogAttribute.AttributeTypeB\004\342A\001\003\022R\n"
- + "\020indexable_option\030\005 \001(\01628.google.cloud.r"
- + "etail.v2.CatalogAttribute.IndexableOptio"
- + "n\022a\n\030dynamic_facetable_option\030\006 \001(\0162?.go"
- + "ogle.cloud.retail.v2.CatalogAttribute.Dy"
- + "namicFacetableOption\022T\n\021searchable_optio"
- + "n\030\007 \001(\01629.google.cloud.retail.v2.Catalog"
- + "Attribute.SearchableOption\022_\n\027exact_sear"
- + "chable_option\030\013 \001(\0162>.google.cloud.retai"
- + "l.v2.CatalogAttribute.ExactSearchableOpt"
- + "ion\022V\n\022retrievable_option\030\014 \001(\0162:.google"
- + ".cloud.retail.v2.CatalogAttribute.Retrie"
- + "vableOption\"8\n\rAttributeType\022\013\n\007UNKNOWN\020"
- + "\000\022\013\n\007TEXTUAL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017Indexab"
- + "leOption\022 \n\034INDEXABLE_OPTION_UNSPECIFIED"
- + "\020\000\022\025\n\021INDEXABLE_ENABLED\020\001\022\026\n\022INDEXABLE_D"
- + "ISABLED\020\002\"\201\001\n\026DynamicFacetableOption\022(\n$"
- + "DYNAMIC_FACETABLE_OPTION_UNSPECIFIED\020\000\022\035"
- + "\n\031DYNAMIC_FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC"
- + "_FACETABLE_DISABLED\020\002\"f\n\020SearchableOptio"
- + "n\022!\n\035SEARCHABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022"
- + "SEARCHABLE_ENABLED\020\001\022\027\n\023SEARCHABLE_DISAB"
- + "LED\020\002\"}\n\025ExactSearchableOption\022\'\n#EXACT_"
- + "SEARCHABLE_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT"
- + "_SEARCHABLE_ENABLED\020\001\022\035\n\031EXACT_SEARCHABL"
- + "E_DISABLED\020\002\"j\n\021RetrievableOption\022\"\n\036RET"
- + "RIEVABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023RETRIEV"
- + "ABLE_ENABLED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002"
- + "\"\266\003\n\020AttributesConfig\022\023\n\004name\030\001 \001(\tB\005\342A\002"
- + "\002\005\022[\n\022catalog_attributes\030\002 \003(\0132?.google."
- + "cloud.retail.v2.AttributesConfig.Catalog"
- + "AttributesEntry\022R\n\026attribute_config_leve"
- + "l\030\003 \001(\0162,.google.cloud.retail.v2.Attribu"
- + "teConfigLevelB\004\342A\001\003\032b\n\026CatalogAttributes"
- + "Entry\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.goog"
- + "le.cloud.retail.v2.CatalogAttribute:\0028\001:"
- + "x\352Au\n&retail.googleapis.com/AttributesCo"
- + "nfig\022Kprojects/{project}/locations/{loca"
- + "tion}/catalogs/{catalog}/attributesConfi"
- + "g\"\236\005\n\020CompletionConfig\022\023\n\004name\030\001 \001(\tB\005\342A"
- + "\002\002\005\022\026\n\016matching_order\030\002 \001(\t\022\027\n\017max_sugge"
- + "stions\030\003 \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022"
- + "\025\n\rauto_learning\030\013 \001(\010\022Y\n\030suggestions_in"
- + "put_config\030\005 \001(\01321.google.cloud.retail.v"
- + "2.CompletionDataInputConfigB\004\342A\001\003\022/\n!las"
- + "t_suggestions_import_operation\030\006 \001(\tB\004\342A"
- + "\001\003\022V\n\025denylist_input_config\030\007 \001(\01321.goog"
- + "le.cloud.retail.v2.CompletionDataInputCo"
- + "nfigB\004\342A\001\003\022,\n\036last_denylist_import_opera"
- + "tion\030\010 \001(\tB\004\342A\001\003\022W\n\026allowlist_input_conf"
- + "ig\030\t \001(\01321.google.cloud.retail.v2.Comple"
- + "tionDataInputConfigB\004\342A\001\003\022-\n\037last_allowl"
- + "ist_import_operation\030\n \001(\tB\004\342A\001\003:x\352Au\n&r"
- + "etail.googleapis.com/CompletionConfig\022Kp"
- + "rojects/{project}/locations/{location}/c"
- + "atalogs/{catalog}/completionConfig\"\353\001\n\007C"
- + "atalog\022\023\n\004name\030\001 \001(\tB\005\342A\002\002\005\022\033\n\014display_n"
- + "ame\030\002 \001(\tB\005\342A\002\002\005\022N\n\024product_level_config"
- + "\030\004 \001(\0132*.google.cloud.retail.v2.ProductL"
- + "evelConfigB\004\342A\001\002:^\352A[\n\035retail.googleapis"
- + ".com/Catalog\022:projects/{project}/locatio"
- + "ns/{location}/catalogs/{catalog}B\267\001\n\032com"
- + ".google.cloud.retail.v2B\014CatalogProtoP\001Z"
- + "2cloud.google.com/go/retail/apiv2/retail"
- + "pb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Reta"
- + "il.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google:"
- + ":Cloud::Retail::V2b\006proto3"
+ + "duct_id_field\030\002 \001(\t\"\277\t\n\020CatalogAttribute"
+ + "\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023\n\006in_use\030\t \001(\010B\003\340A\003\022"
+ + "I\n\004type\030\n \001(\01626.google.cloud.retail.v2.C"
+ + "atalogAttribute.AttributeTypeB\003\340A\003\022R\n\020in"
+ + "dexable_option\030\005 \001(\01628.google.cloud.reta"
+ + "il.v2.CatalogAttribute.IndexableOption\022a"
+ + "\n\030dynamic_facetable_option\030\006 \001(\0162?.googl"
+ + "e.cloud.retail.v2.CatalogAttribute.Dynam"
+ + "icFacetableOption\022T\n\021searchable_option\030\007"
+ + " \001(\01629.google.cloud.retail.v2.CatalogAtt"
+ + "ribute.SearchableOption\022_\n\027exact_searcha"
+ + "ble_option\030\013 \001(\0162>.google.cloud.retail.v"
+ + "2.CatalogAttribute.ExactSearchableOption"
+ + "\022V\n\022retrievable_option\030\014 \001(\0162:.google.cl"
+ + "oud.retail.v2.CatalogAttribute.Retrievab"
+ + "leOption\"8\n\rAttributeType\022\013\n\007UNKNOWN\020\000\022\013"
+ + "\n\007TEXTUAL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017IndexableO"
+ + "ption\022 \n\034INDEXABLE_OPTION_UNSPECIFIED\020\000\022"
+ + "\025\n\021INDEXABLE_ENABLED\020\001\022\026\n\022INDEXABLE_DISA"
+ + "BLED\020\002\"\201\001\n\026DynamicFacetableOption\022(\n$DYN"
+ + "AMIC_FACETABLE_OPTION_UNSPECIFIED\020\000\022\035\n\031D"
+ + "YNAMIC_FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC_FA"
+ + "CETABLE_DISABLED\020\002\"f\n\020SearchableOption\022!"
+ + "\n\035SEARCHABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022SEA"
+ + "RCHABLE_ENABLED\020\001\022\027\n\023SEARCHABLE_DISABLED"
+ + "\020\002\"}\n\025ExactSearchableOption\022\'\n#EXACT_SEA"
+ + "RCHABLE_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT_SE"
+ + "ARCHABLE_ENABLED\020\001\022\035\n\031EXACT_SEARCHABLE_D"
+ + "ISABLED\020\002\"j\n\021RetrievableOption\022\"\n\036RETRIE"
+ + "VABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVABL"
+ + "E_ENABLED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"\266\003"
+ + "\n\020AttributesConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005"
+ + "\022[\n\022catalog_attributes\030\002 \003(\0132?.google.cl"
+ + "oud.retail.v2.AttributesConfig.CatalogAt"
+ + "tributesEntry\022Q\n\026attribute_config_level\030"
+ + "\003 \001(\0162,.google.cloud.retail.v2.Attribute"
+ + "ConfigLevelB\003\340A\003\032b\n\026CatalogAttributesEnt"
+ + "ry\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.google."
+ + "cloud.retail.v2.CatalogAttribute:\0028\001:x\352A"
+ + "u\n&retail.googleapis.com/AttributesConfi"
+ + "g\022Kprojects/{project}/locations/{locatio"
+ + "n}/catalogs/{catalog}/attributesConfig\"\231"
+ + "\005\n\020CompletionConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A"
+ + "\005\022\026\n\016matching_order\030\002 \001(\t\022\027\n\017max_suggest"
+ + "ions\030\003 \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022\025\n"
+ + "\rauto_learning\030\013 \001(\010\022X\n\030suggestions_inpu"
+ + "t_config\030\005 \001(\01321.google.cloud.retail.v2."
+ + "CompletionDataInputConfigB\003\340A\003\022.\n!last_s"
+ + "uggestions_import_operation\030\006 \001(\tB\003\340A\003\022U"
+ + "\n\025denylist_input_config\030\007 \001(\01321.google.c"
+ + "loud.retail.v2.CompletionDataInputConfig"
+ + "B\003\340A\003\022+\n\036last_denylist_import_operation\030"
+ + "\010 \001(\tB\003\340A\003\022V\n\026allowlist_input_config\030\t \001"
+ + "(\01321.google.cloud.retail.v2.CompletionDa"
+ + "taInputConfigB\003\340A\003\022,\n\037last_allowlist_imp"
+ + "ort_operation\030\n \001(\tB\003\340A\003:x\352Au\n&retail.go"
+ + "ogleapis.com/CompletionConfig\022Kprojects/"
+ + "{project}/locations/{location}/catalogs/"
+ + "{catalog}/completionConfig\"\354\001\n\007Catalog\022\024"
+ + "\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n\014display_name\030\002 \001"
+ + "(\tB\006\340A\002\340A\005\022M\n\024product_level_config\030\004 \001(\013"
+ + "2*.google.cloud.retail.v2.ProductLevelCo"
+ + "nfigB\003\340A\002:^\352A[\n\035retail.googleapis.com/Ca"
+ + "talog\022:projects/{project}/locations/{loc"
+ + "ation}/catalogs/{catalog}B\267\001\n\032com.google"
+ + ".cloud.retail.v2B\014CatalogProtoP\001Z2cloud."
+ + "google.com/go/retail/apiv2/retailpb;reta"
+ + "ilpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002"
+ + "\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud:"
+ + ":Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceProto.java
index 3b1777d402dc..0e4c7b008941 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceProto.java
@@ -97,117 +97,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "retail/v2/catalog.proto\032\033google/protobuf"
+ "/empty.proto\032 google/protobuf/field_mask"
+ ".proto\032\037google/protobuf/timestamp.proto\""
- + "x\n\023ListCatalogsRequest\022:\n\006parent\030\001 \001(\tB*"
- + "\342A\001\002\372A#\n!locations.googleapis.com/Locati"
- + "on\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001("
- + "\t\"b\n\024ListCatalogsResponse\0221\n\010catalogs\030\001 "
- + "\003(\0132\037.google.cloud.retail.v2.Catalog\022\027\n\017"
- + "next_page_token\030\002 \001(\t\"\177\n\024UpdateCatalogRe"
- + "quest\0226\n\007catalog\030\001 \001(\0132\037.google.cloud.re"
- + "tail.v2.CatalogB\004\342A\001\002\022/\n\013update_mask\030\002 \001"
- + "(\0132\032.google.protobuf.FieldMask\"\241\001\n\027SetDe"
- + "faultBranchRequest\0223\n\007catalog\030\001 \001(\tB\"\372A\037"
- + "\n\035retail.googleapis.com/Catalog\0224\n\tbranc"
- + "h_id\030\002 \001(\tB!\372A\036\n\034retail.googleapis.com/B"
- + "ranch\022\014\n\004note\030\003 \001(\t\022\r\n\005force\030\004 \001(\010\"N\n\027Ge"
- + "tDefaultBranchRequest\0223\n\007catalog\030\001 \001(\tB\""
- + "\372A\037\n\035retail.googleapis.com/Catalog\"\211\001\n\030G"
- + "etDefaultBranchResponse\0221\n\006branch\030\001 \001(\tB"
- + "!\372A\036\n\034retail.googleapis.com/Branch\022,\n\010se"
- + "t_time\030\002 \001(\0132\032.google.protobuf.Timestamp"
- + "\022\014\n\004note\030\003 \001(\t\"[\n\032GetCompletionConfigReq"
- + "uest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&retail.goog"
- + "leapis.com/CompletionConfig\"\233\001\n\035UpdateCo"
- + "mpletionConfigRequest\022I\n\021completion_conf"
- + "ig\030\001 \001(\0132(.google.cloud.retail.v2.Comple"
- + "tionConfigB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032."
- + "google.protobuf.FieldMask\"[\n\032GetAttribut"
- + "esConfigRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&"
- + "retail.googleapis.com/AttributesConfig\"\233"
- + "\001\n\035UpdateAttributesConfigRequest\022I\n\021attr"
- + "ibutes_config\030\001 \001(\0132(.google.cloud.retai"
- + "l.v2.AttributesConfigB\004\342A\001\002\022/\n\013update_ma"
- + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\263\001\n"
- + "\032AddCatalogAttributeRequest\022J\n\021attribute"
- + "s_config\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googleap"
- + "is.com/AttributesConfig\022I\n\021catalog_attri"
- + "bute\030\002 \001(\0132(.google.cloud.retail.v2.Cata"
- + "logAttributeB\004\342A\001\002\"~\n\035RemoveCatalogAttri"
- + "buteRequest\022J\n\021attributes_config\030\001 \001(\tB/"
- + "\342A\001\002\372A(\n&retail.googleapis.com/Attribute"
- + "sConfig\022\021\n\003key\030\002 \001(\tB\004\342A\001\002\"\350\001\n\036ReplaceCa"
- + "talogAttributeRequest\022J\n\021attributes_conf"
- + "ig\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googleapis.com"
- + "/AttributesConfig\022I\n\021catalog_attribute\030\002"
- + " \001(\0132(.google.cloud.retail.v2.CatalogAtt"
- + "ributeB\004\342A\001\002\022/\n\013update_mask\030\003 \001(\0132\032.goog"
- + "le.protobuf.FieldMask2\227\023\n\016CatalogService"
- + "\022\250\001\n\014ListCatalogs\022+.google.cloud.retail."
- + "v2.ListCatalogsRequest\032,.google.cloud.re"
- + "tail.v2.ListCatalogsResponse\"=\332A\006parent\202"
- + "\323\344\223\002.\022,/v2/{parent=projects/*/locations/"
- + "*}/catalogs\022\273\001\n\rUpdateCatalog\022,.google.c"
- + "loud.retail.v2.UpdateCatalogRequest\032\037.go"
- + "ogle.cloud.retail.v2.Catalog\"[\332A\023catalog"
- + ",update_mask\202\323\344\223\002?24/v2/{catalog.name=pr"
- + "ojects/*/locations/*/catalogs/*}:\007catalo"
- + "g\022\262\001\n\020SetDefaultBranch\022/.google.cloud.re"
- + "tail.v2.SetDefaultBranchRequest\032\026.google"
- + ".protobuf.Empty\"U\332A\007catalog\202\323\344\223\002E\"@/v2/{"
- + "catalog=projects/*/locations/*/catalogs/"
- + "*}:setDefaultBranch:\001*\022\311\001\n\020GetDefaultBra"
- + "nch\022/.google.cloud.retail.v2.GetDefaultB"
- + "ranchRequest\0320.google.cloud.retail.v2.Ge"
- + "tDefaultBranchResponse\"R\332A\007catalog\202\323\344\223\002B"
- + "\022@/v2/{catalog=projects/*/locations/*/ca"
- + "talogs/*}:getDefaultBranch\022\301\001\n\023GetComple"
- + "tionConfig\0222.google.cloud.retail.v2.GetC"
- + "ompletionConfigRequest\032(.google.cloud.re"
- + "tail.v2.CompletionConfig\"L\332A\004name\202\323\344\223\002?\022"
- + "=/v2/{name=projects/*/locations/*/catalo"
- + "gs/*/completionConfig}\022\206\002\n\026UpdateComplet"
- + "ionConfig\0225.google.cloud.retail.v2.Updat"
- + "eCompletionConfigRequest\032(.google.cloud."
- + "retail.v2.CompletionConfig\"\212\001\332A\035completi"
- + "on_config,update_mask\202\323\344\223\002d2O/v2/{comple"
- + "tion_config.name=projects/*/locations/*/"
- + "catalogs/*/completionConfig}:\021completion"
- + "_config\022\301\001\n\023GetAttributesConfig\0222.google"
- + ".cloud.retail.v2.GetAttributesConfigRequ"
+ + "w\n\023ListCatalogsRequest\0229\n\006parent\030\001 \001(\tB)"
+ + "\340A\002\372A#\n!locations.googleapis.com/Locatio"
+ + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t"
+ + "\"b\n\024ListCatalogsResponse\0221\n\010catalogs\030\001 \003"
+ + "(\0132\037.google.cloud.retail.v2.Catalog\022\027\n\017n"
+ + "ext_page_token\030\002 \001(\t\"~\n\024UpdateCatalogReq"
+ + "uest\0225\n\007catalog\030\001 \001(\0132\037.google.cloud.ret"
+ + "ail.v2.CatalogB\003\340A\002\022/\n\013update_mask\030\002 \001(\013"
+ + "2\032.google.protobuf.FieldMask\"\241\001\n\027SetDefa"
+ + "ultBranchRequest\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035"
+ + "retail.googleapis.com/Catalog\0224\n\tbranch_"
+ + "id\030\002 \001(\tB!\372A\036\n\034retail.googleapis.com/Bra"
+ + "nch\022\014\n\004note\030\003 \001(\t\022\r\n\005force\030\004 \001(\010\"N\n\027GetD"
+ + "efaultBranchRequest\0223\n\007catalog\030\001 \001(\tB\"\372A"
+ + "\037\n\035retail.googleapis.com/Catalog\"\211\001\n\030Get"
+ + "DefaultBranchResponse\0221\n\006branch\030\001 \001(\tB!\372"
+ + "A\036\n\034retail.googleapis.com/Branch\022,\n\010set_"
+ + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\014"
+ + "\n\004note\030\003 \001(\t\"Z\n\032GetCompletionConfigReque"
+ + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&retail.googlea"
+ + "pis.com/CompletionConfig\"\232\001\n\035UpdateCompl"
+ + "etionConfigRequest\022H\n\021completion_config\030"
+ + "\001 \001(\0132(.google.cloud.retail.v2.Completio"
+ + "nConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goog"
+ + "le.protobuf.FieldMask\"Z\n\032GetAttributesCo"
+ + "nfigRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&retai"
+ + "l.googleapis.com/AttributesConfig\"\232\001\n\035Up"
+ + "dateAttributesConfigRequest\022H\n\021attribute"
+ + "s_config\030\001 \001(\0132(.google.cloud.retail.v2."
+ + "AttributesConfigB\003\340A\002\022/\n\013update_mask\030\002 \001"
+ + "(\0132\032.google.protobuf.FieldMask\"\261\001\n\032AddCa"
+ + "talogAttributeRequest\022I\n\021attributes_conf"
+ + "ig\030\001 \001(\tB.\340A\002\372A(\n&retail.googleapis.com/"
+ + "AttributesConfig\022H\n\021catalog_attribute\030\002 "
+ + "\001(\0132(.google.cloud.retail.v2.CatalogAttr"
+ + "ibuteB\003\340A\002\"|\n\035RemoveCatalogAttributeRequ"
+ + "est\022I\n\021attributes_config\030\001 \001(\tB.\340A\002\372A(\n&"
+ + "retail.googleapis.com/AttributesConfig\022\020"
+ + "\n\003key\030\002 \001(\tB\003\340A\002\"\346\001\n\036ReplaceCatalogAttri"
+ + "buteRequest\022I\n\021attributes_config\030\001 \001(\tB."
+ + "\340A\002\372A(\n&retail.googleapis.com/Attributes"
+ + "Config\022H\n\021catalog_attribute\030\002 \001(\0132(.goog"
+ + "le.cloud.retail.v2.CatalogAttributeB\003\340A\002"
+ + "\022/\n\013update_mask\030\003 \001(\0132\032.google.protobuf."
+ + "FieldMask2\227\023\n\016CatalogService\022\250\001\n\014ListCat"
+ + "alogs\022+.google.cloud.retail.v2.ListCatal"
+ + "ogsRequest\032,.google.cloud.retail.v2.List"
+ + "CatalogsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v2/{"
+ + "parent=projects/*/locations/*}/catalogs\022"
+ + "\273\001\n\rUpdateCatalog\022,.google.cloud.retail."
+ + "v2.UpdateCatalogRequest\032\037.google.cloud.r"
+ + "etail.v2.Catalog\"[\332A\023catalog,update_mask"
+ + "\202\323\344\223\002?24/v2/{catalog.name=projects/*/loc"
+ + "ations/*/catalogs/*}:\007catalog\022\262\001\n\020SetDef"
+ + "aultBranch\022/.google.cloud.retail.v2.SetD"
+ + "efaultBranchRequest\032\026.google.protobuf.Em"
+ + "pty\"U\332A\007catalog\202\323\344\223\002E\"@/v2/{catalog=proj"
+ + "ects/*/locations/*/catalogs/*}:setDefaul"
+ + "tBranch:\001*\022\311\001\n\020GetDefaultBranch\022/.google"
+ + ".cloud.retail.v2.GetDefaultBranchRequest"
+ + "\0320.google.cloud.retail.v2.GetDefaultBran"
+ + "chResponse\"R\332A\007catalog\202\323\344\223\002B\022@/v2/{catal"
+ + "og=projects/*/locations/*/catalogs/*}:ge"
+ + "tDefaultBranch\022\301\001\n\023GetCompletionConfig\0222"
+ + ".google.cloud.retail.v2.GetCompletionCon"
+ + "figRequest\032(.google.cloud.retail.v2.Comp"
+ + "letionConfig\"L\332A\004name\202\323\344\223\002?\022=/v2/{name=p"
+ + "rojects/*/locations/*/catalogs/*/complet"
+ + "ionConfig}\022\206\002\n\026UpdateCompletionConfig\0225."
+ + "google.cloud.retail.v2.UpdateCompletionC"
+ + "onfigRequest\032(.google.cloud.retail.v2.Co"
+ + "mpletionConfig\"\212\001\332A\035completion_config,up"
+ + "date_mask\202\323\344\223\002d2O/v2/{completion_config."
+ + "name=projects/*/locations/*/catalogs/*/c"
+ + "ompletionConfig}:\021completion_config\022\301\001\n\023"
+ + "GetAttributesConfig\0222.google.cloud.retai"
+ + "l.v2.GetAttributesConfigRequest\032(.google"
+ + ".cloud.retail.v2.AttributesConfig\"L\332A\004na"
+ + "me\202\323\344\223\002?\022=/v2/{name=projects/*/locations"
+ + "/*/catalogs/*/attributesConfig}\022\206\002\n\026Upda"
+ + "teAttributesConfig\0225.google.cloud.retail"
+ + ".v2.UpdateAttributesConfigRequest\032(.goog"
+ + "le.cloud.retail.v2.AttributesConfig\"\212\001\332A"
+ + "\035attributes_config,update_mask\202\323\344\223\002d2O/v"
+ + "2/{attributes_config.name=projects/*/loc"
+ + "ations/*/catalogs/*/attributesConfig}:\021a"
+ + "ttributes_config\022\336\001\n\023AddCatalogAttribute"
+ + "\0222.google.cloud.retail.v2.AddCatalogAttr"
+ + "ibuteRequest\032(.google.cloud.retail.v2.At"
+ + "tributesConfig\"i\202\323\344\223\002c\"^/v2/{attributes_"
+ + "config=projects/*/locations/*/catalogs/*"
+ + "/attributesConfig}:addCatalogAttribute:\001"
+ + "*\022\347\001\n\026RemoveCatalogAttribute\0225.google.cl"
+ + "oud.retail.v2.RemoveCatalogAttributeRequ"
+ "est\032(.google.cloud.retail.v2.AttributesC"
- + "onfig\"L\332A\004name\202\323\344\223\002?\022=/v2/{name=projects"
- + "/*/locations/*/catalogs/*/attributesConf"
- + "ig}\022\206\002\n\026UpdateAttributesConfig\0225.google."
- + "cloud.retail.v2.UpdateAttributesConfigRe"
- + "quest\032(.google.cloud.retail.v2.Attribute"
- + "sConfig\"\212\001\332A\035attributes_config,update_ma"
- + "sk\202\323\344\223\002d2O/v2/{attributes_config.name=pr"
+ + "onfig\"l\202\323\344\223\002f\"a/v2/{attributes_config=pr"
+ "ojects/*/locations/*/catalogs/*/attribut"
- + "esConfig}:\021attributes_config\022\336\001\n\023AddCata"
- + "logAttribute\0222.google.cloud.retail.v2.Ad"
- + "dCatalogAttributeRequest\032(.google.cloud."
- + "retail.v2.AttributesConfig\"i\202\323\344\223\002c\"^/v2/"
- + "{attributes_config=projects/*/locations/"
- + "*/catalogs/*/attributesConfig}:addCatalo"
- + "gAttribute:\001*\022\347\001\n\026RemoveCatalogAttribute"
- + "\0225.google.cloud.retail.v2.RemoveCatalogA"
- + "ttributeRequest\032(.google.cloud.retail.v2"
- + ".AttributesConfig\"l\202\323\344\223\002f\"a/v2/{attribut"
- + "es_config=projects/*/locations/*/catalog"
- + "s/*/attributesConfig}:removeCatalogAttri"
- + "bute:\001*\022\352\001\n\027ReplaceCatalogAttribute\0226.go"
- + "ogle.cloud.retail.v2.ReplaceCatalogAttri"
- + "buteRequest\032(.google.cloud.retail.v2.Att"
- + "ributesConfig\"m\202\323\344\223\002g\"b/v2/{attributes_c"
- + "onfig=projects/*/locations/*/catalogs/*/"
- + "attributesConfig}:replaceCatalogAttribut"
- + "e:\001*\032I\312A\025retail.googleapis.com\322A.https:/"
- + "/www.googleapis.com/auth/cloud-platformB"
- + "\276\001\n\032com.google.cloud.retail.v2B\023CatalogS"
- + "erviceProtoP\001Z2cloud.google.com/go/retai"
- + "l/apiv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Goo"
- + "gle.Cloud.Retail.V2\312\002\026Google\\Cloud\\Retai"
- + "l\\V2\352\002\031Google::Cloud::Retail::V2b\006proto3"
+ + "esConfig}:removeCatalogAttribute:\001*\022\352\001\n\027"
+ + "ReplaceCatalogAttribute\0226.google.cloud.r"
+ + "etail.v2.ReplaceCatalogAttributeRequest\032"
+ + "(.google.cloud.retail.v2.AttributesConfi"
+ + "g\"m\202\323\344\223\002g\"b/v2/{attributes_config=projec"
+ + "ts/*/locations/*/catalogs/*/attributesCo"
+ + "nfig}:replaceCatalogAttribute:\001*\032I\312A\025ret"
+ + "ail.googleapis.com\322A.https://www.googlea"
+ + "pis.com/auth/cloud-platformB\276\001\n\032com.goog"
+ + "le.cloud.retail.v2B\023CatalogServiceProtoP"
+ + "\001Z2cloud.google.com/go/retail/apiv2/reta"
+ + "ilpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Re"
+ + "tail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Googl"
+ + "e::Cloud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java
index 82a614ae6849..df97c088948d 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java
@@ -143,7 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".\n\tQueryTerm\022\r\n\005value\030\001 \001(\t\022\022\n\nfull_matc"
+ "h\030\002 \001(\010\032i\n\tTimeRange\022.\n\nstart_time\030\001 \001(\013"
+ "2\032.google.protobuf.Timestamp\022,\n\010end_time"
- + "\030\002 \001(\0132\032.google.protobuf.Timestamp\"\376\010\n\004R"
+ + "\030\002 \001(\0132\032.google.protobuf.Timestamp\"\375\010\n\004R"
+ "ule\022@\n\014boost_action\030\002 \001(\0132(.google.cloud"
+ ".retail.v2.Rule.BoostActionH\000\022F\n\017redirec"
+ "t_action\030\003 \001(\0132+.google.cloud.retail.v2."
@@ -159,72 +159,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\0132).google.cloud.retail.v2.Rule.FilterAc"
+ "tionH\000\022S\n\026twoway_synonyms_action\030\013 \001(\01321"
+ ".google.cloud.retail.v2.Rule.TwowaySynon"
- + "ymsActionH\000\022:\n\tcondition\030\001 \001(\0132!.google."
- + "cloud.retail.v2.ConditionB\004\342A\001\002\0325\n\013Boost"
- + "Action\022\r\n\005boost\030\001 \001(\002\022\027\n\017products_filter"
- + "\030\002 \001(\t\032\036\n\014FilterAction\022\016\n\006filter\030\001 \001(\t\032&"
- + "\n\016RedirectAction\022\024\n\014redirect_uri\030\001 \001(\t\032("
- + "\n\024TwowaySynonymsAction\022\020\n\010synonyms\030\001 \003(\t"
- + "\032S\n\024OnewaySynonymsAction\022\023\n\013query_terms\030"
- + "\003 \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014oneway_terms\030"
- + "\002 \003(\t\032Z\n\024DoNotAssociateAction\022\023\n\013query_t"
- + "erms\030\002 \003(\t\022\036\n\026do_not_associate_terms\030\003 \003"
- + "(\t\022\r\n\005terms\030\001 \003(\t\032P\n\021ReplacementAction\022\023"
- + "\n\013query_terms\030\002 \003(\t\022\030\n\020replacement_term\030"
- + "\003 \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014IgnoreAction\022\024\n\014i"
- + "gnore_terms\030\001 \003(\tB\010\n\006action\"/\n\010Audience\022"
- + "\017\n\007genders\030\001 \003(\t\022\022\n\nage_groups\030\002 \003(\t\"3\n\t"
- + "ColorInfo\022\026\n\016color_families\030\001 \003(\t\022\016\n\006col"
- + "ors\030\002 \003(\t\"\206\001\n\017CustomAttribute\022\014\n\004text\030\001 "
- + "\003(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearchable\030\003 \001(\010"
- + "B\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n"
- + "\013_searchableB\014\n\n_indexable\"2\n\017Fulfillmen"
- + "tInfo\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_ids\030\002 \003(\t\"9"
- + "\n\005Image\022\021\n\003uri\030\001 \001(\tB\004\342A\001\002\022\016\n\006height\030\002 \001"
- + "(\005\022\r\n\005width\030\003 \001(\005\"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"
- + "\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_maximum\030\004 "
- + "\001(\001H\001B\005\n\003minB\005\n\003max\"\212\003\n\tPriceInfo\022\025\n\rcur"
- + "rency_code\030\001 \001(\t\022\r\n\005price\030\002 \001(\002\022\026\n\016origi"
- + "nal_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\0228\n\024price_e"
- + "ffective_time\030\005 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\0225\n\021price_expire_time\030\006 \001(\0132\032.goo"
- + "gle.protobuf.Timestamp\022G\n\013price_range\030\007 "
- + "\001(\0132,.google.cloud.retail.v2.PriceInfo.P"
- + "riceRangeB\004\342A\001\003\032w\n\nPriceRange\022/\n\005price\030\001"
- + " \001(\0132 .google.cloud.retail.v2.Interval\0228"
- + "\n\016original_price\030\002 \001(\0132 .google.cloud.re"
- + "tail.v2.Interval\"P\n\006Rating\022\024\n\014rating_cou"
- + "nt\030\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020rati"
- + "ng_histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user_i"
- + "d\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_agen"
- + "t\030\003 \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\242\002\n"
- + "\016LocalInventory\022\020\n\010place_id\030\001 \001(\t\0225\n\npri"
- + "ce_info\030\002 \001(\0132!.google.cloud.retail.v2.P"
- + "riceInfo\022J\n\nattributes\030\003 \003(\01326.google.cl"
- + "oud.retail.v2.LocalInventory.AttributesE"
- + "ntry\022\037\n\021fulfillment_types\030\004 \003(\tB\004\342A\001\004\032Z\n"
- + "\017AttributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002"
- + " \001(\0132\'.google.cloud.retail.v2.CustomAttr"
- + "ibute:\0028\001*\206\001\n\024AttributeConfigLevel\022&\n\"AT"
- + "TRIBUTE_CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PR"
- + "ODUCT_LEVEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALO"
- + "G_LEVEL_ATTRIBUTE_CONFIG\020\002*i\n\014SolutionTy"
- + "pe\022\035\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOL"
- + "UTION_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_"
- + "TYPE_SEARCH\020\002*\241\001\n\036RecommendationsFilteri"
- + "ngOption\0220\n,RECOMMENDATIONS_FILTERING_OP"
- + "TION_UNSPECIFIED\020\000\022&\n\"RECOMMENDATIONS_FI"
- + "LTERING_DISABLED\020\001\022%\n!RECOMMENDATIONS_FI"
- + "LTERING_ENABLED\020\003*\213\001\n\025SearchSolutionUseC"
- + "ase\022(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIF"
- + "IED\020\000\022#\n\037SEARCH_SOLUTION_USE_CASE_SEARCH"
- + "\020\001\022#\n\037SEARCH_SOLUTION_USE_CASE_BROWSE\020\002B"
- + "\266\001\n\032com.google.cloud.retail.v2B\013CommonPr"
- + "otoP\001Z2cloud.google.com/go/retail/apiv2/"
- + "retailpb;retailpb\242\002\006RETAIL\252\002\026Google.Clou"
- + "d.Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031G"
- + "oogle::Cloud::Retail::V2b\006proto3"
+ + "ymsActionH\000\0229\n\tcondition\030\001 \001(\0132!.google."
+ + "cloud.retail.v2.ConditionB\003\340A\002\0325\n\013BoostA"
+ + "ction\022\r\n\005boost\030\001 \001(\002\022\027\n\017products_filter\030"
+ + "\002 \001(\t\032\036\n\014FilterAction\022\016\n\006filter\030\001 \001(\t\032&\n"
+ + "\016RedirectAction\022\024\n\014redirect_uri\030\001 \001(\t\032(\n"
+ + "\024TwowaySynonymsAction\022\020\n\010synonyms\030\001 \003(\t\032"
+ + "S\n\024OnewaySynonymsAction\022\023\n\013query_terms\030\003"
+ + " \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014oneway_terms\030\002"
+ + " \003(\t\032Z\n\024DoNotAssociateAction\022\023\n\013query_te"
+ + "rms\030\002 \003(\t\022\036\n\026do_not_associate_terms\030\003 \003("
+ + "\t\022\r\n\005terms\030\001 \003(\t\032P\n\021ReplacementAction\022\023\n"
+ + "\013query_terms\030\002 \003(\t\022\030\n\020replacement_term\030\003"
+ + " \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014IgnoreAction\022\024\n\014ig"
+ + "nore_terms\030\001 \003(\tB\010\n\006action\"/\n\010Audience\022\017"
+ + "\n\007genders\030\001 \003(\t\022\022\n\nage_groups\030\002 \003(\t\"3\n\tC"
+ + "olorInfo\022\026\n\016color_families\030\001 \003(\t\022\016\n\006colo"
+ + "rs\030\002 \003(\t\"\206\001\n\017CustomAttribute\022\014\n\004text\030\001 \003"
+ + "(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearchable\030\003 \001(\010B"
+ + "\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n\013"
+ + "_searchableB\014\n\n_indexable\"2\n\017Fulfillment"
+ + "Info\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_ids\030\002 \003(\t\"8\n"
+ + "\005Image\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006height\030\002 \001(\005"
+ + "\022\r\n\005width\030\003 \001(\005\"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\007m"
+ + "aximum\030\003 \001(\001H\001\022\033\n\021exclusive_maximum\030\004 \001("
+ + "\001H\001B\005\n\003minB\005\n\003max\"\211\003\n\tPriceInfo\022\025\n\rcurre"
+ + "ncy_code\030\001 \001(\t\022\r\n\005price\030\002 \001(\002\022\026\n\016origina"
+ + "l_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\0228\n\024price_eff"
+ + "ective_time\030\005 \001(\0132\032.google.protobuf.Time"
+ + "stamp\0225\n\021price_expire_time\030\006 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\022F\n\013price_range\030\007 \001("
+ + "\0132,.google.cloud.retail.v2.PriceInfo.Pri"
+ + "ceRangeB\003\340A\003\032w\n\nPriceRange\022/\n\005price\030\001 \001("
+ + "\0132 .google.cloud.retail.v2.Interval\0228\n\016o"
+ + "riginal_price\030\002 \001(\0132 .google.cloud.retai"
+ + "l.v2.Interval\"P\n\006Rating\022\024\n\014rating_count\030"
+ + "\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020rating_"
+ + "histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user_id\030\001"
+ + " \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_agent\030\003"
+ + " \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\241\002\n\016Lo"
+ + "calInventory\022\020\n\010place_id\030\001 \001(\t\0225\n\nprice_"
+ + "info\030\002 \001(\0132!.google.cloud.retail.v2.Pric"
+ + "eInfo\022J\n\nattributes\030\003 \003(\01326.google.cloud"
+ + ".retail.v2.LocalInventory.AttributesEntr"
+ + "y\022\036\n\021fulfillment_types\030\004 \003(\tB\003\340A\004\032Z\n\017Att"
+ + "ributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\013"
+ + "2\'.google.cloud.retail.v2.CustomAttribut"
+ + "e:\0028\001*\206\001\n\024AttributeConfigLevel\022&\n\"ATTRIB"
+ + "UTE_CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PRODUC"
+ + "T_LEVEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALOG_LE"
+ + "VEL_ATTRIBUTE_CONFIG\020\002*i\n\014SolutionType\022\035"
+ + "\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOLUTIO"
+ + "N_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_TYPE"
+ + "_SEARCH\020\002*\241\001\n\036RecommendationsFilteringOp"
+ + "tion\0220\n,RECOMMENDATIONS_FILTERING_OPTION"
+ + "_UNSPECIFIED\020\000\022&\n\"RECOMMENDATIONS_FILTER"
+ + "ING_DISABLED\020\001\022%\n!RECOMMENDATIONS_FILTER"
+ + "ING_ENABLED\020\003*\213\001\n\025SearchSolutionUseCase\022"
+ + "(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIFIED\020"
+ + "\000\022#\n\037SEARCH_SOLUTION_USE_CASE_SEARCH\020\001\022#"
+ + "\n\037SEARCH_SOLUTION_USE_CASE_BROWSE\020\002B\266\001\n\032"
+ + "com.google.cloud.retail.v2B\013CommonProtoP"
+ + "\001Z2cloud.google.com/go/retail/apiv2/reta"
+ + "ilpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Re"
+ + "tail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Googl"
+ + "e::Cloud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java
index e7486d28f68b..ef6319c7c361 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java
@@ -64,45 +64,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "o\032\031google/api/resource.proto\032#google/clo"
+ "ud/retail/v2/common.proto\032*google/cloud/"
+ "retail/v2/import_config.proto\032#google/lo"
- + "ngrunning/operations.proto\"\337\001\n\024CompleteQ"
- + "ueryRequest\0227\n\007catalog\030\001 \001(\tB&\342A\001\002\372A\037\n\035r"
- + "etail.googleapis.com/Catalog\022\023\n\005query\030\002 "
- + "\001(\tB\004\342A\001\002\022\022\n\nvisitor_id\030\007 \001(\t\022\026\n\016languag"
- + "e_codes\030\003 \003(\t\022\023\n\013device_type\030\004 \001(\t\022\017\n\007da"
- + "taset\030\006 \001(\t\022\027\n\017max_suggestions\030\005 \001(\005\022\016\n\006"
- + "entity\030\n \001(\t\"\205\004\n\025CompleteQueryResponse\022Z"
- + "\n\022completion_results\030\001 \003(\0132>.google.clou"
- + "d.retail.v2.CompleteQueryResponse.Comple"
- + "tionResult\022\031\n\021attribution_token\030\002 \001(\t\022_\n"
- + "\025recent_search_results\030\003 \003(\0132@.google.cl"
- + "oud.retail.v2.CompleteQueryResponse.Rece"
- + "ntSearchResult\032\346\001\n\020CompletionResult\022\022\n\ns"
- + "uggestion\030\001 \001(\t\022b\n\nattributes\030\002 \003(\0132N.go"
- + "ogle.cloud.retail.v2.CompleteQueryRespon"
- + "se.CompletionResult.AttributesEntry\032Z\n\017A"
- + "ttributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001"
- + "(\0132\'.google.cloud.retail.v2.CustomAttrib"
- + "ute:\0028\001\032+\n\022RecentSearchResult\022\025\n\rrecent_"
- + "search\030\001 \001(\t2\262\004\n\021CompletionService\022\263\001\n\rC"
- + "ompleteQuery\022,.google.cloud.retail.v2.Co"
- + "mpleteQueryRequest\032-.google.cloud.retail"
- + ".v2.CompleteQueryResponse\"E\202\323\344\223\002?\022=/v2/{"
- + "catalog=projects/*/locations/*/catalogs/"
- + "*}:completeQuery\022\233\002\n\024ImportCompletionDat"
- + "a\0223.google.cloud.retail.v2.ImportComplet"
- + "ionDataRequest\032\035.google.longrunning.Oper"
- + "ation\"\256\001\312A\\\n3google.cloud.retail.v2.Impo"
- + "rtCompletionDataResponse\022%google.cloud.r"
- + "etail.v2.ImportMetadata\202\323\344\223\002I\"D/v2/{pare"
- + "nt=projects/*/locations/*/catalogs/*}/co"
- + "mpletionData:import:\001*\032I\312A\025retail.google"
- + "apis.com\322A.https://www.googleapis.com/au"
- + "th/cloud-platformB\301\001\n\032com.google.cloud.r"
- + "etail.v2B\026CompletionServiceProtoP\001Z2clou"
- + "d.google.com/go/retail/apiv2/retailpb;re"
- + "tailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2"
- + "\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Clou"
- + "d::Retail::V2b\006proto3"
+ + "ngrunning/operations.proto\"\335\001\n\024CompleteQ"
+ + "ueryRequest\0226\n\007catalog\030\001 \001(\tB%\340A\002\372A\037\n\035re"
+ + "tail.googleapis.com/Catalog\022\022\n\005query\030\002 \001"
+ + "(\tB\003\340A\002\022\022\n\nvisitor_id\030\007 \001(\t\022\026\n\016language_"
+ + "codes\030\003 \003(\t\022\023\n\013device_type\030\004 \001(\t\022\017\n\007data"
+ + "set\030\006 \001(\t\022\027\n\017max_suggestions\030\005 \001(\005\022\016\n\006en"
+ + "tity\030\n \001(\t\"\205\004\n\025CompleteQueryResponse\022Z\n\022"
+ + "completion_results\030\001 \003(\0132>.google.cloud."
+ + "retail.v2.CompleteQueryResponse.Completi"
+ + "onResult\022\031\n\021attribution_token\030\002 \001(\t\022_\n\025r"
+ + "ecent_search_results\030\003 \003(\0132@.google.clou"
+ + "d.retail.v2.CompleteQueryResponse.Recent"
+ + "SearchResult\032\346\001\n\020CompletionResult\022\022\n\nsug"
+ + "gestion\030\001 \001(\t\022b\n\nattributes\030\002 \003(\0132N.goog"
+ + "le.cloud.retail.v2.CompleteQueryResponse"
+ + ".CompletionResult.AttributesEntry\032Z\n\017Att"
+ + "ributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\013"
+ + "2\'.google.cloud.retail.v2.CustomAttribut"
+ + "e:\0028\001\032+\n\022RecentSearchResult\022\025\n\rrecent_se"
+ + "arch\030\001 \001(\t2\262\004\n\021CompletionService\022\263\001\n\rCom"
+ + "pleteQuery\022,.google.cloud.retail.v2.Comp"
+ + "leteQueryRequest\032-.google.cloud.retail.v"
+ + "2.CompleteQueryResponse\"E\202\323\344\223\002?\022=/v2/{ca"
+ + "talog=projects/*/locations/*/catalogs/*}"
+ + ":completeQuery\022\233\002\n\024ImportCompletionData\022"
+ + "3.google.cloud.retail.v2.ImportCompletio"
+ + "nDataRequest\032\035.google.longrunning.Operat"
+ + "ion\"\256\001\312A\\\n3google.cloud.retail.v2.Import"
+ + "CompletionDataResponse\022%google.cloud.ret"
+ + "ail.v2.ImportMetadata\202\323\344\223\002I\"D/v2/{parent"
+ + "=projects/*/locations/*/catalogs/*}/comp"
+ + "letionData:import:\001*\032I\312A\025retail.googleap"
+ + "is.com\322A.https://www.googleapis.com/auth"
+ + "/cloud-platformB\301\001\n\032com.google.cloud.ret"
+ + "ail.v2B\026CompletionServiceProtoP\001Z2cloud."
+ + "google.com/go/retail/apiv2/retailpb;reta"
+ + "ilpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002"
+ + "\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud:"
+ + ":Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlProto.java
index ee720e5cf621..4974265ca429 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlProto.java
@@ -45,22 +45,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "google.cloud.retail.v2\032\037google/api/field"
+ "_behavior.proto\032\031google/api/resource.pro"
+ "to\032#google/cloud/retail/v2/common.proto\""
- + "\250\003\n\007Control\022,\n\004rule\030\004 \001(\0132\034.google.cloud"
- + ".retail.v2.RuleH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\032\n"
- + "\014display_name\030\002 \001(\tB\004\342A\001\002\022+\n\035associated_"
- + "serving_config_ids\030\005 \003(\tB\004\342A\001\003\022C\n\016soluti"
- + "on_types\030\006 \003(\0162$.google.cloud.retail.v2."
- + "SolutionTypeB\005\342A\002\002\005\022O\n\030search_solution_u"
- + "se_case\030\007 \003(\0162-.google.cloud.retail.v2.S"
- + "earchSolutionUseCase:q\352An\n\035retail.google"
- + "apis.com/Control\022Mprojects/{project}/loc"
- + "ations/{location}/catalogs/{catalog}/con"
- + "trols/{control}B\t\n\007controlB\267\001\n\032com.googl"
- + "e.cloud.retail.v2B\014ControlProtoP\001Z2cloud"
- + ".google.com/go/retail/apiv2/retailpb;ret"
- + "ailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312"
- + "\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud"
- + "::Retail::V2b\006proto3"
+ + "\246\003\n\007Control\022,\n\004rule\030\004 \001(\0132\034.google.cloud"
+ + ".retail.v2.RuleH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014"
+ + "display_name\030\002 \001(\tB\003\340A\002\022*\n\035associated_se"
+ + "rving_config_ids\030\005 \003(\tB\003\340A\003\022D\n\016solution_"
+ + "types\030\006 \003(\0162$.google.cloud.retail.v2.Sol"
+ + "utionTypeB\006\340A\002\340A\005\022O\n\030search_solution_use"
+ + "_case\030\007 \003(\0162-.google.cloud.retail.v2.Sea"
+ + "rchSolutionUseCase:q\352An\n\035retail.googleap"
+ + "is.com/Control\022Mprojects/{project}/locat"
+ + "ions/{location}/catalogs/{catalog}/contr"
+ + "ols/{control}B\t\n\007controlB\267\001\n\032com.google."
+ + "cloud.retail.v2B\014ControlProtoP\001Z2cloud.g"
+ + "oogle.com/go/retail/apiv2/retailpb;retai"
+ + "lpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026"
+ + "Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud::"
+ + "Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceProto.java
index dfdde9c79fa5..51782ae27e36 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceProto.java
@@ -68,54 +68,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "google/api/resource.proto\032$google/cloud/"
+ "retail/v2/control.proto\032\033google/protobuf"
+ "/empty.proto\032 google/protobuf/field_mask"
- + ".proto\"\240\001\n\024CreateControlRequest\0226\n\006paren"
- + "t\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/"
- + "Catalog\0226\n\007control\030\002 \001(\0132\037.google.cloud."
- + "retail.v2.ControlB\004\342A\001\002\022\030\n\ncontrol_id\030\003 "
- + "\001(\tB\004\342A\001\002\"\177\n\024UpdateControlRequest\0226\n\007con"
- + "trol\030\001 \001(\0132\037.google.cloud.retail.v2.Cont"
- + "rolB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google."
- + "protobuf.FieldMask\"L\n\024DeleteControlReque"
- + "st\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.google"
- + "apis.com/Control\"I\n\021GetControlRequest\0224\n"
- + "\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis."
- + "com/Control\"\226\001\n\023ListControlsRequest\0226\n\006p"
- + "arent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis."
- + "com/Catalog\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n"
- + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004"
- + "\342A\001\001\"b\n\024ListControlsResponse\0221\n\010controls"
- + "\030\001 \003(\0132\037.google.cloud.retail.v2.Control\022"
- + "\027\n\017next_page_token\030\002 \001(\t2\344\007\n\016ControlServ"
- + "ice\022\304\001\n\rCreateControl\022,.google.cloud.ret"
- + "ail.v2.CreateControlRequest\032\037.google.clo"
- + "ud.retail.v2.Control\"d\332A\031parent,control,"
- + "control_id\202\323\344\223\002B\"7/v2/{parent=projects/*"
- + "/locations/*/catalogs/*}/controls:\007contr"
- + "ol\022\235\001\n\rDeleteControl\022,.google.cloud.reta"
- + "il.v2.DeleteControlRequest\032\026.google.prot"
- + "obuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v2/{name=pro"
- + "jects/*/locations/*/catalogs/*/controls/"
- + "*}\022\306\001\n\rUpdateControl\022,.google.cloud.reta"
- + "il.v2.UpdateControlRequest\032\037.google.clou"
- + "d.retail.v2.Control\"f\332A\023control,update_m"
- + "ask\202\323\344\223\002J2?/v2/{control.name=projects/*/"
- + "locations/*/catalogs/*/controls/*}:\007cont"
- + "rol\022\240\001\n\nGetControl\022).google.cloud.retail"
- + ".v2.GetControlRequest\032\037.google.cloud.ret"
- + "ail.v2.Control\"F\332A\004name\202\323\344\223\0029\0227/v2/{name"
- + "=projects/*/locations/*/catalogs/*/contr"
- + "ols/*}\022\263\001\n\014ListControls\022+.google.cloud.r"
- + "etail.v2.ListControlsRequest\032,.google.cl"
- + "oud.retail.v2.ListControlsResponse\"H\332A\006p"
- + "arent\202\323\344\223\0029\0227/v2/{parent=projects/*/loca"
- + "tions/*/catalogs/*}/controls\032I\312A\025retail."
- + "googleapis.com\322A.https://www.googleapis."
- + "com/auth/cloud-platformB\276\001\n\032com.google.c"
- + "loud.retail.v2B\023ControlServiceProtoP\001Z2c"
- + "loud.google.com/go/retail/apiv2/retailpb"
- + ";retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail"
- + ".V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::C"
- + "loud::Retail::V2b\006proto3"
+ + ".proto\"\235\001\n\024CreateControlRequest\0225\n\006paren"
+ + "t\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/C"
+ + "atalog\0225\n\007control\030\002 \001(\0132\037.google.cloud.r"
+ + "etail.v2.ControlB\003\340A\002\022\027\n\ncontrol_id\030\003 \001("
+ + "\tB\003\340A\002\"~\n\024UpdateControlRequest\0225\n\007contro"
+ + "l\030\001 \001(\0132\037.google.cloud.retail.v2.Control"
+ + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot"
+ + "obuf.FieldMask\"K\n\024DeleteControlRequest\0223"
+ + "\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis."
+ + "com/Control\"H\n\021GetControlRequest\0223\n\004name"
+ + "\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Co"
+ + "ntrol\"\222\001\n\023ListControlsRequest\0225\n\006parent\030"
+ + "\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Cat"
+ + "alog\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok"
+ + "en\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"b\n\024Li"
+ + "stControlsResponse\0221\n\010controls\030\001 \003(\0132\037.g"
+ + "oogle.cloud.retail.v2.Control\022\027\n\017next_pa"
+ + "ge_token\030\002 \001(\t2\344\007\n\016ControlService\022\304\001\n\rCr"
+ + "eateControl\022,.google.cloud.retail.v2.Cre"
+ + "ateControlRequest\032\037.google.cloud.retail."
+ + "v2.Control\"d\332A\031parent,control,control_id"
+ + "\202\323\344\223\002B\"7/v2/{parent=projects/*/locations"
+ + "/*/catalogs/*}/controls:\007control\022\235\001\n\rDel"
+ + "eteControl\022,.google.cloud.retail.v2.Dele"
+ + "teControlRequest\032\026.google.protobuf.Empty"
+ + "\"F\332A\004name\202\323\344\223\0029*7/v2/{name=projects/*/lo"
+ + "cations/*/catalogs/*/controls/*}\022\306\001\n\rUpd"
+ + "ateControl\022,.google.cloud.retail.v2.Upda"
+ + "teControlRequest\032\037.google.cloud.retail.v"
+ + "2.Control\"f\332A\023control,update_mask\202\323\344\223\002J2"
+ + "?/v2/{control.name=projects/*/locations/"
+ + "*/catalogs/*/controls/*}:\007control\022\240\001\n\nGe"
+ + "tControl\022).google.cloud.retail.v2.GetCon"
+ + "trolRequest\032\037.google.cloud.retail.v2.Con"
+ + "trol\"F\332A\004name\202\323\344\223\0029\0227/v2/{name=projects/"
+ + "*/locations/*/catalogs/*/controls/*}\022\263\001\n"
+ + "\014ListControls\022+.google.cloud.retail.v2.L"
+ + "istControlsRequest\032,.google.cloud.retail"
+ + ".v2.ListControlsResponse\"H\332A\006parent\202\323\344\223\002"
+ + "9\0227/v2/{parent=projects/*/locations/*/ca"
+ + "talogs/*}/controls\032I\312A\025retail.googleapis"
+ + ".com\322A.https://www.googleapis.com/auth/c"
+ + "loud-platformB\276\001\n\032com.google.cloud.retai"
+ + "l.v2B\023ControlServiceProtoP\001Z2cloud.googl"
+ + "e.com/go/retail/apiv2/retailpb;retailpb\242"
+ + "\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026Goog"
+ + "le\\Cloud\\Retail\\V2\352\002\031Google::Cloud::Reta"
+ + "il::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsRequest.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsRequest.java
new file mode 100644
index 000000000000..0859a7c38bf4
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsRequest.java
@@ -0,0 +1,1232 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * Request message for the `ExportAnalyticsMetrics` method.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportAnalyticsMetricsRequest}
+ */
+public final class ExportAnalyticsMetricsRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ExportAnalyticsMetricsRequest)
+ ExportAnalyticsMetricsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExportAnalyticsMetricsRequest.newBuilder() to construct.
+ private ExportAnalyticsMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportAnalyticsMetricsRequest() {
+ catalog_ = "";
+ filter_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportAnalyticsMetricsRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.class,
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int CATALOG_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object catalog_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The catalog.
+ */
+ @java.lang.Override
+ public java.lang.String getCatalog() {
+ java.lang.Object ref = catalog_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ catalog_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for catalog.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCatalogBytes() {
+ java.lang.Object ref = catalog_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ catalog_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2;
+ private com.google.cloud.retail.v2.OutputConfig outputConfig_;
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the outputConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The outputConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig getOutputConfig() {
+ return outputConfig_ == null
+ ? com.google.cloud.retail.v2.OutputConfig.getDefaultInstance()
+ : outputConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfigOrBuilder getOutputConfigOrBuilder() {
+ return outputConfig_ == null
+ ? com.google.cloud.retail.v2.OutputConfig.getDefaultInstance()
+ : outputConfig_;
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * 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;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalog_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalog_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getOutputConfig());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalog_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalog_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.retail.v2.ExportAnalyticsMetricsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest other =
+ (com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest) obj;
+
+ if (!getCatalog().equals(other.getCatalog())) return false;
+ if (hasOutputConfig() != other.hasOutputConfig()) return false;
+ if (hasOutputConfig()) {
+ if (!getOutputConfig().equals(other.getOutputConfig())) 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) + CATALOG_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalog().hashCode();
+ if (hasOutputConfig()) {
+ hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputConfig().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.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Request message for the `ExportAnalyticsMetrics` method.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportAnalyticsMetricsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ExportAnalyticsMetricsRequest)
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.class,
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getOutputConfigFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ catalog_ = "";
+ outputConfig_ = null;
+ if (outputConfigBuilder_ != null) {
+ outputConfigBuilder_.dispose();
+ outputConfigBuilder_ = null;
+ }
+ filter_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest build() {
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest buildPartial() {
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest result =
+ new com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.catalog_ = catalog_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.outputConfig_ =
+ outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.filter_ = filter_;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest) {
+ return mergeFrom((com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest other) {
+ if (other == com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest.getDefaultInstance())
+ return this;
+ if (!other.getCatalog().isEmpty()) {
+ catalog_ = other.catalog_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasOutputConfig()) {
+ mergeOutputConfig(other.getOutputConfig());
+ }
+ if (!other.getFilter().isEmpty()) {
+ filter_ = other.filter_;
+ 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:
+ {
+ catalog_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ filter_ = 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 catalog_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The catalog.
+ */
+ public java.lang.String getCatalog() {
+ java.lang.Object ref = catalog_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ catalog_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for catalog.
+ */
+ public com.google.protobuf.ByteString getCatalogBytes() {
+ java.lang.Object ref = catalog_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ catalog_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The catalog to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCatalog(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ catalog_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCatalog() {
+ catalog_ = getDefaultInstance().getCatalog();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for catalog to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCatalogBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ catalog_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.retail.v2.OutputConfig outputConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig,
+ com.google.cloud.retail.v2.OutputConfig.Builder,
+ com.google.cloud.retail.v2.OutputConfigOrBuilder>
+ outputConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the outputConfig field is set.
+ */
+ public boolean hasOutputConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The outputConfig.
+ */
+ public com.google.cloud.retail.v2.OutputConfig getOutputConfig() {
+ if (outputConfigBuilder_ == null) {
+ return outputConfig_ == null
+ ? com.google.cloud.retail.v2.OutputConfig.getDefaultInstance()
+ : outputConfig_;
+ } else {
+ return outputConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setOutputConfig(com.google.cloud.retail.v2.OutputConfig value) {
+ if (outputConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputConfig_ = value;
+ } else {
+ outputConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setOutputConfig(
+ com.google.cloud.retail.v2.OutputConfig.Builder builderForValue) {
+ if (outputConfigBuilder_ == null) {
+ outputConfig_ = builderForValue.build();
+ } else {
+ outputConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeOutputConfig(com.google.cloud.retail.v2.OutputConfig value) {
+ if (outputConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && outputConfig_ != null
+ && outputConfig_ != com.google.cloud.retail.v2.OutputConfig.getDefaultInstance()) {
+ getOutputConfigBuilder().mergeFrom(value);
+ } else {
+ outputConfig_ = value;
+ }
+ } else {
+ outputConfigBuilder_.mergeFrom(value);
+ }
+ if (outputConfig_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearOutputConfig() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ outputConfig_ = null;
+ if (outputConfigBuilder_ != null) {
+ outputConfigBuilder_.dispose();
+ outputConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.retail.v2.OutputConfig.Builder getOutputConfigBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getOutputConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.retail.v2.OutputConfigOrBuilder getOutputConfigOrBuilder() {
+ if (outputConfigBuilder_ != null) {
+ return outputConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputConfig_ == null
+ ? com.google.cloud.retail.v2.OutputConfig.getDefaultInstance()
+ : outputConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig,
+ com.google.cloud.retail.v2.OutputConfig.Builder,
+ com.google.cloud.retail.v2.OutputConfigOrBuilder>
+ getOutputConfigFieldBuilder() {
+ if (outputConfigBuilder_ == null) {
+ outputConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig,
+ com.google.cloud.retail.v2.OutputConfig.Builder,
+ com.google.cloud.retail.v2.OutputConfigOrBuilder>(
+ getOutputConfig(), getParentForChildren(), isClean());
+ outputConfig_ = null;
+ }
+ return outputConfigBuilder_;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * 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;
+ }
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * string filter = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+ filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * 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;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.ExportAnalyticsMetricsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ExportAnalyticsMetricsRequest)
+ private static final com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest();
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportAnalyticsMetricsRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsRequestOrBuilder.java
new file mode 100644
index 000000000000..3763f3eeaf5d
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsRequestOrBuilder.java
@@ -0,0 +1,151 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface ExportAnalyticsMetricsRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ExportAnalyticsMetricsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The catalog.
+ */
+ java.lang.String getCatalog();
+ /**
+ *
+ *
+ *
+ * Required. Full resource name of the parent catalog.
+ * Expected format: `projects/*/locations/*/catalogs/*`
+ *
+ *
+ * string catalog = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for catalog.
+ */
+ com.google.protobuf.ByteString getCatalogBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the outputConfig field is set.
+ */
+ boolean hasOutputConfig();
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The outputConfig.
+ */
+ com.google.cloud.retail.v2.OutputConfig getOutputConfig();
+ /**
+ *
+ *
+ *
+ * Required. The output location of the data.
+ *
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.retail.v2.OutputConfigOrBuilder getOutputConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ *
+ * A filtering expression to specify restrictions on returned metrics.
+ * The expression is a sequence of terms. Each term applies a restriction to
+ * the returned metrics. Use this expression to restrict results to a
+ * specific time range.
+ *
+ * Currently we expect only one types of fields:
+ *
+ * * `timestamp`: This can be specified twice, once with a
+ * less than operator and once with a greater than operator. The
+ * `timestamp` restriction should result in one, contiguous, valid,
+ * `timestamp` range.
+ *
+ * Some examples of valid filters expressions:
+ *
+ * * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ * timestamp < "2012-04-23T18:30:43.511Z"`
+ * * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsResponse.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsResponse.java
new file mode 100644
index 000000000000..d07249628260
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsResponse.java
@@ -0,0 +1,1482 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * Response of the ExportAnalyticsMetricsRequest. If the long running
+ * operation was successful, then this message is returned by the
+ * google.longrunning.Operations.response field if the operation was successful.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportAnalyticsMetricsResponse}
+ */
+public final class ExportAnalyticsMetricsResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
+ ExportAnalyticsMetricsResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExportAnalyticsMetricsResponse.newBuilder() to construct.
+ private ExportAnalyticsMetricsResponse(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportAnalyticsMetricsResponse() {
+ errorSamples_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportAnalyticsMetricsResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.class,
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ 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 extends com.google.rpc.StatusOrBuilder> 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);
+ }
+
+ public static final int ERRORS_CONFIG_FIELD_NUMBER = 2;
+ private com.google.cloud.retail.v2.ExportErrorsConfig errorsConfig_;
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ *
+ * @return Whether the errorsConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasErrorsConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ *
+ * @return The errorsConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportErrorsConfig getErrorsConfig() {
+ return errorsConfig_ == null
+ ? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
+ : errorsConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
+ return errorsConfig_ == null
+ ? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
+ : errorsConfig_;
+ }
+
+ public static final int OUTPUT_RESULT_FIELD_NUMBER = 3;
+ private com.google.cloud.retail.v2.OutputResult outputResult_;
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ *
+ * @return Whether the outputResult field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputResult() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ *
+ * @return The outputResult.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputResult getOutputResult() {
+ return outputResult_ == null
+ ? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
+ : outputResult_;
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputResultOrBuilder getOutputResultOrBuilder() {
+ return outputResult_ == null
+ ? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
+ : outputResult_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ 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));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getErrorsConfig());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getOutputResult());
+ }
+ 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));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorsConfig());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse other =
+ (com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse) obj;
+
+ if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false;
+ if (hasErrorsConfig() != other.hasErrorsConfig()) return false;
+ if (hasErrorsConfig()) {
+ if (!getErrorsConfig().equals(other.getErrorsConfig())) return false;
+ }
+ if (hasOutputResult() != other.hasOutputResult()) return false;
+ if (hasOutputResult()) {
+ if (!getOutputResult().equals(other.getOutputResult())) return false;
+ }
+ if (!getUnknownFields().equals(other.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();
+ }
+ if (hasErrorsConfig()) {
+ hash = (37 * hash) + ERRORS_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorsConfig().hashCode();
+ }
+ if (hasOutputResult()) {
+ hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputResult().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Response of the ExportAnalyticsMetricsRequest. If the long running
+ * operation was successful, then this message is returned by the
+ * google.longrunning.Operations.response field if the operation was successful.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportAnalyticsMetricsResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.class,
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getErrorSamplesFieldBuilder();
+ getErrorsConfigFieldBuilder();
+ getOutputResultFieldBuilder();
+ }
+ }
+
+ @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);
+ errorsConfig_ = null;
+ if (errorsConfigBuilder_ != null) {
+ errorsConfigBuilder_.dispose();
+ errorsConfigBuilder_ = null;
+ }
+ outputResult_ = null;
+ if (outputResultBuilder_ != null) {
+ outputResultBuilder_.dispose();
+ outputResultBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse build() {
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse buildPartial() {
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse result =
+ new com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse 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.retail.v2.ExportAnalyticsMetricsResponse result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.errorsConfig_ =
+ errorsConfigBuilder_ == null ? errorsConfig_ : errorsConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.outputResult_ =
+ outputResultBuilder_ == null ? outputResult_ : outputResultBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse) {
+ return mergeFrom((com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse other) {
+ if (other == com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.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.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getErrorSamplesFieldBuilder()
+ : null;
+ } else {
+ errorSamplesBuilder_.addAllMessages(other.errorSamples_);
+ }
+ }
+ }
+ if (other.hasErrorsConfig()) {
+ mergeErrorsConfig(other.getErrorsConfig());
+ }
+ if (other.hasOutputResult()) {
+ mergeOutputResult(other.getOutputResult());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ 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
+ case 18:
+ {
+ input.readMessage(getErrorsConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(getOutputResultFieldBuilder().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.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.RepeatedFieldBuilderV3<
+ 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 extends com.google.rpc.Status> 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 getErrorSamplesFieldBuilder().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 extends com.google.rpc.StatusOrBuilder> 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 getErrorSamplesFieldBuilder().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 getErrorSamplesFieldBuilder()
+ .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 getErrorSamplesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getErrorSamplesFieldBuilder() {
+ if (errorSamplesBuilder_ == null) {
+ errorSamplesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(
+ errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ errorSamples_ = null;
+ }
+ return errorSamplesBuilder_;
+ }
+
+ private com.google.cloud.retail.v2.ExportErrorsConfig errorsConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.ExportErrorsConfig,
+ com.google.cloud.retail.v2.ExportErrorsConfig.Builder,
+ com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder>
+ errorsConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ *
+ * @return Whether the errorsConfig field is set.
+ */
+ public boolean hasErrorsConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ *
+ * @return The errorsConfig.
+ */
+ public com.google.cloud.retail.v2.ExportErrorsConfig getErrorsConfig() {
+ if (errorsConfigBuilder_ == null) {
+ return errorsConfig_ == null
+ ? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
+ : errorsConfig_;
+ } else {
+ return errorsConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ public Builder setErrorsConfig(com.google.cloud.retail.v2.ExportErrorsConfig value) {
+ if (errorsConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ errorsConfig_ = value;
+ } else {
+ errorsConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ public Builder setErrorsConfig(
+ com.google.cloud.retail.v2.ExportErrorsConfig.Builder builderForValue) {
+ if (errorsConfigBuilder_ == null) {
+ errorsConfig_ = builderForValue.build();
+ } else {
+ errorsConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ public Builder mergeErrorsConfig(com.google.cloud.retail.v2.ExportErrorsConfig value) {
+ if (errorsConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && errorsConfig_ != null
+ && errorsConfig_
+ != com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()) {
+ getErrorsConfigBuilder().mergeFrom(value);
+ } else {
+ errorsConfig_ = value;
+ }
+ } else {
+ errorsConfigBuilder_.mergeFrom(value);
+ }
+ if (errorsConfig_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ public Builder clearErrorsConfig() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ errorsConfig_ = null;
+ if (errorsConfigBuilder_ != null) {
+ errorsConfigBuilder_.dispose();
+ errorsConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ public com.google.cloud.retail.v2.ExportErrorsConfig.Builder getErrorsConfigBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getErrorsConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ public com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
+ if (errorsConfigBuilder_ != null) {
+ return errorsConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return errorsConfig_ == null
+ ? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
+ : errorsConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.ExportErrorsConfig,
+ com.google.cloud.retail.v2.ExportErrorsConfig.Builder,
+ com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder>
+ getErrorsConfigFieldBuilder() {
+ if (errorsConfigBuilder_ == null) {
+ errorsConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.ExportErrorsConfig,
+ com.google.cloud.retail.v2.ExportErrorsConfig.Builder,
+ com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder>(
+ getErrorsConfig(), getParentForChildren(), isClean());
+ errorsConfig_ = null;
+ }
+ return errorsConfigBuilder_;
+ }
+
+ private com.google.cloud.retail.v2.OutputResult outputResult_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputResult,
+ com.google.cloud.retail.v2.OutputResult.Builder,
+ com.google.cloud.retail.v2.OutputResultOrBuilder>
+ outputResultBuilder_;
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ *
+ * @return Whether the outputResult field is set.
+ */
+ public boolean hasOutputResult() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ *
+ * @return The outputResult.
+ */
+ public com.google.cloud.retail.v2.OutputResult getOutputResult() {
+ if (outputResultBuilder_ == null) {
+ return outputResult_ == null
+ ? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
+ : outputResult_;
+ } else {
+ return outputResultBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ public Builder setOutputResult(com.google.cloud.retail.v2.OutputResult value) {
+ if (outputResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputResult_ = value;
+ } else {
+ outputResultBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ public Builder setOutputResult(
+ com.google.cloud.retail.v2.OutputResult.Builder builderForValue) {
+ if (outputResultBuilder_ == null) {
+ outputResult_ = builderForValue.build();
+ } else {
+ outputResultBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ public Builder mergeOutputResult(com.google.cloud.retail.v2.OutputResult value) {
+ if (outputResultBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && outputResult_ != null
+ && outputResult_ != com.google.cloud.retail.v2.OutputResult.getDefaultInstance()) {
+ getOutputResultBuilder().mergeFrom(value);
+ } else {
+ outputResult_ = value;
+ }
+ } else {
+ outputResultBuilder_.mergeFrom(value);
+ }
+ if (outputResult_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ public Builder clearOutputResult() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ outputResult_ = null;
+ if (outputResultBuilder_ != null) {
+ outputResultBuilder_.dispose();
+ outputResultBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ public com.google.cloud.retail.v2.OutputResult.Builder getOutputResultBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getOutputResultFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ public com.google.cloud.retail.v2.OutputResultOrBuilder getOutputResultOrBuilder() {
+ if (outputResultBuilder_ != null) {
+ return outputResultBuilder_.getMessageOrBuilder();
+ } else {
+ return outputResult_ == null
+ ? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
+ : outputResult_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputResult,
+ com.google.cloud.retail.v2.OutputResult.Builder,
+ com.google.cloud.retail.v2.OutputResultOrBuilder>
+ getOutputResultFieldBuilder() {
+ if (outputResultBuilder_ == null) {
+ outputResultBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputResult,
+ com.google.cloud.retail.v2.OutputResult.Builder,
+ com.google.cloud.retail.v2.OutputResultOrBuilder>(
+ getOutputResult(), getParentForChildren(), isClean());
+ outputResult_ = null;
+ }
+ return outputResultBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
+ private static final com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse();
+ }
+
+ public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportAnalyticsMetricsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsResponseOrBuilder.java
new file mode 100644
index 000000000000..d9a19f80822e
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportAnalyticsMetricsResponseOrBuilder.java
@@ -0,0 +1,147 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface ExportAnalyticsMetricsResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
+ 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 extends com.google.rpc.StatusOrBuilder> getErrorSamplesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * A sample of errors encountered while processing the request.
+ *
+ *
+ * repeated .google.rpc.Status error_samples = 1;
+ */
+ com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ *
+ * @return Whether the errorsConfig field is set.
+ */
+ boolean hasErrorsConfig();
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ *
+ * @return The errorsConfig.
+ */
+ com.google.cloud.retail.v2.ExportErrorsConfig getErrorsConfig();
+ /**
+ *
+ *
+ *
+ * This field is never set.
+ *
+ *
+ * .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
+ */
+ com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder getErrorsConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ *
+ * @return Whether the outputResult field is set.
+ */
+ boolean hasOutputResult();
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ *
+ * @return The outputResult.
+ */
+ com.google.cloud.retail.v2.OutputResult getOutputResult();
+ /**
+ *
+ *
+ *
+ * Output result indicating where the data were exported to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputResult output_result = 3;
+ */
+ com.google.cloud.retail.v2.OutputResultOrBuilder getOutputResultOrBuilder();
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportConfigProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportConfigProto.java
new file mode 100644
index 000000000000..f6ea597b26fa
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportConfigProto.java
@@ -0,0 +1,220 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public final class ExportConfigProto {
+ private ExportConfigProto() {}
+
+ 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_retail_v2_OutputConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_OutputConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_ExportErrorsConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_ExportErrorsConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_ExportMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_ExportMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_OutputResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_OutputResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_BigQueryOutputResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_BigQueryOutputResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_retail_v2_GcsOutputResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_retail_v2_GcsOutputResult_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/retail/v2/export_config.p"
+ + "roto\022\026google.cloud.retail.v2\032\037google/api"
+ + "/field_behavior.proto\032\031google/api/resour"
+ + "ce.proto\032\037google/protobuf/timestamp.prot"
+ + "o\032\027google/rpc/status.proto\"\340\002\n\014OutputCon"
+ + "fig\022N\n\017gcs_destination\030\001 \001(\01323.google.cl"
+ + "oud.retail.v2.OutputConfig.GcsDestinatio"
+ + "nH\000\022X\n\024bigquery_destination\030\002 \001(\01328.goog"
+ + "le.cloud.retail.v2.OutputConfig.BigQuery"
+ + "DestinationH\000\0320\n\016GcsDestination\022\036\n\021outpu"
+ + "t_uri_prefix\030\001 \001(\tB\003\340A\002\032e\n\023BigQueryDesti"
+ + "nation\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\034\n\017table"
+ + "_id_prefix\030\002 \001(\tB\003\340A\002\022\027\n\ntable_type\030\003 \001("
+ + "\tB\003\340A\002B\r\n\013destination\"9\n\022ExportErrorsCon"
+ + "fig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destination"
+ + "\"\207\001\n\035ExportAnalyticsMetricsRequest\022\024\n\007ca"
+ + "talog\030\001 \001(\tB\003\340A\002\022@\n\routput_config\030\002 \001(\0132"
+ + "$.google.cloud.retail.v2.OutputConfigB\003\340"
+ + "A\002\022\016\n\006filter\030\003 \001(\t\"r\n\016ExportMetadata\022/\n\013"
+ + "create_time\030\001 \001(\0132\032.google.protobuf.Time"
+ + "stamp\022/\n\013update_time\030\002 \001(\0132\032.google.prot"
+ + "obuf.Timestamp\"\313\001\n\036ExportAnalyticsMetric"
+ + "sResponse\022)\n\rerror_samples\030\001 \003(\0132\022.googl"
+ + "e.rpc.Status\022A\n\rerrors_config\030\002 \001(\0132*.go"
+ + "ogle.cloud.retail.v2.ExportErrorsConfig\022"
+ + ";\n\routput_result\030\003 \001(\0132$.google.cloud.re"
+ + "tail.v2.OutputResult\"\222\001\n\014OutputResult\022E\n"
+ + "\017bigquery_result\030\001 \003(\0132,.google.cloud.re"
+ + "tail.v2.BigQueryOutputResult\022;\n\ngcs_resu"
+ + "lt\030\002 \003(\0132\'.google.cloud.retail.v2.GcsOut"
+ + "putResult\"<\n\024BigQueryOutputResult\022\022\n\ndat"
+ + "aset_id\030\001 \001(\t\022\020\n\010table_id\030\002 \001(\t\"%\n\017GcsOu"
+ + "tputResult\022\022\n\noutput_uri\030\001 \001(\tB\274\001\n\032com.g"
+ + "oogle.cloud.retail.v2B\021ExportConfigProto"
+ + "P\001Z2cloud.google.com/go/retail/apiv2/ret"
+ + "ailpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.R"
+ + "etail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Goog"
+ + "le::Cloud::Retail::V2b\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(),
+ com.google.rpc.StatusProto.getDescriptor(),
+ });
+ internal_static_google_cloud_retail_v2_OutputConfig_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_retail_v2_OutputConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_OutputConfig_descriptor,
+ new java.lang.String[] {
+ "GcsDestination", "BigqueryDestination", "Destination",
+ });
+ internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_descriptor =
+ internal_static_google_cloud_retail_v2_OutputConfig_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_descriptor,
+ new java.lang.String[] {
+ "OutputUriPrefix",
+ });
+ internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_descriptor =
+ internal_static_google_cloud_retail_v2_OutputConfig_descriptor.getNestedTypes().get(1);
+ internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_descriptor,
+ new java.lang.String[] {
+ "DatasetId", "TableIdPrefix", "TableType",
+ });
+ internal_static_google_cloud_retail_v2_ExportErrorsConfig_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_retail_v2_ExportErrorsConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_ExportErrorsConfig_descriptor,
+ new java.lang.String[] {
+ "GcsPrefix", "Destination",
+ });
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsRequest_descriptor,
+ new java.lang.String[] {
+ "Catalog", "OutputConfig", "Filter",
+ });
+ internal_static_google_cloud_retail_v2_ExportMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_retail_v2_ExportMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_ExportMetadata_descriptor,
+ new java.lang.String[] {
+ "CreateTime", "UpdateTime",
+ });
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor,
+ new java.lang.String[] {
+ "ErrorSamples", "ErrorsConfig", "OutputResult",
+ });
+ internal_static_google_cloud_retail_v2_OutputResult_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_retail_v2_OutputResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_OutputResult_descriptor,
+ new java.lang.String[] {
+ "BigqueryResult", "GcsResult",
+ });
+ internal_static_google_cloud_retail_v2_BigQueryOutputResult_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_retail_v2_BigQueryOutputResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_BigQueryOutputResult_descriptor,
+ new java.lang.String[] {
+ "DatasetId", "TableId",
+ });
+ internal_static_google_cloud_retail_v2_GcsOutputResult_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_retail_v2_GcsOutputResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_retail_v2_GcsOutputResult_descriptor,
+ new java.lang.String[] {
+ "OutputUri",
+ });
+ 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);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportErrorsConfig.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportErrorsConfig.java
new file mode 100644
index 000000000000..02a595e9069f
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportErrorsConfig.java
@@ -0,0 +1,782 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * Configuration of destination for Export related errors.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportErrorsConfig}
+ */
+public final class ExportErrorsConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ExportErrorsConfig)
+ ExportErrorsConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExportErrorsConfig.newBuilder() to construct.
+ private ExportErrorsConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportErrorsConfig() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportErrorsConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportErrorsConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportErrorsConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportErrorsConfig.class,
+ com.google.cloud.retail.v2.ExportErrorsConfig.Builder.class);
+ }
+
+ private int destinationCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object destination_;
+
+ public enum DestinationCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_PREFIX(1),
+ DESTINATION_NOT_SET(0);
+ private final int value;
+
+ private DestinationCase(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 DestinationCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DestinationCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return GCS_PREFIX;
+ case 0:
+ return DESTINATION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public static final int GCS_PREFIX_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return Whether the gcsPrefix field is set.
+ */
+ public boolean hasGcsPrefix() {
+ return destinationCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return The gcsPrefix.
+ */
+ public java.lang.String getGcsPrefix() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 1) {
+ ref = destination_;
+ }
+ if (ref instanceof java.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 (destinationCase_ == 1) {
+ destination_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return The bytes for gcsPrefix.
+ */
+ public com.google.protobuf.ByteString getGcsPrefixBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 1) {
+ ref = destination_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 1) {
+ destination_ = 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 (destinationCase_ == 1) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (destinationCase_ == 1) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destination_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.ExportErrorsConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.ExportErrorsConfig other =
+ (com.google.cloud.retail.v2.ExportErrorsConfig) obj;
+
+ if (!getDestinationCase().equals(other.getDestinationCase())) return false;
+ switch (destinationCase_) {
+ case 1:
+ if (!getGcsPrefix().equals(other.getGcsPrefix())) 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 (destinationCase_) {
+ case 1:
+ hash = (37 * hash) + GCS_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsPrefix().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.retail.v2.ExportErrorsConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration of destination for Export related errors.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportErrorsConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ExportErrorsConfig)
+ com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportErrorsConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportErrorsConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportErrorsConfig.class,
+ com.google.cloud.retail.v2.ExportErrorsConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.ExportErrorsConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ destinationCase_ = 0;
+ destination_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportErrorsConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportErrorsConfig getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportErrorsConfig build() {
+ com.google.cloud.retail.v2.ExportErrorsConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportErrorsConfig buildPartial() {
+ com.google.cloud.retail.v2.ExportErrorsConfig result =
+ new com.google.cloud.retail.v2.ExportErrorsConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.ExportErrorsConfig result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.retail.v2.ExportErrorsConfig result) {
+ result.destinationCase_ = destinationCase_;
+ result.destination_ = this.destination_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.ExportErrorsConfig) {
+ return mergeFrom((com.google.cloud.retail.v2.ExportErrorsConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.ExportErrorsConfig other) {
+ if (other == com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()) return this;
+ switch (other.getDestinationCase()) {
+ case GCS_PREFIX:
+ {
+ destinationCase_ = 1;
+ destination_ = other.destination_;
+ onChanged();
+ break;
+ }
+ case DESTINATION_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();
+ destinationCase_ = 1;
+ destination_ = 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 destinationCase_ = 0;
+ private java.lang.Object destination_;
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public Builder clearDestination() {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return Whether the gcsPrefix field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsPrefix() {
+ return destinationCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return The gcsPrefix.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsPrefix() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 1) {
+ ref = destination_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (destinationCase_ == 1) {
+ destination_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return The bytes for gcsPrefix.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsPrefixBytes() {
+ java.lang.Object ref = "";
+ if (destinationCase_ == 1) {
+ ref = destination_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (destinationCase_ == 1) {
+ destination_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @param value The gcsPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destinationCase_ = 1;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsPrefix() {
+ if (destinationCase_ == 1) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @param value The bytes for gcsPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ destinationCase_ = 1;
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.ExportErrorsConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ExportErrorsConfig)
+ private static final com.google.cloud.retail.v2.ExportErrorsConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ExportErrorsConfig();
+ }
+
+ public static com.google.cloud.retail.v2.ExportErrorsConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportErrorsConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportErrorsConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportErrorsConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportErrorsConfigOrBuilder.java
new file mode 100644
index 000000000000..04310b1bd8a8
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportErrorsConfigOrBuilder.java
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface ExportErrorsConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ExportErrorsConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return Whether the gcsPrefix field is set.
+ */
+ boolean hasGcsPrefix();
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return The gcsPrefix.
+ */
+ java.lang.String getGcsPrefix();
+ /**
+ *
+ *
+ *
+ * Google Cloud Storage path for import errors. This must be an empty,
+ * existing Cloud Storage bucket. Export errors will be written to a file in
+ * this bucket, one per line, as a JSON-encoded
+ * `google.rpc.Status` message.
+ *
+ *
+ * string gcs_prefix = 1;
+ *
+ * @return The bytes for gcsPrefix.
+ */
+ com.google.protobuf.ByteString getGcsPrefixBytes();
+
+ com.google.cloud.retail.v2.ExportErrorsConfig.DestinationCase getDestinationCase();
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportMetadata.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportMetadata.java
new file mode 100644
index 000000000000..d46354530a21
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportMetadata.java
@@ -0,0 +1,994 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * Metadata related to the progress of the Export operation. This is
+ * returned by the google.longrunning.Operation.metadata field.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportMetadata}
+ */
+public final class ExportMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ExportMetadata)
+ ExportMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExportMetadata.newBuilder() to construct.
+ private ExportMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExportMetadata() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExportMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportMetadata.class,
+ com.google.cloud.retail.v2.ExportMetadata.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.retail.v2.ExportMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.ExportMetadata other =
+ (com.google.cloud.retail.v2.ExportMetadata) 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.retail.v2.ExportMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.retail.v2.ExportMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Metadata related to the progress of the Export operation. This is
+ * returned by the google.longrunning.Operation.metadata field.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.ExportMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ExportMetadata)
+ com.google.cloud.retail.v2.ExportMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.ExportMetadata.class,
+ com.google.cloud.retail.v2.ExportMetadata.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.ExportMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getCreateTimeFieldBuilder();
+ getUpdateTimeFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ 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.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_ExportMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportMetadata getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.ExportMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportMetadata build() {
+ com.google.cloud.retail.v2.ExportMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportMetadata buildPartial() {
+ com.google.cloud.retail.v2.ExportMetadata result =
+ new com.google.cloud.retail.v2.ExportMetadata(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.ExportMetadata 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 clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.ExportMetadata) {
+ return mergeFrom((com.google.cloud.retail.v2.ExportMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.ExportMetadata other) {
+ if (other == com.google.cloud.retail.v2.ExportMetadata.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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3<
+ 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 getCreateTimeFieldBuilder().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.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.ExportMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ExportMetadata)
+ private static final com.google.cloud.retail.v2.ExportMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ExportMetadata();
+ }
+
+ public static com.google.cloud.retail.v2.ExportMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExportMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.ExportMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportMetadataOrBuilder.java
new file mode 100644
index 000000000000..a84f641f2d6e
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExportMetadataOrBuilder.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface ExportMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ExportMetadata)
+ 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-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsOutputResult.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsOutputResult.java
new file mode 100644
index 000000000000..b91c71e0ab0e
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsOutputResult.java
@@ -0,0 +1,624 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * A Gcs output result.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.GcsOutputResult}
+ */
+public final class GcsOutputResult extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.GcsOutputResult)
+ GcsOutputResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsOutputResult.newBuilder() to construct.
+ private GcsOutputResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsOutputResult() {
+ outputUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsOutputResult();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_GcsOutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_GcsOutputResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.GcsOutputResult.class,
+ com.google.cloud.retail.v2.GcsOutputResult.Builder.class);
+ }
+
+ public static final int OUTPUT_URI_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object outputUri_ = "";
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return The outputUri.
+ */
+ @java.lang.Override
+ public java.lang.String getOutputUri() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return The bytes for outputUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOutputUriBytes() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.GcsOutputResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.GcsOutputResult other =
+ (com.google.cloud.retail.v2.GcsOutputResult) obj;
+
+ if (!getOutputUri().equals(other.getOutputUri())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.retail.v2.GcsOutputResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A Gcs output result.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.GcsOutputResult}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.GcsOutputResult)
+ com.google.cloud.retail.v2.GcsOutputResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_GcsOutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_GcsOutputResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.GcsOutputResult.class,
+ com.google.cloud.retail.v2.GcsOutputResult.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.GcsOutputResult.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ outputUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_GcsOutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.GcsOutputResult getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.GcsOutputResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.GcsOutputResult build() {
+ com.google.cloud.retail.v2.GcsOutputResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.GcsOutputResult buildPartial() {
+ com.google.cloud.retail.v2.GcsOutputResult result =
+ new com.google.cloud.retail.v2.GcsOutputResult(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.GcsOutputResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.outputUri_ = outputUri_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.GcsOutputResult) {
+ return mergeFrom((com.google.cloud.retail.v2.GcsOutputResult) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.GcsOutputResult other) {
+ if (other == com.google.cloud.retail.v2.GcsOutputResult.getDefaultInstance()) return this;
+ if (!other.getOutputUri().isEmpty()) {
+ outputUri_ = other.outputUri_;
+ 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:
+ {
+ outputUri_ = 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 outputUri_ = "";
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return The outputUri.
+ */
+ public java.lang.String getOutputUri() {
+ java.lang.Object ref = outputUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return The bytes for outputUri.
+ */
+ public com.google.protobuf.ByteString getOutputUriBytes() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @param value The outputUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputUri() {
+ outputUri_ = getDefaultInstance().getOutputUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @param value The bytes for outputUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.GcsOutputResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.GcsOutputResult)
+ private static final com.google.cloud.retail.v2.GcsOutputResult DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.GcsOutputResult();
+ }
+
+ public static com.google.cloud.retail.v2.GcsOutputResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsOutputResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.GcsOutputResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsOutputResultOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsOutputResultOrBuilder.java
new file mode 100644
index 000000000000..64817f313733
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GcsOutputResultOrBuilder.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface GcsOutputResultOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.GcsOutputResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return The outputUri.
+ */
+ java.lang.String getOutputUri();
+ /**
+ *
+ *
+ *
+ * The uri of Gcs output
+ *
+ *
+ * string output_uri = 1;
+ *
+ * @return The bytes for outputUri.
+ */
+ com.google.protobuf.ByteString getOutputUriBytes();
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportConfigProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportConfigProto.java
index 4ceaf93178e5..18bad7665300 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportConfigProto.java
@@ -109,80 +109,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "t.proto\032 google/protobuf/field_mask.prot"
+ "o\032\037google/protobuf/timestamp.proto\032\027goog"
+ "le/rpc/status.proto\032\026google/type/date.pr"
- + "oto\":\n\tGcsSource\022\030\n\ninput_uris\030\001 \003(\tB\004\342A"
- + "\001\002\022\023\n\013data_schema\030\002 \001(\t\"\276\001\n\016BigQuerySour"
- + "ce\022+\n\016partition_date\030\006 \001(\0132\021.google.type"
- + ".DateH\000\022\022\n\nproject_id\030\005 \001(\t\022\030\n\ndataset_i"
- + "d\030\001 \001(\tB\004\342A\001\002\022\026\n\010table_id\030\002 \001(\tB\004\342A\001\002\022\027\n"
- + "\017gcs_staging_dir\030\003 \001(\t\022\023\n\013data_schema\030\004 "
- + "\001(\tB\013\n\tpartition\"N\n\023ProductInlineSource\022"
- + "7\n\010products\030\001 \003(\0132\037.google.cloud.retail."
- + "v2.ProductB\004\342A\001\002\"U\n\025UserEventInlineSourc"
- + "e\022<\n\013user_events\030\001 \003(\0132!.google.cloud.re"
- + "tail.v2.UserEventB\004\342A\001\002\"9\n\022ImportErrorsC"
- + "onfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destinati"
- + "on\"\372\003\n\025ImportProductsRequest\0225\n\006parent\030\001"
- + " \001(\tB%\342A\001\002\372A\036\n\034retail.googleapis.com/Bra"
- + "nch\022\026\n\nrequest_id\030\006 \001(\tB\002\030\001\022F\n\014input_con"
- + "fig\030\002 \001(\0132*.google.cloud.retail.v2.Produ"
- + "ctInputConfigB\004\342A\001\002\022A\n\rerrors_config\030\003 \001"
- + "(\0132*.google.cloud.retail.v2.ImportErrors"
- + "Config\022/\n\013update_mask\030\004 \001(\0132\032.google.pro"
- + "tobuf.FieldMask\022]\n\023reconciliation_mode\030\005"
- + " \001(\0162@.google.cloud.retail.v2.ImportProd"
- + "uctsRequest.ReconciliationMode\022!\n\031notifi"
- + "cation_pubsub_topic\030\007 \001(\t\"T\n\022Reconciliat"
- + "ionMode\022#\n\037RECONCILIATION_MODE_UNSPECIFI"
- + "ED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002\"\336\001\n\027Impo"
- + "rtUserEventsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001"
- + "\002\372A\037\n\035retail.googleapis.com/Catalog\022H\n\014i"
- + "nput_config\030\002 \001(\0132,.google.cloud.retail."
- + "v2.UserEventInputConfigB\004\342A\001\002\022A\n\rerrors_"
- + "config\030\003 \001(\0132*.google.cloud.retail.v2.Im"
- + "portErrorsConfig\"\307\001\n\033ImportCompletionDat"
- + "aRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retai"
- + "l.googleapis.com/Catalog\022M\n\014input_config"
- + "\030\002 \001(\01321.google.cloud.retail.v2.Completi"
- + "onDataInputConfigB\004\342A\001\002\022!\n\031notification_"
- + "pubsub_topic\030\003 \001(\t\"\351\001\n\022ProductInputConfi"
- + "g\022L\n\025product_inline_source\030\001 \001(\0132+.googl"
- + "e.cloud.retail.v2.ProductInlineSourceH\000\022"
- + "7\n\ngcs_source\030\002 \001(\0132!.google.cloud.retai"
- + "l.v2.GcsSourceH\000\022B\n\020big_query_source\030\003 \001"
- + "(\0132&.google.cloud.retail.v2.BigQuerySour"
- + "ceH\000B\010\n\006source\"\202\002\n\024UserEventInputConfig\022"
- + "W\n\030user_event_inline_source\030\001 \001(\0132-.goog"
- + "le.cloud.retail.v2.UserEventInlineSource"
- + "B\004\342A\001\002H\000\022=\n\ngcs_source\030\002 \001(\0132!.google.cl"
- + "oud.retail.v2.GcsSourceB\004\342A\001\002H\000\022H\n\020big_q"
- + "uery_source\030\003 \001(\0132&.google.cloud.retail."
- + "v2.BigQuerySourceB\004\342A\001\002H\000B\010\n\006source\"o\n\031C"
- + "ompletionDataInputConfig\022H\n\020big_query_so"
- + "urce\030\001 \001(\0132&.google.cloud.retail.v2.BigQ"
- + "uerySourceB\004\342A\001\002H\000B\010\n\006source\"\333\001\n\016ImportM"
- + "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\022\026\n\nreque"
- + "st_id\030\005 \001(\tB\002\030\001\022!\n\031notification_pubsub_t"
- + "opic\030\006 \001(\t\"\206\001\n\026ImportProductsResponse\022)\n"
- + "\rerror_samples\030\001 \003(\0132\022.google.rpc.Status"
- + "\022A\n\rerrors_config\030\002 \001(\0132*.google.cloud.r"
- + "etail.v2.ImportErrorsConfig\"\320\001\n\030ImportUs"
- + "erEventsResponse\022)\n\rerror_samples\030\001 \003(\0132"
- + "\022.google.rpc.Status\022A\n\rerrors_config\030\002 \001"
- + "(\0132*.google.cloud.retail.v2.ImportErrors"
- + "Config\022F\n\016import_summary\030\003 \001(\0132..google."
- + "cloud.retail.v2.UserEventImportSummary\"T"
- + "\n\026UserEventImportSummary\022\033\n\023joined_event"
- + "s_count\030\001 \001(\003\022\035\n\025unjoined_events_count\030\002"
- + " \001(\003\"I\n\034ImportCompletionDataResponse\022)\n\r"
- + "error_samples\030\001 \003(\0132\022.google.rpc.StatusB"
- + "\274\001\n\032com.google.cloud.retail.v2B\021ImportCo"
- + "nfigProtoP\001Z2cloud.google.com/go/retail/"
- + "apiv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Googl"
- + "e.Cloud.Retail.V2\312\002\026Google\\Cloud\\Retail\\"
- + "V2\352\002\031Google::Cloud::Retail::V2b\006proto3"
+ + "oto\"9\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340A"
+ + "\002\022\023\n\013data_schema\030\002 \001(\t\"\274\001\n\016BigQuerySourc"
+ + "e\022+\n\016partition_date\030\006 \001(\0132\021.google.type."
+ + "DateH\000\022\022\n\nproject_id\030\005 \001(\t\022\027\n\ndataset_id"
+ + "\030\001 \001(\tB\003\340A\002\022\025\n\010table_id\030\002 \001(\tB\003\340A\002\022\027\n\017gc"
+ + "s_staging_dir\030\003 \001(\t\022\023\n\013data_schema\030\004 \001(\t"
+ + "B\013\n\tpartition\"M\n\023ProductInlineSource\0226\n\010"
+ + "products\030\001 \003(\0132\037.google.cloud.retail.v2."
+ + "ProductB\003\340A\002\"T\n\025UserEventInlineSource\022;\n"
+ + "\013user_events\030\001 \003(\0132!.google.cloud.retail"
+ + ".v2.UserEventB\003\340A\002\"9\n\022ImportErrorsConfig"
+ + "\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\370\003"
+ + "\n\025ImportProductsRequest\0224\n\006parent\030\001 \001(\tB"
+ + "$\340A\002\372A\036\n\034retail.googleapis.com/Branch\022\026\n"
+ + "\nrequest_id\030\006 \001(\tB\002\030\001\022E\n\014input_config\030\002 "
+ + "\001(\0132*.google.cloud.retail.v2.ProductInpu"
+ + "tConfigB\003\340A\002\022A\n\rerrors_config\030\003 \001(\0132*.go"
+ + "ogle.cloud.retail.v2.ImportErrorsConfig\022"
+ + "/\n\013update_mask\030\004 \001(\0132\032.google.protobuf.F"
+ + "ieldMask\022]\n\023reconciliation_mode\030\005 \001(\0162@."
+ + "google.cloud.retail.v2.ImportProductsReq"
+ + "uest.ReconciliationMode\022!\n\031notification_"
+ + "pubsub_topic\030\007 \001(\t\"T\n\022ReconciliationMode"
+ + "\022#\n\037RECONCILIATION_MODE_UNSPECIFIED\020\000\022\017\n"
+ + "\013INCREMENTAL\020\001\022\010\n\004FULL\020\002\"\334\001\n\027ImportUserE"
+ + "ventsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035re"
+ + "tail.googleapis.com/Catalog\022G\n\014input_con"
+ + "fig\030\002 \001(\0132,.google.cloud.retail.v2.UserE"
+ + "ventInputConfigB\003\340A\002\022A\n\rerrors_config\030\003 "
+ + "\001(\0132*.google.cloud.retail.v2.ImportError"
+ + "sConfig\"\305\001\n\033ImportCompletionDataRequest\022"
+ + "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap"
+ + "is.com/Catalog\022L\n\014input_config\030\002 \001(\01321.g"
+ + "oogle.cloud.retail.v2.CompletionDataInpu"
+ + "tConfigB\003\340A\002\022!\n\031notification_pubsub_topi"
+ + "c\030\003 \001(\t\"\351\001\n\022ProductInputConfig\022L\n\025produc"
+ + "t_inline_source\030\001 \001(\0132+.google.cloud.ret"
+ + "ail.v2.ProductInlineSourceH\000\0227\n\ngcs_sour"
+ + "ce\030\002 \001(\0132!.google.cloud.retail.v2.GcsSou"
+ + "rceH\000\022B\n\020big_query_source\030\003 \001(\0132&.google"
+ + ".cloud.retail.v2.BigQuerySourceH\000B\010\n\006sou"
+ + "rce\"\377\001\n\024UserEventInputConfig\022V\n\030user_eve"
+ + "nt_inline_source\030\001 \001(\0132-.google.cloud.re"
+ + "tail.v2.UserEventInlineSourceB\003\340A\002H\000\022<\n\n"
+ + "gcs_source\030\002 \001(\0132!.google.cloud.retail.v"
+ + "2.GcsSourceB\003\340A\002H\000\022G\n\020big_query_source\030\003"
+ + " \001(\0132&.google.cloud.retail.v2.BigQuerySo"
+ + "urceB\003\340A\002H\000B\010\n\006source\"n\n\031CompletionDataI"
+ + "nputConfig\022G\n\020big_query_source\030\001 \001(\0132&.g"
+ + "oogle.cloud.retail.v2.BigQuerySourceB\003\340A"
+ + "\002H\000B\010\n\006source\"\333\001\n\016ImportMetadata\022/\n\013crea"
+ + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam"
+ + "p\022/\n\013update_time\030\002 \001(\0132\032.google.protobuf"
+ + ".Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfai"
+ + "lure_count\030\004 \001(\003\022\026\n\nrequest_id\030\005 \001(\tB\002\030\001"
+ + "\022!\n\031notification_pubsub_topic\030\006 \001(\t\"\206\001\n\026"
+ + "ImportProductsResponse\022)\n\rerror_samples\030"
+ + "\001 \003(\0132\022.google.rpc.Status\022A\n\rerrors_conf"
+ + "ig\030\002 \001(\0132*.google.cloud.retail.v2.Import"
+ + "ErrorsConfig\"\320\001\n\030ImportUserEventsRespons"
+ + "e\022)\n\rerror_samples\030\001 \003(\0132\022.google.rpc.St"
+ + "atus\022A\n\rerrors_config\030\002 \001(\0132*.google.clo"
+ + "ud.retail.v2.ImportErrorsConfig\022F\n\016impor"
+ + "t_summary\030\003 \001(\0132..google.cloud.retail.v2"
+ + ".UserEventImportSummary\"T\n\026UserEventImpo"
+ + "rtSummary\022\033\n\023joined_events_count\030\001 \001(\003\022\035"
+ + "\n\025unjoined_events_count\030\002 \001(\003\"I\n\034ImportC"
+ + "ompletionDataResponse\022)\n\rerror_samples\030\001"
+ + " \003(\0132\022.google.rpc.StatusB\274\001\n\032com.google."
+ + "cloud.retail.v2B\021ImportConfigProtoP\001Z2cl"
+ + "oud.google.com/go/retail/apiv2/retailpb;"
+ + "retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail."
+ + "V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cl"
+ + "oud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java
index 1b9902b7593f..14a2b67fad3d 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java
@@ -49,45 +49,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ogle.cloud.retail.v2\032\037google/api/field_b"
+ "ehavior.proto\032\031google/api/resource.proto"
+ "\032#google/cloud/retail/v2/common.proto\032\037g"
- + "oogle/protobuf/timestamp.proto\"\261\n\n\005Model"
- + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\032\n\014display_name\030\002 \001"
- + "(\tB\004\342A\001\002\022I\n\016training_state\030\003 \001(\0162+.googl"
- + "e.cloud.retail.v2.Model.TrainingStateB\004\342"
- + "A\001\001\022G\n\rserving_state\030\004 \001(\0162*.google.clou"
- + "d.retail.v2.Model.ServingStateB\004\342A\001\003\0225\n\013"
- + "create_time\030\005 \001(\0132\032.google.protobuf.Time"
- + "stampB\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.googl"
- + "e.protobuf.TimestampB\004\342A\001\003\022\022\n\004type\030\007 \001(\t"
- + "B\004\342A\001\002\022$\n\026optimization_objective\030\010 \001(\tB\004"
- + "\342A\001\001\022V\n\025periodic_tuning_state\030\013 \001(\01621.go"
- + "ogle.cloud.retail.v2.Model.PeriodicTunin"
- + "gStateB\004\342A\001\001\0228\n\016last_tune_time\030\014 \001(\0132\032.g"
- + "oogle.protobuf.TimestampB\004\342A\001\003\022\036\n\020tuning"
- + "_operation\030\017 \001(\tB\004\342A\001\003\022A\n\ndata_state\030\020 \001"
- + "(\0162\'.google.cloud.retail.v2.Model.DataSt"
- + "ateB\004\342A\001\003\022V\n\020filtering_option\030\022 \001(\01626.go"
- + "ogle.cloud.retail.v2.RecommendationsFilt"
- + "eringOptionB\004\342A\001\001\022S\n\024serving_config_list"
- + "s\030\023 \003(\0132/.google.cloud.retail.v2.Model.S"
- + "ervingConfigListB\004\342A\001\003\0325\n\021ServingConfigL"
- + "ist\022 \n\022serving_config_ids\030\001 \003(\tB\004\342A\001\001\"R\n"
- + "\014ServingState\022\035\n\031SERVING_STATE_UNSPECIFI"
- + "ED\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020"
- + "\003\"I\n\rTrainingState\022\036\n\032TRAINING_STATE_UNS"
- + "PECIFIED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n"
- + "\023PeriodicTuningState\022%\n!PERIODIC_TUNING_"
- + "STATE_UNSPECIFIED\020\000\022\034\n\030PERIODIC_TUNING_D"
- + "ISABLED\020\001\022\027\n\023ALL_TUNING_DISABLED\020\003\022\033\n\027PE"
- + "RIODIC_TUNING_ENABLED\020\002\"D\n\tDataState\022\032\n\026"
- + "DATA_STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n"
- + "\nDATA_ERROR\020\002:k\352Ah\n\033retail.googleapis.co"
- + "m/Model\022Iprojects/{project}/locations/{l"
- + "ocation}/catalogs/{catalog}/models/{mode"
- + "l}B\265\001\n\032com.google.cloud.retail.v2B\nModel"
- + "ProtoP\001Z2cloud.google.com/go/retail/apiv"
- + "2/retailpb;retailpb\242\002\006RETAIL\252\002\026Google.Cl"
- + "oud.Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002"
- + "\031Google::Cloud::Retail::V2b\006proto3"
+ + "oogle/protobuf/timestamp.proto\"\242\n\n\005Model"
+ + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014display_name\030\002 \001("
+ + "\tB\003\340A\002\022H\n\016training_state\030\003 \001(\0162+.google."
+ + "cloud.retail.v2.Model.TrainingStateB\003\340A\001"
+ + "\022F\n\rserving_state\030\004 \001(\0162*.google.cloud.r"
+ + "etail.v2.Model.ServingStateB\003\340A\003\0224\n\013crea"
+ + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam"
+ + "pB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.pro"
+ + "tobuf.TimestampB\003\340A\003\022\021\n\004type\030\007 \001(\tB\003\340A\002\022"
+ + "#\n\026optimization_objective\030\010 \001(\tB\003\340A\001\022U\n\025"
+ + "periodic_tuning_state\030\013 \001(\01621.google.clo"
+ + "ud.retail.v2.Model.PeriodicTuningStateB\003"
+ + "\340A\001\0227\n\016last_tune_time\030\014 \001(\0132\032.google.pro"
+ + "tobuf.TimestampB\003\340A\003\022\035\n\020tuning_operation"
+ + "\030\017 \001(\tB\003\340A\003\022@\n\ndata_state\030\020 \001(\0162\'.google"
+ + ".cloud.retail.v2.Model.DataStateB\003\340A\003\022U\n"
+ + "\020filtering_option\030\022 \001(\01626.google.cloud.r"
+ + "etail.v2.RecommendationsFilteringOptionB"
+ + "\003\340A\001\022R\n\024serving_config_lists\030\023 \003(\0132/.goo"
+ + "gle.cloud.retail.v2.Model.ServingConfigL"
+ + "istB\003\340A\003\0324\n\021ServingConfigList\022\037\n\022serving"
+ + "_config_ids\030\001 \003(\tB\003\340A\001\"R\n\014ServingState\022\035"
+ + "\n\031SERVING_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIV"
+ + "E\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n\rTrainingSt"
+ + "ate\022\036\n\032TRAINING_STATE_UNSPECIFIED\020\000\022\n\n\006P"
+ + "AUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023PeriodicTuning"
+ + "State\022%\n!PERIODIC_TUNING_STATE_UNSPECIFI"
+ + "ED\020\000\022\034\n\030PERIODIC_TUNING_DISABLED\020\001\022\027\n\023AL"
+ + "L_TUNING_DISABLED\020\003\022\033\n\027PERIODIC_TUNING_E"
+ + "NABLED\020\002\"D\n\tDataState\022\032\n\026DATA_STATE_UNSP"
+ + "ECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002:k"
+ + "\352Ah\n\033retail.googleapis.com/Model\022Iprojec"
+ + "ts/{project}/locations/{location}/catalo"
+ + "gs/{catalog}/models/{model}B\265\001\n\032com.goog"
+ + "le.cloud.retail.v2B\nModelProtoP\001Z2cloud."
+ + "google.com/go/retail/apiv2/retailpb;reta"
+ + "ilpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002"
+ + "\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud:"
+ + ":Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceProto.java
index 4e82dc0162fb..14c47cebfd81 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceProto.java
@@ -93,75 +93,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tail/v2/model.proto\032#google/longrunning/"
+ "operations.proto\032\033google/protobuf/empty."
+ "proto\032 google/protobuf/field_mask.proto\""
- + "\227\001\n\022CreateModelRequest\0226\n\006parent\030\001 \001(\tB&"
- + "\342A\001\002\372A\037\n\035retail.googleapis.com/Catalog\0222"
- + "\n\005model\030\002 \001(\0132\035.google.cloud.retail.v2.M"
- + "odelB\004\342A\001\002\022\025\n\007dry_run\030\003 \001(\010B\004\342A\001\001\"\177\n\022Upd"
- + "ateModelRequest\0222\n\005model\030\001 \001(\0132\035.google."
- + "cloud.retail.v2.ModelB\004\342A\001\002\0225\n\013update_ma"
- + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A"
- + "\001\001\"E\n\017GetModelRequest\0222\n\004name\030\001 \001(\tB$\342A\001"
- + "\002\372A\035\n\033retail.googleapis.com/Model\"G\n\021Pau"
- + "seModelRequest\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033r"
- + "etail.googleapis.com/Model\"(\n\022ResumeMode"
- + "lRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"~\n\021ListMode"
- + "lsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035reta"
- + "il.googleapis.com/Catalog\022\027\n\tpage_size\030\002"
- + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"H\n\022"
- + "DeleteModelRequest\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A"
- + "\035\n\033retail.googleapis.com/Model\"\\\n\022ListMo"
- + "delsResponse\022-\n\006models\030\001 \003(\0132\035.google.cl"
- + "oud.retail.v2.Model\022\027\n\017next_page_token\030\002"
- + " \001(\t\"F\n\020TuneModelRequest\0222\n\004name\030\001 \001(\tB$"
- + "\342A\001\002\372A\035\n\033retail.googleapis.com/Model\"$\n\023"
- + "CreateModelMetadata\022\r\n\005model\030\001 \001(\t\"\"\n\021Tu"
- + "neModelMetadata\022\r\n\005model\030\001 \001(\t\"\023\n\021TuneMo"
- + "delResponse2\305\014\n\014ModelService\022\373\001\n\013CreateM"
- + "odel\022*.google.cloud.retail.v2.CreateMode"
- + "lRequest\032\035.google.longrunning.Operation\""
- + "\240\001\312AJ\n\034google.cloud.retail.v2.Model\022*goo"
- + "gle.cloud.retail.v2.CreateModelMetadata\332"
- + "A\014parent,model\202\323\344\223\002>\"5/v2/{parent=projec"
- + "ts/*/locations/*/catalogs/*}/models:\005mod"
- + "el\022\230\001\n\010GetModel\022\'.google.cloud.retail.v2"
- + ".GetModelRequest\032\035.google.cloud.retail.v"
- + "2.Model\"D\332A\004name\202\323\344\223\0027\0225/v2/{name=projec"
- + "ts/*/locations/*/catalogs/*/models/*}\022\245\001"
- + "\n\nPauseModel\022).google.cloud.retail.v2.Pa"
- + "useModelRequest\032\035.google.cloud.retail.v2"
- + ".Model\"M\332A\004name\202\323\344\223\002@\";/v2/{name=project"
- + "s/*/locations/*/catalogs/*/models/*}:pau"
- + "se:\001*\022\250\001\n\013ResumeModel\022*.google.cloud.ret"
- + "ail.v2.ResumeModelRequest\032\035.google.cloud"
- + ".retail.v2.Model\"N\332A\004name\202\323\344\223\002A\"\"5/v2/{parent=projects/*/location"
+ + "s/*/catalogs/*}/models:\005model\022\230\001\n\010GetMod"
+ + "el\022\'.google.cloud.retail.v2.GetModelRequ"
+ + "est\032\035.google.cloud.retail.v2.Model\"D\332A\004n"
+ + "ame\202\323\344\223\0027\0225/v2/{name=projects/*/location"
+ + "s/*/catalogs/*/models/*}\022\245\001\n\nPauseModel\022"
+ + ").google.cloud.retail.v2.PauseModelReque"
+ + "st\032\035.google.cloud.retail.v2.Model\"M\332A\004na"
+ + "me\202\323\344\223\002@\";/v2/{name=projects/*/locations"
+ + "/*/catalogs/*/models/*}:pause:\001*\022\250\001\n\013Res"
+ + "umeModel\022*.google.cloud.retail.v2.Resume"
+ + "ModelRequest\032\035.google.cloud.retail.v2.Mo"
+ + "del\"N\332A\004name\202\323\344\223\002A\"
+ * The output configuration setting.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputConfig}
+ */
+public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.OutputConfig)
+ OutputConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OutputConfig.newBuilder() to construct.
+ private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OutputConfig() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OutputConfig();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputConfig.class,
+ com.google.cloud.retail.v2.OutputConfig.Builder.class);
+ }
+
+ public interface GcsDestinationOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.OutputConfig.GcsDestination)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The outputUriPrefix.
+ */
+ java.lang.String getOutputUriPrefix();
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for outputUriPrefix.
+ */
+ com.google.protobuf.ByteString getOutputUriPrefixBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage output destination configuration.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputConfig.GcsDestination}
+ */
+ public static final class GcsDestination extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.OutputConfig.GcsDestination)
+ GcsDestinationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsDestination.newBuilder() to construct.
+ private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsDestination() {
+ outputUriPrefix_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsDestination();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.class,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder.class);
+ }
+
+ public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object outputUriPrefix_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The outputUriPrefix.
+ */
+ @java.lang.Override
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for outputUriPrefix.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUriPrefix_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.OutputConfig.GcsDestination)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination other =
+ (com.google.cloud.retail.v2.OutputConfig.GcsDestination) obj;
+
+ if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUriPrefix().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage output destination configuration.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputConfig.GcsDestination}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.OutputConfig.GcsDestination)
+ com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.class,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.OutputConfig.GcsDestination.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ outputUriPrefix_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_GcsDestination_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination build() {
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination buildPartial() {
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination result =
+ new com.google.cloud.retail.v2.OutputConfig.GcsDestination(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.OutputConfig.GcsDestination result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.outputUriPrefix_ = outputUriPrefix_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.OutputConfig.GcsDestination) {
+ return mergeFrom((com.google.cloud.retail.v2.OutputConfig.GcsDestination) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.OutputConfig.GcsDestination other) {
+ if (other == com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance())
+ return this;
+ if (!other.getOutputUriPrefix().isEmpty()) {
+ outputUriPrefix_ = other.outputUriPrefix_;
+ 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:
+ {
+ outputUriPrefix_ = 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 outputUriPrefix_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The outputUriPrefix.
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for outputUriPrefix.
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The outputUriPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputUriPrefix_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputUriPrefix() {
+ outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The output uri prefix for saving output data to json files.
+ * Some mapping examples are as follows:
+ * output_uri_prefix sample output(assuming the object is foo.json)
+ * ======================== =============================================
+ * gs://bucket/ gs://bucket/foo.json
+ * gs://bucket/folder/ gs://bucket/folder/foo.json
+ * gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ *
+ *
+ * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for outputUriPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputUriPrefix_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.OutputConfig.GcsDestination)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.OutputConfig.GcsDestination)
+ private static final com.google.cloud.retail.v2.OutputConfig.GcsDestination DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.OutputConfig.GcsDestination();
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.GcsDestination getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsDestination parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface BigQueryDestinationOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.OutputConfig.BigQueryDestination)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The datasetId.
+ */
+ java.lang.String getDatasetId();
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for datasetId.
+ */
+ com.google.protobuf.ByteString getDatasetIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The tableIdPrefix.
+ */
+ java.lang.String getTableIdPrefix();
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for tableIdPrefix.
+ */
+ com.google.protobuf.ByteString getTableIdPrefixBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The tableType.
+ */
+ java.lang.String getTableType();
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for tableType.
+ */
+ com.google.protobuf.ByteString getTableTypeBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery output destination configuration.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputConfig.BigQueryDestination}
+ */
+ public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.OutputConfig.BigQueryDestination)
+ BigQueryDestinationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BigQueryDestination.newBuilder() to construct.
+ private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BigQueryDestination() {
+ datasetId_ = "";
+ tableIdPrefix_ = "";
+ tableType_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BigQueryDestination();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.class,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder.class);
+ }
+
+ public static final int DATASET_ID_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object datasetId_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The datasetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetId() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for datasetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetIdBytes() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_ID_PREFIX_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableIdPrefix_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The tableIdPrefix.
+ */
+ @java.lang.Override
+ public java.lang.String getTableIdPrefix() {
+ java.lang.Object ref = tableIdPrefix_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableIdPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for tableIdPrefix.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableIdPrefixBytes() {
+ java.lang.Object ref = tableIdPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableIdPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_TYPE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableType_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The tableType.
+ */
+ @java.lang.Override
+ public java.lang.String getTableType() {
+ java.lang.Object ref = tableType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for tableType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableTypeBytes() {
+ java.lang.Object ref = tableType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableIdPrefix_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableIdPrefix_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableIdPrefix_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableIdPrefix_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableType_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.OutputConfig.BigQueryDestination)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination other =
+ (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) obj;
+
+ if (!getDatasetId().equals(other.getDatasetId())) return false;
+ if (!getTableIdPrefix().equals(other.getTableIdPrefix())) return false;
+ if (!getTableType().equals(other.getTableType())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATASET_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDatasetId().hashCode();
+ hash = (37 * hash) + TABLE_ID_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getTableIdPrefix().hashCode();
+ hash = (37 * hash) + TABLE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getTableType().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery output destination configuration.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputConfig.BigQueryDestination}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.OutputConfig.BigQueryDestination)
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.class,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ datasetId_ = "";
+ tableIdPrefix_ = "";
+ tableType_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_BigQueryDestination_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination
+ getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination build() {
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination buildPartial() {
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination result =
+ new com.google.cloud.retail.v2.OutputConfig.BigQueryDestination(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.datasetId_ = datasetId_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.tableIdPrefix_ = tableIdPrefix_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.tableType_ = tableType_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) {
+ return mergeFrom((com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.OutputConfig.BigQueryDestination other) {
+ if (other
+ == com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance())
+ return this;
+ if (!other.getDatasetId().isEmpty()) {
+ datasetId_ = other.datasetId_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getTableIdPrefix().isEmpty()) {
+ tableIdPrefix_ = other.tableIdPrefix_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getTableType().isEmpty()) {
+ tableType_ = other.tableType_;
+ 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:
+ {
+ datasetId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ tableIdPrefix_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ tableType_ = 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 datasetId_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The datasetId.
+ */
+ public java.lang.String getDatasetId() {
+ java.lang.Object ref = datasetId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for datasetId.
+ */
+ public com.google.protobuf.ByteString getDatasetIdBytes() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The datasetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ datasetId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetId() {
+ datasetId_ = getDefaultInstance().getDatasetId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The ID of a BigQuery Dataset.
+ *
+ *
+ * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for datasetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ datasetId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableIdPrefix_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The tableIdPrefix.
+ */
+ public java.lang.String getTableIdPrefix() {
+ java.lang.Object ref = tableIdPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableIdPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for tableIdPrefix.
+ */
+ public com.google.protobuf.ByteString getTableIdPrefixBytes() {
+ java.lang.Object ref = tableIdPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableIdPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The tableIdPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableIdPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableIdPrefix_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableIdPrefix() {
+ tableIdPrefix_ = getDefaultInstance().getTableIdPrefix();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The prefix of exported BigQuery tables.
+ *
+ *
+ * string table_id_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for tableIdPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableIdPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tableIdPrefix_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableType_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The tableType.
+ */
+ public java.lang.String getTableType() {
+ java.lang.Object ref = tableType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for tableType.
+ */
+ public com.google.protobuf.ByteString getTableTypeBytes() {
+ java.lang.Object ref = tableType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The tableType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableType() {
+ tableType_ = getDefaultInstance().getTableType();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes the table type. The following values are supported:
+ *
+ * * `table`: A BigQuery native table.
+ * * `view`: A virtual table defined by a SQL query.
+ *
+ *
+ * string table_type = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for tableType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tableType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.OutputConfig.BigQueryDestination)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.OutputConfig.BigQueryDestination)
+ private static final com.google.cloud.retail.v2.OutputConfig.BigQueryDestination
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.OutputConfig.BigQueryDestination();
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig.BigQueryDestination getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BigQueryDestination parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private int destinationCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object destination_;
+
+ public enum DestinationCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_DESTINATION(1),
+ BIGQUERY_DESTINATION(2),
+ DESTINATION_NOT_SET(0);
+ private final int value;
+
+ private DestinationCase(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 DestinationCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DestinationCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return GCS_DESTINATION;
+ case 2:
+ return BIGQUERY_DESTINATION;
+ case 0:
+ return DESTINATION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ *
+ * @return Whether the gcsDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsDestination() {
+ return destinationCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ *
+ * @return The gcsDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination getGcsDestination() {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder
+ getGcsDestinationOrBuilder() {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ }
+
+ public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigqueryDestination() {
+ return destinationCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ * @return The bigqueryDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination getBigqueryDestination() {
+ if (destinationCase_ == 2) {
+ return (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder() {
+ if (destinationCase_ == 2) {
+ return (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.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 (destinationCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_);
+ }
+ if (destinationCase_ == 2) {
+ output.writeMessage(
+ 2, (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (destinationCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_);
+ }
+ if (destinationCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.retail.v2.OutputConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.OutputConfig other = (com.google.cloud.retail.v2.OutputConfig) obj;
+
+ if (!getDestinationCase().equals(other.getDestinationCase())) return false;
+ switch (destinationCase_) {
+ case 1:
+ if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+ break;
+ case 2:
+ if (!getBigqueryDestination().equals(other.getBigqueryDestination())) 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 (destinationCase_) {
+ case 1:
+ hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsDestination().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getBigqueryDestination().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.retail.v2.OutputConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The output configuration setting.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.OutputConfig)
+ com.google.cloud.retail.v2.OutputConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputConfig.class,
+ com.google.cloud.retail.v2.OutputConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.OutputConfig.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (gcsDestinationBuilder_ != null) {
+ gcsDestinationBuilder_.clear();
+ }
+ if (bigqueryDestinationBuilder_ != null) {
+ bigqueryDestinationBuilder_.clear();
+ }
+ destinationCase_ = 0;
+ destination_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.OutputConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig build() {
+ com.google.cloud.retail.v2.OutputConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig buildPartial() {
+ com.google.cloud.retail.v2.OutputConfig result =
+ new com.google.cloud.retail.v2.OutputConfig(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.OutputConfig result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.retail.v2.OutputConfig result) {
+ result.destinationCase_ = destinationCase_;
+ result.destination_ = this.destination_;
+ if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) {
+ result.destination_ = gcsDestinationBuilder_.build();
+ }
+ if (destinationCase_ == 2 && bigqueryDestinationBuilder_ != null) {
+ result.destination_ = bigqueryDestinationBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.OutputConfig) {
+ return mergeFrom((com.google.cloud.retail.v2.OutputConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.OutputConfig other) {
+ if (other == com.google.cloud.retail.v2.OutputConfig.getDefaultInstance()) return this;
+ switch (other.getDestinationCase()) {
+ case GCS_DESTINATION:
+ {
+ mergeGcsDestination(other.getGcsDestination());
+ break;
+ }
+ case BIGQUERY_DESTINATION:
+ {
+ mergeBigqueryDestination(other.getBigqueryDestination());
+ break;
+ }
+ case DESTINATION_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(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry);
+ destinationCase_ = 1;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(
+ getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry);
+ destinationCase_ = 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 destinationCase_ = 0;
+ private java.lang.Object destination_;
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public Builder clearDestination() {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder>
+ gcsDestinationBuilder_;
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ *
+ * @return Whether the gcsDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsDestination() {
+ return destinationCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ *
+ * @return The gcsDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination getGcsDestination() {
+ if (gcsDestinationBuilder_ == null) {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ } else {
+ if (destinationCase_ == 1) {
+ return gcsDestinationBuilder_.getMessage();
+ }
+ return com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ public Builder setGcsDestination(com.google.cloud.retail.v2.OutputConfig.GcsDestination value) {
+ if (gcsDestinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destination_ = value;
+ onChanged();
+ } else {
+ gcsDestinationBuilder_.setMessage(value);
+ }
+ destinationCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ public Builder setGcsDestination(
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder builderForValue) {
+ if (gcsDestinationBuilder_ == null) {
+ destination_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsDestinationBuilder_.setMessage(builderForValue.build());
+ }
+ destinationCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ public Builder mergeGcsDestination(
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination value) {
+ if (gcsDestinationBuilder_ == null) {
+ if (destinationCase_ == 1
+ && destination_
+ != com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance()) {
+ destination_ =
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.newBuilder(
+ (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ destination_ = value;
+ }
+ onChanged();
+ } else {
+ if (destinationCase_ == 1) {
+ gcsDestinationBuilder_.mergeFrom(value);
+ } else {
+ gcsDestinationBuilder_.setMessage(value);
+ }
+ }
+ destinationCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ public Builder clearGcsDestination() {
+ if (gcsDestinationBuilder_ == null) {
+ if (destinationCase_ == 1) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ } else {
+ if (destinationCase_ == 1) {
+ destinationCase_ = 0;
+ destination_ = null;
+ }
+ gcsDestinationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder
+ getGcsDestinationBuilder() {
+ return getGcsDestinationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder
+ getGcsDestinationOrBuilder() {
+ if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) {
+ return gcsDestinationBuilder_.getMessageOrBuilder();
+ } else {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder>
+ getGcsDestinationFieldBuilder() {
+ if (gcsDestinationBuilder_ == null) {
+ if (!(destinationCase_ == 1)) {
+ destination_ =
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.getDefaultInstance();
+ }
+ gcsDestinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination.Builder,
+ com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder>(
+ (com.google.cloud.retail.v2.OutputConfig.GcsDestination) destination_,
+ getParentForChildren(),
+ isClean());
+ destination_ = null;
+ }
+ destinationCase_ = 1;
+ onChanged();
+ return gcsDestinationBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder>
+ bigqueryDestinationBuilder_;
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigqueryDestination() {
+ return destinationCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination getBigqueryDestination() {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (destinationCase_ == 2) {
+ return (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance();
+ } else {
+ if (destinationCase_ == 2) {
+ return bigqueryDestinationBuilder_.getMessage();
+ }
+ return com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ public Builder setBigqueryDestination(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination value) {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destination_ = value;
+ onChanged();
+ } else {
+ bigqueryDestinationBuilder_.setMessage(value);
+ }
+ destinationCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ public Builder setBigqueryDestination(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder builderForValue) {
+ if (bigqueryDestinationBuilder_ == null) {
+ destination_ = builderForValue.build();
+ onChanged();
+ } else {
+ bigqueryDestinationBuilder_.setMessage(builderForValue.build());
+ }
+ destinationCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ public Builder mergeBigqueryDestination(
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination value) {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (destinationCase_ == 2
+ && destination_
+ != com.google.cloud.retail.v2.OutputConfig.BigQueryDestination
+ .getDefaultInstance()) {
+ destination_ =
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.newBuilder(
+ (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ destination_ = value;
+ }
+ onChanged();
+ } else {
+ if (destinationCase_ == 2) {
+ bigqueryDestinationBuilder_.mergeFrom(value);
+ } else {
+ bigqueryDestinationBuilder_.setMessage(value);
+ }
+ }
+ destinationCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ public Builder clearBigqueryDestination() {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (destinationCase_ == 2) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ } else {
+ if (destinationCase_ == 2) {
+ destinationCase_ = 0;
+ destination_ = null;
+ }
+ bigqueryDestinationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder
+ getBigqueryDestinationBuilder() {
+ return getBigqueryDestinationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder() {
+ if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
+ return bigqueryDestinationBuilder_.getMessageOrBuilder();
+ } else {
+ if (destinationCase_ == 2) {
+ return (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_;
+ }
+ return com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder>
+ getBigqueryDestinationFieldBuilder() {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (!(destinationCase_ == 2)) {
+ destination_ =
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.getDefaultInstance();
+ }
+ bigqueryDestinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination.Builder,
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder>(
+ (com.google.cloud.retail.v2.OutputConfig.BigQueryDestination) destination_,
+ getParentForChildren(),
+ isClean());
+ destination_ = null;
+ }
+ destinationCase_ = 2;
+ onChanged();
+ return bigqueryDestinationBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.OutputConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.OutputConfig)
+ private static final com.google.cloud.retail.v2.OutputConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.OutputConfig();
+ }
+
+ public static com.google.cloud.retail.v2.OutputConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public OutputConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputConfigOrBuilder.java
new file mode 100644
index 000000000000..595432f316c2
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputConfigOrBuilder.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface OutputConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.OutputConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ *
+ * @return Whether the gcsDestination field is set.
+ */
+ boolean hasGcsDestination();
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ *
+ * @return The gcsDestination.
+ */
+ com.google.cloud.retail.v2.OutputConfig.GcsDestination getGcsDestination();
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.GcsDestination gcs_destination = 1;
+ */
+ com.google.cloud.retail.v2.OutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ boolean hasBigqueryDestination();
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ *
+ * @return The bigqueryDestination.
+ */
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestination getBigqueryDestination();
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the output is to be written to.
+ *
+ *
+ * .google.cloud.retail.v2.OutputConfig.BigQueryDestination bigquery_destination = 2;
+ */
+ com.google.cloud.retail.v2.OutputConfig.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder();
+
+ com.google.cloud.retail.v2.OutputConfig.DestinationCase getDestinationCase();
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputResult.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputResult.java
new file mode 100644
index 000000000000..f89f474a283f
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputResult.java
@@ -0,0 +1,1438 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+/**
+ *
+ *
+ *
+ * Output result that stores the information about where the exported data is
+ * stored.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputResult}
+ */
+public final class OutputResult extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.OutputResult)
+ OutputResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OutputResult.newBuilder() to construct.
+ private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OutputResult() {
+ bigqueryResult_ = java.util.Collections.emptyList();
+ gcsResult_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OutputResult();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputResult.class,
+ com.google.cloud.retail.v2.OutputResult.Builder.class);
+ }
+
+ public static final int BIGQUERY_RESULT_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List bigqueryResult_;
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ @java.lang.Override
+ public java.util.List getBigqueryResultList() {
+ return bigqueryResult_;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>
+ getBigqueryResultOrBuilderList() {
+ return bigqueryResult_;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ @java.lang.Override
+ public int getBigqueryResultCount() {
+ return bigqueryResult_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.BigQueryOutputResult getBigqueryResult(int index) {
+ return bigqueryResult_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder getBigqueryResultOrBuilder(
+ int index) {
+ return bigqueryResult_.get(index);
+ }
+
+ public static final int GCS_RESULT_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List gcsResult_;
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ @java.lang.Override
+ public java.util.List getGcsResultList() {
+ return gcsResult_;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.retail.v2.GcsOutputResultOrBuilder>
+ getGcsResultOrBuilderList() {
+ return gcsResult_;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ @java.lang.Override
+ public int getGcsResultCount() {
+ return gcsResult_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.GcsOutputResult getGcsResult(int index) {
+ return gcsResult_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.retail.v2.GcsOutputResultOrBuilder getGcsResultOrBuilder(int index) {
+ return gcsResult_.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 < bigqueryResult_.size(); i++) {
+ output.writeMessage(1, bigqueryResult_.get(i));
+ }
+ for (int i = 0; i < gcsResult_.size(); i++) {
+ output.writeMessage(2, gcsResult_.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 < bigqueryResult_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigqueryResult_.get(i));
+ }
+ for (int i = 0; i < gcsResult_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, gcsResult_.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.retail.v2.OutputResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.retail.v2.OutputResult other = (com.google.cloud.retail.v2.OutputResult) obj;
+
+ if (!getBigqueryResultList().equals(other.getBigqueryResultList())) return false;
+ if (!getGcsResultList().equals(other.getGcsResultList())) return false;
+ if (!getUnknownFields().equals(other.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 (getBigqueryResultCount() > 0) {
+ hash = (37 * hash) + BIGQUERY_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getBigqueryResultList().hashCode();
+ }
+ if (getGcsResultCount() > 0) {
+ hash = (37 * hash) + GCS_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsResultList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.retail.v2.OutputResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Output result that stores the information about where the exported data is
+ * stored.
+ *
+ *
+ * Protobuf type {@code google.cloud.retail.v2.OutputResult}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.OutputResult)
+ com.google.cloud.retail.v2.OutputResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.retail.v2.OutputResult.class,
+ com.google.cloud.retail.v2.OutputResult.Builder.class);
+ }
+
+ // Construct using com.google.cloud.retail.v2.OutputResult.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (bigqueryResultBuilder_ == null) {
+ bigqueryResult_ = java.util.Collections.emptyList();
+ } else {
+ bigqueryResult_ = null;
+ bigqueryResultBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (gcsResultBuilder_ == null) {
+ gcsResult_ = java.util.Collections.emptyList();
+ } else {
+ gcsResult_ = null;
+ gcsResultBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.retail.v2.ExportConfigProto
+ .internal_static_google_cloud_retail_v2_OutputResult_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputResult getDefaultInstanceForType() {
+ return com.google.cloud.retail.v2.OutputResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputResult build() {
+ com.google.cloud.retail.v2.OutputResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputResult buildPartial() {
+ com.google.cloud.retail.v2.OutputResult result =
+ new com.google.cloud.retail.v2.OutputResult(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.google.cloud.retail.v2.OutputResult result) {
+ if (bigqueryResultBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ bigqueryResult_ = java.util.Collections.unmodifiableList(bigqueryResult_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.bigqueryResult_ = bigqueryResult_;
+ } else {
+ result.bigqueryResult_ = bigqueryResultBuilder_.build();
+ }
+ if (gcsResultBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ gcsResult_ = java.util.Collections.unmodifiableList(gcsResult_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.gcsResult_ = gcsResult_;
+ } else {
+ result.gcsResult_ = gcsResultBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.retail.v2.OutputResult result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.retail.v2.OutputResult) {
+ return mergeFrom((com.google.cloud.retail.v2.OutputResult) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.retail.v2.OutputResult other) {
+ if (other == com.google.cloud.retail.v2.OutputResult.getDefaultInstance()) return this;
+ if (bigqueryResultBuilder_ == null) {
+ if (!other.bigqueryResult_.isEmpty()) {
+ if (bigqueryResult_.isEmpty()) {
+ bigqueryResult_ = other.bigqueryResult_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.addAll(other.bigqueryResult_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.bigqueryResult_.isEmpty()) {
+ if (bigqueryResultBuilder_.isEmpty()) {
+ bigqueryResultBuilder_.dispose();
+ bigqueryResultBuilder_ = null;
+ bigqueryResult_ = other.bigqueryResult_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ bigqueryResultBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getBigqueryResultFieldBuilder()
+ : null;
+ } else {
+ bigqueryResultBuilder_.addAllMessages(other.bigqueryResult_);
+ }
+ }
+ }
+ if (gcsResultBuilder_ == null) {
+ if (!other.gcsResult_.isEmpty()) {
+ if (gcsResult_.isEmpty()) {
+ gcsResult_ = other.gcsResult_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureGcsResultIsMutable();
+ gcsResult_.addAll(other.gcsResult_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.gcsResult_.isEmpty()) {
+ if (gcsResultBuilder_.isEmpty()) {
+ gcsResultBuilder_.dispose();
+ gcsResultBuilder_ = null;
+ gcsResult_ = other.gcsResult_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ gcsResultBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getGcsResultFieldBuilder()
+ : null;
+ } else {
+ gcsResultBuilder_.addAllMessages(other.gcsResult_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ 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.retail.v2.BigQueryOutputResult m =
+ input.readMessage(
+ com.google.cloud.retail.v2.BigQueryOutputResult.parser(),
+ extensionRegistry);
+ if (bigqueryResultBuilder_ == null) {
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.add(m);
+ } else {
+ bigqueryResultBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18:
+ {
+ com.google.cloud.retail.v2.GcsOutputResult m =
+ input.readMessage(
+ com.google.cloud.retail.v2.GcsOutputResult.parser(), extensionRegistry);
+ if (gcsResultBuilder_ == null) {
+ ensureGcsResultIsMutable();
+ gcsResult_.add(m);
+ } else {
+ gcsResultBuilder_.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 bigqueryResult_ =
+ java.util.Collections.emptyList();
+
+ private void ensureBigqueryResultIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ bigqueryResult_ =
+ new java.util.ArrayList(
+ bigqueryResult_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.retail.v2.BigQueryOutputResult,
+ com.google.cloud.retail.v2.BigQueryOutputResult.Builder,
+ com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>
+ bigqueryResultBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public java.util.List getBigqueryResultList() {
+ if (bigqueryResultBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(bigqueryResult_);
+ } else {
+ return bigqueryResultBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public int getBigqueryResultCount() {
+ if (bigqueryResultBuilder_ == null) {
+ return bigqueryResult_.size();
+ } else {
+ return bigqueryResultBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public com.google.cloud.retail.v2.BigQueryOutputResult getBigqueryResult(int index) {
+ if (bigqueryResultBuilder_ == null) {
+ return bigqueryResult_.get(index);
+ } else {
+ return bigqueryResultBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder setBigqueryResult(
+ int index, com.google.cloud.retail.v2.BigQueryOutputResult value) {
+ if (bigqueryResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.set(index, value);
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder setBigqueryResult(
+ int index, com.google.cloud.retail.v2.BigQueryOutputResult.Builder builderForValue) {
+ if (bigqueryResultBuilder_ == null) {
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder addBigqueryResult(com.google.cloud.retail.v2.BigQueryOutputResult value) {
+ if (bigqueryResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.add(value);
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder addBigqueryResult(
+ int index, com.google.cloud.retail.v2.BigQueryOutputResult value) {
+ if (bigqueryResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.add(index, value);
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder addBigqueryResult(
+ com.google.cloud.retail.v2.BigQueryOutputResult.Builder builderForValue) {
+ if (bigqueryResultBuilder_ == null) {
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.add(builderForValue.build());
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder addBigqueryResult(
+ int index, com.google.cloud.retail.v2.BigQueryOutputResult.Builder builderForValue) {
+ if (bigqueryResultBuilder_ == null) {
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder addAllBigqueryResult(
+ java.lang.Iterable extends com.google.cloud.retail.v2.BigQueryOutputResult> values) {
+ if (bigqueryResultBuilder_ == null) {
+ ensureBigqueryResultIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryResult_);
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder clearBigqueryResult() {
+ if (bigqueryResultBuilder_ == null) {
+ bigqueryResult_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public Builder removeBigqueryResult(int index) {
+ if (bigqueryResultBuilder_ == null) {
+ ensureBigqueryResultIsMutable();
+ bigqueryResult_.remove(index);
+ onChanged();
+ } else {
+ bigqueryResultBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public com.google.cloud.retail.v2.BigQueryOutputResult.Builder getBigqueryResultBuilder(
+ int index) {
+ return getBigqueryResultFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder getBigqueryResultOrBuilder(
+ int index) {
+ if (bigqueryResultBuilder_ == null) {
+ return bigqueryResult_.get(index);
+ } else {
+ return bigqueryResultBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public java.util.List extends com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>
+ getBigqueryResultOrBuilderList() {
+ if (bigqueryResultBuilder_ != null) {
+ return bigqueryResultBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(bigqueryResult_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public com.google.cloud.retail.v2.BigQueryOutputResult.Builder addBigqueryResultBuilder() {
+ return getBigqueryResultFieldBuilder()
+ .addBuilder(com.google.cloud.retail.v2.BigQueryOutputResult.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public com.google.cloud.retail.v2.BigQueryOutputResult.Builder addBigqueryResultBuilder(
+ int index) {
+ return getBigqueryResultFieldBuilder()
+ .addBuilder(index, com.google.cloud.retail.v2.BigQueryOutputResult.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ public java.util.List
+ getBigqueryResultBuilderList() {
+ return getBigqueryResultFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.retail.v2.BigQueryOutputResult,
+ com.google.cloud.retail.v2.BigQueryOutputResult.Builder,
+ com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>
+ getBigqueryResultFieldBuilder() {
+ if (bigqueryResultBuilder_ == null) {
+ bigqueryResultBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.retail.v2.BigQueryOutputResult,
+ com.google.cloud.retail.v2.BigQueryOutputResult.Builder,
+ com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>(
+ bigqueryResult_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ bigqueryResult_ = null;
+ }
+ return bigqueryResultBuilder_;
+ }
+
+ private java.util.List gcsResult_ =
+ java.util.Collections.emptyList();
+
+ private void ensureGcsResultIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ gcsResult_ =
+ new java.util.ArrayList(gcsResult_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.retail.v2.GcsOutputResult,
+ com.google.cloud.retail.v2.GcsOutputResult.Builder,
+ com.google.cloud.retail.v2.GcsOutputResultOrBuilder>
+ gcsResultBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public java.util.List getGcsResultList() {
+ if (gcsResultBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(gcsResult_);
+ } else {
+ return gcsResultBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public int getGcsResultCount() {
+ if (gcsResultBuilder_ == null) {
+ return gcsResult_.size();
+ } else {
+ return gcsResultBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public com.google.cloud.retail.v2.GcsOutputResult getGcsResult(int index) {
+ if (gcsResultBuilder_ == null) {
+ return gcsResult_.get(index);
+ } else {
+ return gcsResultBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder setGcsResult(int index, com.google.cloud.retail.v2.GcsOutputResult value) {
+ if (gcsResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGcsResultIsMutable();
+ gcsResult_.set(index, value);
+ onChanged();
+ } else {
+ gcsResultBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder setGcsResult(
+ int index, com.google.cloud.retail.v2.GcsOutputResult.Builder builderForValue) {
+ if (gcsResultBuilder_ == null) {
+ ensureGcsResultIsMutable();
+ gcsResult_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ gcsResultBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder addGcsResult(com.google.cloud.retail.v2.GcsOutputResult value) {
+ if (gcsResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGcsResultIsMutable();
+ gcsResult_.add(value);
+ onChanged();
+ } else {
+ gcsResultBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder addGcsResult(int index, com.google.cloud.retail.v2.GcsOutputResult value) {
+ if (gcsResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGcsResultIsMutable();
+ gcsResult_.add(index, value);
+ onChanged();
+ } else {
+ gcsResultBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder addGcsResult(
+ com.google.cloud.retail.v2.GcsOutputResult.Builder builderForValue) {
+ if (gcsResultBuilder_ == null) {
+ ensureGcsResultIsMutable();
+ gcsResult_.add(builderForValue.build());
+ onChanged();
+ } else {
+ gcsResultBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder addGcsResult(
+ int index, com.google.cloud.retail.v2.GcsOutputResult.Builder builderForValue) {
+ if (gcsResultBuilder_ == null) {
+ ensureGcsResultIsMutable();
+ gcsResult_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ gcsResultBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder addAllGcsResult(
+ java.lang.Iterable extends com.google.cloud.retail.v2.GcsOutputResult> values) {
+ if (gcsResultBuilder_ == null) {
+ ensureGcsResultIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gcsResult_);
+ onChanged();
+ } else {
+ gcsResultBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder clearGcsResult() {
+ if (gcsResultBuilder_ == null) {
+ gcsResult_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ gcsResultBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public Builder removeGcsResult(int index) {
+ if (gcsResultBuilder_ == null) {
+ ensureGcsResultIsMutable();
+ gcsResult_.remove(index);
+ onChanged();
+ } else {
+ gcsResultBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public com.google.cloud.retail.v2.GcsOutputResult.Builder getGcsResultBuilder(int index) {
+ return getGcsResultFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public com.google.cloud.retail.v2.GcsOutputResultOrBuilder getGcsResultOrBuilder(int index) {
+ if (gcsResultBuilder_ == null) {
+ return gcsResult_.get(index);
+ } else {
+ return gcsResultBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public java.util.List extends com.google.cloud.retail.v2.GcsOutputResultOrBuilder>
+ getGcsResultOrBuilderList() {
+ if (gcsResultBuilder_ != null) {
+ return gcsResultBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(gcsResult_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public com.google.cloud.retail.v2.GcsOutputResult.Builder addGcsResultBuilder() {
+ return getGcsResultFieldBuilder()
+ .addBuilder(com.google.cloud.retail.v2.GcsOutputResult.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public com.google.cloud.retail.v2.GcsOutputResult.Builder addGcsResultBuilder(int index) {
+ return getGcsResultFieldBuilder()
+ .addBuilder(index, com.google.cloud.retail.v2.GcsOutputResult.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ public java.util.List
+ getGcsResultBuilderList() {
+ return getGcsResultFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.retail.v2.GcsOutputResult,
+ com.google.cloud.retail.v2.GcsOutputResult.Builder,
+ com.google.cloud.retail.v2.GcsOutputResultOrBuilder>
+ getGcsResultFieldBuilder() {
+ if (gcsResultBuilder_ == null) {
+ gcsResultBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.retail.v2.GcsOutputResult,
+ com.google.cloud.retail.v2.GcsOutputResult.Builder,
+ com.google.cloud.retail.v2.GcsOutputResultOrBuilder>(
+ gcsResult_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ gcsResult_ = null;
+ }
+ return gcsResultBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.OutputResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.OutputResult)
+ private static final com.google.cloud.retail.v2.OutputResult DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.retail.v2.OutputResult();
+ }
+
+ public static com.google.cloud.retail.v2.OutputResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public OutputResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.retail.v2.OutputResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputResultOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputResultOrBuilder.java
new file mode 100644
index 000000000000..e5c9c7560dc7
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/OutputResultOrBuilder.java
@@ -0,0 +1,130 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/retail/v2/export_config.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.retail.v2;
+
+public interface OutputResultOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.OutputResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ java.util.List getBigqueryResultList();
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ com.google.cloud.retail.v2.BigQueryOutputResult getBigqueryResult(int index);
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ int getBigqueryResultCount();
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ java.util.List extends com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>
+ getBigqueryResultOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The BigQuery location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1;
+ */
+ com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder getBigqueryResultOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ java.util.List getGcsResultList();
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ com.google.cloud.retail.v2.GcsOutputResult getGcsResult(int index);
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ int getGcsResultCount();
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ java.util.List extends com.google.cloud.retail.v2.GcsOutputResultOrBuilder>
+ getGcsResultOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The Google Cloud Storage location where the result is stored.
+ *
+ *
+ * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2;
+ */
+ com.google.cloud.retail.v2.GcsOutputResultOrBuilder getGcsResultOrBuilder(int index);
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceProto.java
index 1ded8ccc5703..76f1f4885c4c 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceProto.java
@@ -67,41 +67,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "nt.proto\032\037google/api/field_behavior.prot"
+ "o\032\031google/api/resource.proto\032\'google/clo"
+ "ud/retail/v2/user_event.proto\032\034google/pr"
- + "otobuf/struct.proto\"\266\003\n\016PredictRequest\022\027"
- + "\n\tplacement\030\001 \001(\tB\004\342A\001\002\022;\n\nuser_event\030\002 "
- + "\001(\0132!.google.cloud.retail.v2.UserEventB\004"
- + "\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022\026\n\npage_token\030\004 "
- + "\001(\tB\002\030\001\022\016\n\006filter\030\005 \001(\t\022\025\n\rvalidate_only"
- + "\030\006 \001(\010\022B\n\006params\030\007 \003(\01322.google.cloud.re"
- + "tail.v2.PredictRequest.ParamsEntry\022B\n\006la"
- + "bels\030\010 \003(\01322.google.cloud.retail.v2.Pred"
- + "ictRequest.LabelsEntry\032E\n\013ParamsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.proto"
- + "buf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001("
- + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\347\002\n\017PredictResponse"
- + "\022I\n\007results\030\001 \003(\01328.google.cloud.retail."
- + "v2.PredictResponse.PredictionResult\022\031\n\021a"
- + "ttribution_token\030\002 \001(\t\022\023\n\013missing_ids\030\003 "
- + "\003(\t\022\025\n\rvalidate_only\030\004 \001(\010\032\301\001\n\020Predictio"
- + "nResult\022\n\n\002id\030\001 \001(\t\022X\n\010metadata\030\002 \003(\0132F."
- + "google.cloud.retail.v2.PredictResponse.P"
- + "redictionResult.MetadataEntry\032G\n\rMetadat"
- + "aEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo"
- + "gle.protobuf.Value:\0028\0012\341\002\n\021PredictionSer"
- + "vice\022\200\002\n\007Predict\022&.google.cloud.retail.v"
- + "2.PredictRequest\032\'.google.cloud.retail.v"
- + "2.PredictResponse\"\243\001\202\323\344\223\002\234\001\"F/v2/{placem"
- + "ent=projects/*/locations/*/catalogs/*/pl"
- + "acements/*}:predict:\001*ZO\"J/v2/{placement"
- + "=projects/*/locations/*/catalogs/*/servi"
- + "ngConfigs/*}:predict:\001*\032I\312A\025retail.googl"
- + "eapis.com\322A.https://www.googleapis.com/a"
- + "uth/cloud-platformB\301\001\n\032com.google.cloud."
- + "retail.v2B\026PredictionServiceProtoP\001Z2clo"
- + "ud.google.com/go/retail/apiv2/retailpb;r"
- + "etailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V"
- + "2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Clo"
- + "ud::Retail::V2b\006proto3"
+ + "otobuf/struct.proto\"\264\003\n\016PredictRequest\022\026"
+ + "\n\tplacement\030\001 \001(\tB\003\340A\002\022:\n\nuser_event\030\002 \001"
+ + "(\0132!.google.cloud.retail.v2.UserEventB\003\340"
+ + "A\002\022\021\n\tpage_size\030\003 \001(\005\022\026\n\npage_token\030\004 \001("
+ + "\tB\002\030\001\022\016\n\006filter\030\005 \001(\t\022\025\n\rvalidate_only\030\006"
+ + " \001(\010\022B\n\006params\030\007 \003(\01322.google.cloud.reta"
+ + "il.v2.PredictRequest.ParamsEntry\022B\n\006labe"
+ + "ls\030\010 \003(\01322.google.cloud.retail.v2.Predic"
+ + "tRequest.LabelsEntry\032E\n\013ParamsEntry\022\013\n\003k"
+ + "ey\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobu"
+ + "f.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022"
+ + "\r\n\005value\030\002 \001(\t:\0028\001\"\347\002\n\017PredictResponse\022I"
+ + "\n\007results\030\001 \003(\01328.google.cloud.retail.v2"
+ + ".PredictResponse.PredictionResult\022\031\n\021att"
+ + "ribution_token\030\002 \001(\t\022\023\n\013missing_ids\030\003 \003("
+ + "\t\022\025\n\rvalidate_only\030\004 \001(\010\032\301\001\n\020PredictionR"
+ + "esult\022\n\n\002id\030\001 \001(\t\022X\n\010metadata\030\002 \003(\0132F.go"
+ + "ogle.cloud.retail.v2.PredictResponse.Pre"
+ + "dictionResult.MetadataEntry\032G\n\rMetadataE"
+ + "ntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.googl"
+ + "e.protobuf.Value:\0028\0012\341\002\n\021PredictionServi"
+ + "ce\022\200\002\n\007Predict\022&.google.cloud.retail.v2."
+ + "PredictRequest\032\'.google.cloud.retail.v2."
+ + "PredictResponse\"\243\001\202\323\344\223\002\234\001\"F/v2/{placemen"
+ + "t=projects/*/locations/*/catalogs/*/plac"
+ + "ements/*}:predict:\001*ZO\"J/v2/{placement=p"
+ + "rojects/*/locations/*/catalogs/*/serving"
+ + "Configs/*}:predict:\001*\032I\312A\025retail.googlea"
+ + "pis.com\322A.https://www.googleapis.com/aut"
+ + "h/cloud-platformB\301\001\n\032com.google.cloud.re"
+ + "tail.v2B\026PredictionServiceProtoP\001Z2cloud"
+ + ".google.com/go/retail/apiv2/retailpb;ret"
+ + "ailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312"
+ + "\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud"
+ + "::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductProto.java
index af50b1e2a5a5..322401873af2 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductProto.java
@@ -53,58 +53,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\036google/protobuf/duration.proto\032 google/"
+ "protobuf/field_mask.proto\032\037google/protob"
+ "uf/timestamp.proto\032\036google/protobuf/wrap"
- + "pers.proto\"\342\r\n\007Product\0221\n\013expire_time\030\020 "
- + "\001(\0132\032.google.protobuf.TimestampH\000\022.\n\003ttl"
- + "\030\021 \001(\0132\031.google.protobuf.DurationB\004\342A\001\004H"
- + "\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\020\n\002id\030\002 \001(\tB\004\342A\001\005\022"
- + "8\n\004type\030\003 \001(\0162$.google.cloud.retail.v2.P"
- + "roduct.TypeB\004\342A\001\005\022\032\n\022primary_product_id\030"
- + "\004 \001(\t\022\035\n\025collection_member_ids\030\005 \003(\t\022\014\n\004"
- + "gtin\030\006 \001(\t\022\022\n\ncategories\030\007 \003(\t\022\023\n\005title\030"
- + "\010 \001(\tB\004\342A\001\002\022\016\n\006brands\030\t \003(\t\022\023\n\013descripti"
- + "on\030\n \001(\t\022\025\n\rlanguage_code\030\013 \001(\t\022C\n\nattri"
- + "butes\030\014 \003(\0132/.google.cloud.retail.v2.Pro"
- + "duct.AttributesEntry\022\014\n\004tags\030\r \003(\t\0225\n\npr"
- + "ice_info\030\016 \001(\0132!.google.cloud.retail.v2."
- + "PriceInfo\022.\n\006rating\030\017 \001(\0132\036.google.cloud"
- + ".retail.v2.Rating\0222\n\016available_time\030\022 \001("
- + "\0132\032.google.protobuf.Timestamp\022B\n\014availab"
- + "ility\030\023 \001(\0162,.google.cloud.retail.v2.Pro"
- + "duct.Availability\0227\n\022available_quantity\030"
- + "\024 \001(\0132\033.google.protobuf.Int32Value\022A\n\020fu"
- + "lfillment_info\030\025 \003(\0132\'.google.cloud.reta"
- + "il.v2.FulfillmentInfo\022\013\n\003uri\030\026 \001(\t\022-\n\006im"
- + "ages\030\027 \003(\0132\035.google.cloud.retail.v2.Imag"
- + "e\0222\n\010audience\030\030 \001(\0132 .google.cloud.retai"
- + "l.v2.Audience\0225\n\ncolor_info\030\031 \001(\0132!.goog"
- + "le.cloud.retail.v2.ColorInfo\022\r\n\005sizes\030\032 "
- + "\003(\t\022\021\n\tmaterials\030\033 \003(\t\022\020\n\010patterns\030\034 \003(\t"
- + "\022\022\n\nconditions\030\035 \003(\t\0225\n\npromotions\030\" \003(\013"
- + "2!.google.cloud.retail.v2.Promotion\0220\n\014p"
- + "ublish_time\030! \001(\0132\032.google.protobuf.Time"
- + "stamp\022:\n\022retrievable_fields\030\036 \001(\0132\032.goog"
- + "le.protobuf.FieldMaskB\002\030\001\0227\n\010variants\030\037 "
- + "\003(\0132\037.google.cloud.retail.v2.ProductB\004\342A"
- + "\001\003\022G\n\021local_inventories\030# \003(\0132&.google.c"
- + "loud.retail.v2.LocalInventoryB\004\342A\001\003\032Z\n\017A"
- + "ttributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001"
- + "(\0132\'.google.cloud.retail.v2.CustomAttrib"
- + "ute:\0028\001\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n"
- + "\007PRIMARY\020\001\022\013\n\007VARIANT\020\002\022\016\n\nCOLLECTION\020\003\""
- + "i\n\014Availability\022\034\n\030AVAILABILITY_UNSPECIF"
- + "IED\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\014\n"
- + "\010PREORDER\020\003\022\r\n\tBACKORDER\020\004:\204\001\352A\200\001\n\035retai"
- + "l.googleapis.com/Product\022_projects/{proj"
- + "ect}/locations/{location}/catalogs/{cata"
- + "log}/branches/{branch}/products/{product"
- + "}B\014\n\nexpirationB\246\002\n\032com.google.cloud.ret"
- + "ail.v2B\014ProductProtoP\001Z2cloud.google.com"
- + "/go/retail/apiv2/retailpb;retailpb\242\002\006RET"
- + "AIL\252\002\026Google.Cloud.Retail.V2\312\002\026Google\\Cl"
- + "oud\\Retail\\V2\352\002\031Google::Cloud::Retail::V"
- + "2\352Al\n\034retail.googleapis.com/Branch\022Lproj"
- + "ects/{project}/locations/{location}/cata"
- + "logs/{catalog}/branches/{branch}b\006proto3"
+ + "pers.proto\"\333\r\n\007Product\0221\n\013expire_time\030\020 "
+ + "\001(\0132\032.google.protobuf.TimestampH\000\022-\n\003ttl"
+ + "\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\004H\000"
+ + "\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\017\n\002id\030\002 \001(\tB\003\340A\005\0227\n\004"
+ + "type\030\003 \001(\0162$.google.cloud.retail.v2.Prod"
+ + "uct.TypeB\003\340A\005\022\032\n\022primary_product_id\030\004 \001("
+ + "\t\022\035\n\025collection_member_ids\030\005 \003(\t\022\014\n\004gtin"
+ + "\030\006 \001(\t\022\022\n\ncategories\030\007 \003(\t\022\022\n\005title\030\010 \001("
+ + "\tB\003\340A\002\022\016\n\006brands\030\t \003(\t\022\023\n\013description\030\n "
+ + "\001(\t\022\025\n\rlanguage_code\030\013 \001(\t\022C\n\nattributes"
+ + "\030\014 \003(\0132/.google.cloud.retail.v2.Product."
+ + "AttributesEntry\022\014\n\004tags\030\r \003(\t\0225\n\nprice_i"
+ + "nfo\030\016 \001(\0132!.google.cloud.retail.v2.Price"
+ + "Info\022.\n\006rating\030\017 \001(\0132\036.google.cloud.reta"
+ + "il.v2.Rating\0222\n\016available_time\030\022 \001(\0132\032.g"
+ + "oogle.protobuf.Timestamp\022B\n\014availability"
+ + "\030\023 \001(\0162,.google.cloud.retail.v2.Product."
+ + "Availability\0227\n\022available_quantity\030\024 \001(\013"
+ + "2\033.google.protobuf.Int32Value\022A\n\020fulfill"
+ + "ment_info\030\025 \003(\0132\'.google.cloud.retail.v2"
+ + ".FulfillmentInfo\022\013\n\003uri\030\026 \001(\t\022-\n\006images\030"
+ + "\027 \003(\0132\035.google.cloud.retail.v2.Image\0222\n\010"
+ + "audience\030\030 \001(\0132 .google.cloud.retail.v2."
+ + "Audience\0225\n\ncolor_info\030\031 \001(\0132!.google.cl"
+ + "oud.retail.v2.ColorInfo\022\r\n\005sizes\030\032 \003(\t\022\021"
+ + "\n\tmaterials\030\033 \003(\t\022\020\n\010patterns\030\034 \003(\t\022\022\n\nc"
+ + "onditions\030\035 \003(\t\0225\n\npromotions\030\" \003(\0132!.go"
+ + "ogle.cloud.retail.v2.Promotion\0220\n\014publis"
+ + "h_time\030! \001(\0132\032.google.protobuf.Timestamp"
+ + "\022:\n\022retrievable_fields\030\036 \001(\0132\032.google.pr"
+ + "otobuf.FieldMaskB\002\030\001\0226\n\010variants\030\037 \003(\0132\037"
+ + ".google.cloud.retail.v2.ProductB\003\340A\003\022F\n\021"
+ + "local_inventories\030# \003(\0132&.google.cloud.r"
+ + "etail.v2.LocalInventoryB\003\340A\003\032Z\n\017Attribut"
+ + "esEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.go"
+ + "ogle.cloud.retail.v2.CustomAttribute:\0028\001"
+ + "\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007PRIMAR"
+ + "Y\020\001\022\013\n\007VARIANT\020\002\022\016\n\nCOLLECTION\020\003\"i\n\014Avai"
+ + "lability\022\034\n\030AVAILABILITY_UNSPECIFIED\020\000\022\014"
+ + "\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\014\n\010PREORD"
+ + "ER\020\003\022\r\n\tBACKORDER\020\004:\204\001\352A\200\001\n\035retail.googl"
+ + "eapis.com/Product\022_projects/{project}/lo"
+ + "cations/{location}/catalogs/{catalog}/br"
+ + "anches/{branch}/products/{product}B\014\n\nex"
+ + "pirationB\246\002\n\032com.google.cloud.retail.v2B"
+ + "\014ProductProtoP\001Z2cloud.google.com/go/ret"
+ + "ail/apiv2/retailpb;retailpb\242\002\006RETAIL\252\002\026G"
+ + "oogle.Cloud.Retail.V2\312\002\026Google\\Cloud\\Ret"
+ + "ail\\V2\352\002\031Google::Cloud::Retail::V2\352Al\n\034r"
+ + "etail.googleapis.com/Branch\022Lprojects/{p"
+ + "roject}/locations/{location}/catalogs/{c"
+ + "atalog}/branches/{branch}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
index dcf64bed59de..c8ad7a61f144 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
@@ -131,141 +131,140 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/retail/v2/product.proto\032#google/longrun"
+ "ning/operations.proto\032\033google/protobuf/e"
+ "mpty.proto\032 google/protobuf/field_mask.p"
- + "roto\032\037google/protobuf/timestamp.proto\"\237\001"
- + "\n\024CreateProductRequest\0225\n\006parent\030\001 \001(\tB%"
- + "\342A\001\002\372A\036\n\034retail.googleapis.com/Branch\0226\n"
- + "\007product\030\002 \001(\0132\037.google.cloud.retail.v2."
- + "ProductB\004\342A\001\002\022\030\n\nproduct_id\030\003 \001(\tB\004\342A\001\002\""
- + "I\n\021GetProductRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002"
- + "\372A\037\n\035retail.googleapis.com/Product\"\226\001\n\024U"
- + "pdateProductRequest\0226\n\007product\030\001 \001(\0132\037.g"
- + "oogle.cloud.retail.v2.ProductB\004\342A\001\002\022/\n\013u"
- + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
- + "Mask\022\025\n\rallow_missing\030\003 \001(\010\"L\n\024DeletePro"
- + "ductRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035reta"
- + "il.googleapis.com/Product\"\262\001\n\023ListProduc"
- + "tsRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034reta"
- + "il.googleapis.com/Branch\022\021\n\tpage_size\030\002 "
- + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022"
- + "-\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fie"
- + "ldMask\"b\n\024ListProductsResponse\0221\n\010produc"
- + "ts\030\001 \003(\0132\037.google.cloud.retail.v2.Produc"
- + "t\022\027\n\017next_page_token\030\002 \001(\t\"\302\001\n\023SetInvent"
- + "oryRequest\0228\n\tinventory\030\001 \001(\0132\037.google.c"
- + "loud.retail.v2.ProductB\004\342A\001\002\022,\n\010set_mask"
- + "\030\002 \001(\0132\032.google.protobuf.FieldMask\022,\n\010se"
- + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp"
- + "\022\025\n\rallow_missing\030\004 \001(\010\"\026\n\024SetInventoryM"
- + "etadata\"\026\n\024SetInventoryResponse\"\310\001\n\033AddF"
- + "ulfillmentPlacesRequest\0227\n\007product\030\001 \001(\t"
- + "B&\342A\001\002\372A\037\n\035retail.googleapis.com/Product"
- + "\022\022\n\004type\030\002 \001(\tB\004\342A\001\002\022\027\n\tplace_ids\030\003 \003(\tB"
- + "\004\342A\001\002\022,\n\010add_time\030\004 \001(\0132\032.google.protobu"
- + "f.Timestamp\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034Ad"
- + "dFulfillmentPlacesMetadata\"\036\n\034AddFulfill"
- + "mentPlacesResponse\"\221\002\n\032AddLocalInventori"
- + "esRequest\0227\n\007product\030\001 \001(\tB&\342A\001\002\372A\037\n\035ret"
- + "ail.googleapis.com/Product\022G\n\021local_inve"
- + "ntories\030\002 \003(\0132&.google.cloud.retail.v2.L"
- + "ocalInventoryB\004\342A\001\002\022,\n\010add_mask\030\004 \001(\0132\032."
- + "google.protobuf.FieldMask\022,\n\010add_time\030\005 "
- + "\001(\0132\032.google.protobuf.Timestamp\022\025\n\rallow"
- + "_missing\030\006 \001(\010\"\035\n\033AddLocalInventoriesMet"
- + "adata\"\035\n\033AddLocalInventoriesResponse\"\271\001\n"
- + "\035RemoveLocalInventoriesRequest\0227\n\007produc"
- + "t\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/"
- + "Product\022\027\n\tplace_ids\030\002 \003(\tB\004\342A\001\002\022/\n\013remo"
- + "ve_time\030\005 \001(\0132\032.google.protobuf.Timestam"
- + "p\022\025\n\rallow_missing\030\003 \001(\010\" \n\036RemoveLocalI"
- + "nventoriesMetadata\" \n\036RemoveLocalInvento"
- + "riesResponse\"\316\001\n\036RemoveFulfillmentPlaces"
- + "Request\0227\n\007product\030\001 \001(\tB&\342A\001\002\372A\037\n\035retai"
- + "l.googleapis.com/Product\022\022\n\004type\030\002 \001(\tB\004"
- + "\342A\001\002\022\027\n\tplace_ids\030\003 \003(\tB\004\342A\001\002\022/\n\013remove_"
- + "time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\025"
- + "\n\rallow_missing\030\005 \001(\010\"!\n\037RemoveFulfillme"
- + "ntPlacesMetadata\"!\n\037RemoveFulfillmentPla"
- + "cesResponse2\256\027\n\016ProductService\022\317\001\n\rCreat"
- + "eProduct\022,.google.cloud.retail.v2.Create"
+ + "roto\032\037google/protobuf/timestamp.proto\"\234\001"
+ + "\n\024CreateProductRequest\0224\n\006parent\030\001 \001(\tB$"
+ + "\340A\002\372A\036\n\034retail.googleapis.com/Branch\0225\n\007"
+ + "product\030\002 \001(\0132\037.google.cloud.retail.v2.P"
+ + "roductB\003\340A\002\022\027\n\nproduct_id\030\003 \001(\tB\003\340A\002\"H\n\021"
+ + "GetProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n"
+ + "\035retail.googleapis.com/Product\"\225\001\n\024Updat"
+ + "eProductRequest\0225\n\007product\030\001 \001(\0132\037.googl"
+ + "e.cloud.retail.v2.ProductB\003\340A\002\022/\n\013update"
+ + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\022"
+ + "\025\n\rallow_missing\030\003 \001(\010\"K\n\024DeleteProductR"
+ + "equest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail.goo"
+ + "gleapis.com/Product\"\261\001\n\023ListProductsRequ"
+ + "est\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail.goog"
+ + "leapis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
+ + "page_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread"
+ + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\""
+ + "b\n\024ListProductsResponse\0221\n\010products\030\001 \003("
+ + "\0132\037.google.cloud.retail.v2.Product\022\027\n\017ne"
+ + "xt_page_token\030\002 \001(\t\"\301\001\n\023SetInventoryRequ"
+ + "est\0227\n\tinventory\030\001 \001(\0132\037.google.cloud.re"
+ + "tail.v2.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001(\0132\032"
+ + ".google.protobuf.FieldMask\022,\n\010set_time\030\003"
+ + " \001(\0132\032.google.protobuf.Timestamp\022\025\n\rallo"
+ + "w_missing\030\004 \001(\010\"\026\n\024SetInventoryMetadata\""
+ + "\026\n\024SetInventoryResponse\"\305\001\n\033AddFulfillme"
+ + "ntPlacesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037"
+ + "\n\035retail.googleapis.com/Product\022\021\n\004type\030"
+ + "\002 \001(\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n\010ad"
+ + "d_time\030\004 \001(\0132\032.google.protobuf.Timestamp"
+ + "\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034AddFulfillmen"
+ + "tPlacesMetadata\"\036\n\034AddFulfillmentPlacesR"
+ + "esponse\"\217\002\n\032AddLocalInventoriesRequest\0226"
+ + "\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap"
+ + "is.com/Product\022F\n\021local_inventories\030\002 \003("
+ + "\0132&.google.cloud.retail.v2.LocalInventor"
+ + "yB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google.protob"
+ + "uf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032.google."
+ + "protobuf.Timestamp\022\025\n\rallow_missing\030\006 \001("
+ + "\010\"\035\n\033AddLocalInventoriesMetadata\"\035\n\033AddL"
+ + "ocalInventoriesResponse\"\267\001\n\035RemoveLocalI"
+ + "nventoriesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372"
+ + "A\037\n\035retail.googleapis.com/Product\022\026\n\tpla"
+ + "ce_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030\005 \001(\0132\032"
+ + ".google.protobuf.Timestamp\022\025\n\rallow_miss"
+ + "ing\030\003 \001(\010\" \n\036RemoveLocalInventoriesMetad"
+ + "ata\" \n\036RemoveLocalInventoriesResponse\"\313\001"
+ + "\n\036RemoveFulfillmentPlacesRequest\0226\n\007prod"
+ + "uct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com"
+ + "/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tplace_ids"
+ + "\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\022\025\n\rallow_missing\030\005 "
+ + "\001(\010\"!\n\037RemoveFulfillmentPlacesMetadata\"!"
+ + "\n\037RemoveFulfillmentPlacesResponse2\256\027\n\016Pr"
+ + "oductService\022\317\001\n\rCreateProduct\022,.google."
+ + "cloud.retail.v2.CreateProductRequest\032\037.g"
+ + "oogle.cloud.retail.v2.Product\"o\332A\031parent"
+ + ",product,product_id\202\323\344\223\002M\"B/v2/{parent=p"
+ + "rojects/*/locations/*/catalogs/*/branche"
+ + "s/*}/products:\007product\022\254\001\n\nGetProduct\022)."
+ + "google.cloud.retail.v2.GetProductRequest"
+ + "\032\037.google.cloud.retail.v2.Product\"R\332A\004na"
+ + "me\202\323\344\223\002E\022C/v2/{name=projects/*/locations"
+ + "/*/catalogs/*/branches/*/products/**}\022\276\001"
+ + "\n\014ListProducts\022+.google.cloud.retail.v2."
+ + "ListProductsRequest\032,.google.cloud.retai"
+ + "l.v2.ListProductsResponse\"S\332A\006parent\202\323\344\223"
+ + "\002D\022B/v2/{parent=projects/*/locations/*/c"
+ + "atalogs/*/branches/*}/products\022\322\001\n\rUpdat"
+ + "eProduct\022,.google.cloud.retail.v2.Update"
+ "ProductRequest\032\037.google.cloud.retail.v2."
- + "Product\"o\332A\031parent,product,product_id\202\323\344"
- + "\223\002M\"B/v2/{parent=projects/*/locations/*/"
- + "catalogs/*/branches/*}/products:\007product"
- + "\022\254\001\n\nGetProduct\022).google.cloud.retail.v2"
- + ".GetProductRequest\032\037.google.cloud.retail"
- + ".v2.Product\"R\332A\004name\202\323\344\223\002E\022C/v2/{name=pr"
+ + "Product\"r\332A\023product,update_mask\202\323\344\223\002V2K/"
+ + "v2/{product.name=projects/*/locations/*/"
+ + "catalogs/*/branches/*/products/**}:\007prod"
+ + "uct\022\251\001\n\rDeleteProduct\022,.google.cloud.ret"
+ + "ail.v2.DeleteProductRequest\032\026.google.pro"
+ + "tobuf.Empty\"R\332A\004name\202\323\344\223\002E*C/v2/{name=pr"
+ "ojects/*/locations/*/catalogs/*/branches"
- + "/*/products/**}\022\276\001\n\014ListProducts\022+.googl"
- + "e.cloud.retail.v2.ListProductsRequest\032,."
- + "google.cloud.retail.v2.ListProductsRespo"
- + "nse\"S\332A\006parent\202\323\344\223\002D\022B/v2/{parent=projec"
- + "ts/*/locations/*/catalogs/*/branches/*}/"
- + "products\022\322\001\n\rUpdateProduct\022,.google.clou"
- + "d.retail.v2.UpdateProductRequest\032\037.googl"
- + "e.cloud.retail.v2.Product\"r\332A\023product,up"
- + "date_mask\202\323\344\223\002V2K/v2/{product.name=proje"
- + "cts/*/locations/*/catalogs/*/branches/*/"
- + "products/**}:\007product\022\251\001\n\rDeleteProduct\022"
- + ",.google.cloud.retail.v2.DeleteProductRe"
- + "quest\032\026.google.protobuf.Empty\"R\332A\004name\202\323"
- + "\344\223\002E*C/v2/{name=projects/*/locations/*/c"
- + "atalogs/*/branches/*/products/**}\022\216\002\n\016Im"
- + "portProducts\022-.google.cloud.retail.v2.Im"
- + "portProductsRequest\032\035.google.longrunning"
- + ".Operation\"\255\001\312AV\n-google.cloud.retail.v2"
- + ".ImportProductsResponse\022%google.cloud.re"
- + "tail.v2.ImportMetadata\202\323\344\223\002N\"I/v2/{paren"
- + "t=projects/*/locations/*/catalogs/*/bran"
- + "ches/*}/products:import:\001*\022\264\002\n\014SetInvent"
- + "ory\022+.google.cloud.retail.v2.SetInventor"
- + "yRequest\032\035.google.longrunning.Operation\""
- + "\327\001\312AZ\n+google.cloud.retail.v2.SetInvento"
- + "ryResponse\022+google.cloud.retail.v2.SetIn"
- + "ventoryMetadata\332A\022inventory,set_mask\202\323\344\223"
- + "\002_\"Z/v2/{inventory.name=projects/*/locat"
- + "ions/*/catalogs/*/branches/*/products/**"
- + "}:setInventory:\001*\022\312\002\n\024AddFulfillmentPlac"
- + "es\0223.google.cloud.retail.v2.AddFulfillme"
- + "ntPlacesRequest\032\035.google.longrunning.Ope"
- + "ration\"\335\001\312Aj\n3google.cloud.retail.v2.Add"
- + "FulfillmentPlacesResponse\0223google.cloud."
- + "retail.v2.AddFulfillmentPlacesMetadata\332A"
- + "\007product\202\323\344\223\002`\"[/v2/{product=projects/*/"
- + "locations/*/catalogs/*/branches/*/produc"
- + "ts/**}:addFulfillmentPlaces:\001*\022\331\002\n\027Remov"
- + "eFulfillmentPlaces\0226.google.cloud.retail"
- + ".v2.RemoveFulfillmentPlacesRequest\032\035.goo"
- + "gle.longrunning.Operation\"\346\001\312Ap\n6google."
- + "cloud.retail.v2.RemoveFulfillmentPlacesR"
- + "esponse\0226google.cloud.retail.v2.RemoveFu"
- + "lfillmentPlacesMetadata\332A\007product\202\323\344\223\002c\""
- + "^/v2/{product=projects/*/locations/*/cat"
- + "alogs/*/branches/*/products/**}:removeFu"
- + "lfillmentPlaces:\001*\022\305\002\n\023AddLocalInventori"
- + "es\0222.google.cloud.retail.v2.AddLocalInve"
- + "ntoriesRequest\032\035.google.longrunning.Oper"
- + "ation\"\332\001\312Ah\n2google.cloud.retail.v2.AddL"
- + "ocalInventoriesResponse\0222google.cloud.re"
- + "tail.v2.AddLocalInventoriesMetadata\332A\007pr"
- + "oduct\202\323\344\223\002_\"Z/v2/{product=projects/*/loc"
- + "ations/*/catalogs/*/branches/*/products/"
- + "**}:addLocalInventories:\001*\022\324\002\n\026RemoveLoc"
- + "alInventories\0225.google.cloud.retail.v2.R"
- + "emoveLocalInventoriesRequest\032\035.google.lo"
- + "ngrunning.Operation\"\343\001\312An\n5google.cloud."
- + "retail.v2.RemoveLocalInventoriesResponse"
- + "\0225google.cloud.retail.v2.RemoveLocalInve"
- + "ntoriesMetadata\332A\007product\202\323\344\223\002b\"]/v2/{pr"
- + "oduct=projects/*/locations/*/catalogs/*/"
- + "branches/*/products/**}:removeLocalInven"
- + "tories:\001*\032I\312A\025retail.googleapis.com\322A.ht"
- + "tps://www.googleapis.com/auth/cloud-plat"
- + "formB\276\001\n\032com.google.cloud.retail.v2B\023Pro"
- + "ductServiceProtoP\001Z2cloud.google.com/go/"
- + "retail/apiv2/retailpb;retailpb\242\002\006RETAIL\252"
- + "\002\026Google.Cloud.Retail.V2\312\002\026Google\\Cloud\\"
- + "Retail\\V2\352\002\031Google::Cloud::Retail::V2b\006p"
- + "roto3"
+ + "/*/products/**}\022\216\002\n\016ImportProducts\022-.goo"
+ + "gle.cloud.retail.v2.ImportProductsReques"
+ + "t\032\035.google.longrunning.Operation\"\255\001\312AV\n-"
+ + "google.cloud.retail.v2.ImportProductsRes"
+ + "ponse\022%google.cloud.retail.v2.ImportMeta"
+ + "data\202\323\344\223\002N\"I/v2/{parent=projects/*/locat"
+ + "ions/*/catalogs/*/branches/*}/products:i"
+ + "mport:\001*\022\264\002\n\014SetInventory\022+.google.cloud"
+ + ".retail.v2.SetInventoryRequest\032\035.google."
+ + "longrunning.Operation\"\327\001\312AZ\n+google.clou"
+ + "d.retail.v2.SetInventoryResponse\022+google"
+ + ".cloud.retail.v2.SetInventoryMetadata\332A\022"
+ + "inventory,set_mask\202\323\344\223\002_\"Z/v2/{inventory"
+ + ".name=projects/*/locations/*/catalogs/*/"
+ + "branches/*/products/**}:setInventory:\001*\022"
+ + "\312\002\n\024AddFulfillmentPlaces\0223.google.cloud."
+ + "retail.v2.AddFulfillmentPlacesRequest\032\035."
+ + "google.longrunning.Operation\"\335\001\312Aj\n3goog"
+ + "le.cloud.retail.v2.AddFulfillmentPlacesR"
+ + "esponse\0223google.cloud.retail.v2.AddFulfi"
+ + "llmentPlacesMetadata\332A\007product\202\323\344\223\002`\"[/v"
+ + "2/{product=projects/*/locations/*/catalo"
+ + "gs/*/branches/*/products/**}:addFulfillm"
+ + "entPlaces:\001*\022\331\002\n\027RemoveFulfillmentPlaces"
+ + "\0226.google.cloud.retail.v2.RemoveFulfillm"
+ + "entPlacesRequest\032\035.google.longrunning.Op"
+ + "eration\"\346\001\312Ap\n6google.cloud.retail.v2.Re"
+ + "moveFulfillmentPlacesResponse\0226google.cl"
+ + "oud.retail.v2.RemoveFulfillmentPlacesMet"
+ + "adata\332A\007product\202\323\344\223\002c\"^/v2/{product=proj"
+ + "ects/*/locations/*/catalogs/*/branches/*"
+ + "/products/**}:removeFulfillmentPlaces:\001*"
+ + "\022\305\002\n\023AddLocalInventories\0222.google.cloud."
+ + "retail.v2.AddLocalInventoriesRequest\032\035.g"
+ + "oogle.longrunning.Operation\"\332\001\312Ah\n2googl"
+ + "e.cloud.retail.v2.AddLocalInventoriesRes"
+ + "ponse\0222google.cloud.retail.v2.AddLocalIn"
+ + "ventoriesMetadata\332A\007product\202\323\344\223\002_\"Z/v2/{"
+ + "product=projects/*/locations/*/catalogs/"
+ + "*/branches/*/products/**}:addLocalInvent"
+ + "ories:\001*\022\324\002\n\026RemoveLocalInventories\0225.go"
+ + "ogle.cloud.retail.v2.RemoveLocalInventor"
+ + "iesRequest\032\035.google.longrunning.Operatio"
+ + "n\"\343\001\312An\n5google.cloud.retail.v2.RemoveLo"
+ + "calInventoriesResponse\0225google.cloud.ret"
+ + "ail.v2.RemoveLocalInventoriesMetadata\332A\007"
+ + "product\202\323\344\223\002b\"]/v2/{product=projects/*/l"
+ + "ocations/*/catalogs/*/branches/*/product"
+ + "s/**}:removeLocalInventories:\001*\032I\312A\025reta"
+ + "il.googleapis.com\322A.https://www.googleap"
+ + "is.com/auth/cloud-platformB\276\001\n\032com.googl"
+ + "e.cloud.retail.v2B\023ProductServiceProtoP\001"
+ + "Z2cloud.google.com/go/retail/apiv2/retai"
+ + "lpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Ret"
+ + "ail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google"
+ + "::Cloud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java
index 80ab944e1d8d..f646cddc1c1a 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java
@@ -52,16 +52,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n)google/cloud/retail/v2/purge_config.pr"
+ "oto\022\026google.cloud.retail.v2\032\037google/api/"
+ "field_behavior.proto\032\031google/api/resourc"
- + "e.proto\"\017\n\rPurgeMetadata\"u\n\026PurgeUserEve"
- + "ntsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035ret"
- + "ail.googleapis.com/Catalog\022\024\n\006filter\030\002 \001"
- + "(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"6\n\027PurgeUserEven"
- + "tsResponse\022\033\n\023purged_events_count\030\001 \001(\003B"
- + "\273\001\n\032com.google.cloud.retail.v2B\020PurgeCon"
- + "figProtoP\001Z2cloud.google.com/go/retail/a"
- + "piv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Google"
- + ".Cloud.Retail.V2\312\002\026Google\\Cloud\\Retail\\V"
- + "2\352\002\031Google::Cloud::Retail::V2b\006proto3"
+ + "e.proto\"\017\n\rPurgeMetadata\"s\n\026PurgeUserEve"
+ + "ntsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035reta"
+ + "il.googleapis.com/Catalog\022\023\n\006filter\030\002 \001("
+ + "\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"6\n\027PurgeUserEvents"
+ + "Response\022\033\n\023purged_events_count\030\001 \001(\003B\273\001"
+ + "\n\032com.google.cloud.retail.v2B\020PurgeConfi"
+ + "gProtoP\001Z2cloud.google.com/go/retail/api"
+ + "v2/retailpb;retailpb\242\002\006RETAIL\252\002\026Google.C"
+ + "loud.Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352"
+ + "\002\031Google::Cloud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceProto.java
index d0c6c5322254..2e69e6379ffa 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceProto.java
@@ -121,131 +121,131 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "etail/v2/common.proto\032$google/cloud/reta"
+ "il/v2/product.proto\032 google/protobuf/fie"
+ "ld_mask.proto\032\034google/protobuf/struct.pr"
- + "oto\"\302\023\n\rSearchRequest\022\027\n\tplacement\030\001 \001(\t"
- + "B\004\342A\001\002\0221\n\006branch\030\002 \001(\tB!\372A\036\n\034retail.goog"
- + "leapis.com/Branch\022\r\n\005query\030\003 \001(\t\022\030\n\nvisi"
- + "tor_id\030\004 \001(\tB\004\342A\001\002\0223\n\tuser_info\030\005 \001(\0132 ."
- + "google.cloud.retail.v2.UserInfo\022\021\n\tpage_"
- + "size\030\007 \001(\005\022\022\n\npage_token\030\010 \001(\t\022\016\n\006offset"
- + "\030\t \001(\005\022\016\n\006filter\030\n \001(\t\022\030\n\020canonical_filt"
- + "er\030\034 \001(\t\022\020\n\010order_by\030\013 \001(\t\022D\n\013facet_spec"
- + "s\030\014 \003(\0132/.google.cloud.retail.v2.SearchR"
- + "equest.FacetSpec\022V\n\022dynamic_facet_spec\030\025"
- + " \001(\01326.google.cloud.retail.v2.SearchRequ"
- + "est.DynamicFacetSpecB\002\030\001\022C\n\nboost_spec\030\r"
- + " \001(\0132/.google.cloud.retail.v2.SearchRequ"
- + "est.BoostSpec\022V\n\024query_expansion_spec\030\016 "
- + "\001(\01328.google.cloud.retail.v2.SearchReque"
- + "st.QueryExpansionSpec\022\033\n\023variant_rollup_"
- + "keys\030\021 \003(\t\022\027\n\017page_categories\030\027 \003(\t\022E\n\013s"
- + "earch_mode\030\037 \001(\01620.google.cloud.retail.v"
- + "2.SearchRequest.SearchMode\022W\n\024personaliz"
- + "ation_spec\030 \001(\01329.google.cloud.retail.v"
- + "2.SearchRequest.PersonalizationSpec\022A\n\006l"
- + "abels\030\" \003(\01321.google.cloud.retail.v2.Sea"
- + "rchRequest.LabelsEntry\022]\n\025spell_correcti"
- + "on_spec\030# \001(\01329.google.cloud.retail.v2.S"
- + "earchRequest.SpellCorrectionSpecH\000\210\001\001\022\016\n"
- + "\006entity\030& \001(\t\032\223\003\n\tFacetSpec\022Q\n\tfacet_key"
- + "\030\001 \001(\01328.google.cloud.retail.v2.SearchRe"
- + "quest.FacetSpec.FacetKeyB\004\342A\001\002\022\r\n\005limit\030"
- + "\002 \001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n\027e"
- + "nable_dynamic_position\030\004 \001(\010\032\344\001\n\010FacetKe"
- + "y\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\0223\n\tintervals\030\002 \003(\0132"
- + " .google.cloud.retail.v2.Interval\022\031\n\021res"
- + "tricted_values\030\003 \003(\t\022\020\n\010prefixes\030\010 \003(\t\022\020"
- + "\n\010contains\030\t \003(\t\022\030\n\020case_insensitive\030\n \001"
- + "(\010\022\020\n\010order_by\030\004 \001(\t\022\r\n\005query\030\005 \001(\t\022\026\n\016r"
- + "eturn_min_max\030\013 \001(\010\032\226\001\n\020DynamicFacetSpec"
- + "\022I\n\004mode\030\001 \001(\0162;.google.cloud.retail.v2."
- + "SearchRequest.DynamicFacetSpec.Mode\"7\n\004M"
- + "ode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022"
- + "\013\n\007ENABLED\020\002\032\356\001\n\tBoostSpec\022a\n\025condition_"
- + "boost_specs\030\001 \003(\0132B.google.cloud.retail."
- + "v2.SearchRequest.BoostSpec.ConditionBoos"
- + "tSpec\022\'\n\032skip_boost_spec_validation\030\002 \001("
- + "\010H\000\210\001\001\0326\n\022ConditionBoostSpec\022\021\n\tconditio"
- + "n\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002B\035\n\033_skip_boost_sp"
- + "ec_validation\032\313\001\n\022QueryExpansionSpec\022U\n\t"
- + "condition\030\001 \001(\0162B.google.cloud.retail.v2"
- + ".SearchRequest.QueryExpansionSpec.Condit"
- + "ion\022\036\n\026pin_unexpanded_results\030\002 \001(\010\">\n\tC"
- + "ondition\022\031\n\025CONDITION_UNSPECIFIED\020\000\022\014\n\010D"
- + "ISABLED\020\001\022\010\n\004AUTO\020\003\032\231\001\n\023PersonalizationS"
- + "pec\022L\n\004mode\030\001 \001(\0162>.google.cloud.retail."
- + "v2.SearchRequest.PersonalizationSpec.Mod"
- + "e\"4\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020"
- + "\001\022\014\n\010DISABLED\020\002\032\240\001\n\023SpellCorrectionSpec\022"
+ + "oto\"\276\023\n\rSearchRequest\022\026\n\tplacement\030\001 \001(\t"
+ + "B\003\340A\002\0221\n\006branch\030\002 \001(\tB!\372A\036\n\034retail.googl"
+ + "eapis.com/Branch\022\r\n\005query\030\003 \001(\t\022\027\n\nvisit"
+ + "or_id\030\004 \001(\tB\003\340A\002\0223\n\tuser_info\030\005 \001(\0132 .go"
+ + "ogle.cloud.retail.v2.UserInfo\022\021\n\tpage_si"
+ + "ze\030\007 \001(\005\022\022\n\npage_token\030\010 \001(\t\022\016\n\006offset\030\t"
+ + " \001(\005\022\016\n\006filter\030\n \001(\t\022\030\n\020canonical_filter"
+ + "\030\034 \001(\t\022\020\n\010order_by\030\013 \001(\t\022D\n\013facet_specs\030"
+ + "\014 \003(\0132/.google.cloud.retail.v2.SearchReq"
+ + "uest.FacetSpec\022V\n\022dynamic_facet_spec\030\025 \001"
+ + "(\01326.google.cloud.retail.v2.SearchReques"
+ + "t.DynamicFacetSpecB\002\030\001\022C\n\nboost_spec\030\r \001"
+ + "(\0132/.google.cloud.retail.v2.SearchReques"
+ + "t.BoostSpec\022V\n\024query_expansion_spec\030\016 \001("
+ + "\01328.google.cloud.retail.v2.SearchRequest"
+ + ".QueryExpansionSpec\022\033\n\023variant_rollup_ke"
+ + "ys\030\021 \003(\t\022\027\n\017page_categories\030\027 \003(\t\022E\n\013sea"
+ + "rch_mode\030\037 \001(\01620.google.cloud.retail.v2."
+ + "SearchRequest.SearchMode\022W\n\024personalizat"
+ + "ion_spec\030 \001(\01329.google.cloud.retail.v2."
+ + "SearchRequest.PersonalizationSpec\022A\n\006lab"
+ + "els\030\" \003(\01321.google.cloud.retail.v2.Searc"
+ + "hRequest.LabelsEntry\022]\n\025spell_correction"
+ + "_spec\030# \001(\01329.google.cloud.retail.v2.Sea"
+ + "rchRequest.SpellCorrectionSpecH\000\210\001\001\022\016\n\006e"
+ + "ntity\030& \001(\t\032\221\003\n\tFacetSpec\022P\n\tfacet_key\030\001"
+ + " \001(\01328.google.cloud.retail.v2.SearchRequ"
+ + "est.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\027enab"
+ + "le_dynamic_position\030\004 \001(\010\032\343\001\n\010FacetKey\022\020"
+ + "\n\003key\030\001 \001(\tB\003\340A\002\0223\n\tintervals\030\002 \003(\0132 .go"
+ + "ogle.cloud.retail.v2.Interval\022\031\n\021restric"
+ + "ted_values\030\003 \003(\t\022\020\n\010prefixes\030\010 \003(\t\022\020\n\010co"
+ + "ntains\030\t \003(\t\022\030\n\020case_insensitive\030\n \001(\010\022\020"
+ + "\n\010order_by\030\004 \001(\t\022\r\n\005query\030\005 \001(\t\022\026\n\016retur"
+ + "n_min_max\030\013 \001(\010\032\226\001\n\020DynamicFacetSpec\022I\n\004"
+ + "mode\030\001 \001(\0162;.google.cloud.retail.v2.Sear"
+ + "chRequest.DynamicFacetSpec.Mode\"7\n\004Mode\022"
+ + "\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007E"
+ + "NABLED\020\002\032\356\001\n\tBoostSpec\022a\n\025condition_boos"
+ + "t_specs\030\001 \003(\0132B.google.cloud.retail.v2.S"
+ + "earchRequest.BoostSpec.ConditionBoostSpe"
+ + "c\022\'\n\032skip_boost_spec_validation\030\002 \001(\010H\000\210"
+ + "\001\001\0326\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 "
+ + "\001(\t\022\r\n\005boost\030\002 \001(\002B\035\n\033_skip_boost_spec_v"
+ + "alidation\032\313\001\n\022QueryExpansionSpec\022U\n\tcond"
+ + "ition\030\001 \001(\0162B.google.cloud.retail.v2.Sea"
+ + "rchRequest.QueryExpansionSpec.Condition\022"
+ + "\036\n\026pin_unexpanded_results\030\002 \001(\010\">\n\tCondi"
+ + "tion\022\031\n\025CONDITION_UNSPECIFIED\020\000\022\014\n\010DISAB"
+ + "LED\020\001\022\010\n\004AUTO\020\003\032\231\001\n\023PersonalizationSpec\022"
+ "L\n\004mode\030\001 \001(\0162>.google.cloud.retail.v2.S"
- + "earchRequest.SpellCorrectionSpec.Mode\";\n"
- + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTIO"
- + "N_ONLY\020\001\022\010\n\004AUTO\020\002\032-\n\013LabelsEntry\022\013\n\003key"
- + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nSearchMode\022"
- + "\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\027\n\023PRODUCT_"
- + "SEARCH_ONLY\020\001\022\027\n\023FACETED_SEARCH_ONLY\020\002B\030"
- + "\n\026_spell_correction_spec\"\232\013\n\016SearchRespo"
- + "nse\022D\n\007results\030\001 \003(\01323.google.cloud.reta"
- + "il.v2.SearchResponse.SearchResult\022<\n\006fac"
- + "ets\030\002 \003(\0132,.google.cloud.retail.v2.Searc"
- + "hResponse.Facet\022\022\n\ntotal_size\030\003 \001(\005\022\027\n\017c"
- + "orrected_query\030\004 \001(\t\022\031\n\021attribution_toke"
- + "n\030\005 \001(\t\022\027\n\017next_page_token\030\006 \001(\t\022W\n\024quer"
- + "y_expansion_info\030\007 \001(\01329.google.cloud.re"
- + "tail.v2.SearchResponse.QueryExpansionInf"
- + "o\022\024\n\014redirect_uri\030\n \001(\t\022\030\n\020applied_contr"
- + "ols\030\014 \003(\t\022i\n\035invalid_condition_boost_spe"
- + "cs\030\016 \003(\0132B.google.cloud.retail.v2.Search"
- + "Request.BoostSpec.ConditionBoostSpec\022?\n\017"
- + "experiment_info\030\021 \003(\0132&.google.cloud.ret"
- + "ail.v2.ExperimentInfo\032\221\004\n\014SearchResult\022\n"
- + "\n\002id\030\001 \001(\t\0220\n\007product\030\002 \001(\0132\037.google.clo"
- + "ud.retail.v2.Product\022\036\n\026matching_variant"
- + "_count\030\003 \001(\005\022o\n\027matching_variant_fields\030"
- + "\004 \003(\0132N.google.cloud.retail.v2.SearchRes"
- + "ponse.SearchResult.MatchingVariantFields"
- + "Entry\022k\n\025variant_rollup_values\030\005 \003(\0132L.g"
- + "oogle.cloud.retail.v2.SearchResponse.Sea"
- + "rchResult.VariantRollupValuesEntry\022\027\n\017pe"
- + "rsonal_labels\030\007 \003(\t\032X\n\032MatchingVariantFi"
- + "eldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032."
- + "google.protobuf.FieldMask:\0028\001\032R\n\030Variant"
- + "RollupValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030"
- + "\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\216\002\n\005Fa"
- + "cet\022\013\n\003key\030\001 \001(\t\022G\n\006values\030\002 \003(\01327.googl"
- + "e.cloud.retail.v2.SearchResponse.Facet.F"
- + "acetValue\022\025\n\rdynamic_facet\030\003 \001(\010\032\227\001\n\nFac"
- + "etValue\022\017\n\005value\030\001 \001(\tH\000\0224\n\010interval\030\002 \001"
- + "(\0132 .google.cloud.retail.v2.IntervalH\000\022\r"
- + "\n\005count\030\003 \001(\003\022\021\n\tmin_value\030\005 \001(\001\022\021\n\tmax_"
- + "value\030\006 \001(\001B\r\n\013facet_value\032I\n\022QueryExpan"
- + "sionInfo\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinn"
- + "ed_result_count\030\002 \001(\003\"\373\002\n\016ExperimentInfo"
- + "\022c\n\031serving_config_experiment\030\002 \001(\0132>.go"
- + "ogle.cloud.retail.v2.ExperimentInfo.Serv"
- + "ingConfigExperimentH\000\0229\n\nexperiment\030\001 \001("
- + "\tB%\372A\"\n retail.googleapis.com/Experiment"
- + "\032\261\001\n\027ServingConfigExperiment\022I\n\027original"
- + "_serving_config\030\001 \001(\tB(\372A%\n#retail.googl"
- + "eapis.com/ServingConfig\022K\n\031experiment_se"
- + "rving_config\030\002 \001(\tB(\372A%\n#retail.googleap"
- + "is.com/ServingConfigB\025\n\023experiment_metad"
- + "ata2\330\002\n\rSearchService\022\373\001\n\006Search\022%.googl"
- + "e.cloud.retail.v2.SearchRequest\032&.google"
- + ".cloud.retail.v2.SearchResponse\"\241\001\202\323\344\223\002\232"
- + "\001\"E/v2/{placement=projects/*/locations/*"
- + "/catalogs/*/placements/*}:search:\001*ZN\"I/"
+ + "earchRequest.PersonalizationSpec.Mode\"4\n"
+ + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\014\n"
+ + "\010DISABLED\020\002\032\240\001\n\023SpellCorrectionSpec\022L\n\004m"
+ + "ode\030\001 \001(\0162>.google.cloud.retail.v2.Searc"
+ + "hRequest.SpellCorrectionSpec.Mode\";\n\004Mod"
+ + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ON"
+ + "LY\020\001\022\010\n\004AUTO\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001"
+ + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nSearchMode\022\033\n\027S"
+ + "EARCH_MODE_UNSPECIFIED\020\000\022\027\n\023PRODUCT_SEAR"
+ + "CH_ONLY\020\001\022\027\n\023FACETED_SEARCH_ONLY\020\002B\030\n\026_s"
+ + "pell_correction_spec\"\232\013\n\016SearchResponse\022"
+ + "D\n\007results\030\001 \003(\01323.google.cloud.retail.v"
+ + "2.SearchResponse.SearchResult\022<\n\006facets\030"
+ + "\002 \003(\0132,.google.cloud.retail.v2.SearchRes"
+ + "ponse.Facet\022\022\n\ntotal_size\030\003 \001(\005\022\027\n\017corre"
+ + "cted_query\030\004 \001(\t\022\031\n\021attribution_token\030\005 "
+ + "\001(\t\022\027\n\017next_page_token\030\006 \001(\t\022W\n\024query_ex"
+ + "pansion_info\030\007 \001(\01329.google.cloud.retail"
+ + ".v2.SearchResponse.QueryExpansionInfo\022\024\n"
+ + "\014redirect_uri\030\n \001(\t\022\030\n\020applied_controls\030"
+ + "\014 \003(\t\022i\n\035invalid_condition_boost_specs\030\016"
+ + " \003(\0132B.google.cloud.retail.v2.SearchRequ"
+ + "est.BoostSpec.ConditionBoostSpec\022?\n\017expe"
+ + "riment_info\030\021 \003(\0132&.google.cloud.retail."
+ + "v2.ExperimentInfo\032\221\004\n\014SearchResult\022\n\n\002id"
+ + "\030\001 \001(\t\0220\n\007product\030\002 \001(\0132\037.google.cloud.r"
+ + "etail.v2.Product\022\036\n\026matching_variant_cou"
+ + "nt\030\003 \001(\005\022o\n\027matching_variant_fields\030\004 \003("
+ + "\0132N.google.cloud.retail.v2.SearchRespons"
+ + "e.SearchResult.MatchingVariantFieldsEntr"
+ + "y\022k\n\025variant_rollup_values\030\005 \003(\0132L.googl"
+ + "e.cloud.retail.v2.SearchResponse.SearchR"
+ + "esult.VariantRollupValuesEntry\022\027\n\017person"
+ + "al_labels\030\007 \003(\t\032X\n\032MatchingVariantFields"
+ + "Entry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.goog"
+ + "le.protobuf.FieldMask:\0028\001\032R\n\030VariantRoll"
+ + "upValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001("
+ + "\0132\026.google.protobuf.Value:\0028\001\032\216\002\n\005Facet\022"
+ + "\013\n\003key\030\001 \001(\t\022G\n\006values\030\002 \003(\01327.google.cl"
+ + "oud.retail.v2.SearchResponse.Facet.Facet"
+ + "Value\022\025\n\rdynamic_facet\030\003 \001(\010\032\227\001\n\nFacetVa"
+ + "lue\022\017\n\005value\030\001 \001(\tH\000\0224\n\010interval\030\002 \001(\0132 "
+ + ".google.cloud.retail.v2.IntervalH\000\022\r\n\005co"
+ + "unt\030\003 \001(\003\022\021\n\tmin_value\030\005 \001(\001\022\021\n\tmax_valu"
+ + "e\030\006 \001(\001B\r\n\013facet_value\032I\n\022QueryExpansion"
+ + "Info\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinned_r"
+ + "esult_count\030\002 \001(\003\"\373\002\n\016ExperimentInfo\022c\n\031"
+ + "serving_config_experiment\030\002 \001(\0132>.google"
+ + ".cloud.retail.v2.ExperimentInfo.ServingC"
+ + "onfigExperimentH\000\0229\n\nexperiment\030\001 \001(\tB%\372"
+ + "A\"\n retail.googleapis.com/Experiment\032\261\001\n"
+ + "\027ServingConfigExperiment\022I\n\027original_ser"
+ + "ving_config\030\001 \001(\tB(\372A%\n#retail.googleapi"
+ + "s.com/ServingConfig\022K\n\031experiment_servin"
+ + "g_config\030\002 \001(\tB(\372A%\n#retail.googleapis.c"
+ + "om/ServingConfigB\025\n\023experiment_metadata2"
+ + "\330\002\n\rSearchService\022\373\001\n\006Search\022%.google.cl"
+ + "oud.retail.v2.SearchRequest\032&.google.clo"
+ + "ud.retail.v2.SearchResponse\"\241\001\202\323\344\223\002\232\001\"E/"
+ "v2/{placement=projects/*/locations/*/cat"
- + "alogs/*/servingConfigs/*}:search:\001*\032I\312A\025"
- + "retail.googleapis.com\322A.https://www.goog"
- + "leapis.com/auth/cloud-platformB\267\002\n\032com.g"
- + "oogle.cloud.retail.v2B\022SearchServiceProt"
- + "oP\001Z2cloud.google.com/go/retail/apiv2/re"
- + "tailpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud."
- + "Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Goo"
- + "gle::Cloud::Retail::V2\352Aw\n retail.google"
- + "apis.com/Experiment\022Sprojects/{project}/"
- + "locations/{location}/catalogs/{catalog}/"
- + "experiments/{experiment}b\006proto3"
+ + "alogs/*/placements/*}:search:\001*ZN\"I/v2/{"
+ + "placement=projects/*/locations/*/catalog"
+ + "s/*/servingConfigs/*}:search:\001*\032I\312A\025reta"
+ + "il.googleapis.com\322A.https://www.googleap"
+ + "is.com/auth/cloud-platformB\267\002\n\032com.googl"
+ + "e.cloud.retail.v2B\022SearchServiceProtoP\001Z"
+ + "2cloud.google.com/go/retail/apiv2/retail"
+ + "pb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Reta"
+ + "il.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google:"
+ + ":Cloud::Retail::V2\352Aw\n retail.googleapis"
+ + ".com/Experiment\022Sprojects/{project}/loca"
+ + "tions/{location}/catalogs/{catalog}/expe"
+ + "riments/{experiment}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java
index b0a9f3122c32..7e144e935b59 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java
@@ -46,37 +46,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "i/field_behavior.proto\032\031google/api/resou"
+ "rce.proto\032#google/cloud/retail/v2/common"
+ ".proto\032+google/cloud/retail/v2/search_se"
- + "rvice.proto\"\371\007\n\rServingConfig\022\022\n\004name\030\001 "
- + "\001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\020\n"
- + "\010model_id\030\003 \001(\t\022\035\n\025price_reranking_level"
- + "\030\004 \001(\t\022\031\n\021facet_control_ids\030\005 \003(\t\022R\n\022dyn"
- + "amic_facet_spec\030\006 \001(\01326.google.cloud.ret"
- + "ail.v2.SearchRequest.DynamicFacetSpec\022\031\n"
- + "\021boost_control_ids\030\007 \003(\t\022\032\n\022filter_contr"
- + "ol_ids\030\t \003(\t\022\034\n\024redirect_control_ids\030\n \003"
- + "(\t\022#\n\033twoway_synonyms_control_ids\030\022 \003(\t\022"
- + "#\n\033oneway_synonyms_control_ids\030\014 \003(\t\022$\n\034"
- + "do_not_associate_control_ids\030\r \003(\t\022\037\n\027re"
- + "placement_control_ids\030\016 \003(\t\022\032\n\022ignore_co"
- + "ntrol_ids\030\017 \003(\t\022\027\n\017diversity_level\030\010 \001(\t"
- + "\022K\n\016diversity_type\030\024 \001(\01623.google.cloud."
- + "retail.v2.ServingConfig.DiversityType\022$\n"
- + "\034enable_category_filter_level\030\020 \001(\t\022W\n\024p"
- + "ersonalization_spec\030\025 \001(\01329.google.cloud"
- + ".retail.v2.SearchRequest.Personalization"
- + "Spec\022C\n\016solution_types\030\023 \003(\0162$.google.cl"
- + "oud.retail.v2.SolutionTypeB\005\342A\002\002\005\"d\n\rDiv"
- + "ersityType\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED"
- + "\020\000\022\030\n\024RULE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRI"
- + "VEN_DIVERSITY\020\003:\205\001\352A\201\001\n#retail.googleapi"
- + "s.com/ServingConfig\022Zprojects/{project}/"
- + "locations/{location}/catalogs/{catalog}/"
- + "servingConfigs/{serving_config}B\275\001\n\032com."
- + "google.cloud.retail.v2B\022ServingConfigPro"
- + "toP\001Z2cloud.google.com/go/retail/apiv2/r"
- + "etailpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud"
- + ".Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Go"
- + "ogle::Cloud::Retail::V2b\006proto3"
+ + "rvice.proto\"\370\007\n\rServingConfig\022\021\n\004name\030\001 "
+ + "\001(\tB\003\340A\005\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\020\n\010m"
+ + "odel_id\030\003 \001(\t\022\035\n\025price_reranking_level\030\004"
+ + " \001(\t\022\031\n\021facet_control_ids\030\005 \003(\t\022R\n\022dynam"
+ + "ic_facet_spec\030\006 \001(\01326.google.cloud.retai"
+ + "l.v2.SearchRequest.DynamicFacetSpec\022\031\n\021b"
+ + "oost_control_ids\030\007 \003(\t\022\032\n\022filter_control"
+ + "_ids\030\t \003(\t\022\034\n\024redirect_control_ids\030\n \003(\t"
+ + "\022#\n\033twoway_synonyms_control_ids\030\022 \003(\t\022#\n"
+ + "\033oneway_synonyms_control_ids\030\014 \003(\t\022$\n\034do"
+ + "_not_associate_control_ids\030\r \003(\t\022\037\n\027repl"
+ + "acement_control_ids\030\016 \003(\t\022\032\n\022ignore_cont"
+ + "rol_ids\030\017 \003(\t\022\027\n\017diversity_level\030\010 \001(\t\022K"
+ + "\n\016diversity_type\030\024 \001(\01623.google.cloud.re"
+ + "tail.v2.ServingConfig.DiversityType\022$\n\034e"
+ + "nable_category_filter_level\030\020 \001(\t\022W\n\024per"
+ + "sonalization_spec\030\025 \001(\01329.google.cloud.r"
+ + "etail.v2.SearchRequest.PersonalizationSp"
+ + "ec\022D\n\016solution_types\030\023 \003(\0162$.google.clou"
+ + "d.retail.v2.SolutionTypeB\006\340A\002\340A\005\"d\n\rDive"
+ + "rsityType\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020"
+ + "\000\022\030\n\024RULE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIV"
+ + "EN_DIVERSITY\020\003:\205\001\352A\201\001\n#retail.googleapis"
+ + ".com/ServingConfig\022Zprojects/{project}/l"
+ + "ocations/{location}/catalogs/{catalog}/s"
+ + "ervingConfigs/{serving_config}B\275\001\n\032com.g"
+ + "oogle.cloud.retail.v2B\022ServingConfigProt"
+ + "oP\001Z2cloud.google.com/go/retail/apiv2/re"
+ + "tailpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud."
+ + "Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Goo"
+ + "gle::Cloud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceProto.java
index 9c31cdd6434b..d310c137e318 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceProto.java
@@ -76,77 +76,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\032\031google/api/resource.proto\032+google"
+ "/cloud/retail/v2/serving_config.proto\032\033g"
+ "oogle/protobuf/empty.proto\032 google/proto"
- + "buf/field_mask.proto\"\272\001\n\032CreateServingCo"
- + "nfigRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035re"
- + "tail.googleapis.com/Catalog\022C\n\016serving_c"
- + "onfig\030\002 \001(\0132%.google.cloud.retail.v2.Ser"
- + "vingConfigB\004\342A\001\002\022\037\n\021serving_config_id\030\003 "
- + "\001(\tB\004\342A\001\002\"\222\001\n\032UpdateServingConfigRequest"
- + "\022C\n\016serving_config\030\001 \001(\0132%.google.cloud."
- + "retail.v2.ServingConfigB\004\342A\001\002\022/\n\013update_"
- + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"X"
- + "\n\032DeleteServingConfigRequest\022:\n\004name\030\001 \001"
- + "(\tB,\342A\001\002\372A%\n#retail.googleapis.com/Servi"
- + "ngConfig\"U\n\027GetServingConfigRequest\022:\n\004n"
- + "ame\030\001 \001(\tB,\342A\001\002\372A%\n#retail.googleapis.co"
- + "m/ServingConfig\"\206\001\n\031ListServingConfigsRe"
- + "quest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.g"
- + "oogleapis.com/Catalog\022\027\n\tpage_size\030\002 \001(\005"
- + "B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"u\n\032List"
- + "ServingConfigsResponse\022>\n\017serving_config"
- + "s\030\001 \003(\0132%.google.cloud.retail.v2.Serving"
- + "Config\022\027\n\017next_page_token\030\002 \001(\t\"s\n\021AddCo"
- + "ntrolRequest\022D\n\016serving_config\030\001 \001(\tB,\342A"
- + "\001\002\372A%\n#retail.googleapis.com/ServingConf"
- + "ig\022\030\n\ncontrol_id\030\002 \001(\tB\004\342A\001\002\"v\n\024RemoveCo"
- + "ntrolRequest\022D\n\016serving_config\030\001 \001(\tB,\342A"
- + "\001\002\372A%\n#retail.googleapis.com/ServingConf"
- + "ig\022\030\n\ncontrol_id\030\002 \001(\tB\004\342A\001\0022\262\014\n\024Serving"
- + "ConfigService\022\361\001\n\023CreateServingConfig\0222."
- + "google.cloud.retail.v2.CreateServingConf"
- + "igRequest\032%.google.cloud.retail.v2.Servi"
- + "ngConfig\"\177\332A\'parent,serving_config,servi"
- + "ng_config_id\202\323\344\223\002O\"=/v2/{parent=projects"
- + "/*/locations/*/catalogs/*}/servingConfig"
- + "s:\016serving_config\022\257\001\n\023DeleteServingConfi"
- + "g\0222.google.cloud.retail.v2.DeleteServing"
- + "ConfigRequest\032\026.google.protobuf.Empty\"L\332"
- + "A\004name\202\323\344\223\002?*=/v2/{name=projects/*/locat"
- + "ions/*/catalogs/*/servingConfigs/*}\022\364\001\n\023"
- + "UpdateServingConfig\0222.google.cloud.retai"
- + "l.v2.UpdateServingConfigRequest\032%.google"
- + ".cloud.retail.v2.ServingConfig\"\201\001\332A\032serv"
- + "ing_config,update_mask\202\323\344\223\002^2L/v2/{servi"
- + "ng_config.name=projects/*/locations/*/ca"
- + "talogs/*/servingConfigs/*}:\016serving_conf"
- + "ig\022\270\001\n\020GetServingConfig\022/.google.cloud.r"
- + "etail.v2.GetServingConfigRequest\032%.googl"
- + "e.cloud.retail.v2.ServingConfig\"L\332A\004name"
- + "\202\323\344\223\002?\022=/v2/{name=projects/*/locations/*"
- + "/catalogs/*/servingConfigs/*}\022\313\001\n\022ListSe"
- + "rvingConfigs\0221.google.cloud.retail.v2.Li"
- + "stServingConfigsRequest\0322.google.cloud.r"
- + "etail.v2.ListServingConfigsResponse\"N\332A\006"
- + "parent\202\323\344\223\002?\022=/v2/{parent=projects/*/loc"
- + "ations/*/catalogs/*}/servingConfigs\022\316\001\n\n"
- + "AddControl\022).google.cloud.retail.v2.AddC"
- + "ontrolRequest\032%.google.cloud.retail.v2.S"
- + "ervingConfig\"n\332A\016serving_config\202\323\344\223\002W\"R/"
- + "v2/{serving_config=projects/*/locations/"
- + "*/catalogs/*/servingConfigs/*}:addContro"
- + "l:\001*\022\327\001\n\rRemoveControl\022,.google.cloud.re"
- + "tail.v2.RemoveControlRequest\032%.google.cl"
- + "oud.retail.v2.ServingConfig\"q\332A\016serving_"
- + "config\202\323\344\223\002Z\"U/v2/{serving_config=projec"
- + "ts/*/locations/*/catalogs/*/servingConfi"
- + "gs/*}:removeControl:\001*\032I\312A\025retail.google"
- + "apis.com\322A.https://www.googleapis.com/au"
- + "th/cloud-platformB\304\001\n\032com.google.cloud.r"
- + "etail.v2B\031ServingConfigServiceProtoP\001Z2c"
- + "loud.google.com/go/retail/apiv2/retailpb"
- + ";retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail"
- + ".V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::C"
- + "loud::Retail::V2b\006proto3"
+ + "buf/field_mask.proto\"\267\001\n\032CreateServingCo"
+ + "nfigRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035ret"
+ + "ail.googleapis.com/Catalog\022B\n\016serving_co"
+ + "nfig\030\002 \001(\0132%.google.cloud.retail.v2.Serv"
+ + "ingConfigB\003\340A\002\022\036\n\021serving_config_id\030\003 \001("
+ + "\tB\003\340A\002\"\221\001\n\032UpdateServingConfigRequest\022B\n"
+ + "\016serving_config\030\001 \001(\0132%.google.cloud.ret"
+ + "ail.v2.ServingConfigB\003\340A\002\022/\n\013update_mask"
+ + "\030\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\032De"
+ + "leteServingConfigRequest\0229\n\004name\030\001 \001(\tB+"
+ + "\340A\002\372A%\n#retail.googleapis.com/ServingCon"
+ + "fig\"T\n\027GetServingConfigRequest\0229\n\004name\030\001"
+ + " \001(\tB+\340A\002\372A%\n#retail.googleapis.com/Serv"
+ + "ingConfig\"\203\001\n\031ListServingConfigsRequest\022"
+ + "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap"
+ + "is.com/Catalog\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027"
+ + "\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\032ListServingCo"
+ + "nfigsResponse\022>\n\017serving_configs\030\001 \003(\0132%"
+ + ".google.cloud.retail.v2.ServingConfig\022\027\n"
+ + "\017next_page_token\030\002 \001(\t\"q\n\021AddControlRequ"
+ + "est\022C\n\016serving_config\030\001 \001(\tB+\340A\002\372A%\n#ret"
+ + "ail.googleapis.com/ServingConfig\022\027\n\ncont"
+ + "rol_id\030\002 \001(\tB\003\340A\002\"t\n\024RemoveControlReques"
+ + "t\022C\n\016serving_config\030\001 \001(\tB+\340A\002\372A%\n#retai"
+ + "l.googleapis.com/ServingConfig\022\027\n\ncontro"
+ + "l_id\030\002 \001(\tB\003\340A\0022\262\014\n\024ServingConfigService"
+ + "\022\361\001\n\023CreateServingConfig\0222.google.cloud."
+ + "retail.v2.CreateServingConfigRequest\032%.g"
+ + "oogle.cloud.retail.v2.ServingConfig\"\177\332A\'"
+ + "parent,serving_config,serving_config_id\202"
+ + "\323\344\223\002O\"=/v2/{parent=projects/*/locations/"
+ + "*/catalogs/*}/servingConfigs:\016serving_co"
+ + "nfig\022\257\001\n\023DeleteServingConfig\0222.google.cl"
+ + "oud.retail.v2.DeleteServingConfigRequest"
+ + "\032\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*"
+ + "=/v2/{name=projects/*/locations/*/catalo"
+ + "gs/*/servingConfigs/*}\022\364\001\n\023UpdateServing"
+ + "Config\0222.google.cloud.retail.v2.UpdateSe"
+ + "rvingConfigRequest\032%.google.cloud.retail"
+ + ".v2.ServingConfig\"\201\001\332A\032serving_config,up"
+ + "date_mask\202\323\344\223\002^2L/v2/{serving_config.nam"
+ + "e=projects/*/locations/*/catalogs/*/serv"
+ + "ingConfigs/*}:\016serving_config\022\270\001\n\020GetSer"
+ + "vingConfig\022/.google.cloud.retail.v2.GetS"
+ + "ervingConfigRequest\032%.google.cloud.retai"
+ + "l.v2.ServingConfig\"L\332A\004name\202\323\344\223\002?\022=/v2/{"
+ + "name=projects/*/locations/*/catalogs/*/s"
+ + "ervingConfigs/*}\022\313\001\n\022ListServingConfigs\022"
+ + "1.google.cloud.retail.v2.ListServingConf"
+ + "igsRequest\0322.google.cloud.retail.v2.List"
+ + "ServingConfigsResponse\"N\332A\006parent\202\323\344\223\002?\022"
+ + "=/v2/{parent=projects/*/locations/*/cata"
+ + "logs/*}/servingConfigs\022\316\001\n\nAddControl\022)."
+ + "google.cloud.retail.v2.AddControlRequest"
+ + "\032%.google.cloud.retail.v2.ServingConfig\""
+ + "n\332A\016serving_config\202\323\344\223\002W\"R/v2/{serving_c"
+ + "onfig=projects/*/locations/*/catalogs/*/"
+ + "servingConfigs/*}:addControl:\001*\022\327\001\n\rRemo"
+ + "veControl\022,.google.cloud.retail.v2.Remov"
+ + "eControlRequest\032%.google.cloud.retail.v2"
+ + ".ServingConfig\"q\332A\016serving_config\202\323\344\223\002Z\""
+ + "U/v2/{serving_config=projects/*/location"
+ + "s/*/catalogs/*/servingConfigs/*}:removeC"
+ + "ontrol:\001*\032I\312A\025retail.googleapis.com\322A.ht"
+ + "tps://www.googleapis.com/auth/cloud-plat"
+ + "formB\304\001\n\032com.google.cloud.retail.v2B\031Ser"
+ + "vingConfigServiceProtoP\001Z2cloud.google.c"
+ + "om/go/retail/apiv2/retailpb;retailpb\242\002\006R"
+ + "ETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026Google\\"
+ + "Cloud\\Retail\\V2\352\002\031Google::Cloud::Retail:"
+ + ":V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventProto.java
index 0fce05291a44..863722202eac 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventProto.java
@@ -62,41 +62,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "eld_behavior.proto\032#google/cloud/retail/"
+ "v2/common.proto\032$google/cloud/retail/v2/"
+ "product.proto\032\037google/protobuf/timestamp"
- + ".proto\032\036google/protobuf/wrappers.proto\"\231"
- + "\006\n\tUserEvent\022\030\n\nevent_type\030\001 \001(\tB\004\342A\001\002\022\030"
- + "\n\nvisitor_id\030\002 \001(\tB\004\342A\001\002\022\022\n\nsession_id\030\025"
- + " \001(\t\022.\n\nevent_time\030\003 \001(\0132\032.google.protob"
- + "uf.Timestamp\022\026\n\016experiment_ids\030\004 \003(\t\022\031\n\021"
- + "attribution_token\030\005 \001(\t\022>\n\017product_detai"
- + "ls\030\006 \003(\0132%.google.cloud.retail.v2.Produc"
- + "tDetail\022C\n\021completion_detail\030\026 \001(\0132(.goo"
- + "gle.cloud.retail.v2.CompletionDetail\022E\n\n"
- + "attributes\030\007 \003(\01321.google.cloud.retail.v"
- + "2.UserEvent.AttributesEntry\022\017\n\007cart_id\030\010"
- + " \001(\t\022I\n\024purchase_transaction\030\t \001(\0132+.goo"
- + "gle.cloud.retail.v2.PurchaseTransaction\022"
- + "\024\n\014search_query\030\n \001(\t\022\016\n\006filter\030\020 \001(\t\022\020\n"
- + "\010order_by\030\021 \001(\t\022\016\n\006offset\030\022 \001(\005\022\027\n\017page_"
- + "categories\030\013 \003(\t\0223\n\tuser_info\030\014 \001(\0132 .go"
- + "ogle.cloud.retail.v2.UserInfo\022\013\n\003uri\030\r \001"
- + "(\t\022\024\n\014referrer_uri\030\016 \001(\t\022\024\n\014page_view_id"
- + "\030\017 \001(\t\022\016\n\006entity\030\027 \001(\t\032Z\n\017AttributesEntr"
- + "y\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.c"
- + "loud.retail.v2.CustomAttribute:\0028\001\"v\n\rPr"
- + "oductDetail\0226\n\007product\030\001 \001(\0132\037.google.cl"
- + "oud.retail.v2.ProductB\004\342A\001\002\022-\n\010quantity\030"
- + "\002 \001(\0132\033.google.protobuf.Int32Value\"p\n\020Co"
- + "mpletionDetail\022$\n\034completion_attribution"
- + "_token\030\001 \001(\t\022\033\n\023selected_suggestion\030\002 \001("
- + "\t\022\031\n\021selected_position\030\003 \001(\005\"p\n\023Purchase"
- + "Transaction\022\n\n\002id\030\001 \001(\t\022\025\n\007revenue\030\002 \001(\002"
- + "B\004\342A\001\002\022\013\n\003tax\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\022\033\n\rcur"
- + "rency_code\030\005 \001(\tB\004\342A\001\002B\271\001\n\032com.google.cl"
- + "oud.retail.v2B\016UserEventProtoP\001Z2cloud.g"
- + "oogle.com/go/retail/apiv2/retailpb;retai"
- + "lpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026"
- + "Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud::"
- + "Retail::V2b\006proto3"
+ + ".proto\032\036google/protobuf/wrappers.proto\"\227"
+ + "\006\n\tUserEvent\022\027\n\nevent_type\030\001 \001(\tB\003\340A\002\022\027\n"
+ + "\nvisitor_id\030\002 \001(\tB\003\340A\002\022\022\n\nsession_id\030\025 \001"
+ + "(\t\022.\n\nevent_time\030\003 \001(\0132\032.google.protobuf"
+ + ".Timestamp\022\026\n\016experiment_ids\030\004 \003(\t\022\031\n\021at"
+ + "tribution_token\030\005 \001(\t\022>\n\017product_details"
+ + "\030\006 \003(\0132%.google.cloud.retail.v2.ProductD"
+ + "etail\022C\n\021completion_detail\030\026 \001(\0132(.googl"
+ + "e.cloud.retail.v2.CompletionDetail\022E\n\nat"
+ + "tributes\030\007 \003(\01321.google.cloud.retail.v2."
+ + "UserEvent.AttributesEntry\022\017\n\007cart_id\030\010 \001"
+ + "(\t\022I\n\024purchase_transaction\030\t \001(\0132+.googl"
+ + "e.cloud.retail.v2.PurchaseTransaction\022\024\n"
+ + "\014search_query\030\n \001(\t\022\016\n\006filter\030\020 \001(\t\022\020\n\010o"
+ + "rder_by\030\021 \001(\t\022\016\n\006offset\030\022 \001(\005\022\027\n\017page_ca"
+ + "tegories\030\013 \003(\t\0223\n\tuser_info\030\014 \001(\0132 .goog"
+ + "le.cloud.retail.v2.UserInfo\022\013\n\003uri\030\r \001(\t"
+ + "\022\024\n\014referrer_uri\030\016 \001(\t\022\024\n\014page_view_id\030\017"
+ + " \001(\t\022\016\n\006entity\030\027 \001(\t\032Z\n\017AttributesEntry\022"
+ + "\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.clo"
+ + "ud.retail.v2.CustomAttribute:\0028\001\"u\n\rProd"
+ + "uctDetail\0225\n\007product\030\001 \001(\0132\037.google.clou"
+ + "d.retail.v2.ProductB\003\340A\002\022-\n\010quantity\030\002 \001"
+ + "(\0132\033.google.protobuf.Int32Value\"p\n\020Compl"
+ + "etionDetail\022$\n\034completion_attribution_to"
+ + "ken\030\001 \001(\t\022\033\n\023selected_suggestion\030\002 \001(\t\022\031"
+ + "\n\021selected_position\030\003 \001(\005\"n\n\023PurchaseTra"
+ + "nsaction\022\n\n\002id\030\001 \001(\t\022\024\n\007revenue\030\002 \001(\002B\003\340"
+ + "A\002\022\013\n\003tax\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\022\032\n\rcurrenc"
+ + "y_code\030\005 \001(\tB\003\340A\002B\271\001\n\032com.google.cloud.r"
+ + "etail.v2B\016UserEventProtoP\001Z2cloud.google"
+ + ".com/go/retail/apiv2/retailpb;retailpb\242\002"
+ + "\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026Googl"
+ + "e\\Cloud\\Retail\\V2\352\002\031Google::Cloud::Retai"
+ + "l::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceProto.java
index 6717a13a04df..5af604ce4d86 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceProto.java
@@ -66,59 +66,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "import_config.proto\032)google/cloud/retail"
+ "/v2/purge_config.proto\032\'google/cloud/ret"
+ "ail/v2/user_event.proto\032#google/longrunn"
- + "ing/operations.proto\"\177\n\025WriteUserEventRe"
- + "quest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022;\n\nuser_even"
- + "t\030\002 \001(\0132!.google.cloud.retail.v2.UserEve"
- + "ntB\004\342A\001\002\022\023\n\013write_async\030\003 \001(\010\"\241\001\n\027Collec"
- + "tUserEventRequest\022\027\n\rprebuilt_rule\030\006 \001(\t"
- + "H\000\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\nuser_event\030\002"
- + " \001(\tB\004\342A\001\002\022\013\n\003uri\030\003 \001(\t\022\013\n\003ets\030\004 \001(\003\022\020\n\010"
- + "raw_json\030\005 \001(\tB\021\n\017conversion_rule\"\377\001\n\027Re"
- + "joinUserEventsRequest\022\024\n\006parent\030\001 \001(\tB\004\342"
- + "A\001\002\022e\n\027user_event_rejoin_scope\030\002 \001(\0162D.g"
- + "oogle.cloud.retail.v2.RejoinUserEventsRe"
- + "quest.UserEventRejoinScope\"g\n\024UserEventR"
- + "ejoinScope\022\'\n#USER_EVENT_REJOIN_SCOPE_UN"
- + "SPECIFIED\020\000\022\021\n\rJOINED_EVENTS\020\001\022\023\n\017UNJOIN"
- + "ED_EVENTS\020\002\">\n\030RejoinUserEventsResponse\022"
- + "\"\n\032rejoined_user_events_count\030\001 \001(\003\"\032\n\030R"
- + "ejoinUserEventsMetadata2\277\t\n\020UserEventSer"
- + "vice\022\267\001\n\016WriteUserEvent\022-.google.cloud.r"
- + "etail.v2.WriteUserEventRequest\032!.google."
- + "cloud.retail.v2.UserEvent\"S\202\323\344\223\002M\"?/v2/{"
- + "parent=projects/*/locations/*/catalogs/*"
- + "}/userEvents:write:\nuser_event\022\244\001\n\020Colle"
- + "ctUserEvent\022/.google.cloud.retail.v2.Col"
- + "lectUserEventRequest\032\024.google.api.HttpBo"
- + "dy\"I\202\323\344\223\002C\022A/v2/{parent=projects/*/locat"
- + "ions/*/catalogs/*}/userEvents:collect\022\206\002"
- + "\n\017PurgeUserEvents\022..google.cloud.retail."
- + "v2.PurgeUserEventsRequest\032\035.google.longr"
- + "unning.Operation\"\243\001\312AV\n.google.cloud.ret"
- + "ail.v2.PurgeUserEventsResponse\022$google.c"
- + "loud.retail.v2.PurgeMetadata\202\323\344\223\002D\"?/v2/"
- + "{parent=projects/*/locations/*/catalogs/"
- + "*}/userEvents:purge:\001*\022\213\002\n\020ImportUserEve"
- + "nts\022/.google.cloud.retail.v2.ImportUserE"
- + "ventsRequest\032\035.google.longrunning.Operat"
- + "ion\"\246\001\312AX\n/google.cloud.retail.v2.Import"
- + "UserEventsResponse\022%google.cloud.retail."
- + "v2.ImportMetadata\202\323\344\223\002E\"@/v2/{parent=pro"
- + "jects/*/locations/*/catalogs/*}/userEven"
- + "ts:import:\001*\022\347\001\n\020RejoinUserEvents\022/.goog"
- + "le.cloud.retail.v2.RejoinUserEventsReque"
- + "st\032\035.google.longrunning.Operation\"\202\001\312A4\n"
- + "\030RejoinUserEventsResponse\022\030RejoinUserEve"
- + "ntsMetadata\202\323\344\223\002E\"@/v2/{parent=projects/"
- + "*/locations/*/catalogs/*}/userEvents:rej"
- + "oin:\001*\032I\312A\025retail.googleapis.com\322A.https"
- + "://www.googleapis.com/auth/cloud-platfor"
- + "mB\300\001\n\032com.google.cloud.retail.v2B\025UserEv"
- + "entServiceProtoP\001Z2cloud.google.com/go/r"
- + "etail/apiv2/retailpb;retailpb\242\002\006RETAIL\252\002"
- + "\026Google.Cloud.Retail.V2\312\002\026Google\\Cloud\\R"
- + "etail\\V2\352\002\031Google::Cloud::Retail::V2b\006pr"
- + "oto3"
+ + "ing/operations.proto\"}\n\025WriteUserEventRe"
+ + "quest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022:\n\nuser_event"
+ + "\030\002 \001(\0132!.google.cloud.retail.v2.UserEven"
+ + "tB\003\340A\002\022\023\n\013write_async\030\003 \001(\010\"\237\001\n\027CollectU"
+ + "serEventRequest\022\027\n\rprebuilt_rule\030\006 \001(\tH\000"
+ + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\nuser_event\030\002 \001("
+ + "\tB\003\340A\002\022\013\n\003uri\030\003 \001(\t\022\013\n\003ets\030\004 \001(\003\022\020\n\010raw_"
+ + "json\030\005 \001(\tB\021\n\017conversion_rule\"\376\001\n\027Rejoin"
+ + "UserEventsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022e"
+ + "\n\027user_event_rejoin_scope\030\002 \001(\0162D.google"
+ + ".cloud.retail.v2.RejoinUserEventsRequest"
+ + ".UserEventRejoinScope\"g\n\024UserEventRejoin"
+ + "Scope\022\'\n#USER_EVENT_REJOIN_SCOPE_UNSPECI"
+ + "FIED\020\000\022\021\n\rJOINED_EVENTS\020\001\022\023\n\017UNJOINED_EV"
+ + "ENTS\020\002\">\n\030RejoinUserEventsResponse\022\"\n\032re"
+ + "joined_user_events_count\030\001 \001(\003\"\032\n\030Rejoin"
+ + "UserEventsMetadata2\277\t\n\020UserEventService\022"
+ + "\267\001\n\016WriteUserEvent\022-.google.cloud.retail"
+ + ".v2.WriteUserEventRequest\032!.google.cloud"
+ + ".retail.v2.UserEvent\"S\202\323\344\223\002M\"?/v2/{paren"
+ + "t=projects/*/locations/*/catalogs/*}/use"
+ + "rEvents:write:\nuser_event\022\244\001\n\020CollectUse"
+ + "rEvent\022/.google.cloud.retail.v2.CollectU"
+ + "serEventRequest\032\024.google.api.HttpBody\"I\202"
+ + "\323\344\223\002C\022A/v2/{parent=projects/*/locations/"
+ + "*/catalogs/*}/userEvents:collect\022\206\002\n\017Pur"
+ + "geUserEvents\022..google.cloud.retail.v2.Pu"
+ + "rgeUserEventsRequest\032\035.google.longrunnin"
+ + "g.Operation\"\243\001\312AV\n.google.cloud.retail.v"
+ + "2.PurgeUserEventsResponse\022$google.cloud."
+ + "retail.v2.PurgeMetadata\202\323\344\223\002D\"?/v2/{pare"
+ + "nt=projects/*/locations/*/catalogs/*}/us"
+ + "erEvents:purge:\001*\022\213\002\n\020ImportUserEvents\022/"
+ + ".google.cloud.retail.v2.ImportUserEvents"
+ + "Request\032\035.google.longrunning.Operation\"\246"
+ + "\001\312AX\n/google.cloud.retail.v2.ImportUserE"
+ + "ventsResponse\022%google.cloud.retail.v2.Im"
+ + "portMetadata\202\323\344\223\002E\"@/v2/{parent=projects"
+ + "/*/locations/*/catalogs/*}/userEvents:im"
+ + "port:\001*\022\347\001\n\020RejoinUserEvents\022/.google.cl"
+ + "oud.retail.v2.RejoinUserEventsRequest\032\035."
+ + "google.longrunning.Operation\"\202\001\312A4\n\030Rejo"
+ + "inUserEventsResponse\022\030RejoinUserEventsMe"
+ + "tadata\202\323\344\223\002E\"@/v2/{parent=projects/*/loc"
+ + "ations/*/catalogs/*}/userEvents:rejoin:\001"
+ + "*\032I\312A\025retail.googleapis.com\322A.https://ww"
+ + "w.googleapis.com/auth/cloud-platformB\300\001\n"
+ + "\032com.google.cloud.retail.v2B\025UserEventSe"
+ + "rviceProtoP\001Z2cloud.google.com/go/retail"
+ + "/apiv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Goog"
+ + "le.Cloud.Retail.V2\312\002\026Google\\Cloud\\Retail"
+ + "\\V2\352\002\031Google::Cloud::Retail::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/analytics_service.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/analytics_service.proto
new file mode 100644
index 000000000000..2b1f0bce3f27
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/analytics_service.proto
@@ -0,0 +1,57 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.retail.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/retail/v2/export_config.proto";
+import "google/longrunning/operations.proto";
+
+option csharp_namespace = "Google.Cloud.Retail.V2";
+option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb";
+option java_multiple_files = true;
+option java_outer_classname = "AnalyticsServiceProto";
+option java_package = "com.google.cloud.retail.v2";
+option objc_class_prefix = "RETAIL";
+option php_namespace = "Google\\Cloud\\Retail\\V2";
+option ruby_package = "Google::Cloud::Retail::V2";
+
+// Service for managing & accessing retail search business metric.
+// Retail recommendation business metric is currently not available.
+service AnalyticsService {
+ option (google.api.default_host) = "retail.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Exports analytics metrics.
+ //
+ // `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
+ // `Operation.metadata` is of type `ExportMetadata`.
+ rpc ExportAnalyticsMetrics(ExportAnalyticsMetricsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v2/{catalog=projects/*/locations/*/catalogs/*}:exportAnalyticsMetrics"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.retail.v2.ExportAnalyticsMetricsResponse"
+ metadata_type: "google.cloud.retail.v2.ExportMetadata"
+ };
+ }
+}
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/export_config.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/export_config.proto
new file mode 100644
index 000000000000..fe12c1fcd1fb
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/export_config.proto
@@ -0,0 +1,161 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.retail.v2;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.Retail.V2";
+option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb";
+option java_multiple_files = true;
+option java_outer_classname = "ExportConfigProto";
+option java_package = "com.google.cloud.retail.v2";
+option objc_class_prefix = "RETAIL";
+option php_namespace = "Google\\Cloud\\Retail\\V2";
+option ruby_package = "Google::Cloud::Retail::V2";
+
+// The output configuration setting.
+message OutputConfig {
+ // The Google Cloud Storage output destination configuration.
+ message GcsDestination {
+ // Required. The output uri prefix for saving output data to json files.
+ // Some mapping examples are as follows:
+ // output_uri_prefix sample output(assuming the object is foo.json)
+ // ======================== =============================================
+ // gs://bucket/ gs://bucket/foo.json
+ // gs://bucket/folder/ gs://bucket/folder/foo.json
+ // gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
+ string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // The BigQuery output destination configuration.
+ message BigQueryDestination {
+ // Required. The ID of a BigQuery Dataset.
+ string dataset_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The prefix of exported BigQuery tables.
+ string table_id_prefix = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Describes the table type. The following values are supported:
+ //
+ // * `table`: A BigQuery native table.
+ // * `view`: A virtual table defined by a SQL query.
+ string table_type = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // The configuration of destination for holding output data.
+ oneof destination {
+ // The Google Cloud Storage location where the output is to be written to.
+ GcsDestination gcs_destination = 1;
+
+ // The BigQuery location where the output is to be written to.
+ BigQueryDestination bigquery_destination = 2;
+ }
+}
+
+// Configuration of destination for Export related errors.
+message ExportErrorsConfig {
+ // Required. Errors destination.
+ oneof destination {
+ // Google Cloud Storage path for import errors. This must be an empty,
+ // existing Cloud Storage bucket. Export errors will be written to a file in
+ // this bucket, one per line, as a JSON-encoded
+ // `google.rpc.Status` message.
+ string gcs_prefix = 1;
+ }
+}
+
+// Request message for the `ExportAnalyticsMetrics` method.
+message ExportAnalyticsMetricsRequest {
+ // Required. Full resource name of the parent catalog.
+ // Expected format: `projects/*/locations/*/catalogs/*`
+ string catalog = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The output location of the data.
+ OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // A filtering expression to specify restrictions on returned metrics.
+ // The expression is a sequence of terms. Each term applies a restriction to
+ // the returned metrics. Use this expression to restrict results to a
+ // specific time range.
+ //
+ // Currently we expect only one types of fields:
+ //
+ // * `timestamp`: This can be specified twice, once with a
+ // less than operator and once with a greater than operator. The
+ // `timestamp` restriction should result in one, contiguous, valid,
+ // `timestamp` range.
+ //
+ // Some examples of valid filters expressions:
+ //
+ // * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
+ // timestamp < "2012-04-23T18:30:43.511Z"`
+ // * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
+ string filter = 3;
+}
+
+// Metadata related to the progress of the Export operation. This is
+// returned by the google.longrunning.Operation.metadata field.
+message ExportMetadata {
+ // 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;
+}
+
+// Response of the ExportAnalyticsMetricsRequest. If the long running
+// operation was successful, then this message is returned by the
+// google.longrunning.Operations.response field if the operation was successful.
+message ExportAnalyticsMetricsResponse {
+ // A sample of errors encountered while processing the request.
+ repeated google.rpc.Status error_samples = 1;
+
+ // This field is never set.
+ ExportErrorsConfig errors_config = 2;
+
+ // Output result indicating where the data were exported to.
+ OutputResult output_result = 3;
+}
+
+// Output result that stores the information about where the exported data is
+// stored.
+message OutputResult {
+ // The BigQuery location where the result is stored.
+ repeated BigQueryOutputResult bigquery_result = 1;
+
+ // The Google Cloud Storage location where the result is stored.
+ repeated GcsOutputResult gcs_result = 2;
+}
+
+// A BigQuery output result.
+message BigQueryOutputResult {
+ // The ID of a BigQuery Dataset.
+ string dataset_id = 1;
+
+ // The ID of a BigQuery Table.
+ string table_id = 2;
+}
+
+// A Gcs output result.
+message GcsOutputResult {
+ // The uri of Gcs output
+ string output_uri = 1;
+}
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java
index 5cd710145a6d..aaf9a4a1d09d 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java
@@ -81,93 +81,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "pha/import_config.proto\"^\n\022ProductLevelC"
+ "onfig\022\036\n\026ingestion_product_type\030\001 \001(\t\022(\n"
+ " merchant_center_product_id_field\030\002 \001(\t\""
- + "\307\n\n\020CatalogAttribute\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\022"
- + "\024\n\006in_use\030\t \001(\010B\004\342A\001\003\022O\n\004type\030\n \001(\0162;.go"
- + "ogle.cloud.retail.v2alpha.CatalogAttribu"
- + "te.AttributeTypeB\004\342A\001\003\022W\n\020indexable_opti"
- + "on\030\005 \001(\0162=.google.cloud.retail.v2alpha.C"
- + "atalogAttribute.IndexableOption\022f\n\030dynam"
- + "ic_facetable_option\030\006 \001(\0162D.google.cloud"
- + ".retail.v2alpha.CatalogAttribute.Dynamic"
- + "FacetableOption\022Y\n\021searchable_option\030\007 \001"
- + "(\0162>.google.cloud.retail.v2alpha.Catalog"
- + "Attribute.SearchableOption\022e\n recommenda"
- + "tions_filtering_option\030\010 \001(\0162;.google.cl"
- + "oud.retail.v2alpha.RecommendationsFilter"
- + "ingOption\022d\n\027exact_searchable_option\030\013 \001"
- + "(\0162C.google.cloud.retail.v2alpha.Catalog"
- + "Attribute.ExactSearchableOption\022[\n\022retri"
- + "evable_option\030\014 \001(\0162?.google.cloud.retai"
- + "l.v2alpha.CatalogAttribute.RetrievableOp"
- + "tion\"8\n\rAttributeType\022\013\n\007UNKNOWN\020\000\022\013\n\007TE"
- + "XTUAL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017IndexableOptio"
- + "n\022 \n\034INDEXABLE_OPTION_UNSPECIFIED\020\000\022\025\n\021I"
- + "NDEXABLE_ENABLED\020\001\022\026\n\022INDEXABLE_DISABLED"
- + "\020\002\"\201\001\n\026DynamicFacetableOption\022(\n$DYNAMIC"
- + "_FACETABLE_OPTION_UNSPECIFIED\020\000\022\035\n\031DYNAM"
- + "IC_FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC_FACETA"
- + "BLE_DISABLED\020\002\"f\n\020SearchableOption\022!\n\035SE"
- + "ARCHABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022SEARCHA"
- + "BLE_ENABLED\020\001\022\027\n\023SEARCHABLE_DISABLED\020\002\"}"
- + "\n\025ExactSearchableOption\022\'\n#EXACT_SEARCHA"
- + "BLE_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT_SEARCH"
- + "ABLE_ENABLED\020\001\022\035\n\031EXACT_SEARCHABLE_DISAB"
- + "LED\020\002\"j\n\021RetrievableOption\022\"\n\036RETRIEVABL"
- + "E_OPTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVABLE_EN"
- + "ABLED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"\305\003\n\020At"
- + "tributesConfig\022\023\n\004name\030\001 \001(\tB\005\342A\002\002\005\022`\n\022c"
- + "atalog_attributes\030\002 \003(\0132D.google.cloud.r"
- + "etail.v2alpha.AttributesConfig.CatalogAt"
- + "tributesEntry\022W\n\026attribute_config_level\030"
- + "\003 \001(\01621.google.cloud.retail.v2alpha.Attr"
- + "ibuteConfigLevelB\004\342A\001\003\032g\n\026CatalogAttribu"
- + "tesEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.g"
- + "oogle.cloud.retail.v2alpha.CatalogAttrib"
- + "ute:\0028\001:x\352Au\n&retail.googleapis.com/Attr"
- + "ibutesConfig\022Kprojects/{project}/locatio"
- + "ns/{location}/catalogs/{catalog}/attribu"
- + "tesConfig\"\255\005\n\020CompletionConfig\022\023\n\004name\030\001"
- + " \001(\tB\005\342A\002\002\005\022\026\n\016matching_order\030\002 \001(\t\022\027\n\017m"
- + "ax_suggestions\030\003 \001(\005\022\031\n\021min_prefix_lengt"
- + "h\030\004 \001(\005\022\025\n\rauto_learning\030\013 \001(\010\022^\n\030sugges"
- + "tions_input_config\030\005 \001(\01326.google.cloud."
- + "retail.v2alpha.CompletionDataInputConfig"
- + "B\004\342A\001\003\022/\n!last_suggestions_import_operat"
- + "ion\030\006 \001(\tB\004\342A\001\003\022[\n\025denylist_input_config"
- + "\030\007 \001(\01326.google.cloud.retail.v2alpha.Com"
- + "pletionDataInputConfigB\004\342A\001\003\022,\n\036last_den"
- + "ylist_import_operation\030\010 \001(\tB\004\342A\001\003\022\\\n\026al"
- + "lowlist_input_config\030\t \001(\01326.google.clou"
- + "d.retail.v2alpha.CompletionDataInputConf"
- + "igB\004\342A\001\003\022-\n\037last_allowlist_import_operat"
- + "ion\030\n \001(\tB\004\342A\001\003:x\352Au\n&retail.googleapis."
- + "com/CompletionConfig\022Kprojects/{project}"
- + "/locations/{location}/catalogs/{catalog}"
- + "/completionConfig\"\331\001\n\022MerchantCenterLink"
- + "\022(\n\032merchant_center_account_id\030\001 \001(\003B\004\342A"
- + "\001\002\022\021\n\tbranch_id\030\002 \001(\t\022\024\n\014destinations\030\003 "
- + "\003(\t\022\023\n\013region_code\030\004 \001(\t\022\025\n\rlanguage_cod"
- + "e\030\005 \001(\t\022D\n\005feeds\030\006 \003(\01325.google.cloud.re"
- + "tail.v2alpha.MerchantCenterFeedFilter\"N\n"
- + "\030MerchantCenterFeedFilter\022\027\n\017primary_fee"
- + "d_id\030\001 \001(\003\022\031\n\021primary_feed_name\030\002 \001(\t\"]\n"
- + "\033MerchantCenterLinkingConfig\022>\n\005links\030\001 "
- + "\003(\0132/.google.cloud.retail.v2alpha.Mercha"
- + "ntCenterLink\"\322\002\n\007Catalog\022\023\n\004name\030\001 \001(\tB\005"
- + "\342A\002\002\005\022\033\n\014display_name\030\002 \001(\tB\005\342A\002\002\005\022S\n\024pr"
- + "oduct_level_config\030\004 \001(\0132/.google.cloud."
- + "retail.v2alpha.ProductLevelConfigB\004\342A\001\002\022"
- + "`\n\036merchant_center_linking_config\030\006 \001(\0132"
- + "8.google.cloud.retail.v2alpha.MerchantCe"
- + "nterLinkingConfig:^\352A[\n\035retail.googleapi"
- + "s.com/Catalog\022:projects/{project}/locati"
- + "ons/{location}/catalogs/{catalog}B\320\001\n\037co"
- + "m.google.cloud.retail.v2alphaB\014CatalogPr"
- + "otoP\001Z7cloud.google.com/go/retail/apiv2a"
- + "lpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Google"
- + ".Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Ret"
- + "ail\\V2alpha\352\002\036Google::Cloud::Retail::V2a"
- + "lphab\006proto3"
+ + "\304\n\n\020CatalogAttribute\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023"
+ + "\n\006in_use\030\t \001(\010B\003\340A\003\022N\n\004type\030\n \001(\0162;.goog"
+ + "le.cloud.retail.v2alpha.CatalogAttribute"
+ + ".AttributeTypeB\003\340A\003\022W\n\020indexable_option\030"
+ + "\005 \001(\0162=.google.cloud.retail.v2alpha.Cata"
+ + "logAttribute.IndexableOption\022f\n\030dynamic_"
+ + "facetable_option\030\006 \001(\0162D.google.cloud.re"
+ + "tail.v2alpha.CatalogAttribute.DynamicFac"
+ + "etableOption\022Y\n\021searchable_option\030\007 \001(\0162"
+ + ">.google.cloud.retail.v2alpha.CatalogAtt"
+ + "ribute.SearchableOption\022e\n recommendatio"
+ + "ns_filtering_option\030\010 \001(\0162;.google.cloud"
+ + ".retail.v2alpha.RecommendationsFiltering"
+ + "Option\022d\n\027exact_searchable_option\030\013 \001(\0162"
+ + "C.google.cloud.retail.v2alpha.CatalogAtt"
+ + "ribute.ExactSearchableOption\022[\n\022retrieva"
+ + "ble_option\030\014 \001(\0162?.google.cloud.retail.v"
+ + "2alpha.CatalogAttribute.RetrievableOptio"
+ + "n\"8\n\rAttributeType\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTU"
+ + "AL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017IndexableOption\022 "
+ + "\n\034INDEXABLE_OPTION_UNSPECIFIED\020\000\022\025\n\021INDE"
+ + "XABLE_ENABLED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\""
+ + "\201\001\n\026DynamicFacetableOption\022(\n$DYNAMIC_FA"
+ + "CETABLE_OPTION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_"
+ + "FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC_FACETABLE"
+ + "_DISABLED\020\002\"f\n\020SearchableOption\022!\n\035SEARC"
+ + "HABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE"
+ + "_ENABLED\020\001\022\027\n\023SEARCHABLE_DISABLED\020\002\"}\n\025E"
+ + "xactSearchableOption\022\'\n#EXACT_SEARCHABLE"
+ + "_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT_SEARCHABL"
+ + "E_ENABLED\020\001\022\035\n\031EXACT_SEARCHABLE_DISABLED"
+ + "\020\002\"j\n\021RetrievableOption\022\"\n\036RETRIEVABLE_O"
+ + "PTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVABLE_ENABL"
+ + "ED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"\305\003\n\020Attri"
+ + "butesConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022`\n\022cat"
+ + "alog_attributes\030\002 \003(\0132D.google.cloud.ret"
+ + "ail.v2alpha.AttributesConfig.CatalogAttr"
+ + "ibutesEntry\022V\n\026attribute_config_level\030\003 "
+ + "\001(\01621.google.cloud.retail.v2alpha.Attrib"
+ + "uteConfigLevelB\003\340A\003\032g\n\026CatalogAttributes"
+ + "Entry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.goog"
+ + "le.cloud.retail.v2alpha.CatalogAttribute"
+ + ":\0028\001:x\352Au\n&retail.googleapis.com/Attribu"
+ + "tesConfig\022Kprojects/{project}/locations/"
+ + "{location}/catalogs/{catalog}/attributes"
+ + "Config\"\250\005\n\020CompletionConfig\022\024\n\004name\030\001 \001("
+ + "\tB\006\340A\002\340A\005\022\026\n\016matching_order\030\002 \001(\t\022\027\n\017max"
+ + "_suggestions\030\003 \001(\005\022\031\n\021min_prefix_length\030"
+ + "\004 \001(\005\022\025\n\rauto_learning\030\013 \001(\010\022]\n\030suggesti"
+ + "ons_input_config\030\005 \001(\01326.google.cloud.re"
+ + "tail.v2alpha.CompletionDataInputConfigB\003"
+ + "\340A\003\022.\n!last_suggestions_import_operation"
+ + "\030\006 \001(\tB\003\340A\003\022Z\n\025denylist_input_config\030\007 \001"
+ + "(\01326.google.cloud.retail.v2alpha.Complet"
+ + "ionDataInputConfigB\003\340A\003\022+\n\036last_denylist"
+ + "_import_operation\030\010 \001(\tB\003\340A\003\022[\n\026allowlis"
+ + "t_input_config\030\t \001(\01326.google.cloud.reta"
+ + "il.v2alpha.CompletionDataInputConfigB\003\340A"
+ + "\003\022,\n\037last_allowlist_import_operation\030\n \001"
+ + "(\tB\003\340A\003:x\352Au\n&retail.googleapis.com/Comp"
+ + "letionConfig\022Kprojects/{project}/locatio"
+ + "ns/{location}/catalogs/{catalog}/complet"
+ + "ionConfig\"\330\001\n\022MerchantCenterLink\022\'\n\032merc"
+ + "hant_center_account_id\030\001 \001(\003B\003\340A\002\022\021\n\tbra"
+ + "nch_id\030\002 \001(\t\022\024\n\014destinations\030\003 \003(\t\022\023\n\013re"
+ + "gion_code\030\004 \001(\t\022\025\n\rlanguage_code\030\005 \001(\t\022D"
+ + "\n\005feeds\030\006 \003(\01325.google.cloud.retail.v2al"
+ + "pha.MerchantCenterFeedFilter\"N\n\030Merchant"
+ + "CenterFeedFilter\022\027\n\017primary_feed_id\030\001 \001("
+ + "\003\022\031\n\021primary_feed_name\030\002 \001(\t\"]\n\033Merchant"
+ + "CenterLinkingConfig\022>\n\005links\030\001 \003(\0132/.goo"
+ + "gle.cloud.retail.v2alpha.MerchantCenterL"
+ + "ink\"\323\002\n\007Catalog\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n"
+ + "\014display_name\030\002 \001(\tB\006\340A\002\340A\005\022R\n\024product_l"
+ + "evel_config\030\004 \001(\0132/.google.cloud.retail."
+ + "v2alpha.ProductLevelConfigB\003\340A\002\022`\n\036merch"
+ + "ant_center_linking_config\030\006 \001(\01328.google"
+ + ".cloud.retail.v2alpha.MerchantCenterLink"
+ + "ingConfig:^\352A[\n\035retail.googleapis.com/Ca"
+ + "talog\022:projects/{project}/locations/{loc"
+ + "ation}/catalogs/{catalog}B\320\001\n\037com.google"
+ + ".cloud.retail.v2alphaB\014CatalogProtoP\001Z7c"
+ + "loud.google.com/go/retail/apiv2alpha/ret"
+ + "ailpb;retailpb\242\002\006RETAIL\252\002\033Google.Cloud.R"
+ + "etail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2al"
+ + "pha\352\002\036Google::Cloud::Retail::V2alphab\006pr"
+ + "oto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceProto.java
index cc536d610e9d..c8213616687a 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceProto.java
@@ -105,137 +105,136 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "gle/cloud/retail/v2alpha/catalog.proto\032\033"
+ "google/protobuf/empty.proto\032 google/prot"
+ "obuf/field_mask.proto\032\037google/protobuf/t"
- + "imestamp.proto\"x\n\023ListCatalogsRequest\022:\n"
- + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google"
- + "apis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
- + "page_token\030\003 \001(\t\"g\n\024ListCatalogsResponse"
- + "\0226\n\010catalogs\030\001 \003(\0132$.google.cloud.retail"
- + ".v2alpha.Catalog\022\027\n\017next_page_token\030\002 \001("
- + "\t\"\204\001\n\024UpdateCatalogRequest\022;\n\007catalog\030\001 "
- + "\001(\0132$.google.cloud.retail.v2alpha.Catalo"
- + "gB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr"
- + "otobuf.FieldMask\"\241\001\n\027SetDefaultBranchReq"
- + "uest\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.googl"
- + "eapis.com/Catalog\0224\n\tbranch_id\030\002 \001(\tB!\372A"
- + "\036\n\034retail.googleapis.com/Branch\022\014\n\004note\030"
- + "\003 \001(\t\022\r\n\005force\030\004 \001(\010\"N\n\027GetDefaultBranch"
- + "Request\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.go"
- + "ogleapis.com/Catalog\"\211\001\n\030GetDefaultBranc"
- + "hResponse\0221\n\006branch\030\001 \001(\tB!\372A\036\n\034retail.g"
- + "oogleapis.com/Branch\022,\n\010set_time\030\002 \001(\0132\032"
- + ".google.protobuf.Timestamp\022\014\n\004note\030\003 \001(\t"
- + "\"[\n\032GetCompletionConfigRequest\022=\n\004name\030\001"
- + " \001(\tB/\342A\001\002\372A(\n&retail.googleapis.com/Com"
- + "pletionConfig\"\240\001\n\035UpdateCompletionConfig"
- + "Request\022N\n\021completion_config\030\001 \001(\0132-.goo"
- + "gle.cloud.retail.v2alpha.CompletionConfi"
- + "gB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr"
- + "otobuf.FieldMask\"[\n\032GetAttributesConfigR"
- + "equest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&retail.go"
- + "ogleapis.com/AttributesConfig\"\240\001\n\035Update"
- + "AttributesConfigRequest\022N\n\021attributes_co"
- + "nfig\030\001 \001(\0132-.google.cloud.retail.v2alpha"
- + ".AttributesConfigB\004\342A\001\002\022/\n\013update_mask\030\002"
- + " \001(\0132\032.google.protobuf.FieldMask\"\270\001\n\032Add"
- + "CatalogAttributeRequest\022J\n\021attributes_co"
- + "nfig\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googleapis.c"
- + "om/AttributesConfig\022N\n\021catalog_attribute"
- + "\030\002 \001(\0132-.google.cloud.retail.v2alpha.Cat"
- + "alogAttributeB\004\342A\001\002\"~\n\035RemoveCatalogAttr"
- + "ibuteRequest\022J\n\021attributes_config\030\001 \001(\tB"
- + "/\342A\001\002\372A(\n&retail.googleapis.com/Attribut"
- + "esConfig\022\021\n\003key\030\002 \001(\tB\004\342A\001\002\"\217\001\n#BatchRem"
- + "oveCatalogAttributesRequest\022J\n\021attribute"
- + "s_config\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googleap"
- + "is.com/AttributesConfig\022\034\n\016attribute_key"
- + "s\030\002 \003(\tB\004\342A\001\002\"l\n$BatchRemoveCatalogAttri"
- + "butesResponse\022\"\n\032deleted_catalog_attribu"
- + "tes\030\001 \003(\t\022 \n\030reset_catalog_attributes\030\002 "
- + "\003(\t\"\355\001\n\036ReplaceCatalogAttributeRequest\022J"
- + "\n\021attributes_config\030\001 \001(\tB/\342A\001\002\372A(\n&reta"
- + "il.googleapis.com/AttributesConfig\022N\n\021ca"
- + "talog_attribute\030\002 \001(\0132-.google.cloud.ret"
- + "ail.v2alpha.CatalogAttributeB\004\342A\001\002\022/\n\013up"
- + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM"
- + "ask2\326\026\n\016CatalogService\022\267\001\n\014ListCatalogs\022"
- + "0.google.cloud.retail.v2alpha.ListCatalo"
- + "gsRequest\0321.google.cloud.retail.v2alpha."
- + "ListCatalogsResponse\"B\332A\006parent\202\323\344\223\0023\0221/"
- + "v2alpha/{parent=projects/*/locations/*}/"
- + "catalogs\022\312\001\n\rUpdateCatalog\0221.google.clou"
- + "d.retail.v2alpha.UpdateCatalogRequest\032$."
- + "google.cloud.retail.v2alpha.Catalog\"`\332A\023"
- + "catalog,update_mask\202\323\344\223\002D29/v2alpha/{cat"
- + "alog.name=projects/*/locations/*/catalog"
- + "s/*}:\007catalog\022\274\001\n\020SetDefaultBranch\0224.goo"
- + "gle.cloud.retail.v2alpha.SetDefaultBranc"
- + "hRequest\032\026.google.protobuf.Empty\"Z\332A\007cat"
- + "alog\202\323\344\223\002J\"E/v2alpha/{catalog=projects/*"
- + "/locations/*/catalogs/*}:setDefaultBranc"
- + "h:\001*\022\330\001\n\020GetDefaultBranch\0224.google.cloud"
- + ".retail.v2alpha.GetDefaultBranchRequest\032"
- + "5.google.cloud.retail.v2alpha.GetDefault"
- + "BranchResponse\"W\332A\007catalog\202\323\344\223\002G\022E/v2alp"
- + "ha/{catalog=projects/*/locations/*/catal"
- + "ogs/*}:getDefaultBranch\022\320\001\n\023GetCompletio"
- + "nConfig\0227.google.cloud.retail.v2alpha.Ge"
- + "tCompletionConfigRequest\032-.google.cloud."
- + "retail.v2alpha.CompletionConfig\"Q\332A\004name"
- + "\202\323\344\223\002D\022B/v2alpha/{name=projects/*/locati"
- + "ons/*/catalogs/*/completionConfig}\022\225\002\n\026U"
- + "pdateCompletionConfig\022:.google.cloud.ret"
- + "ail.v2alpha.UpdateCompletionConfigReques"
- + "t\032-.google.cloud.retail.v2alpha.Completi"
- + "onConfig\"\217\001\332A\035completion_config,update_m"
- + "ask\202\323\344\223\002i2T/v2alpha/{completion_config.n"
- + "ame=projects/*/locations/*/catalogs/*/co"
- + "mpletionConfig}:\021completion_config\022\320\001\n\023G"
- + "etAttributesConfig\0227.google.cloud.retail"
- + ".v2alpha.GetAttributesConfigRequest\032-.go"
- + "ogle.cloud.retail.v2alpha.AttributesConf"
- + "ig\"Q\332A\004name\202\323\344\223\002D\022B/v2alpha/{name=projec"
- + "ts/*/locations/*/catalogs/*/attributesCo"
- + "nfig}\022\225\002\n\026UpdateAttributesConfig\022:.googl"
- + "e.cloud.retail.v2alpha.UpdateAttributesC"
- + "onfigRequest\032-.google.cloud.retail.v2alp"
- + "ha.AttributesConfig\"\217\001\332A\035attributes_conf"
- + "ig,update_mask\202\323\344\223\002i2T/v2alpha/{attribut"
- + "es_config.name=projects/*/locations/*/ca"
- + "talogs/*/attributesConfig}:\021attributes_c"
- + "onfig\022\355\001\n\023AddCatalogAttribute\0227.google.c"
- + "loud.retail.v2alpha.AddCatalogAttributeR"
- + "equest\032-.google.cloud.retail.v2alpha.Att"
- + "ributesConfig\"n\202\323\344\223\002h\"c/v2alpha/{attribu"
- + "tes_config=projects/*/locations/*/catalo"
- + "gs/*/attributesConfig}:addCatalogAttribu"
- + "te:\001*\022\366\001\n\026RemoveCatalogAttribute\022:.googl"
- + "e.cloud.retail.v2alpha.RemoveCatalogAttr"
- + "ibuteRequest\032-.google.cloud.retail.v2alp"
- + "ha.AttributesConfig\"q\202\323\344\223\002k\"f/v2alpha/{a"
- + "ttributes_config=projects/*/locations/*/"
- + "catalogs/*/attributesConfig}:removeCatal"
- + "ogAttribute:\001*\022\234\002\n\034BatchRemoveCatalogAtt"
- + "ributes\022@.google.cloud.retail.v2alpha.Ba"
- + "tchRemoveCatalogAttributesRequest\032A.goog"
+ + "imestamp.proto\"w\n\023ListCatalogsRequest\0229\n"
+ + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea"
+ + "pis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np"
+ + "age_token\030\003 \001(\t\"g\n\024ListCatalogsResponse\022"
+ + "6\n\010catalogs\030\001 \003(\0132$.google.cloud.retail."
+ + "v2alpha.Catalog\022\027\n\017next_page_token\030\002 \001(\t"
+ + "\"\203\001\n\024UpdateCatalogRequest\022:\n\007catalog\030\001 \001"
+ + "(\0132$.google.cloud.retail.v2alpha.Catalog"
+ + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot"
+ + "obuf.FieldMask\"\241\001\n\027SetDefaultBranchReque"
+ + "st\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.googlea"
+ + "pis.com/Catalog\0224\n\tbranch_id\030\002 \001(\tB!\372A\036\n"
+ + "\034retail.googleapis.com/Branch\022\014\n\004note\030\003 "
+ + "\001(\t\022\r\n\005force\030\004 \001(\010\"N\n\027GetDefaultBranchRe"
+ + "quest\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.goog"
+ + "leapis.com/Catalog\"\211\001\n\030GetDefaultBranchR"
+ + "esponse\0221\n\006branch\030\001 \001(\tB!\372A\036\n\034retail.goo"
+ + "gleapis.com/Branch\022,\n\010set_time\030\002 \001(\0132\032.g"
+ + "oogle.protobuf.Timestamp\022\014\n\004note\030\003 \001(\t\"Z"
+ + "\n\032GetCompletionConfigRequest\022<\n\004name\030\001 \001"
+ + "(\tB.\340A\002\372A(\n&retail.googleapis.com/Comple"
+ + "tionConfig\"\237\001\n\035UpdateCompletionConfigReq"
+ + "uest\022M\n\021completion_config\030\001 \001(\0132-.google"
+ + ".cloud.retail.v2alpha.CompletionConfigB\003"
+ + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob"
+ + "uf.FieldMask\"Z\n\032GetAttributesConfigReque"
+ + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&retail.googlea"
+ + "pis.com/AttributesConfig\"\237\001\n\035UpdateAttri"
+ + "butesConfigRequest\022M\n\021attributes_config\030"
+ + "\001 \001(\0132-.google.cloud.retail.v2alpha.Attr"
+ + "ibutesConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032"
+ + ".google.protobuf.FieldMask\"\266\001\n\032AddCatalo"
+ + "gAttributeRequest\022I\n\021attributes_config\030\001"
+ + " \001(\tB.\340A\002\372A(\n&retail.googleapis.com/Attr"
+ + "ibutesConfig\022M\n\021catalog_attribute\030\002 \001(\0132"
+ + "-.google.cloud.retail.v2alpha.CatalogAtt"
+ + "ributeB\003\340A\002\"|\n\035RemoveCatalogAttributeReq"
+ + "uest\022I\n\021attributes_config\030\001 \001(\tB.\340A\002\372A(\n"
+ + "&retail.googleapis.com/AttributesConfig\022"
+ + "\020\n\003key\030\002 \001(\tB\003\340A\002\"\215\001\n#BatchRemoveCatalog"
+ + "AttributesRequest\022I\n\021attributes_config\030\001"
+ + " \001(\tB.\340A\002\372A(\n&retail.googleapis.com/Attr"
+ + "ibutesConfig\022\033\n\016attribute_keys\030\002 \003(\tB\003\340A"
+ + "\002\"l\n$BatchRemoveCatalogAttributesRespons"
+ + "e\022\"\n\032deleted_catalog_attributes\030\001 \003(\t\022 \n"
+ + "\030reset_catalog_attributes\030\002 \003(\t\"\353\001\n\036Repl"
+ + "aceCatalogAttributeRequest\022I\n\021attributes"
+ + "_config\030\001 \001(\tB.\340A\002\372A(\n&retail.googleapis"
+ + ".com/AttributesConfig\022M\n\021catalog_attribu"
+ + "te\030\002 \001(\0132-.google.cloud.retail.v2alpha.C"
+ + "atalogAttributeB\003\340A\002\022/\n\013update_mask\030\003 \001("
+ + "\0132\032.google.protobuf.FieldMask2\326\026\n\016Catalo"
+ + "gService\022\267\001\n\014ListCatalogs\0220.google.cloud"
+ + ".retail.v2alpha.ListCatalogsRequest\0321.go"
+ + "ogle.cloud.retail.v2alpha.ListCatalogsRe"
+ + "sponse\"B\332A\006parent\202\323\344\223\0023\0221/v2alpha/{paren"
+ + "t=projects/*/locations/*}/catalogs\022\312\001\n\rU"
+ + "pdateCatalog\0221.google.cloud.retail.v2alp"
+ + "ha.UpdateCatalogRequest\032$.google.cloud.r"
+ + "etail.v2alpha.Catalog\"`\332A\023catalog,update"
+ + "_mask\202\323\344\223\002D29/v2alpha/{catalog.name=proj"
+ + "ects/*/locations/*/catalogs/*}:\007catalog\022"
+ + "\274\001\n\020SetDefaultBranch\0224.google.cloud.reta"
+ + "il.v2alpha.SetDefaultBranchRequest\032\026.goo"
+ + "gle.protobuf.Empty\"Z\332A\007catalog\202\323\344\223\002J\"E/v"
+ + "2alpha/{catalog=projects/*/locations/*/c"
+ + "atalogs/*}:setDefaultBranch:\001*\022\330\001\n\020GetDe"
+ + "faultBranch\0224.google.cloud.retail.v2alph"
+ + "a.GetDefaultBranchRequest\0325.google.cloud"
+ + ".retail.v2alpha.GetDefaultBranchResponse"
+ + "\"W\332A\007catalog\202\323\344\223\002G\022E/v2alpha/{catalog=pr"
+ + "ojects/*/locations/*/catalogs/*}:getDefa"
+ + "ultBranch\022\320\001\n\023GetCompletionConfig\0227.goog"
+ + "le.cloud.retail.v2alpha.GetCompletionCon"
+ + "figRequest\032-.google.cloud.retail.v2alpha"
+ + ".CompletionConfig\"Q\332A\004name\202\323\344\223\002D\022B/v2alp"
+ + "ha/{name=projects/*/locations/*/catalogs"
+ + "/*/completionConfig}\022\225\002\n\026UpdateCompletio"
+ + "nConfig\022:.google.cloud.retail.v2alpha.Up"
+ + "dateCompletionConfigRequest\032-.google.clo"
+ + "ud.retail.v2alpha.CompletionConfig\"\217\001\332A\035"
+ + "completion_config,update_mask\202\323\344\223\002i2T/v2"
+ + "alpha/{completion_config.name=projects/*"
+ + "/locations/*/catalogs/*/completionConfig"
+ + "}:\021completion_config\022\320\001\n\023GetAttributesCo"
+ + "nfig\0227.google.cloud.retail.v2alpha.GetAt"
+ + "tributesConfigRequest\032-.google.cloud.ret"
+ + "ail.v2alpha.AttributesConfig\"Q\332A\004name\202\323\344"
+ + "\223\002D\022B/v2alpha/{name=projects/*/locations"
+ + "/*/catalogs/*/attributesConfig}\022\225\002\n\026Upda"
+ + "teAttributesConfig\022:.google.cloud.retail"
+ + ".v2alpha.UpdateAttributesConfigRequest\032-"
+ + ".google.cloud.retail.v2alpha.AttributesC"
+ + "onfig\"\217\001\332A\035attributes_config,update_mask"
+ + "\202\323\344\223\002i2T/v2alpha/{attributes_config.name"
+ + "=projects/*/locations/*/catalogs/*/attri"
+ + "butesConfig}:\021attributes_config\022\355\001\n\023AddC"
+ + "atalogAttribute\0227.google.cloud.retail.v2"
+ + "alpha.AddCatalogAttributeRequest\032-.googl"
+ + "e.cloud.retail.v2alpha.AttributesConfig\""
+ + "n\202\323\344\223\002h\"c/v2alpha/{attributes_config=pro"
+ + "jects/*/locations/*/catalogs/*/attribute"
+ + "sConfig}:addCatalogAttribute:\001*\022\366\001\n\026Remo"
+ + "veCatalogAttribute\022:.google.cloud.retail"
+ + ".v2alpha.RemoveCatalogAttributeRequest\032-"
+ + ".google.cloud.retail.v2alpha.AttributesC"
+ + "onfig\"q\202\323\344\223\002k\"f/v2alpha/{attributes_conf"
+ + "ig=projects/*/locations/*/catalogs/*/att"
+ + "ributesConfig}:removeCatalogAttribute:\001*"
+ + "\022\234\002\n\034BatchRemoveCatalogAttributes\022@.goog"
+ "le.cloud.retail.v2alpha.BatchRemoveCatal"
- + "ogAttributesResponse\"w\202\323\344\223\002q\"l/v2alpha/{"
- + "attributes_config=projects/*/locations/*"
- + "/catalogs/*/attributesConfig}:batchRemov"
- + "eCatalogAttributes:\001*\022\371\001\n\027ReplaceCatalog"
- + "Attribute\022;.google.cloud.retail.v2alpha."
- + "ReplaceCatalogAttributeRequest\032-.google."
- + "cloud.retail.v2alpha.AttributesConfig\"r\202"
- + "\323\344\223\002l\"g/v2alpha/{attributes_config=proje"
- + "cts/*/locations/*/catalogs/*/attributesC"
- + "onfig}:replaceCatalogAttribute:\001*\032I\312A\025re"
- + "tail.googleapis.com\322A.https://www.google"
- + "apis.com/auth/cloud-platformB\327\001\n\037com.goo"
- + "gle.cloud.retail.v2alphaB\023CatalogService"
- + "ProtoP\001Z7cloud.google.com/go/retail/apiv"
- + "2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Goog"
- + "le.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\R"
- + "etail\\V2alpha\352\002\036Google::Cloud::Retail::V"
- + "2alphab\006proto3"
+ + "ogAttributesRequest\032A.google.cloud.retai"
+ + "l.v2alpha.BatchRemoveCatalogAttributesRe"
+ + "sponse\"w\202\323\344\223\002q\"l/v2alpha/{attributes_con"
+ + "fig=projects/*/locations/*/catalogs/*/at"
+ + "tributesConfig}:batchRemoveCatalogAttrib"
+ + "utes:\001*\022\371\001\n\027ReplaceCatalogAttribute\022;.go"
+ + "ogle.cloud.retail.v2alpha.ReplaceCatalog"
+ + "AttributeRequest\032-.google.cloud.retail.v"
+ + "2alpha.AttributesConfig\"r\202\323\344\223\002l\"g/v2alph"
+ + "a/{attributes_config=projects/*/location"
+ + "s/*/catalogs/*/attributesConfig}:replace"
+ + "CatalogAttribute:\001*\032I\312A\025retail.googleapi"
+ + "s.com\322A.https://www.googleapis.com/auth/"
+ + "cloud-platformB\327\001\n\037com.google.cloud.reta"
+ + "il.v2alphaB\023CatalogServiceProtoP\001Z7cloud"
+ + ".google.com/go/retail/apiv2alpha/retailp"
+ + "b;retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retai"
+ + "l.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352"
+ + "\002\036Google::Cloud::Retail::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java
index 6176001cfa38..9eadb4d2fa6a 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java
@@ -144,7 +144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e\030\001 \001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n\tTimeRange"
+ "\022.\n\nstart_time\030\001 \001(\0132\032.google.protobuf.T"
+ "imestamp\022,\n\010end_time\030\002 \001(\0132\032.google.prot"
- + "obuf.Timestamp\"\253\t\n\004Rule\022E\n\014boost_action\030"
+ + "obuf.Timestamp\"\252\t\n\004Rule\022E\n\014boost_action\030"
+ "\002 \001(\0132-.google.cloud.retail.v2alpha.Rule"
+ ".BoostActionH\000\022K\n\017redirect_action\030\003 \001(\0132"
+ "0.google.cloud.retail.v2alpha.Rule.Redir"
@@ -160,74 +160,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ction\030\n \001(\0132..google.cloud.retail.v2alph"
+ "a.Rule.FilterActionH\000\022X\n\026twoway_synonyms"
+ "_action\030\013 \001(\01326.google.cloud.retail.v2al"
- + "pha.Rule.TwowaySynonymsActionH\000\022?\n\tcondi"
+ + "pha.Rule.TwowaySynonymsActionH\000\022>\n\tcondi"
+ "tion\030\001 \001(\0132&.google.cloud.retail.v2alpha"
- + ".ConditionB\004\342A\001\002\0325\n\013BoostAction\022\r\n\005boost"
- + "\030\001 \001(\002\022\027\n\017products_filter\030\002 \001(\t\032\036\n\014Filte"
- + "rAction\022\016\n\006filter\030\001 \001(\t\032&\n\016RedirectActio"
- + "n\022\024\n\014redirect_uri\030\001 \001(\t\032(\n\024TwowaySynonym"
- + "sAction\022\020\n\010synonyms\030\001 \003(\t\032S\n\024OnewaySynon"
- + "ymsAction\022\023\n\013query_terms\030\003 \003(\t\022\020\n\010synony"
- + "ms\030\004 \003(\t\022\024\n\014oneway_terms\030\002 \003(\t\032Z\n\024DoNotA"
- + "ssociateAction\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026d"
- + "o_not_associate_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003"
- + "(\t\032P\n\021ReplacementAction\022\023\n\013query_terms\030\002"
- + " \003(\t\022\030\n\020replacement_term\030\003 \001(\t\022\014\n\004term\030\001"
- + " \001(\t\032$\n\014IgnoreAction\022\024\n\014ignore_terms\030\001 \003"
- + "(\tB\010\n\006action\"/\n\010Audience\022\017\n\007genders\030\001 \003("
- + "\t\022\022\n\nage_groups\030\002 \003(\t\"3\n\tColorInfo\022\026\n\016co"
- + "lor_families\030\001 \003(\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017C"
- + "ustomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030"
- + "\002 \003(\001\022\033\n\nsearchable\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tin"
- + "dexable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n\013_searchableB\014\n"
- + "\n_indexable\"2\n\017FulfillmentInfo\022\014\n\004type\030\001"
- + " \001(\t\022\021\n\tplace_ids\030\002 \003(\t\"9\n\005Image\022\021\n\003uri\030"
- + "\001 \001(\tB\004\342A\001\002\022\016\n\006height\030\002 \001(\005\022\r\n\005width\030\003 \001"
- + "(\005\"x\n\010Interval\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exc"
- + "lusive_minimum\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H"
- + "\001\022\033\n\021exclusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n"
- + "\003max\"\232\003\n\tPriceInfo\022\025\n\rcurrency_code\030\001 \001("
- + "\t\022\r\n\005price\030\002 \001(\002\022\026\n\016original_price\030\003 \001(\002"
- + "\022\014\n\004cost\030\004 \001(\002\0228\n\024price_effective_time\030\005"
- + " \001(\0132\032.google.protobuf.Timestamp\0225\n\021pric"
- + "e_expire_time\030\006 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\022L\n\013price_range\030\007 \001(\01321.google.cl"
- + "oud.retail.v2alpha.PriceInfo.PriceRangeB"
- + "\004\342A\001\003\032\201\001\n\nPriceRange\0224\n\005price\030\001 \001(\0132%.go"
- + "ogle.cloud.retail.v2alpha.Interval\022=\n\016or"
- + "iginal_price\030\002 \001(\0132%.google.cloud.retail"
- + ".v2alpha.Interval\"P\n\006Rating\022\024\n\014rating_co"
- + "unt\030\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020rat"
- + "ing_histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user_"
- + "id\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_age"
- + "nt\030\003 \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\261\002"
- + "\n\016LocalInventory\022\020\n\010place_id\030\001 \001(\t\022:\n\npr"
- + "ice_info\030\002 \001(\0132&.google.cloud.retail.v2a"
- + "lpha.PriceInfo\022O\n\nattributes\030\003 \003(\0132;.goo"
- + "gle.cloud.retail.v2alpha.LocalInventory."
- + "AttributesEntry\022\037\n\021fulfillment_types\030\004 \003"
- + "(\tB\004\342A\001\004\032_\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t"
- + "\022;\n\005value\030\002 \001(\0132,.google.cloud.retail.v2"
- + "alpha.CustomAttribute:\0028\001*\206\001\n\024AttributeC"
- + "onfigLevel\022&\n\"ATTRIBUTE_CONFIG_LEVEL_UNS"
- + "PECIFIED\020\000\022\"\n\036PRODUCT_LEVEL_ATTRIBUTE_CO"
- + "NFIG\020\001\022\"\n\036CATALOG_LEVEL_ATTRIBUTE_CONFIG"
- + "\020\002*i\n\014SolutionType\022\035\n\031SOLUTION_TYPE_UNSP"
- + "ECIFIED\020\000\022 \n\034SOLUTION_TYPE_RECOMMENDATIO"
- + "N\020\001\022\030\n\024SOLUTION_TYPE_SEARCH\020\002*\241\001\n\036Recomm"
- + "endationsFilteringOption\0220\n,RECOMMENDATI"
- + "ONS_FILTERING_OPTION_UNSPECIFIED\020\000\022&\n\"RE"
- + "COMMENDATIONS_FILTERING_DISABLED\020\001\022%\n!RE"
- + "COMMENDATIONS_FILTERING_ENABLED\020\003*\213\001\n\025Se"
- + "archSolutionUseCase\022(\n$SEARCH_SOLUTION_U"
- + "SE_CASE_UNSPECIFIED\020\000\022#\n\037SEARCH_SOLUTION"
- + "_USE_CASE_SEARCH\020\001\022#\n\037SEARCH_SOLUTION_US"
- + "E_CASE_BROWSE\020\002B\317\001\n\037com.google.cloud.ret"
- + "ail.v2alphaB\013CommonProtoP\001Z7cloud.google"
- + ".com/go/retail/apiv2alpha/retailpb;retai"
- + "lpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V2Alp"
- + "ha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036Googl"
- + "e::Cloud::Retail::V2alphab\006proto3"
+ + ".ConditionB\003\340A\002\0325\n\013BoostAction\022\r\n\005boost\030"
+ + "\001 \001(\002\022\027\n\017products_filter\030\002 \001(\t\032\036\n\014Filter"
+ + "Action\022\016\n\006filter\030\001 \001(\t\032&\n\016RedirectAction"
+ + "\022\024\n\014redirect_uri\030\001 \001(\t\032(\n\024TwowaySynonyms"
+ + "Action\022\020\n\010synonyms\030\001 \003(\t\032S\n\024OnewaySynony"
+ + "msAction\022\023\n\013query_terms\030\003 \003(\t\022\020\n\010synonym"
+ + "s\030\004 \003(\t\022\024\n\014oneway_terms\030\002 \003(\t\032Z\n\024DoNotAs"
+ + "sociateAction\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026do"
+ + "_not_associate_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003("
+ + "\t\032P\n\021ReplacementAction\022\023\n\013query_terms\030\002 "
+ + "\003(\t\022\030\n\020replacement_term\030\003 \001(\t\022\014\n\004term\030\001 "
+ + "\001(\t\032$\n\014IgnoreAction\022\024\n\014ignore_terms\030\001 \003("
+ + "\tB\010\n\006action\"/\n\010Audience\022\017\n\007genders\030\001 \003(\t"
+ + "\022\022\n\nage_groups\030\002 \003(\t\"3\n\tColorInfo\022\026\n\016col"
+ + "or_families\030\001 \003(\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017Cu"
+ + "stomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002"
+ + " \003(\001\022\033\n\nsearchable\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tind"
+ + "exable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n\013_searchableB\014\n\n"
+ + "_indexable\"2\n\017FulfillmentInfo\022\014\n\004type\030\001 "
+ + "\001(\t\022\021\n\tplace_ids\030\002 \003(\t\"8\n\005Image\022\020\n\003uri\030\001"
+ + " \001(\tB\003\340A\002\022\016\n\006height\030\002 \001(\005\022\r\n\005width\030\003 \001(\005"
+ + "\"x\n\010Interval\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclu"
+ + "sive_minimum\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022"
+ + "\033\n\021exclusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003m"
+ + "ax\"\231\003\n\tPriceInfo\022\025\n\rcurrency_code\030\001 \001(\t\022"
+ + "\r\n\005price\030\002 \001(\002\022\026\n\016original_price\030\003 \001(\002\022\014"
+ + "\n\004cost\030\004 \001(\002\0228\n\024price_effective_time\030\005 \001"
+ + "(\0132\032.google.protobuf.Timestamp\0225\n\021price_"
+ + "expire_time\030\006 \001(\0132\032.google.protobuf.Time"
+ + "stamp\022K\n\013price_range\030\007 \001(\01321.google.clou"
+ + "d.retail.v2alpha.PriceInfo.PriceRangeB\003\340"
+ + "A\003\032\201\001\n\nPriceRange\0224\n\005price\030\001 \001(\0132%.googl"
+ + "e.cloud.retail.v2alpha.Interval\022=\n\016origi"
+ + "nal_price\030\002 \001(\0132%.google.cloud.retail.v2"
+ + "alpha.Interval\"P\n\006Rating\022\024\n\014rating_count"
+ + "\030\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020rating"
+ + "_histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user_id\030"
+ + "\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_agent\030"
+ + "\003 \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\260\002\n\016L"
+ + "ocalInventory\022\020\n\010place_id\030\001 \001(\t\022:\n\nprice"
+ + "_info\030\002 \001(\0132&.google.cloud.retail.v2alph"
+ + "a.PriceInfo\022O\n\nattributes\030\003 \003(\0132;.google"
+ + ".cloud.retail.v2alpha.LocalInventory.Att"
+ + "ributesEntry\022\036\n\021fulfillment_types\030\004 \003(\tB"
+ + "\003\340A\004\032_\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005"
+ + "value\030\002 \001(\0132,.google.cloud.retail.v2alph"
+ + "a.CustomAttribute:\0028\001*\206\001\n\024AttributeConfi"
+ + "gLevel\022&\n\"ATTRIBUTE_CONFIG_LEVEL_UNSPECI"
+ + "FIED\020\000\022\"\n\036PRODUCT_LEVEL_ATTRIBUTE_CONFIG"
+ + "\020\001\022\"\n\036CATALOG_LEVEL_ATTRIBUTE_CONFIG\020\002*i"
+ + "\n\014SolutionType\022\035\n\031SOLUTION_TYPE_UNSPECIF"
+ + "IED\020\000\022 \n\034SOLUTION_TYPE_RECOMMENDATION\020\001\022"
+ + "\030\n\024SOLUTION_TYPE_SEARCH\020\002*\241\001\n\036Recommenda"
+ + "tionsFilteringOption\0220\n,RECOMMENDATIONS_"
+ + "FILTERING_OPTION_UNSPECIFIED\020\000\022&\n\"RECOMM"
+ + "ENDATIONS_FILTERING_DISABLED\020\001\022%\n!RECOMM"
+ + "ENDATIONS_FILTERING_ENABLED\020\003*\213\001\n\025Search"
+ + "SolutionUseCase\022(\n$SEARCH_SOLUTION_USE_C"
+ + "ASE_UNSPECIFIED\020\000\022#\n\037SEARCH_SOLUTION_USE"
+ + "_CASE_SEARCH\020\001\022#\n\037SEARCH_SOLUTION_USE_CA"
+ + "SE_BROWSE\020\002B\317\001\n\037com.google.cloud.retail."
+ + "v2alphaB\013CommonProtoP\001Z7cloud.google.com"
+ + "/go/retail/apiv2alpha/retailpb;retailpb\242"
+ + "\002\006RETAIL\252\002\033Google.Cloud.Retail.V2Alpha\312\002"
+ + "\033Google\\Cloud\\Retail\\V2alpha\352\002\036Google::C"
+ + "loud::Retail::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java
index 6188626ef627..5c279f2eb0bc 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java
@@ -74,57 +74,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\032/google/cloud/retail/v2alpha/import_con"
+ "fig.proto\0320google/cloud/retail/v2alpha/s"
+ "earch_service.proto\032#google/longrunning/"
- + "operations.proto\"\205\002\n\024CompleteQueryReques"
- + "t\0227\n\007catalog\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.goog"
- + "leapis.com/Catalog\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022"
- + "\022\n\nvisitor_id\030\007 \001(\t\022\026\n\016language_codes\030\003 "
- + "\003(\t\022\023\n\013device_type\030\004 \001(\t\022\017\n\007dataset\030\006 \001("
- + "\t\022\027\n\017max_suggestions\030\005 \001(\005\022$\n\034enable_att"
- + "ribute_suggestions\030\t \001(\010\022\016\n\006entity\030\n \001(\t"
- + "\"\203\007\n\025CompleteQueryResponse\022_\n\022completion"
- + "_results\030\001 \003(\0132C.google.cloud.retail.v2a"
- + "lpha.CompleteQueryResponse.CompletionRes"
- + "ult\022\031\n\021attribution_token\030\002 \001(\t\022d\n\025recent"
- + "_search_results\030\003 \003(\0132E.google.cloud.ret"
- + "ail.v2alpha.CompleteQueryResponse.Recent"
- + "SearchResult\022c\n\021attribute_results\030\004 \003(\0132"
- + "H.google.cloud.retail.v2alpha.CompleteQu"
- + "eryResponse.AttributeResultsEntry\032\320\002\n\020Co"
- + "mpletionResult\022\022\n\nsuggestion\030\001 \001(\t\022g\n\nat"
- + "tributes\030\002 \003(\0132S.google.cloud.retail.v2a"
- + "lpha.CompleteQueryResponse.CompletionRes"
- + "ult.AttributesEntry\022A\n\006facets\030\003 \003(\01321.go"
- + "ogle.cloud.retail.v2alpha.SearchResponse"
- + ".Facet\022\033\n\023total_product_count\030\004 \001(\005\032_\n\017A"
- + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001"
- + "(\0132,.google.cloud.retail.v2alpha.CustomA"
- + "ttribute:\0028\001\032+\n\022RecentSearchResult\022\025\n\rre"
- + "cent_search\030\001 \001(\t\032&\n\017AttributeResult\022\023\n\013"
- + "suggestions\030\001 \003(\t\032{\n\025AttributeResultsEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022Q\n\005value\030\002 \001(\0132B.google."
- + "cloud.retail.v2alpha.CompleteQueryRespon"
- + "se.AttributeResult:\0028\0012\325\004\n\021CompletionSer"
- + "vice\022\302\001\n\rCompleteQuery\0221.google.cloud.re"
- + "tail.v2alpha.CompleteQueryRequest\0322.goog"
- + "le.cloud.retail.v2alpha.CompleteQueryRes"
- + "ponse\"J\202\323\344\223\002D\022B/v2alpha/{catalog=project"
- + "s/*/locations/*/catalogs/*}:completeQuer"
- + "y\022\257\002\n\024ImportCompletionData\0228.google.clou"
- + "d.retail.v2alpha.ImportCompletionDataReq"
- + "uest\032\035.google.longrunning.Operation\"\275\001\312A"
- + "f\n8google.cloud.retail.v2alpha.ImportCom"
- + "pletionDataResponse\022*google.cloud.retail"
- + ".v2alpha.ImportMetadata\202\323\344\223\002N\"I/v2alpha/"
- + "{parent=projects/*/locations/*/catalogs/"
- + "*}/completionData:import:\001*\032I\312A\025retail.g"
- + "oogleapis.com\322A.https://www.googleapis.c"
- + "om/auth/cloud-platformB\332\001\n\037com.google.cl"
- + "oud.retail.v2alphaB\026CompletionServicePro"
- + "toP\001Z7cloud.google.com/go/retail/apiv2al"
- + "pha/retailpb;retailpb\242\002\006RETAIL\252\002\033Google."
- + "Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Reta"
- + "il\\V2alpha\352\002\036Google::Cloud::Retail::V2al"
- + "phab\006proto3"
+ + "operations.proto\"\203\002\n\024CompleteQueryReques"
+ + "t\0226\n\007catalog\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googl"
+ + "eapis.com/Catalog\022\022\n\005query\030\002 \001(\tB\003\340A\002\022\022\n"
+ + "\nvisitor_id\030\007 \001(\t\022\026\n\016language_codes\030\003 \003("
+ + "\t\022\023\n\013device_type\030\004 \001(\t\022\017\n\007dataset\030\006 \001(\t\022"
+ + "\027\n\017max_suggestions\030\005 \001(\005\022$\n\034enable_attri"
+ + "bute_suggestions\030\t \001(\010\022\016\n\006entity\030\n \001(\t\"\203"
+ + "\007\n\025CompleteQueryResponse\022_\n\022completion_r"
+ + "esults\030\001 \003(\0132C.google.cloud.retail.v2alp"
+ + "ha.CompleteQueryResponse.CompletionResul"
+ + "t\022\031\n\021attribution_token\030\002 \001(\t\022d\n\025recent_s"
+ + "earch_results\030\003 \003(\0132E.google.cloud.retai"
+ + "l.v2alpha.CompleteQueryResponse.RecentSe"
+ + "archResult\022c\n\021attribute_results\030\004 \003(\0132H."
+ + "google.cloud.retail.v2alpha.CompleteQuer"
+ + "yResponse.AttributeResultsEntry\032\320\002\n\020Comp"
+ + "letionResult\022\022\n\nsuggestion\030\001 \001(\t\022g\n\nattr"
+ + "ibutes\030\002 \003(\0132S.google.cloud.retail.v2alp"
+ + "ha.CompleteQueryResponse.CompletionResul"
+ + "t.AttributesEntry\022A\n\006facets\030\003 \003(\01321.goog"
+ + "le.cloud.retail.v2alpha.SearchResponse.F"
+ + "acet\022\033\n\023total_product_count\030\004 \001(\005\032_\n\017Att"
+ + "ributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\013"
+ + "2,.google.cloud.retail.v2alpha.CustomAtt"
+ + "ribute:\0028\001\032+\n\022RecentSearchResult\022\025\n\rrece"
+ + "nt_search\030\001 \001(\t\032&\n\017AttributeResult\022\023\n\013su"
+ + "ggestions\030\001 \003(\t\032{\n\025AttributeResultsEntry"
+ + "\022\013\n\003key\030\001 \001(\t\022Q\n\005value\030\002 \001(\0132B.google.cl"
+ + "oud.retail.v2alpha.CompleteQueryResponse"
+ + ".AttributeResult:\0028\0012\325\004\n\021CompletionServi"
+ + "ce\022\302\001\n\rCompleteQuery\0221.google.cloud.reta"
+ + "il.v2alpha.CompleteQueryRequest\0322.google"
+ + ".cloud.retail.v2alpha.CompleteQueryRespo"
+ + "nse\"J\202\323\344\223\002D\022B/v2alpha/{catalog=projects/"
+ + "*/locations/*/catalogs/*}:completeQuery\022"
+ + "\257\002\n\024ImportCompletionData\0228.google.cloud."
+ + "retail.v2alpha.ImportCompletionDataReque"
+ + "st\032\035.google.longrunning.Operation\"\275\001\312Af\n"
+ + "8google.cloud.retail.v2alpha.ImportCompl"
+ + "etionDataResponse\022*google.cloud.retail.v"
+ + "2alpha.ImportMetadata\202\323\344\223\002N\"I/v2alpha/{p"
+ + "arent=projects/*/locations/*/catalogs/*}"
+ + "/completionData:import:\001*\032I\312A\025retail.goo"
+ + "gleapis.com\322A.https://www.googleapis.com"
+ + "/auth/cloud-platformB\332\001\n\037com.google.clou"
+ + "d.retail.v2alphaB\026CompletionServiceProto"
+ + "P\001Z7cloud.google.com/go/retail/apiv2alph"
+ + "a/retailpb;retailpb\242\002\006RETAIL\252\002\033Google.Cl"
+ + "oud.Retail.V2Alpha\312\002\033Google\\Cloud\\Retail"
+ + "\\V2alpha\352\002\036Google::Cloud::Retail::V2alph"
+ + "ab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlProto.java
index d921072cfe1c..94a06358322a 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlProto.java
@@ -46,26 +46,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/api/field_behavior.proto\032\031google/api/re"
+ "source.proto\032(google/cloud/retail/v2alph"
+ "a/common.proto\0320google/cloud/retail/v2al"
- + "pha/search_service.proto\"\207\004\n\007Control\022N\n\n"
+ + "pha/search_service.proto\"\205\004\n\007Control\022N\n\n"
+ "facet_spec\030\003 \001(\01324.google.cloud.retail.v"
+ "2alpha.SearchRequest.FacetSpecB\002\030\001H\000\0221\n\004"
+ "rule\030\004 \001(\0132!.google.cloud.retail.v2alpha"
- + ".RuleH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_n"
- + "ame\030\002 \001(\tB\004\342A\001\002\022+\n\035associated_serving_co"
- + "nfig_ids\030\005 \003(\tB\004\342A\001\003\022H\n\016solution_types\030\006"
- + " \003(\0162).google.cloud.retail.v2alpha.Solut"
- + "ionTypeB\005\342A\002\002\005\022T\n\030search_solution_use_ca"
- + "se\030\007 \003(\01622.google.cloud.retail.v2alpha.S"
- + "earchSolutionUseCase:q\352An\n\035retail.google"
- + "apis.com/Control\022Mprojects/{project}/loc"
- + "ations/{location}/catalogs/{catalog}/con"
- + "trols/{control}B\t\n\007controlB\320\001\n\037com.googl"
- + "e.cloud.retail.v2alphaB\014ControlProtoP\001Z7"
- + "cloud.google.com/go/retail/apiv2alpha/re"
- + "tailpb;retailpb\242\002\006RETAIL\252\002\033Google.Cloud."
- + "Retail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2a"
- + "lpha\352\002\036Google::Cloud::Retail::V2alphab\006p"
- + "roto3"
+ + ".RuleH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_na"
+ + "me\030\002 \001(\tB\003\340A\002\022*\n\035associated_serving_conf"
+ + "ig_ids\030\005 \003(\tB\003\340A\003\022I\n\016solution_types\030\006 \003("
+ + "\0162).google.cloud.retail.v2alpha.Solution"
+ + "TypeB\006\340A\002\340A\005\022T\n\030search_solution_use_case"
+ + "\030\007 \003(\01622.google.cloud.retail.v2alpha.Sea"
+ + "rchSolutionUseCase:q\352An\n\035retail.googleap"
+ + "is.com/Control\022Mprojects/{project}/locat"
+ + "ions/{location}/catalogs/{catalog}/contr"
+ + "ols/{control}B\t\n\007controlB\320\001\n\037com.google."
+ + "cloud.retail.v2alphaB\014ControlProtoP\001Z7cl"
+ + "oud.google.com/go/retail/apiv2alpha/reta"
+ + "ilpb;retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Re"
+ + "tail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alp"
+ + "ha\352\002\036Google::Cloud::Retail::V2alphab\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceProto.java
index 9d3992562574..3fc0be578cbf 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceProto.java
@@ -68,57 +68,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "or.proto\032\031google/api/resource.proto\032)goo"
+ "gle/cloud/retail/v2alpha/control.proto\032\033"
+ "google/protobuf/empty.proto\032 google/prot"
- + "obuf/field_mask.proto\"\245\001\n\024CreateControlR"
- + "equest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail."
- + "googleapis.com/Catalog\022;\n\007control\030\002 \001(\0132"
- + "$.google.cloud.retail.v2alpha.ControlB\004\342"
- + "A\001\002\022\030\n\ncontrol_id\030\003 \001(\tB\004\342A\001\002\"\204\001\n\024Update"
- + "ControlRequest\022;\n\007control\030\001 \001(\0132$.google"
- + ".cloud.retail.v2alpha.ControlB\004\342A\001\002\022/\n\013u"
- + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
- + "Mask\"L\n\024DeleteControlRequest\0224\n\004name\030\001 \001"
- + "(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/Contr"
- + "ol\"I\n\021GetControlRequest\0224\n\004name\030\001 \001(\tB&\342"
- + "A\001\002\372A\037\n\035retail.googleapis.com/Control\"\226\001"
- + "\n\023ListControlsRequest\0226\n\006parent\030\001 \001(\tB&\342"
- + "A\001\002\372A\037\n\035retail.googleapis.com/Catalog\022\027\n"
- + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001"
- + "(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"g\n\024ListCo"
- + "ntrolsResponse\0226\n\010controls\030\001 \003(\0132$.googl"
- + "e.cloud.retail.v2alpha.Control\022\027\n\017next_p"
- + "age_token\030\002 \001(\t2\252\010\n\016ControlService\022\323\001\n\rC"
- + "reateControl\0221.google.cloud.retail.v2alp"
- + "ha.CreateControlRequest\032$.google.cloud.r"
- + "etail.v2alpha.Control\"i\332A\031parent,control"
- + ",control_id\202\323\344\223\002G\"**\022\022\022\022google/cloud/retail/v2"
+ "alpha/merchant_center_account_link.proto"
+ "\032#google/longrunning/operations.proto\032\033g"
- + "oogle/protobuf/empty.proto\"_\n%ListMercha"
- + "ntCenterAccountLinksRequest\0226\n\006parent\030\001 "
- + "\001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/Cata"
- + "log\"\207\001\n&ListMerchantCenterAccountLinksRe"
- + "sponse\022]\n\035merchant_center_account_links\030"
- + "\001 \003(\01326.google.cloud.retail.v2alpha.Merc"
- + "hantCenterAccountLink\"\304\001\n&CreateMerchant"
- + "CenterAccountLinkRequest\0226\n\006parent\030\001 \001(\t"
- + "B&\342A\001\002\372A\037\n\035retail.googleapis.com/Catalog"
- + "\022b\n\034merchant_center_account_link\030\002 \001(\01326"
- + ".google.cloud.retail.v2alpha.MerchantCen"
- + "terAccountLinkB\004\342A\001\002\"p\n&DeleteMerchantCe"
- + "nterAccountLinkRequest\022F\n\004name\030\001 \001(\tB8\342A"
- + "\001\002\372A1\n/retail.googleapis.com/MerchantCen"
- + "terAccountLink2\376\007\n MerchantCenterAccount"
- + "LinkService\022\212\002\n\036ListMerchantCenterAccoun"
- + "tLinks\022B.google.cloud.retail.v2alpha.Lis"
- + "tMerchantCenterAccountLinksRequest\032C.goo"
- + "gle.cloud.retail.v2alpha.ListMerchantCen"
- + "terAccountLinksResponse\"_\332A\006parent\202\323\344\223\002P"
- + "\022N/v2alpha/{parent=projects/*/locations/"
- + "*/catalogs/*}/merchantCenterAccountLinks"
- + "\022\241\003\n\037CreateMerchantCenterAccountLink\022C.g"
- + "oogle.cloud.retail.v2alpha.CreateMerchan"
- + "tCenterAccountLinkRequest\032\035.google.longr"
- + "unning.Operation\"\231\002\312A|\n5google.cloud.ret"
- + "ail.v2alpha.MerchantCenterAccountLink\022Cg"
- + "oogle.cloud.retail.v2alpha.CreateMerchan"
- + "tCenterAccountLinkMetadata\332A#parent,merc"
- + "hant_center_account_link\202\323\344\223\002n\"N/v2alpha"
- + "/{parent=projects/*/locations/*/catalogs"
- + "/*}/merchantCenterAccountLinks:\034merchant"
- + "_center_account_link\022\335\001\n\037DeleteMerchantC"
- + "enterAccountLink\022C.google.cloud.retail.v"
- + "2alpha.DeleteMerchantCenterAccountLinkRe"
- + "quest\032\026.google.protobuf.Empty\"]\332A\004name\202\323"
- + "\344\223\002P*N/v2alpha/{name=projects/*/location"
- + "s/*/catalogs/*/merchantCenterAccountLink"
- + "s/*}\032I\312A\025retail.googleapis.com\322A.https:/"
- + "/www.googleapis.com/auth/cloud-platformB"
- + "\351\001\n\037com.google.cloud.retail.v2alphaB%Mer"
- + "chantCenterAccountLinkServiceProtoP\001Z7cl"
- + "oud.google.com/go/retail/apiv2alpha/reta"
- + "ilpb;retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Re"
- + "tail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alp"
- + "ha\352\002\036Google::Cloud::Retail::V2alphab\006pro"
- + "to3"
+ + "oogle/protobuf/empty.proto\"^\n%ListMercha"
+ + "ntCenterAccountLinksRequest\0225\n\006parent\030\001 "
+ + "\001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Catal"
+ + "og\"\207\001\n&ListMerchantCenterAccountLinksRes"
+ + "ponse\022]\n\035merchant_center_account_links\030\001"
+ + " \003(\01326.google.cloud.retail.v2alpha.Merch"
+ + "antCenterAccountLink\"\302\001\n&CreateMerchantC"
+ + "enterAccountLinkRequest\0225\n\006parent\030\001 \001(\tB"
+ + "%\340A\002\372A\037\n\035retail.googleapis.com/Catalog\022a"
+ + "\n\034merchant_center_account_link\030\002 \001(\01326.g"
+ + "oogle.cloud.retail.v2alpha.MerchantCente"
+ + "rAccountLinkB\003\340A\002\"o\n&DeleteMerchantCente"
+ + "rAccountLinkRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A"
+ + "1\n/retail.googleapis.com/MerchantCenterA"
+ + "ccountLink2\376\007\n MerchantCenterAccountLink"
+ + "Service\022\212\002\n\036ListMerchantCenterAccountLin"
+ + "ks\022B.google.cloud.retail.v2alpha.ListMer"
+ + "chantCenterAccountLinksRequest\032C.google."
+ + "cloud.retail.v2alpha.ListMerchantCenterA"
+ + "ccountLinksResponse\"_\332A\006parent\202\323\344\223\002P\022N/v"
+ + "2alpha/{parent=projects/*/locations/*/ca"
+ + "talogs/*}/merchantCenterAccountLinks\022\241\003\n"
+ + "\037CreateMerchantCenterAccountLink\022C.googl"
+ + "e.cloud.retail.v2alpha.CreateMerchantCen"
+ + "terAccountLinkRequest\032\035.google.longrunni"
+ + "ng.Operation\"\231\002\312A|\n5google.cloud.retail."
+ + "v2alpha.MerchantCenterAccountLink\022Cgoogl"
+ + "e.cloud.retail.v2alpha.CreateMerchantCen"
+ + "terAccountLinkMetadata\332A#parent,merchant"
+ + "_center_account_link\202\323\344\223\002n\"N/v2alpha/{pa"
+ + "rent=projects/*/locations/*/catalogs/*}/"
+ + "merchantCenterAccountLinks:\034merchant_cen"
+ + "ter_account_link\022\335\001\n\037DeleteMerchantCente"
+ + "rAccountLink\022C.google.cloud.retail.v2alp"
+ + "ha.DeleteMerchantCenterAccountLinkReques"
+ + "t\032\026.google.protobuf.Empty\"]\332A\004name\202\323\344\223\002P"
+ + "*N/v2alpha/{name=projects/*/locations/*/"
+ + "catalogs/*/merchantCenterAccountLinks/*}"
+ + "\032I\312A\025retail.googleapis.com\322A.https://www"
+ + ".googleapis.com/auth/cloud-platformB\351\001\n\037"
+ + "com.google.cloud.retail.v2alphaB%Merchan"
+ + "tCenterAccountLinkServiceProtoP\001Z7cloud."
+ + "google.com/go/retail/apiv2alpha/retailpb"
+ + ";retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail"
+ + ".V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002"
+ + "\036Google::Cloud::Retail::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java
index 6963928aaa18..02c6d5e377d8 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java
@@ -62,67 +62,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "pi/field_behavior.proto\032\031google/api/reso"
+ "urce.proto\032(google/cloud/retail/v2alpha/"
+ "common.proto\032\037google/protobuf/timestamp."
- + "proto\"\222\021\n\005Model\022c\n\030page_optimization_con"
+ + "proto\"\374\020\n\005Model\022b\n\030page_optimization_con"
+ "fig\030\021 \001(\01329.google.cloud.retail.v2alpha."
- + "Model.PageOptimizationConfigB\004\342A\001\001H\000\022\022\n\004"
- + "name\030\001 \001(\tB\004\342A\001\002\022\032\n\014display_name\030\002 \001(\tB\004"
- + "\342A\001\002\022N\n\016training_state\030\003 \001(\01620.google.cl"
- + "oud.retail.v2alpha.Model.TrainingStateB\004"
- + "\342A\001\001\022L\n\rserving_state\030\004 \001(\0162/.google.clo"
- + "ud.retail.v2alpha.Model.ServingStateB\004\342A"
- + "\001\003\0225\n\013create_time\030\005 \001(\0132\032.google.protobu"
- + "f.TimestampB\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032"
- + ".google.protobuf.TimestampB\004\342A\001\003\022\022\n\004type"
- + "\030\007 \001(\tB\004\342A\001\002\022$\n\026optimization_objective\030\010"
- + " \001(\tB\004\342A\001\001\022[\n\025periodic_tuning_state\030\013 \001("
- + "\01626.google.cloud.retail.v2alpha.Model.Pe"
- + "riodicTuningStateB\004\342A\001\001\0228\n\016last_tune_tim"
- + "e\030\014 \001(\0132\032.google.protobuf.TimestampB\004\342A\001"
- + "\003\022\036\n\020tuning_operation\030\017 \001(\tB\004\342A\001\003\022F\n\ndat"
- + "a_state\030\020 \001(\0162,.google.cloud.retail.v2al"
- + "pha.Model.DataStateB\004\342A\001\003\022[\n\020filtering_o"
- + "ption\030\022 \001(\0162;.google.cloud.retail.v2alph"
- + "a.RecommendationsFilteringOptionB\004\342A\001\001\022X"
- + "\n\024serving_config_lists\030\023 \003(\01324.google.cl"
- + "oud.retail.v2alpha.Model.ServingConfigLi"
- + "stB\004\342A\001\003\032\310\005\n\026PageOptimizationConfig\022*\n\034p"
- + "age_optimization_event_type\030\001 \001(\tB\004\342A\001\002\022"
- + "U\n\006panels\030\002 \003(\0132?.google.cloud.retail.v2"
- + "alpha.Model.PageOptimizationConfig.Panel"
- + "B\004\342A\001\002\022`\n\013restriction\030\003 \001(\0162E.google.clo"
- + "ud.retail.v2alpha.Model.PageOptimization"
- + "Config.RestrictionB\004\342A\001\001\0325\n\tCandidate\022\033\n"
- + "\021serving_config_id\030\001 \001(\tH\000B\013\n\tcandidate\032"
- + "\350\001\n\005Panel\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\001\022]\n"
- + "\ncandidates\030\002 \003(\0132C.google.cloud.retail."
- + "v2alpha.Model.PageOptimizationConfig.Can"
- + "didateB\004\342A\001\002\022d\n\021default_candidate\030\003 \001(\0132"
- + "C.google.cloud.retail.v2alpha.Model.Page"
- + "OptimizationConfig.CandidateB\004\342A\001\002\"\246\001\n\013R"
- + "estriction\022\033\n\027RESTRICTION_UNSPECIFIED\020\000\022"
- + "\022\n\016NO_RESTRICTION\020\001\022%\n!UNIQUE_SERVING_CO"
- + "NFIG_RESTRICTION\020\002\022\034\n\030UNIQUE_MODEL_RESTR"
- + "ICTION\020\003\022!\n\035UNIQUE_MODEL_TYPE_RESTRICTIO"
- + "N\020\004\0325\n\021ServingConfigList\022 \n\022serving_conf"
- + "ig_ids\030\001 \003(\tB\004\342A\001\001\"R\n\014ServingState\022\035\n\031SE"
- + "RVING_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020\001\022"
- + "\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n\rTrainingState\022"
- + "\036\n\032TRAINING_STATE_UNSPECIFIED\020\000\022\n\n\006PAUSE"
- + "D\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023PeriodicTuningStat"
- + "e\022%\n!PERIODIC_TUNING_STATE_UNSPECIFIED\020\000"
- + "\022\034\n\030PERIODIC_TUNING_DISABLED\020\001\022\027\n\023ALL_TU"
- + "NING_DISABLED\020\003\022\033\n\027PERIODIC_TUNING_ENABL"
- + "ED\020\002\"D\n\tDataState\022\032\n\026DATA_STATE_UNSPECIF"
- + "IED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002:k\352Ah\n"
- + "\033retail.googleapis.com/Model\022Iprojects/{"
- + "project}/locations/{location}/catalogs/{"
- + "catalog}/models/{model}B\021\n\017training_conf"
- + "igB\316\001\n\037com.google.cloud.retail.v2alphaB\n"
- + "ModelProtoP\001Z7cloud.google.com/go/retail"
- + "/apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252\002"
- + "\033Google.Cloud.Retail.V2Alpha\312\002\033Google\\Cl"
- + "oud\\Retail\\V2alpha\352\002\036Google::Cloud::Reta"
- + "il::V2alphab\006proto3"
+ + "Model.PageOptimizationConfigB\003\340A\001H\000\022\021\n\004n"
+ + "ame\030\001 \001(\tB\003\340A\002\022\031\n\014display_name\030\002 \001(\tB\003\340A"
+ + "\002\022M\n\016training_state\030\003 \001(\01620.google.cloud"
+ + ".retail.v2alpha.Model.TrainingStateB\003\340A\001"
+ + "\022K\n\rserving_state\030\004 \001(\0162/.google.cloud.r"
+ + "etail.v2alpha.Model.ServingStateB\003\340A\003\0224\n"
+ + "\013create_time\030\005 \001(\0132\032.google.protobuf.Tim"
+ + "estampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.googl"
+ + "e.protobuf.TimestampB\003\340A\003\022\021\n\004type\030\007 \001(\tB"
+ + "\003\340A\002\022#\n\026optimization_objective\030\010 \001(\tB\003\340A"
+ + "\001\022Z\n\025periodic_tuning_state\030\013 \001(\01626.googl"
+ + "e.cloud.retail.v2alpha.Model.PeriodicTun"
+ + "ingStateB\003\340A\001\0227\n\016last_tune_time\030\014 \001(\0132\032."
+ + "google.protobuf.TimestampB\003\340A\003\022\035\n\020tuning"
+ + "_operation\030\017 \001(\tB\003\340A\003\022E\n\ndata_state\030\020 \001("
+ + "\0162,.google.cloud.retail.v2alpha.Model.Da"
+ + "taStateB\003\340A\003\022Z\n\020filtering_option\030\022 \001(\0162;"
+ + ".google.cloud.retail.v2alpha.Recommendat"
+ + "ionsFilteringOptionB\003\340A\001\022W\n\024serving_conf"
+ + "ig_lists\030\023 \003(\01324.google.cloud.retail.v2a"
+ + "lpha.Model.ServingConfigListB\003\340A\003\032\302\005\n\026Pa"
+ + "geOptimizationConfig\022)\n\034page_optimizatio"
+ + "n_event_type\030\001 \001(\tB\003\340A\002\022T\n\006panels\030\002 \003(\0132"
+ + "?.google.cloud.retail.v2alpha.Model.Page"
+ + "OptimizationConfig.PanelB\003\340A\002\022_\n\013restric"
+ + "tion\030\003 \001(\0162E.google.cloud.retail.v2alpha"
+ + ".Model.PageOptimizationConfig.Restrictio"
+ + "nB\003\340A\001\0325\n\tCandidate\022\033\n\021serving_config_id"
+ + "\030\001 \001(\tH\000B\013\n\tcandidate\032\345\001\n\005Panel\022\031\n\014displ"
+ + "ay_name\030\001 \001(\tB\003\340A\001\022\\\n\ncandidates\030\002 \003(\0132C"
+ + ".google.cloud.retail.v2alpha.Model.PageO"
+ + "ptimizationConfig.CandidateB\003\340A\002\022c\n\021defa"
+ + "ult_candidate\030\003 \001(\0132C.google.cloud.retai"
+ + "l.v2alpha.Model.PageOptimizationConfig.C"
+ + "andidateB\003\340A\002\"\246\001\n\013Restriction\022\033\n\027RESTRIC"
+ + "TION_UNSPECIFIED\020\000\022\022\n\016NO_RESTRICTION\020\001\022%"
+ + "\n!UNIQUE_SERVING_CONFIG_RESTRICTION\020\002\022\034\n"
+ + "\030UNIQUE_MODEL_RESTRICTION\020\003\022!\n\035UNIQUE_MO"
+ + "DEL_TYPE_RESTRICTION\020\004\0324\n\021ServingConfigL"
+ + "ist\022\037\n\022serving_config_ids\030\001 \003(\tB\003\340A\001\"R\n\014"
+ + "ServingState\022\035\n\031SERVING_STATE_UNSPECIFIE"
+ + "D\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003"
+ + "\"I\n\rTrainingState\022\036\n\032TRAINING_STATE_UNSP"
+ + "ECIFIED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023"
+ + "PeriodicTuningState\022%\n!PERIODIC_TUNING_S"
+ + "TATE_UNSPECIFIED\020\000\022\034\n\030PERIODIC_TUNING_DI"
+ + "SABLED\020\001\022\027\n\023ALL_TUNING_DISABLED\020\003\022\033\n\027PER"
+ + "IODIC_TUNING_ENABLED\020\002\"D\n\tDataState\022\032\n\026D"
+ + "ATA_STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\n"
+ + "DATA_ERROR\020\002:k\352Ah\n\033retail.googleapis.com"
+ + "/Model\022Iprojects/{project}/locations/{lo"
+ + "cation}/catalogs/{catalog}/models/{model"
+ + "}B\021\n\017training_configB\316\001\n\037com.google.clou"
+ + "d.retail.v2alphaB\nModelProtoP\001Z7cloud.go"
+ + "ogle.com/go/retail/apiv2alpha/retailpb;r"
+ + "etailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V"
+ + "2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036G"
+ + "oogle::Cloud::Retail::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceProto.java
index 44443f8ec5fe..d0ce5162b559 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceProto.java
@@ -93,79 +93,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e/cloud/retail/v2alpha/model.proto\032#goog"
+ "le/longrunning/operations.proto\032\033google/"
+ "protobuf/empty.proto\032 google/protobuf/fi"
- + "eld_mask.proto\"\234\001\n\022CreateModelRequest\0226\n"
- + "\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapi"
- + "s.com/Catalog\0227\n\005model\030\002 \001(\0132\".google.cl"
- + "oud.retail.v2alpha.ModelB\004\342A\001\002\022\025\n\007dry_ru"
- + "n\030\003 \001(\010B\004\342A\001\001\"\204\001\n\022UpdateModelRequest\0227\n\005"
- + "model\030\001 \001(\0132\".google.cloud.retail.v2alph"
- + "a.ModelB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goo"
- + "gle.protobuf.FieldMaskB\004\342A\001\001\"E\n\017GetModel"
- + "Request\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail.g"
- + "oogleapis.com/Model\"G\n\021PauseModelRequest"
- + "\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail.googleap"
- + "is.com/Model\"(\n\022ResumeModelRequest\022\022\n\004na"
- + "me\030\001 \001(\tB\004\342A\001\002\"~\n\021ListModelsRequest\0226\n\006p"
- + "arent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis."
- + "com/Catalog\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n"
- + "page_token\030\003 \001(\tB\004\342A\001\001\"H\n\022DeleteModelReq"
- + "uest\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail.goog"
- + "leapis.com/Model\"a\n\022ListModelsResponse\0222"
- + "\n\006models\030\001 \003(\0132\".google.cloud.retail.v2a"
- + "lpha.Model\022\027\n\017next_page_token\030\002 \001(\t\"F\n\020T"
- + "uneModelRequest\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033"
- + "retail.googleapis.com/Model\"$\n\023CreateMod"
- + "elMetadata\022\r\n\005model\030\001 \001(\t\"\"\n\021TuneModelMe"
- + "tadata\022\r\n\005model\030\001 \001(\t\"\023\n\021TuneModelRespon"
- + "se2\302\r\n\014ModelService\022\217\002\n\013CreateModel\022/.go"
- + "ogle.cloud.retail.v2alpha.CreateModelReq"
- + "uest\032\035.google.longrunning.Operation\"\257\001\312A"
- + "T\n!google.cloud.retail.v2alpha.Model\022/go"
- + "ogle.cloud.retail.v2alpha.CreateModelMet"
- + "adata\332A\014parent,model\202\323\344\223\002C\":/v2alpha/{pa"
- + "rent=projects/*/locations/*/catalogs/*}/"
- + "models:\005model\022\247\001\n\010GetModel\022,.google.clou"
- + "d.retail.v2alpha.GetModelRequest\032\".googl"
- + "e.cloud.retail.v2alpha.Model\"I\332A\004name\202\323\344"
- + "\223\002<\022:/v2alpha/{name=projects/*/locations"
- + "/*/catalogs/*/models/*}\022\264\001\n\nPauseModel\022."
- + ".google.cloud.retail.v2alpha.PauseModelR"
- + "equest\032\".google.cloud.retail.v2alpha.Mod"
- + "el\"R\332A\004name\202\323\344\223\002E\"@/v2alpha/{name=projec"
- + "ts/*/locations/*/catalogs/*/models/*}:pa"
- + "use:\001*\022\267\001\n\013ResumeModel\022/.google.cloud.re"
- + "tail.v2alpha.ResumeModelRequest\032\".google"
- + ".cloud.retail.v2alpha.Model\"S\332A\004name\202\323\344\223"
- + "\002F\"A/v2alpha/{name=projects/*/locations/"
- + "*/catalogs/*/models/*}:resume:\001*\022\241\001\n\013Del"
- + "eteModel\022/.google.cloud.retail.v2alpha.D"
- + "eleteModelRequest\032\026.google.protobuf.Empt"
- + "y\"I\332A\004name\202\323\344\223\002<*:/v2alpha/{name=project"
- + "s/*/locations/*/catalogs/*/models/*}\022\272\001\n"
- + "\nListModels\022..google.cloud.retail.v2alph"
- + "a.ListModelsRequest\032/.google.cloud.retai"
- + "l.v2alpha.ListModelsResponse\"K\332A\006parent\202"
- + "\323\344\223\002<\022:/v2alpha/{parent=projects/*/locat"
- + "ions/*/catalogs/*}/models\022\307\001\n\013UpdateMode"
- + "l\022/.google.cloud.retail.v2alpha.UpdateMo"
- + "delRequest\032\".google.cloud.retail.v2alpha"
- + ".Model\"c\332A\021model,update_mask\202\323\344\223\002I2@/v2a"
- + "lpha/{model.name=projects/*/locations/*/"
- + "catalogs/*/models/*}:\005model\022\216\002\n\tTuneMode"
- + "l\022-.google.cloud.retail.v2alpha.TuneMode"
- + "lRequest\032\035.google.longrunning.Operation\""
- + "\262\001\312A^\n-google.cloud.retail.v2alpha.TuneM"
- + "odelResponse\022-google.cloud.retail.v2alph"
- + "a.TuneModelMetadata\332A\004name\202\323\344\223\002D\"?/v2alp"
- + "ha/{name=projects/*/locations/*/catalogs"
- + "/*/models/*}:tune:\001*\032I\312A\025retail.googleap"
- + "is.com\322A.https://www.googleapis.com/auth"
- + "/cloud-platformB\325\001\n\037com.google.cloud.ret"
- + "ail.v2alphaB\021ModelServiceProtoP\001Z7cloud."
- + "google.com/go/retail/apiv2alpha/retailpb"
- + ";retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail"
- + ".V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002"
- + "\036Google::Cloud::Retail::V2alphab\006proto3"
+ + "eld_mask.proto\"\231\001\n\022CreateModelRequest\0225\n"
+ + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis"
+ + ".com/Catalog\0226\n\005model\030\002 \001(\0132\".google.clo"
+ + "ud.retail.v2alpha.ModelB\003\340A\002\022\024\n\007dry_run\030"
+ + "\003 \001(\010B\003\340A\001\"\202\001\n\022UpdateModelRequest\0226\n\005mod"
+ + "el\030\001 \001(\0132\".google.cloud.retail.v2alpha.M"
+ + "odelB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google."
+ + "protobuf.FieldMaskB\003\340A\001\"D\n\017GetModelReque"
+ + "st\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033retail.googlea"
+ + "pis.com/Model\"F\n\021PauseModelRequest\0221\n\004na"
+ + "me\030\001 \001(\tB#\340A\002\372A\035\n\033retail.googleapis.com/"
+ + "Model\"\'\n\022ResumeModelRequest\022\021\n\004name\030\001 \001("
+ + "\tB\003\340A\002\"{\n\021ListModelsRequest\0225\n\006parent\030\001 "
+ + "\001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Catal"
+ + "og\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token"
+ + "\030\003 \001(\tB\003\340A\001\"G\n\022DeleteModelRequest\0221\n\004nam"
+ + "e\030\001 \001(\tB#\340A\002\372A\035\n\033retail.googleapis.com/M"
+ + "odel\"a\n\022ListModelsResponse\0222\n\006models\030\001 \003"
+ + "(\0132\".google.cloud.retail.v2alpha.Model\022\027"
+ + "\n\017next_page_token\030\002 \001(\t\"E\n\020TuneModelRequ"
+ + "est\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033retail.google"
+ + "apis.com/Model\"$\n\023CreateModelMetadata\022\r\n"
+ + "\005model\030\001 \001(\t\"\"\n\021TuneModelMetadata\022\r\n\005mod"
+ + "el\030\001 \001(\t\"\023\n\021TuneModelResponse2\302\r\n\014ModelS"
+ + "ervice\022\217\002\n\013CreateModel\022/.google.cloud.re"
+ + "tail.v2alpha.CreateModelRequest\032\035.google"
+ + ".longrunning.Operation\"\257\001\312AT\n!google.clo"
+ + "ud.retail.v2alpha.Model\022/google.cloud.re"
+ + "tail.v2alpha.CreateModelMetadata\332A\014paren"
+ + "t,model\202\323\344\223\002C\":/v2alpha/{parent=projects"
+ + "/*/locations/*/catalogs/*}/models:\005model"
+ + "\022\247\001\n\010GetModel\022,.google.cloud.retail.v2al"
+ + "pha.GetModelRequest\032\".google.cloud.retai"
+ + "l.v2alpha.Model\"I\332A\004name\202\323\344\223\002<\022:/v2alpha"
+ + "/{name=projects/*/locations/*/catalogs/*"
+ + "/models/*}\022\264\001\n\nPauseModel\022..google.cloud"
+ + ".retail.v2alpha.PauseModelRequest\032\".goog"
+ + "le.cloud.retail.v2alpha.Model\"R\332A\004name\202\323"
+ + "\344\223\002E\"@/v2alpha/{name=projects/*/location"
+ + "s/*/catalogs/*/models/*}:pause:\001*\022\267\001\n\013Re"
+ + "sumeModel\022/.google.cloud.retail.v2alpha."
+ + "ResumeModelRequest\032\".google.cloud.retail"
+ + ".v2alpha.Model\"S\332A\004name\202\323\344\223\002F\"A/v2alpha/"
+ + "{name=projects/*/locations/*/catalogs/*/"
+ + "models/*}:resume:\001*\022\241\001\n\013DeleteModel\022/.go"
+ + "ogle.cloud.retail.v2alpha.DeleteModelReq"
+ + "uest\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344"
+ + "\223\002<*:/v2alpha/{name=projects/*/locations"
+ + "/*/catalogs/*/models/*}\022\272\001\n\nListModels\022."
+ + ".google.cloud.retail.v2alpha.ListModelsR"
+ + "equest\032/.google.cloud.retail.v2alpha.Lis"
+ + "tModelsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v2alp"
+ + "ha/{parent=projects/*/locations/*/catalo"
+ + "gs/*}/models\022\307\001\n\013UpdateModel\022/.google.cl"
+ + "oud.retail.v2alpha.UpdateModelRequest\032\"."
+ + "google.cloud.retail.v2alpha.Model\"c\332A\021mo"
+ + "del,update_mask\202\323\344\223\002I2@/v2alpha/{model.n"
+ + "ame=projects/*/locations/*/catalogs/*/mo"
+ + "dels/*}:\005model\022\216\002\n\tTuneModel\022-.google.cl"
+ + "oud.retail.v2alpha.TuneModelRequest\032\035.go"
+ + "ogle.longrunning.Operation\"\262\001\312A^\n-google"
+ + ".cloud.retail.v2alpha.TuneModelResponse\022"
+ + "-google.cloud.retail.v2alpha.TuneModelMe"
+ + "tadata\332A\004name\202\323\344\223\002D\"?/v2alpha/{name=proj"
+ + "ects/*/locations/*/catalogs/*/models/*}:"
+ + "tune:\001*\032I\312A\025retail.googleapis.com\322A.http"
+ + "s://www.googleapis.com/auth/cloud-platfo"
+ + "rmB\325\001\n\037com.google.cloud.retail.v2alphaB\021"
+ + "ModelServiceProtoP\001Z7cloud.google.com/go"
+ + "/retail/apiv2alpha/retailpb;retailpb\242\002\006R"
+ + "ETAIL\252\002\033Google.Cloud.Retail.V2Alpha\312\002\033Go"
+ + "ogle\\Cloud\\Retail\\V2alpha\352\002\036Google::Clou"
+ + "d::Retail::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceProto.java
index 2d358726c535..56a93794cbfa 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceProto.java
@@ -67,43 +67,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e/api/client.proto\032\037google/api/field_beh"
+ "avior.proto\032\031google/api/resource.proto\032,"
+ "google/cloud/retail/v2alpha/user_event.p"
- + "roto\032\034google/protobuf/struct.proto\"\305\003\n\016P"
- + "redictRequest\022\027\n\tplacement\030\001 \001(\tB\004\342A\001\002\022@"
- + "\n\nuser_event\030\002 \001(\0132&.google.cloud.retail"
- + ".v2alpha.UserEventB\004\342A\001\002\022\021\n\tpage_size\030\003 "
- + "\001(\005\022\026\n\npage_token\030\004 \001(\tB\002\030\001\022\016\n\006filter\030\005 "
- + "\001(\t\022\025\n\rvalidate_only\030\006 \001(\010\022G\n\006params\030\007 \003"
- + "(\01327.google.cloud.retail.v2alpha.Predict"
- + "Request.ParamsEntry\022G\n\006labels\030\010 \003(\01327.go"
- + "ogle.cloud.retail.v2alpha.PredictRequest"
- + ".LabelsEntry\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t"
- + "\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:"
- + "\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
- + "\030\002 \001(\t:\0028\001\"\361\002\n\017PredictResponse\022N\n\007result"
- + "s\030\001 \003(\0132=.google.cloud.retail.v2alpha.Pr"
- + "edictResponse.PredictionResult\022\031\n\021attrib"
- + "ution_token\030\002 \001(\t\022\023\n\013missing_ids\030\003 \003(\t\022\025"
- + "\n\rvalidate_only\030\004 \001(\010\032\306\001\n\020PredictionResu"
- + "lt\022\n\n\002id\030\001 \001(\t\022]\n\010metadata\030\002 \003(\0132K.googl"
- + "e.cloud.retail.v2alpha.PredictResponse.P"
- + "redictionResult.MetadataEntry\032G\n\rMetadat"
- + "aEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo"
- + "gle.protobuf.Value:\0028\0012\365\002\n\021PredictionSer"
- + "vice\022\224\002\n\007Predict\022+.google.cloud.retail.v"
- + "2alpha.PredictRequest\032,.google.cloud.ret"
- + "ail.v2alpha.PredictResponse\"\255\001\202\323\344\223\002\246\001\"K/"
+ + "roto\032\034google/protobuf/struct.proto\"\303\003\n\016P"
+ + "redictRequest\022\026\n\tplacement\030\001 \001(\tB\003\340A\002\022?\n"
+ + "\nuser_event\030\002 \001(\0132&.google.cloud.retail."
+ + "v2alpha.UserEventB\003\340A\002\022\021\n\tpage_size\030\003 \001("
+ + "\005\022\026\n\npage_token\030\004 \001(\tB\002\030\001\022\016\n\006filter\030\005 \001("
+ + "\t\022\025\n\rvalidate_only\030\006 \001(\010\022G\n\006params\030\007 \003(\013"
+ + "27.google.cloud.retail.v2alpha.PredictRe"
+ + "quest.ParamsEntry\022G\n\006labels\030\010 \003(\01327.goog"
+ + "le.cloud.retail.v2alpha.PredictRequest.L"
+ + "abelsEntry\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%"
+ + "\n\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028"
+ + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
+ + " \001(\t:\0028\001\"\361\002\n\017PredictResponse\022N\n\007results\030"
+ + "\001 \003(\0132=.google.cloud.retail.v2alpha.Pred"
+ + "ictResponse.PredictionResult\022\031\n\021attribut"
+ + "ion_token\030\002 \001(\t\022\023\n\013missing_ids\030\003 \003(\t\022\025\n\r"
+ + "validate_only\030\004 \001(\010\032\306\001\n\020PredictionResult"
+ + "\022\n\n\002id\030\001 \001(\t\022]\n\010metadata\030\002 \003(\0132K.google."
+ + "cloud.retail.v2alpha.PredictResponse.Pre"
+ + "dictionResult.MetadataEntry\032G\n\rMetadataE"
+ + "ntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.googl"
+ + "e.protobuf.Value:\0028\0012\365\002\n\021PredictionServi"
+ + "ce\022\224\002\n\007Predict\022+.google.cloud.retail.v2a"
+ + "lpha.PredictRequest\032,.google.cloud.retai"
+ + "l.v2alpha.PredictResponse\"\255\001\202\323\344\223\002\246\001\"K/v2"
+ + "alpha/{placement=projects/*/locations/*/"
+ + "catalogs/*/placements/*}:predict:\001*ZT\"O/"
+ "v2alpha/{placement=projects/*/locations/"
- + "*/catalogs/*/placements/*}:predict:\001*ZT\""
- + "O/v2alpha/{placement=projects/*/location"
- + "s/*/catalogs/*/servingConfigs/*}:predict"
- + ":\001*\032I\312A\025retail.googleapis.com\322A.https://"
- + "www.googleapis.com/auth/cloud-platformB\332"
- + "\001\n\037com.google.cloud.retail.v2alphaB\026Pred"
- + "ictionServiceProtoP\001Z7cloud.google.com/g"
- + "o/retail/apiv2alpha/retailpb;retailpb\242\002\006"
- + "RETAIL\252\002\033Google.Cloud.Retail.V2Alpha\312\002\033G"
- + "oogle\\Cloud\\Retail\\V2alpha\352\002\036Google::Clo"
- + "ud::Retail::V2alphab\006proto3"
+ + "*/catalogs/*/servingConfigs/*}:predict:\001"
+ + "*\032I\312A\025retail.googleapis.com\322A.https://ww"
+ + "w.googleapis.com/auth/cloud-platformB\332\001\n"
+ + "\037com.google.cloud.retail.v2alphaB\026Predic"
+ + "tionServiceProtoP\001Z7cloud.google.com/go/"
+ + "retail/apiv2alpha/retailpb;retailpb\242\002\006RE"
+ + "TAIL\252\002\033Google.Cloud.Retail.V2Alpha\312\002\033Goo"
+ + "gle\\Cloud\\Retail\\V2alpha\352\002\036Google::Cloud"
+ + "::Retail::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java
index 1898028a40bb..369c12f18d3e 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java
@@ -53,61 +53,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "pha/promotion.proto\032\036google/protobuf/dur"
+ "ation.proto\032 google/protobuf/field_mask."
+ "proto\032\037google/protobuf/timestamp.proto\032\036"
- + "google/protobuf/wrappers.proto\"\243\016\n\007Produ"
+ + "google/protobuf/wrappers.proto\"\234\016\n\007Produ"
+ "ct\0221\n\013expire_time\030\020 \001(\0132\032.google.protobu"
- + "f.TimestampH\000\022.\n\003ttl\030\021 \001(\0132\031.google.prot"
- + "obuf.DurationB\004\342A\001\004H\000\022\022\n\004name\030\001 \001(\tB\004\342A\001"
- + "\005\022\020\n\002id\030\002 \001(\tB\004\342A\001\005\022=\n\004type\030\003 \001(\0162).goog"
- + "le.cloud.retail.v2alpha.Product.TypeB\004\342A"
- + "\001\005\022\032\n\022primary_product_id\030\004 \001(\t\022\035\n\025collec"
- + "tion_member_ids\030\005 \003(\t\022\014\n\004gtin\030\006 \001(\t\022\022\n\nc"
- + "ategories\030\007 \003(\t\022\023\n\005title\030\010 \001(\tB\004\342A\001\002\022\016\n\006"
- + "brands\030\t \003(\t\022\023\n\013description\030\n \001(\t\022\025\n\rlan"
- + "guage_code\030\013 \001(\t\022H\n\nattributes\030\014 \003(\01324.g"
- + "oogle.cloud.retail.v2alpha.Product.Attri"
- + "butesEntry\022\014\n\004tags\030\r \003(\t\022:\n\nprice_info\030\016"
- + " \001(\0132&.google.cloud.retail.v2alpha.Price"
- + "Info\0223\n\006rating\030\017 \001(\0132#.google.cloud.reta"
- + "il.v2alpha.Rating\0222\n\016available_time\030\022 \001("
- + "\0132\032.google.protobuf.Timestamp\022G\n\014availab"
- + "ility\030\023 \001(\01621.google.cloud.retail.v2alph"
- + "a.Product.Availability\0227\n\022available_quan"
- + "tity\030\024 \001(\0132\033.google.protobuf.Int32Value\022"
- + "F\n\020fulfillment_info\030\025 \003(\0132,.google.cloud"
- + ".retail.v2alpha.FulfillmentInfo\022\013\n\003uri\030\026"
- + " \001(\t\0222\n\006images\030\027 \003(\0132\".google.cloud.reta"
- + "il.v2alpha.Image\0227\n\010audience\030\030 \001(\0132%.goo"
- + "gle.cloud.retail.v2alpha.Audience\022:\n\ncol"
- + "or_info\030\031 \001(\0132&.google.cloud.retail.v2al"
- + "pha.ColorInfo\022\r\n\005sizes\030\032 \003(\t\022\021\n\tmaterial"
- + "s\030\033 \003(\t\022\020\n\010patterns\030\034 \003(\t\022\022\n\nconditions\030"
- + "\035 \003(\t\022:\n\npromotions\030\" \003(\0132&.google.cloud"
- + ".retail.v2alpha.Promotion\0220\n\014publish_tim"
- + "e\030! \001(\0132\032.google.protobuf.Timestamp\022:\n\022r"
- + "etrievable_fields\030\036 \001(\0132\032.google.protobu"
- + "f.FieldMaskB\002\030\001\022<\n\010variants\030\037 \003(\0132$.goog"
- + "le.cloud.retail.v2alpha.ProductB\004\342A\001\003\022L\n"
- + "\021local_inventories\030# \003(\0132+.google.cloud."
- + "retail.v2alpha.LocalInventoryB\004\342A\001\003\032_\n\017A"
- + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001"
- + "(\0132,.google.cloud.retail.v2alpha.CustomA"
- + "ttribute:\0028\001\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED"
- + "\020\000\022\013\n\007PRIMARY\020\001\022\013\n\007VARIANT\020\002\022\016\n\nCOLLECTI"
- + "ON\020\003\"i\n\014Availability\022\034\n\030AVAILABILITY_UNS"
- + "PECIFIED\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK"
- + "\020\002\022\014\n\010PREORDER\020\003\022\r\n\tBACKORDER\020\004:\204\001\352A\200\001\n\035"
- + "retail.googleapis.com/Product\022_projects/"
- + "{project}/locations/{location}/catalogs/"
- + "{catalog}/branches/{branch}/products/{pr"
- + "oduct}B\014\n\nexpirationB\277\002\n\037com.google.clou"
- + "d.retail.v2alphaB\014ProductProtoP\001Z7cloud."
- + "google.com/go/retail/apiv2alpha/retailpb"
- + ";retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail"
- + ".V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002"
- + "\036Google::Cloud::Retail::V2alpha\352Al\n\034reta"
- + "il.googleapis.com/Branch\022Lprojects/{proj"
- + "ect}/locations/{location}/catalogs/{cata"
- + "log}/branches/{branch}b\006proto3"
+ + "f.TimestampH\000\022-\n\003ttl\030\021 \001(\0132\031.google.prot"
+ + "obuf.DurationB\003\340A\004H\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022"
+ + "\017\n\002id\030\002 \001(\tB\003\340A\005\022<\n\004type\030\003 \001(\0162).google."
+ + "cloud.retail.v2alpha.Product.TypeB\003\340A\005\022\032"
+ + "\n\022primary_product_id\030\004 \001(\t\022\035\n\025collection"
+ + "_member_ids\030\005 \003(\t\022\014\n\004gtin\030\006 \001(\t\022\022\n\ncateg"
+ + "ories\030\007 \003(\t\022\022\n\005title\030\010 \001(\tB\003\340A\002\022\016\n\006brand"
+ + "s\030\t \003(\t\022\023\n\013description\030\n \001(\t\022\025\n\rlanguage"
+ + "_code\030\013 \001(\t\022H\n\nattributes\030\014 \003(\01324.google"
+ + ".cloud.retail.v2alpha.Product.Attributes"
+ + "Entry\022\014\n\004tags\030\r \003(\t\022:\n\nprice_info\030\016 \001(\0132"
+ + "&.google.cloud.retail.v2alpha.PriceInfo\022"
+ + "3\n\006rating\030\017 \001(\0132#.google.cloud.retail.v2"
+ + "alpha.Rating\0222\n\016available_time\030\022 \001(\0132\032.g"
+ + "oogle.protobuf.Timestamp\022G\n\014availability"
+ + "\030\023 \001(\01621.google.cloud.retail.v2alpha.Pro"
+ + "duct.Availability\0227\n\022available_quantity\030"
+ + "\024 \001(\0132\033.google.protobuf.Int32Value\022F\n\020fu"
+ + "lfillment_info\030\025 \003(\0132,.google.cloud.reta"
+ + "il.v2alpha.FulfillmentInfo\022\013\n\003uri\030\026 \001(\t\022"
+ + "2\n\006images\030\027 \003(\0132\".google.cloud.retail.v2"
+ + "alpha.Image\0227\n\010audience\030\030 \001(\0132%.google.c"
+ + "loud.retail.v2alpha.Audience\022:\n\ncolor_in"
+ + "fo\030\031 \001(\0132&.google.cloud.retail.v2alpha.C"
+ + "olorInfo\022\r\n\005sizes\030\032 \003(\t\022\021\n\tmaterials\030\033 \003"
+ + "(\t\022\020\n\010patterns\030\034 \003(\t\022\022\n\nconditions\030\035 \003(\t"
+ + "\022:\n\npromotions\030\" \003(\0132&.google.cloud.reta"
+ + "il.v2alpha.Promotion\0220\n\014publish_time\030! \001"
+ + "(\0132\032.google.protobuf.Timestamp\022:\n\022retrie"
+ + "vable_fields\030\036 \001(\0132\032.google.protobuf.Fie"
+ + "ldMaskB\002\030\001\022;\n\010variants\030\037 \003(\0132$.google.cl"
+ + "oud.retail.v2alpha.ProductB\003\340A\003\022K\n\021local"
+ + "_inventories\030# \003(\0132+.google.cloud.retail"
+ + ".v2alpha.LocalInventoryB\003\340A\003\032_\n\017Attribut"
+ + "esEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.go"
+ + "ogle.cloud.retail.v2alpha.CustomAttribut"
+ + "e:\0028\001\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007P"
+ + "RIMARY\020\001\022\013\n\007VARIANT\020\002\022\016\n\nCOLLECTION\020\003\"i\n"
+ + "\014Availability\022\034\n\030AVAILABILITY_UNSPECIFIE"
+ + "D\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\014\n\010P"
+ + "REORDER\020\003\022\r\n\tBACKORDER\020\004:\204\001\352A\200\001\n\035retail."
+ + "googleapis.com/Product\022_projects/{projec"
+ + "t}/locations/{location}/catalogs/{catalo"
+ + "g}/branches/{branch}/products/{product}B"
+ + "\014\n\nexpirationB\277\002\n\037com.google.cloud.retai"
+ + "l.v2alphaB\014ProductProtoP\001Z7cloud.google."
+ + "com/go/retail/apiv2alpha/retailpb;retail"
+ + "pb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V2Alph"
+ + "a\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036Google"
+ + "::Cloud::Retail::V2alpha\352Al\n\034retail.goog"
+ + "leapis.com/Branch\022Lprojects/{project}/lo"
+ + "cations/{location}/catalogs/{catalog}/br"
+ + "anches/{branch}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceProto.java
index b7f1872daf8e..3958e3b4fdb8 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceProto.java
@@ -133,155 +133,155 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "urge_config.proto\032#google/longrunning/op"
+ "erations.proto\032\033google/protobuf/empty.pr"
+ "oto\032 google/protobuf/field_mask.proto\032\037g"
- + "oogle/protobuf/timestamp.proto\"\244\001\n\024Creat"
- + "eProductRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036"
- + "\n\034retail.googleapis.com/Branch\022;\n\007produc"
- + "t\030\002 \001(\0132$.google.cloud.retail.v2alpha.Pr"
- + "oductB\004\342A\001\002\022\030\n\nproduct_id\030\003 \001(\tB\004\342A\001\002\"I\n"
- + "\021GetProductRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A"
- + "\037\n\035retail.googleapis.com/Product\"\233\001\n\024Upd"
- + "ateProductRequest\022;\n\007product\030\001 \001(\0132$.goo"
- + "gle.cloud.retail.v2alpha.ProductB\004\342A\001\002\022/"
- + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi"
- + "eldMask\022\025\n\rallow_missing\030\003 \001(\010\"[\n\024Delete"
- + "ProductRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035r"
- + "etail.googleapis.com/Product\022\r\n\005force\030\004 "
- + "\001(\010\"\316\001\n\023ListProductsRequest\0225\n\006parent\030\001 "
- + "\001(\tB%\342A\001\002\372A\036\n\034retail.googleapis.com/Bran"
- + "ch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001("
- + "\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.g"
- + "oogle.protobuf.FieldMask\022\032\n\022require_tota"
- + "l_size\030\006 \001(\010\"{\n\024ListProductsResponse\0226\n\010"
- + "products\030\001 \003(\0132$.google.cloud.retail.v2a"
- + "lpha.Product\022\027\n\017next_page_token\030\002 \001(\t\022\022\n"
- + "\ntotal_size\030\003 \001(\005\"\307\001\n\023SetInventoryReques"
- + "t\022=\n\tinventory\030\001 \001(\0132$.google.cloud.reta"
- + "il.v2alpha.ProductB\004\342A\001\002\022,\n\010set_mask\030\002 \001"
- + "(\0132\032.google.protobuf.FieldMask\022,\n\010set_ti"
- + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r"
- + "allow_missing\030\004 \001(\010\"\026\n\024SetInventoryMetad"
- + "ata\"\026\n\024SetInventoryResponse\"\310\001\n\033AddFulfi"
- + "llmentPlacesRequest\0227\n\007product\030\001 \001(\tB&\342A"
- + "\001\002\372A\037\n\035retail.googleapis.com/Product\022\022\n\004"
- + "type\030\002 \001(\tB\004\342A\001\002\022\027\n\tplace_ids\030\003 \003(\tB\004\342A\001"
- + "\002\022,\n\010add_time\030\004 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034AddFul"
- + "fillmentPlacesMetadata\"\036\n\034AddFulfillment"
- + "PlacesResponse\"\226\002\n\032AddLocalInventoriesRe"
- + "quest\0227\n\007product\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail."
- + "googleapis.com/Product\022L\n\021local_inventor"
- + "ies\030\002 \003(\0132+.google.cloud.retail.v2alpha."
- + "LocalInventoryB\004\342A\001\002\022,\n\010add_mask\030\004 \001(\0132\032"
- + ".google.protobuf.FieldMask\022,\n\010add_time\030\005"
- + " \001(\0132\032.google.protobuf.Timestamp\022\025\n\rallo"
- + "w_missing\030\006 \001(\010\"\035\n\033AddLocalInventoriesMe"
- + "tadata\"\035\n\033AddLocalInventoriesResponse\"\271\001"
- + "\n\035RemoveLocalInventoriesRequest\0227\n\007produ"
- + "ct\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com"
- + "/Product\022\027\n\tplace_ids\030\002 \003(\tB\004\342A\001\002\022/\n\013rem"
- + "ove_time\030\005 \001(\0132\032.google.protobuf.Timesta"
- + "mp\022\025\n\rallow_missing\030\003 \001(\010\" \n\036RemoveLocal"
- + "InventoriesMetadata\" \n\036RemoveLocalInvent"
- + "oriesResponse\"\316\001\n\036RemoveFulfillmentPlace"
- + "sRequest\0227\n\007product\030\001 \001(\tB&\342A\001\002\372A\037\n\035reta"
- + "il.googleapis.com/Product\022\022\n\004type\030\002 \001(\tB"
- + "\004\342A\001\002\022\027\n\tplace_ids\030\003 \003(\tB\004\342A\001\002\022/\n\013remove"
- + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022"
- + "\025\n\rallow_missing\030\005 \001(\010\"!\n\037RemoveFulfillm"
- + "entPlacesMetadata\"!\n\037RemoveFulfillmentPl"
- + "acesResponse2\224\033\n\016ProductService\022\336\001\n\rCrea"
- + "teProduct\0221.google.cloud.retail.v2alpha."
- + "CreateProductRequest\032$.google.cloud.reta"
- + "il.v2alpha.Product\"t\332A\031parent,product,pr"
- + "oduct_id\202\323\344\223\002R\"G/v2alpha/{parent=project"
- + "s/*/locations/*/catalogs/*/branches/*}/p"
- + "roducts:\007product\022\273\001\n\nGetProduct\022..google"
- + ".cloud.retail.v2alpha.GetProductRequest\032"
- + "$.google.cloud.retail.v2alpha.Product\"W\332"
- + "A\004name\202\323\344\223\002J\022H/v2alpha/{name=projects/*/"
+ + "oogle/protobuf/timestamp.proto\"\241\001\n\024Creat"
+ + "eProductRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n"
+ + "\034retail.googleapis.com/Branch\022:\n\007product"
+ + "\030\002 \001(\0132$.google.cloud.retail.v2alpha.Pro"
+ + "ductB\003\340A\002\022\027\n\nproduct_id\030\003 \001(\tB\003\340A\002\"H\n\021Ge"
+ + "tProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035r"
+ + "etail.googleapis.com/Product\"\232\001\n\024UpdateP"
+ + "roductRequest\022:\n\007product\030\001 \001(\0132$.google."
+ + "cloud.retail.v2alpha.ProductB\003\340A\002\022/\n\013upd"
+ + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa"
+ + "sk\022\025\n\rallow_missing\030\003 \001(\010\"Z\n\024DeleteProdu"
+ + "ctRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail."
+ + "googleapis.com/Product\022\r\n\005force\030\004 \001(\010\"\315\001"
+ + "\n\023ListProductsRequest\0224\n\006parent\030\001 \001(\tB$\340"
+ + "A\002\372A\036\n\034retail.googleapis.com/Branch\022\021\n\tp"
+ + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fi"
+ + "lter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.p"
+ + "rotobuf.FieldMask\022\032\n\022require_total_size\030"
+ + "\006 \001(\010\"{\n\024ListProductsResponse\0226\n\010product"
+ + "s\030\001 \003(\0132$.google.cloud.retail.v2alpha.Pr"
+ + "oduct\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_"
+ + "size\030\003 \001(\005\"\306\001\n\023SetInventoryRequest\022<\n\tin"
+ + "ventory\030\001 \001(\0132$.google.cloud.retail.v2al"
+ + "pha.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001(\0132\032.goo"
+ + "gle.protobuf.FieldMask\022,\n\010set_time\030\003 \001(\013"
+ + "2\032.google.protobuf.Timestamp\022\025\n\rallow_mi"
+ + "ssing\030\004 \001(\010\"\026\n\024SetInventoryMetadata\"\026\n\024S"
+ + "etInventoryResponse\"\305\001\n\033AddFulfillmentPl"
+ + "acesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035re"
+ + "tail.googleapis.com/Product\022\021\n\004type\030\002 \001("
+ + "\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n\010add_ti"
+ + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r"
+ + "allow_missing\030\005 \001(\010\"\036\n\034AddFulfillmentPla"
+ + "cesMetadata\"\036\n\034AddFulfillmentPlacesRespo"
+ + "nse\"\224\002\n\032AddLocalInventoriesRequest\0226\n\007pr"
+ + "oduct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.c"
+ + "om/Product\022K\n\021local_inventories\030\002 \003(\0132+."
+ + "google.cloud.retail.v2alpha.LocalInvento"
+ + "ryB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google.proto"
+ + "buf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032.google"
+ + ".protobuf.Timestamp\022\025\n\rallow_missing\030\006 \001"
+ + "(\010\"\035\n\033AddLocalInventoriesMetadata\"\035\n\033Add"
+ + "LocalInventoriesResponse\"\267\001\n\035RemoveLocal"
+ + "InventoriesRequest\0226\n\007product\030\001 \001(\tB%\340A\002"
+ + "\372A\037\n\035retail.googleapis.com/Product\022\026\n\tpl"
+ + "ace_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030\005 \001(\0132"
+ + "\032.google.protobuf.Timestamp\022\025\n\rallow_mis"
+ + "sing\030\003 \001(\010\" \n\036RemoveLocalInventoriesMeta"
+ + "data\" \n\036RemoveLocalInventoriesResponse\"\313"
+ + "\001\n\036RemoveFulfillmentPlacesRequest\0226\n\007pro"
+ + "duct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.co"
+ + "m/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tplace_id"
+ + "s\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132\032.goog"
+ + "le.protobuf.Timestamp\022\025\n\rallow_missing\030\005"
+ + " \001(\010\"!\n\037RemoveFulfillmentPlacesMetadata\""
+ + "!\n\037RemoveFulfillmentPlacesResponse2\224\033\n\016P"
+ + "roductService\022\336\001\n\rCreateProduct\0221.google"
+ + ".cloud.retail.v2alpha.CreateProductReque"
+ + "st\032$.google.cloud.retail.v2alpha.Product"
+ + "\"t\332A\031parent,product,product_id\202\323\344\223\002R\"G/v"
+ + "2alpha/{parent=projects/*/locations/*/ca"
+ + "talogs/*/branches/*}/products:\007product\022\273"
+ + "\001\n\nGetProduct\022..google.cloud.retail.v2al"
+ + "pha.GetProductRequest\032$.google.cloud.ret"
+ + "ail.v2alpha.Product\"W\332A\004name\202\323\344\223\002J\022H/v2a"
+ + "lpha/{name=projects/*/locations/*/catalo"
+ + "gs/*/branches/*/products/**}\022\315\001\n\014ListPro"
+ + "ducts\0220.google.cloud.retail.v2alpha.List"
+ + "ProductsRequest\0321.google.cloud.retail.v2"
+ + "alpha.ListProductsResponse\"X\332A\006parent\202\323\344"
+ + "\223\002I\022G/v2alpha/{parent=projects/*/locatio"
+ + "ns/*/catalogs/*/branches/*}/products\022\341\001\n"
+ + "\rUpdateProduct\0221.google.cloud.retail.v2a"
+ + "lpha.UpdateProductRequest\032$.google.cloud"
+ + ".retail.v2alpha.Product\"w\332A\023product,upda"
+ + "te_mask\202\323\344\223\002[2P/v2alpha/{product.name=pr"
+ + "ojects/*/locations/*/catalogs/*/branches"
+ + "/*/products/**}:\007product\022\263\001\n\rDeleteProdu"
+ + "ct\0221.google.cloud.retail.v2alpha.DeleteP"
+ + "roductRequest\032\026.google.protobuf.Empty\"W\332"
+ + "A\004name\202\323\344\223\002J*H/v2alpha/{name=projects/*/"
+ "locations/*/catalogs/*/branches/*/produc"
- + "ts/**}\022\315\001\n\014ListProducts\0220.google.cloud.r"
- + "etail.v2alpha.ListProductsRequest\0321.goog"
- + "le.cloud.retail.v2alpha.ListProductsResp"
- + "onse\"X\332A\006parent\202\323\344\223\002I\022G/v2alpha/{parent="
- + "projects/*/locations/*/catalogs/*/branch"
- + "es/*}/products\022\341\001\n\rUpdateProduct\0221.googl"
- + "e.cloud.retail.v2alpha.UpdateProductRequ"
- + "est\032$.google.cloud.retail.v2alpha.Produc"
- + "t\"w\332A\023product,update_mask\202\323\344\223\002[2P/v2alph"
- + "a/{product.name=projects/*/locations/*/c"
- + "atalogs/*/branches/*/products/**}:\007produ"
- + "ct\022\263\001\n\rDeleteProduct\0221.google.cloud.reta"
- + "il.v2alpha.DeleteProductRequest\032\026.google"
- + ".protobuf.Empty\"W\332A\004name\202\323\344\223\002J*H/v2alpha"
- + "/{name=projects/*/locations/*/catalogs/*"
- + "/branches/*/products/**}\022\245\002\n\rPurgeProduc"
- + "ts\0221.google.cloud.retail.v2alpha.PurgePr"
+ + "ts/**}\022\245\002\n\rPurgeProducts\0221.google.cloud."
+ + "retail.v2alpha.PurgeProductsRequest\032\035.go"
+ + "ogle.longrunning.Operation\"\301\001\312Af\n1google"
+ + ".cloud.retail.v2alpha.PurgeProductsRespo"
+ + "nse\0221google.cloud.retail.v2alpha.PurgePr"
+ + "oductsMetadata\202\323\344\223\002R\"M/v2alpha/{parent=p"
+ + "rojects/*/locations/*/catalogs/*/branche"
+ + "s/*}/products:purge:\001*\022\242\002\n\016ImportProduct"
+ + "s\0222.google.cloud.retail.v2alpha.ImportPr"
+ "oductsRequest\032\035.google.longrunning.Opera"
- + "tion\"\301\001\312Af\n1google.cloud.retail.v2alpha."
- + "PurgeProductsResponse\0221google.cloud.reta"
- + "il.v2alpha.PurgeProductsMetadata\202\323\344\223\002R\"M"
- + "/v2alpha/{parent=projects/*/locations/*/"
- + "catalogs/*/branches/*}/products:purge:\001*"
- + "\022\242\002\n\016ImportProducts\0222.google.cloud.retai"
- + "l.v2alpha.ImportProductsRequest\032\035.google"
- + ".longrunning.Operation\"\274\001\312A`\n2google.clo"
- + "ud.retail.v2alpha.ImportProductsResponse"
- + "\022*google.cloud.retail.v2alpha.ImportMeta"
- + "data\202\323\344\223\002S\"N/v2alpha/{parent=projects/*/"
- + "locations/*/catalogs/*/branches/*}/produ"
- + "cts:import:\001*\022\310\002\n\014SetInventory\0220.google."
- + "cloud.retail.v2alpha.SetInventoryRequest"
- + "\032\035.google.longrunning.Operation\"\346\001\312Ad\n0g"
- + "oogle.cloud.retail.v2alpha.SetInventoryR"
- + "esponse\0220google.cloud.retail.v2alpha.Set"
- + "InventoryMetadata\332A\022inventory,set_mask\202\323"
- + "\344\223\002d\"_/v2alpha/{inventory.name=projects/"
- + "*/locations/*/catalogs/*/branches/*/prod"
- + "ucts/**}:setInventory:\001*\022\336\002\n\024AddFulfillm"
- + "entPlaces\0228.google.cloud.retail.v2alpha."
- + "AddFulfillmentPlacesRequest\032\035.google.lon"
- + "grunning.Operation\"\354\001\312At\n8google.cloud.r"
- + "etail.v2alpha.AddFulfillmentPlacesRespon"
- + "se\0228google.cloud.retail.v2alpha.AddFulfi"
- + "llmentPlacesMetadata\332A\007product\202\323\344\223\002e\"`/v"
- + "2alpha/{product=projects/*/locations/*/c"
- + "atalogs/*/branches/*/products/**}:addFul"
- + "fillmentPlaces:\001*\022\355\002\n\027RemoveFulfillmentP"
- + "laces\022;.google.cloud.retail.v2alpha.Remo"
- + "veFulfillmentPlacesRequest\032\035.google.long"
- + "running.Operation\"\365\001\312Az\n;google.cloud.re"
- + "tail.v2alpha.RemoveFulfillmentPlacesResp"
- + "onse\022;google.cloud.retail.v2alpha.Remove"
- + "FulfillmentPlacesMetadata\332A\007product\202\323\344\223\002"
- + "h\"c/v2alpha/{product=projects/*/location"
- + "s/*/catalogs/*/branches/*/products/**}:r"
- + "emoveFulfillmentPlaces:\001*\022\331\002\n\023AddLocalIn"
- + "ventories\0227.google.cloud.retail.v2alpha."
- + "AddLocalInventoriesRequest\032\035.google.long"
- + "running.Operation\"\351\001\312Ar\n7google.cloud.re"
- + "tail.v2alpha.AddLocalInventoriesResponse"
- + "\0227google.cloud.retail.v2alpha.AddLocalIn"
- + "ventoriesMetadata\332A\007product\202\323\344\223\002d\"_/v2al"
- + "pha/{product=projects/*/locations/*/cata"
- + "logs/*/branches/*/products/**}:addLocalI"
- + "nventories:\001*\022\350\002\n\026RemoveLocalInventories"
- + "\022:.google.cloud.retail.v2alpha.RemoveLoc"
- + "alInventoriesRequest\032\035.google.longrunnin"
- + "g.Operation\"\362\001\312Ax\n:google.cloud.retail.v"
- + "2alpha.RemoveLocalInventoriesResponse\022:g"
- + "oogle.cloud.retail.v2alpha.RemoveLocalIn"
- + "ventoriesMetadata\332A\007product\202\323\344\223\002g\"b/v2al"
- + "pha/{product=projects/*/locations/*/cata"
- + "logs/*/branches/*/products/**}:removeLoc"
- + "alInventories:\001*\032I\312A\025retail.googleapis.c"
- + "om\322A.https://www.googleapis.com/auth/clo"
- + "ud-platformB\327\001\n\037com.google.cloud.retail."
- + "v2alphaB\023ProductServiceProtoP\001Z7cloud.go"
- + "ogle.com/go/retail/apiv2alpha/retailpb;r"
- + "etailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V"
- + "2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036G"
- + "oogle::Cloud::Retail::V2alphab\006proto3"
+ + "tion\"\274\001\312A`\n2google.cloud.retail.v2alpha."
+ + "ImportProductsResponse\022*google.cloud.ret"
+ + "ail.v2alpha.ImportMetadata\202\323\344\223\002S\"N/v2alp"
+ + "ha/{parent=projects/*/locations/*/catalo"
+ + "gs/*/branches/*}/products:import:\001*\022\310\002\n\014"
+ + "SetInventory\0220.google.cloud.retail.v2alp"
+ + "ha.SetInventoryRequest\032\035.google.longrunn"
+ + "ing.Operation\"\346\001\312Ad\n0google.cloud.retail"
+ + ".v2alpha.SetInventoryResponse\0220google.cl"
+ + "oud.retail.v2alpha.SetInventoryMetadata\332"
+ + "A\022inventory,set_mask\202\323\344\223\002d\"_/v2alpha/{in"
+ + "ventory.name=projects/*/locations/*/cata"
+ + "logs/*/branches/*/products/**}:setInvent"
+ + "ory:\001*\022\336\002\n\024AddFulfillmentPlaces\0228.google"
+ + ".cloud.retail.v2alpha.AddFulfillmentPlac"
+ + "esRequest\032\035.google.longrunning.Operation"
+ + "\"\354\001\312At\n8google.cloud.retail.v2alpha.AddF"
+ + "ulfillmentPlacesResponse\0228google.cloud.r"
+ + "etail.v2alpha.AddFulfillmentPlacesMetada"
+ + "ta\332A\007product\202\323\344\223\002e\"`/v2alpha/{product=pr"
+ + "ojects/*/locations/*/catalogs/*/branches"
+ + "/*/products/**}:addFulfillmentPlaces:\001*\022"
+ + "\355\002\n\027RemoveFulfillmentPlaces\022;.google.clo"
+ + "ud.retail.v2alpha.RemoveFulfillmentPlace"
+ + "sRequest\032\035.google.longrunning.Operation\""
+ + "\365\001\312Az\n;google.cloud.retail.v2alpha.Remov"
+ + "eFulfillmentPlacesResponse\022;google.cloud"
+ + ".retail.v2alpha.RemoveFulfillmentPlacesM"
+ + "etadata\332A\007product\202\323\344\223\002h\"c/v2alpha/{produ"
+ + "ct=projects/*/locations/*/catalogs/*/bra"
+ + "nches/*/products/**}:removeFulfillmentPl"
+ + "aces:\001*\022\331\002\n\023AddLocalInventories\0227.google"
+ + ".cloud.retail.v2alpha.AddLocalInventorie"
+ + "sRequest\032\035.google.longrunning.Operation\""
+ + "\351\001\312Ar\n7google.cloud.retail.v2alpha.AddLo"
+ + "calInventoriesResponse\0227google.cloud.ret"
+ + "ail.v2alpha.AddLocalInventoriesMetadata\332"
+ + "A\007product\202\323\344\223\002d\"_/v2alpha/{product=proje"
+ + "cts/*/locations/*/catalogs/*/branches/*/"
+ + "products/**}:addLocalInventories:\001*\022\350\002\n\026"
+ + "RemoveLocalInventories\022:.google.cloud.re"
+ + "tail.v2alpha.RemoveLocalInventoriesReque"
+ + "st\032\035.google.longrunning.Operation\"\362\001\312Ax\n"
+ + ":google.cloud.retail.v2alpha.RemoveLocal"
+ + "InventoriesResponse\022:google.cloud.retail"
+ + ".v2alpha.RemoveLocalInventoriesMetadata\332"
+ + "A\007product\202\323\344\223\002g\"b/v2alpha/{product=proje"
+ + "cts/*/locations/*/catalogs/*/branches/*/"
+ + "products/**}:removeLocalInventories:\001*\032I"
+ + "\312A\025retail.googleapis.com\322A.https://www.g"
+ + "oogleapis.com/auth/cloud-platformB\327\001\n\037co"
+ + "m.google.cloud.retail.v2alphaB\023ProductSe"
+ + "rviceProtoP\001Z7cloud.google.com/go/retail"
+ + "/apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252\002"
+ + "\033Google.Cloud.Retail.V2Alpha\312\002\033Google\\Cl"
+ + "oud\\Retail\\V2alpha\352\002\036Google::Cloud::Reta"
+ + "il::V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PurgeConfigProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PurgeConfigProto.java
index 97940a2bac47..931c9d2b66f0 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PurgeConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PurgeConfigProto.java
@@ -69,23 +69,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ductsMetadata\022/\n\013create_time\030\001 \001(\0132\032.goo"
+ "gle.protobuf.Timestamp\022/\n\013update_time\030\002 "
+ "\001(\0132\032.google.protobuf.Timestamp\022\025\n\rsucce"
- + "ss_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"r\n"
- + "\024PurgeProductsRequest\0225\n\006parent\030\001 \001(\tB%\342"
- + "A\001\002\372A\036\n\034retail.googleapis.com/Branch\022\024\n\006"
- + "filter\030\002 \001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"f\n\025Pur"
- + "geProductsResponse\022\023\n\013purge_count\030\001 \001(\003\022"
- + "8\n\014purge_sample\030\002 \003(\tB\"\372A\037\n\035retail.googl"
- + "eapis.com/Product\"u\n\026PurgeUserEventsRequ"
- + "est\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.goo"
- + "gleapis.com/Catalog\022\024\n\006filter\030\002 \001(\tB\004\342A\001"
- + "\002\022\r\n\005force\030\003 \001(\010\"6\n\027PurgeUserEventsRespo"
- + "nse\022\033\n\023purged_events_count\030\001 \001(\003B\324\001\n\037com"
- + ".google.cloud.retail.v2alphaB\020PurgeConfi"
- + "gProtoP\001Z7cloud.google.com/go/retail/api"
- + "v2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Goo"
- + "gle.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\"
- + "Retail\\V2alpha\352\002\036Google::Cloud::Retail::"
- + "V2alphab\006proto3"
+ + "ss_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"p\n"
+ + "\024PurgeProductsRequest\0224\n\006parent\030\001 \001(\tB$\340"
+ + "A\002\372A\036\n\034retail.googleapis.com/Branch\022\023\n\006f"
+ + "ilter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"f\n\025Purge"
+ + "ProductsResponse\022\023\n\013purge_count\030\001 \001(\003\0228\n"
+ + "\014purge_sample\030\002 \003(\tB\"\372A\037\n\035retail.googlea"
+ + "pis.com/Product\"s\n\026PurgeUserEventsReques"
+ + "t\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.google"
+ + "apis.com/Catalog\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\r\n"
+ + "\005force\030\003 \001(\010\"6\n\027PurgeUserEventsResponse\022"
+ + "\033\n\023purged_events_count\030\001 \001(\003B\324\001\n\037com.goo"
+ + "gle.cloud.retail.v2alphaB\020PurgeConfigPro"
+ + "toP\001Z7cloud.google.com/go/retail/apiv2al"
+ + "pha/retailpb;retailpb\242\002\006RETAIL\252\002\033Google."
+ + "Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Reta"
+ + "il\\V2alpha\352\002\036Google::Cloud::Retail::V2al"
+ + "phab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceProto.java
index 775c1651326b..97a677dc0d8c 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceProto.java
@@ -121,141 +121,141 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "le/cloud/retail/v2alpha/common.proto\032)go"
+ "ogle/cloud/retail/v2alpha/product.proto\032"
+ " google/protobuf/field_mask.proto\032\034googl"
- + "e/protobuf/struct.proto\"\324\025\n\rSearchReques"
- + "t\022\027\n\tplacement\030\001 \001(\tB\004\342A\001\002\0221\n\006branch\030\002 \001"
- + "(\tB!\372A\036\n\034retail.googleapis.com/Branch\022\r\n"
- + "\005query\030\003 \001(\t\022\030\n\nvisitor_id\030\004 \001(\tB\004\342A\001\002\0228"
- + "\n\tuser_info\030\005 \001(\0132%.google.cloud.retail."
- + "v2alpha.UserInfo\022\021\n\tpage_size\030\007 \001(\005\022\022\n\np"
- + "age_token\030\010 \001(\t\022\016\n\006offset\030\t \001(\005\022\016\n\006filte"
- + "r\030\n \001(\t\022\030\n\020canonical_filter\030\034 \001(\t\022\020\n\010ord"
- + "er_by\030\013 \001(\t\022I\n\013facet_specs\030\014 \003(\01324.googl"
- + "e.cloud.retail.v2alpha.SearchRequest.Fac"
- + "etSpec\022[\n\022dynamic_facet_spec\030\025 \001(\0132;.goo"
- + "gle.cloud.retail.v2alpha.SearchRequest.D"
- + "ynamicFacetSpecB\002\030\001\022H\n\nboost_spec\030\r \001(\0132"
- + "4.google.cloud.retail.v2alpha.SearchRequ"
- + "est.BoostSpec\022[\n\024query_expansion_spec\030\016 "
- + "\001(\0132=.google.cloud.retail.v2alpha.Search"
- + "Request.QueryExpansionSpec\022Z\n\023relevance_"
- + "threshold\030\017 \001(\0162=.google.cloud.retail.v2"
- + "alpha.SearchRequest.RelevanceThreshold\022\033"
- + "\n\023variant_rollup_keys\030\021 \003(\t\022\027\n\017page_cate"
- + "gories\030\027 \003(\t\022J\n\013search_mode\030\037 \001(\01625.goog"
- + "le.cloud.retail.v2alpha.SearchRequest.Se"
- + "archMode\022\\\n\024personalization_spec\030 \001(\0132>"
- + ".google.cloud.retail.v2alpha.SearchReque"
- + "st.PersonalizationSpec\022F\n\006labels\030\" \003(\01326"
- + ".google.cloud.retail.v2alpha.SearchReque"
- + "st.LabelsEntry\022b\n\025spell_correction_spec\030"
- + "# \001(\0132>.google.cloud.retail.v2alpha.Sear"
- + "chRequest.SpellCorrectionSpecH\000\210\001\001\022\016\n\006en"
- + "tity\030& \001(\t\032\235\003\n\tFacetSpec\022V\n\tfacet_key\030\001 "
- + "\001(\0132=.google.cloud.retail.v2alpha.Search"
- + "Request.FacetSpec.FacetKeyB\004\342A\001\002\022\r\n\005limi"
- + "t\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\351\001\n\010Facet"
- + "Key\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\0228\n\tintervals\030\002 \003("
- + "\0132%.google.cloud.retail.v2alpha.Interval"
- + "\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010prefixes\030"
- + "\010 \003(\t\022\020\n\010contains\030\t \003(\t\022\030\n\020case_insensit"
- + "ive\030\n \001(\010\022\020\n\010order_by\030\004 \001(\t\022\r\n\005query\030\005 \001"
- + "(\t\022\026\n\016return_min_max\030\013 \001(\010\032\233\001\n\020DynamicFa"
- + "cetSpec\022N\n\004mode\030\001 \001(\0162@.google.cloud.ret"
- + "ail.v2alpha.SearchRequest.DynamicFacetSp"
- + "ec.Mode\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n"
- + "\010DISABLED\020\001\022\013\n\007ENABLED\020\002\032\363\001\n\tBoostSpec\022f"
- + "\n\025condition_boost_specs\030\001 \003(\0132G.google.c"
- + "loud.retail.v2alpha.SearchRequest.BoostS"
- + "pec.ConditionBoostSpec\022\'\n\032skip_boost_spe"
- + "c_validation\030\002 \001(\010H\000\210\001\001\0326\n\022ConditionBoos"
- + "tSpec\022\021\n\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002B"
- + "\035\n\033_skip_boost_spec_validation\032\320\001\n\022Query"
- + "ExpansionSpec\022Z\n\tcondition\030\001 \001(\0162G.googl"
- + "e.cloud.retail.v2alpha.SearchRequest.Que"
- + "ryExpansionSpec.Condition\022\036\n\026pin_unexpan"
- + "ded_results\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDIT"
- + "ION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020"
- + "\003\032\236\001\n\023PersonalizationSpec\022Q\n\004mode\030\001 \001(\0162"
- + "C.google.cloud.retail.v2alpha.SearchRequ"
- + "est.PersonalizationSpec.Mode\"4\n\004Mode\022\024\n\020"
- + "MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\014\n\010DISABLED"
- + "\020\002\032\245\001\n\023SpellCorrectionSpec\022Q\n\004mode\030\001 \001(\016"
- + "2C.google.cloud.retail.v2alpha.SearchReq"
- + "uest.SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n"
- + "\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001"
- + "\022\010\n\004AUTO\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r"
- + "\n\005value\030\002 \001(\t:\0028\001\"d\n\022RelevanceThreshold\022"
- + "#\n\037RELEVANCE_THRESHOLD_UNSPECIFIED\020\000\022\010\n\004"
- + "HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003\022\n\n\006LOWEST\020\004\""
- + "[\n\nSearchMode\022\033\n\027SEARCH_MODE_UNSPECIFIED"
- + "\020\000\022\027\n\023PRODUCT_SEARCH_ONLY\020\001\022\027\n\023FACETED_S"
- + "EARCH_ONLY\020\002B\030\n\026_spell_correction_spec\"\314"
- + "\013\n\016SearchResponse\022I\n\007results\030\001 \003(\01328.goo"
- + "gle.cloud.retail.v2alpha.SearchResponse."
- + "SearchResult\022A\n\006facets\030\002 \003(\01321.google.cl"
- + "oud.retail.v2alpha.SearchResponse.Facet\022"
- + "\022\n\ntotal_size\030\003 \001(\005\022\027\n\017corrected_query\030\004"
- + " \001(\t\022\031\n\021attribution_token\030\005 \001(\t\022\027\n\017next_"
- + "page_token\030\006 \001(\t\022\\\n\024query_expansion_info"
- + "\030\007 \001(\0132>.google.cloud.retail.v2alpha.Sea"
- + "rchResponse.QueryExpansionInfo\022\024\n\014redire"
- + "ct_uri\030\n \001(\t\022\030\n\020applied_controls\030\014 \003(\t\022n"
- + "\n\035invalid_condition_boost_specs\030\016 \003(\0132G."
+ + "e/protobuf/struct.proto\"\320\025\n\rSearchReques"
+ + "t\022\026\n\tplacement\030\001 \001(\tB\003\340A\002\0221\n\006branch\030\002 \001("
+ + "\tB!\372A\036\n\034retail.googleapis.com/Branch\022\r\n\005"
+ + "query\030\003 \001(\t\022\027\n\nvisitor_id\030\004 \001(\tB\003\340A\002\0228\n\t"
+ + "user_info\030\005 \001(\0132%.google.cloud.retail.v2"
+ + "alpha.UserInfo\022\021\n\tpage_size\030\007 \001(\005\022\022\n\npag"
+ + "e_token\030\010 \001(\t\022\016\n\006offset\030\t \001(\005\022\016\n\006filter\030"
+ + "\n \001(\t\022\030\n\020canonical_filter\030\034 \001(\t\022\020\n\010order"
+ + "_by\030\013 \001(\t\022I\n\013facet_specs\030\014 \003(\01324.google."
+ + "cloud.retail.v2alpha.SearchRequest.Facet"
+ + "Spec\022[\n\022dynamic_facet_spec\030\025 \001(\0132;.googl"
+ + "e.cloud.retail.v2alpha.SearchRequest.Dyn"
+ + "amicFacetSpecB\002\030\001\022H\n\nboost_spec\030\r \001(\01324."
+ "google.cloud.retail.v2alpha.SearchReques"
- + "t.BoostSpec.ConditionBoostSpec\022D\n\017experi"
- + "ment_info\030\021 \003(\0132+.google.cloud.retail.v2"
- + "alpha.ExperimentInfo\032\240\004\n\014SearchResult\022\n\n"
- + "\002id\030\001 \001(\t\0225\n\007product\030\002 \001(\0132$.google.clou"
- + "d.retail.v2alpha.Product\022\036\n\026matching_var"
- + "iant_count\030\003 \001(\005\022t\n\027matching_variant_fie"
- + "lds\030\004 \003(\0132S.google.cloud.retail.v2alpha."
- + "SearchResponse.SearchResult.MatchingVari"
- + "antFieldsEntry\022p\n\025variant_rollup_values\030"
- + "\005 \003(\0132Q.google.cloud.retail.v2alpha.Sear"
- + "chResponse.SearchResult.VariantRollupVal"
- + "uesEntry\022\027\n\017personal_labels\030\007 \003(\t\032X\n\032Mat"
- + "chingVariantFieldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005"
- + "value\030\002 \001(\0132\032.google.protobuf.FieldMask:"
- + "\0028\001\032R\n\030VariantRollupValuesEntry\022\013\n\003key\030\001"
- + " \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Va"
- + "lue:\0028\001\032\230\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022L\n\006values"
- + "\030\002 \003(\0132<.google.cloud.retail.v2alpha.Sea"
- + "rchResponse.Facet.FacetValue\022\025\n\rdynamic_"
- + "facet\030\003 \001(\010\032\234\001\n\nFacetValue\022\017\n\005value\030\001 \001("
- + "\tH\000\0229\n\010interval\030\002 \001(\0132%.google.cloud.ret"
- + "ail.v2alpha.IntervalH\000\022\r\n\005count\030\003 \001(\003\022\021\n"
- + "\tmin_value\030\005 \001(\001\022\021\n\tmax_value\030\006 \001(\001B\r\n\013f"
- + "acet_value\032I\n\022QueryExpansionInfo\022\026\n\016expa"
- + "nded_query\030\001 \001(\010\022\033\n\023pinned_result_count\030"
- + "\002 \001(\003\"\200\003\n\016ExperimentInfo\022h\n\031serving_conf"
- + "ig_experiment\030\002 \001(\0132C.google.cloud.retai"
- + "l.v2alpha.ExperimentInfo.ServingConfigEx"
- + "perimentH\000\0229\n\nexperiment\030\001 \001(\tB%\372A\"\n ret"
- + "ail.googleapis.com/Experiment\032\261\001\n\027Servin"
- + "gConfigExperiment\022I\n\027original_serving_co"
- + "nfig\030\001 \001(\tB(\372A%\n#retail.googleapis.com/S"
- + "ervingConfig\022K\n\031experiment_serving_confi"
- + "g\030\002 \001(\tB(\372A%\n#retail.googleapis.com/Serv"
- + "ingConfigB\025\n\023experiment_metadata2\354\002\n\rSea"
- + "rchService\022\217\002\n\006Search\022*.google.cloud.ret"
- + "ail.v2alpha.SearchRequest\032+.google.cloud"
- + ".retail.v2alpha.SearchResponse\"\253\001\202\323\344\223\002\244\001"
- + "\"J/v2alpha/{placement=projects/*/locatio"
- + "ns/*/catalogs/*/placements/*}:search:\001*Z"
- + "S\"N/v2alpha/{placement=projects/*/locati"
- + "ons/*/catalogs/*/servingConfigs/*}:searc"
- + "h:\001*\032I\312A\025retail.googleapis.com\322A.https:/"
- + "/www.googleapis.com/auth/cloud-platformB"
- + "\320\002\n\037com.google.cloud.retail.v2alphaB\022Sea"
- + "rchServiceProtoP\001Z7cloud.google.com/go/r"
- + "etail/apiv2alpha/retailpb;retailpb\242\002\006RET"
- + "AIL\252\002\033Google.Cloud.Retail.V2Alpha\312\002\033Goog"
- + "le\\Cloud\\Retail\\V2alpha\352\002\036Google::Cloud:"
- + ":Retail::V2alpha\352Aw\n retail.googleapis.c"
- + "om/Experiment\022Sprojects/{project}/locati"
- + "ons/{location}/catalogs/{catalog}/experi"
- + "ments/{experiment}b\006proto3"
+ + "t.BoostSpec\022[\n\024query_expansion_spec\030\016 \001("
+ + "\0132=.google.cloud.retail.v2alpha.SearchRe"
+ + "quest.QueryExpansionSpec\022Z\n\023relevance_th"
+ + "reshold\030\017 \001(\0162=.google.cloud.retail.v2al"
+ + "pha.SearchRequest.RelevanceThreshold\022\033\n\023"
+ + "variant_rollup_keys\030\021 \003(\t\022\027\n\017page_catego"
+ + "ries\030\027 \003(\t\022J\n\013search_mode\030\037 \001(\01625.google"
+ + ".cloud.retail.v2alpha.SearchRequest.Sear"
+ + "chMode\022\\\n\024personalization_spec\030 \001(\0132>.g"
+ + "oogle.cloud.retail.v2alpha.SearchRequest"
+ + ".PersonalizationSpec\022F\n\006labels\030\" \003(\01326.g"
+ + "oogle.cloud.retail.v2alpha.SearchRequest"
+ + ".LabelsEntry\022b\n\025spell_correction_spec\030# "
+ + "\001(\0132>.google.cloud.retail.v2alpha.Search"
+ + "Request.SpellCorrectionSpecH\000\210\001\001\022\016\n\006enti"
+ + "ty\030& \001(\t\032\233\003\n\tFacetSpec\022U\n\tfacet_key\030\001 \001("
+ + "\0132=.google.cloud.retail.v2alpha.SearchRe"
+ + "quest.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\027en"
+ + "able_dynamic_position\030\004 \001(\010\032\350\001\n\010FacetKey"
+ + "\022\020\n\003key\030\001 \001(\tB\003\340A\002\0228\n\tintervals\030\002 \003(\0132%."
+ + "google.cloud.retail.v2alpha.Interval\022\031\n\021"
+ + "restricted_values\030\003 \003(\t\022\020\n\010prefixes\030\010 \003("
+ + "\t\022\020\n\010contains\030\t \003(\t\022\030\n\020case_insensitive\030"
+ + "\n \001(\010\022\020\n\010order_by\030\004 \001(\t\022\r\n\005query\030\005 \001(\t\022\026"
+ + "\n\016return_min_max\030\013 \001(\010\032\233\001\n\020DynamicFacetS"
+ + "pec\022N\n\004mode\030\001 \001(\0162@.google.cloud.retail."
+ + "v2alpha.SearchRequest.DynamicFacetSpec.M"
+ + "ode\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DIS"
+ + "ABLED\020\001\022\013\n\007ENABLED\020\002\032\363\001\n\tBoostSpec\022f\n\025co"
+ + "ndition_boost_specs\030\001 \003(\0132G.google.cloud"
+ + ".retail.v2alpha.SearchRequest.BoostSpec."
+ + "ConditionBoostSpec\022\'\n\032skip_boost_spec_va"
+ + "lidation\030\002 \001(\010H\000\210\001\001\0326\n\022ConditionBoostSpe"
+ + "c\022\021\n\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002B\035\n\033_"
+ + "skip_boost_spec_validation\032\320\001\n\022QueryExpa"
+ + "nsionSpec\022Z\n\tcondition\030\001 \001(\0162G.google.cl"
+ + "oud.retail.v2alpha.SearchRequest.QueryEx"
+ + "pansionSpec.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\003\032\236\001"
+ + "\n\023PersonalizationSpec\022Q\n\004mode\030\001 \001(\0162C.go"
+ + "ogle.cloud.retail.v2alpha.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\032\245"
+ + "\001\n\023SpellCorrectionSpec\022Q\n\004mode\030\001 \001(\0162C.g"
+ + "oogle.cloud.retail.v2alpha.SearchRequest"
+ + ".SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n\020MOD"
+ + "E_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001\022\010\n\004"
+ + "AUTO\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
+ + "lue\030\002 \001(\t:\0028\001\"d\n\022RelevanceThreshold\022#\n\037R"
+ + "ELEVANCE_THRESHOLD_UNSPECIFIED\020\000\022\010\n\004HIGH"
+ + "\020\001\022\n\n\006MEDIUM\020\002\022\007\n\003LOW\020\003\022\n\n\006LOWEST\020\004\"[\n\nS"
+ + "earchMode\022\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\027"
+ + "\n\023PRODUCT_SEARCH_ONLY\020\001\022\027\n\023FACETED_SEARC"
+ + "H_ONLY\020\002B\030\n\026_spell_correction_spec\"\314\013\n\016S"
+ + "earchResponse\022I\n\007results\030\001 \003(\01328.google."
+ + "cloud.retail.v2alpha.SearchResponse.Sear"
+ + "chResult\022A\n\006facets\030\002 \003(\01321.google.cloud."
+ + "retail.v2alpha.SearchResponse.Facet\022\022\n\nt"
+ + "otal_size\030\003 \001(\005\022\027\n\017corrected_query\030\004 \001(\t"
+ + "\022\031\n\021attribution_token\030\005 \001(\t\022\027\n\017next_page"
+ + "_token\030\006 \001(\t\022\\\n\024query_expansion_info\030\007 \001"
+ + "(\0132>.google.cloud.retail.v2alpha.SearchR"
+ + "esponse.QueryExpansionInfo\022\024\n\014redirect_u"
+ + "ri\030\n \001(\t\022\030\n\020applied_controls\030\014 \003(\t\022n\n\035in"
+ + "valid_condition_boost_specs\030\016 \003(\0132G.goog"
+ + "le.cloud.retail.v2alpha.SearchRequest.Bo"
+ + "ostSpec.ConditionBoostSpec\022D\n\017experiment"
+ + "_info\030\021 \003(\0132+.google.cloud.retail.v2alph"
+ + "a.ExperimentInfo\032\240\004\n\014SearchResult\022\n\n\002id\030"
+ + "\001 \001(\t\0225\n\007product\030\002 \001(\0132$.google.cloud.re"
+ + "tail.v2alpha.Product\022\036\n\026matching_variant"
+ + "_count\030\003 \001(\005\022t\n\027matching_variant_fields\030"
+ + "\004 \003(\0132S.google.cloud.retail.v2alpha.Sear"
+ + "chResponse.SearchResult.MatchingVariantF"
+ + "ieldsEntry\022p\n\025variant_rollup_values\030\005 \003("
+ + "\0132Q.google.cloud.retail.v2alpha.SearchRe"
+ + "sponse.SearchResult.VariantRollupValuesE"
+ + "ntry\022\027\n\017personal_labels\030\007 \003(\t\032X\n\032Matchin"
+ + "gVariantFieldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005valu"
+ + "e\030\002 \001(\0132\032.google.protobuf.FieldMask:\0028\001\032"
+ + "R\n\030VariantRollupValuesEntry\022\013\n\003key\030\001 \001(\t"
+ + "\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:"
+ + "\0028\001\032\230\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022L\n\006values\030\002 \003"
+ + "(\0132<.google.cloud.retail.v2alpha.SearchR"
+ + "esponse.Facet.FacetValue\022\025\n\rdynamic_face"
+ + "t\030\003 \001(\010\032\234\001\n\nFacetValue\022\017\n\005value\030\001 \001(\tH\000\022"
+ + "9\n\010interval\030\002 \001(\0132%.google.cloud.retail."
+ + "v2alpha.IntervalH\000\022\r\n\005count\030\003 \001(\003\022\021\n\tmin"
+ + "_value\030\005 \001(\001\022\021\n\tmax_value\030\006 \001(\001B\r\n\013facet"
+ + "_value\032I\n\022QueryExpansionInfo\022\026\n\016expanded"
+ + "_query\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001("
+ + "\003\"\200\003\n\016ExperimentInfo\022h\n\031serving_config_e"
+ + "xperiment\030\002 \001(\0132C.google.cloud.retail.v2"
+ + "alpha.ExperimentInfo.ServingConfigExperi"
+ + "mentH\000\0229\n\nexperiment\030\001 \001(\tB%\372A\"\n retail."
+ + "googleapis.com/Experiment\032\261\001\n\027ServingCon"
+ + "figExperiment\022I\n\027original_serving_config"
+ + "\030\001 \001(\tB(\372A%\n#retail.googleapis.com/Servi"
+ + "ngConfig\022K\n\031experiment_serving_config\030\002 "
+ + "\001(\tB(\372A%\n#retail.googleapis.com/ServingC"
+ + "onfigB\025\n\023experiment_metadata2\354\002\n\rSearchS"
+ + "ervice\022\217\002\n\006Search\022*.google.cloud.retail."
+ + "v2alpha.SearchRequest\032+.google.cloud.ret"
+ + "ail.v2alpha.SearchResponse\"\253\001\202\323\344\223\002\244\001\"J/v"
+ + "2alpha/{placement=projects/*/locations/*"
+ + "/catalogs/*/placements/*}:search:\001*ZS\"N/"
+ + "v2alpha/{placement=projects/*/locations/"
+ + "*/catalogs/*/servingConfigs/*}:search:\001*"
+ + "\032I\312A\025retail.googleapis.com\322A.https://www"
+ + ".googleapis.com/auth/cloud-platformB\320\002\n\037"
+ + "com.google.cloud.retail.v2alphaB\022SearchS"
+ + "erviceProtoP\001Z7cloud.google.com/go/retai"
+ + "l/apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252"
+ + "\002\033Google.Cloud.Retail.V2Alpha\312\002\033Google\\C"
+ + "loud\\Retail\\V2alpha\352\002\036Google::Cloud::Ret"
+ + "ail::V2alpha\352Aw\n retail.googleapis.com/E"
+ + "xperiment\022Sprojects/{project}/locations/"
+ + "{location}/catalogs/{catalog}/experiment"
+ + "s/{experiment}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java
index 1db7f1a1b76d..2e7dfeeaeb39 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java
@@ -46,39 +46,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\037google/api/field_behavior.proto\032\031google"
+ "/api/resource.proto\032(google/cloud/retail"
+ "/v2alpha/common.proto\0320google/cloud/reta"
- + "il/v2alpha/search_service.proto\"\215\010\n\rServ"
- + "ingConfig\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\032\n\014display"
- + "_name\030\002 \001(\tB\004\342A\001\002\022\020\n\010model_id\030\003 \001(\t\022\035\n\025p"
- + "rice_reranking_level\030\004 \001(\t\022\031\n\021facet_cont"
- + "rol_ids\030\005 \003(\t\022W\n\022dynamic_facet_spec\030\006 \001("
- + "\0132;.google.cloud.retail.v2alpha.SearchRe"
- + "quest.DynamicFacetSpec\022\031\n\021boost_control_"
- + "ids\030\007 \003(\t\022\032\n\022filter_control_ids\030\t \003(\t\022\034\n"
- + "\024redirect_control_ids\030\n \003(\t\022#\n\033twoway_sy"
- + "nonyms_control_ids\030\022 \003(\t\022#\n\033oneway_synon"
- + "yms_control_ids\030\014 \003(\t\022$\n\034do_not_associat"
- + "e_control_ids\030\r \003(\t\022\037\n\027replacement_contr"
- + "ol_ids\030\016 \003(\t\022\032\n\022ignore_control_ids\030\017 \003(\t"
- + "\022\027\n\017diversity_level\030\010 \001(\t\022P\n\016diversity_t"
- + "ype\030\024 \001(\01628.google.cloud.retail.v2alpha."
- + "ServingConfig.DiversityType\022$\n\034enable_ca"
- + "tegory_filter_level\030\020 \001(\t\022\\\n\024personaliza"
- + "tion_spec\030\025 \001(\0132>.google.cloud.retail.v2"
- + "alpha.SearchRequest.PersonalizationSpec\022"
- + "H\n\016solution_types\030\023 \003(\0162).google.cloud.r"
- + "etail.v2alpha.SolutionTypeB\005\342A\002\002\005\"d\n\rDiv"
- + "ersityType\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED"
- + "\020\000\022\030\n\024RULE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRI"
- + "VEN_DIVERSITY\020\003:\205\001\352A\201\001\n#retail.googleapi"
- + "s.com/ServingConfig\022Zprojects/{project}/"
- + "locations/{location}/catalogs/{catalog}/"
- + "servingConfigs/{serving_config}B\326\001\n\037com."
- + "google.cloud.retail.v2alphaB\022ServingConf"
- + "igProtoP\001Z7cloud.google.com/go/retail/ap"
- + "iv2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Go"
- + "ogle.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud"
- + "\\Retail\\V2alpha\352\002\036Google::Cloud::Retail:"
- + ":V2alphab\006proto3"
+ + "il/v2alpha/search_service.proto\"\214\010\n\rServ"
+ + "ingConfig\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_"
+ + "name\030\002 \001(\tB\003\340A\002\022\020\n\010model_id\030\003 \001(\t\022\035\n\025pri"
+ + "ce_reranking_level\030\004 \001(\t\022\031\n\021facet_contro"
+ + "l_ids\030\005 \003(\t\022W\n\022dynamic_facet_spec\030\006 \001(\0132"
+ + ";.google.cloud.retail.v2alpha.SearchRequ"
+ + "est.DynamicFacetSpec\022\031\n\021boost_control_id"
+ + "s\030\007 \003(\t\022\032\n\022filter_control_ids\030\t \003(\t\022\034\n\024r"
+ + "edirect_control_ids\030\n \003(\t\022#\n\033twoway_syno"
+ + "nyms_control_ids\030\022 \003(\t\022#\n\033oneway_synonym"
+ + "s_control_ids\030\014 \003(\t\022$\n\034do_not_associate_"
+ + "control_ids\030\r \003(\t\022\037\n\027replacement_control"
+ + "_ids\030\016 \003(\t\022\032\n\022ignore_control_ids\030\017 \003(\t\022\027"
+ + "\n\017diversity_level\030\010 \001(\t\022P\n\016diversity_typ"
+ + "e\030\024 \001(\01628.google.cloud.retail.v2alpha.Se"
+ + "rvingConfig.DiversityType\022$\n\034enable_cate"
+ + "gory_filter_level\030\020 \001(\t\022\\\n\024personalizati"
+ + "on_spec\030\025 \001(\0132>.google.cloud.retail.v2al"
+ + "pha.SearchRequest.PersonalizationSpec\022I\n"
+ + "\016solution_types\030\023 \003(\0162).google.cloud.ret"
+ + "ail.v2alpha.SolutionTypeB\006\340A\002\340A\005\"d\n\rDive"
+ + "rsityType\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020"
+ + "\000\022\030\n\024RULE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIV"
+ + "EN_DIVERSITY\020\003:\205\001\352A\201\001\n#retail.googleapis"
+ + ".com/ServingConfig\022Zprojects/{project}/l"
+ + "ocations/{location}/catalogs/{catalog}/s"
+ + "ervingConfigs/{serving_config}B\326\001\n\037com.g"
+ + "oogle.cloud.retail.v2alphaB\022ServingConfi"
+ + "gProtoP\001Z7cloud.google.com/go/retail/api"
+ + "v2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Goo"
+ + "gle.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\"
+ + "Retail\\V2alpha\352\002\036Google::Cloud::Retail::"
+ + "V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceProto.java
index 460fff42484c..945a7a859661 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceProto.java
@@ -76,81 +76,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_behavior.proto\032\031google/api/resource.pro"
+ "to\0320google/cloud/retail/v2alpha/serving_"
+ "config.proto\032\033google/protobuf/empty.prot"
- + "o\032 google/protobuf/field_mask.proto\"\277\001\n\032"
- + "CreateServingConfigRequest\0226\n\006parent\030\001 \001"
- + "(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/Catal"
- + "og\022H\n\016serving_config\030\002 \001(\0132*.google.clou"
- + "d.retail.v2alpha.ServingConfigB\004\342A\001\002\022\037\n\021"
- + "serving_config_id\030\003 \001(\tB\004\342A\001\002\"\227\001\n\032Update"
- + "ServingConfigRequest\022H\n\016serving_config\030\001"
- + " \001(\0132*.google.cloud.retail.v2alpha.Servi"
- + "ngConfigB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.go"
- + "ogle.protobuf.FieldMask\"X\n\032DeleteServing"
- + "ConfigRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#re"
- + "tail.googleapis.com/ServingConfig\"U\n\027Get"
- + "ServingConfigRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002"
- + "\372A%\n#retail.googleapis.com/ServingConfig"
- + "\"\206\001\n\031ListServingConfigsRequest\0226\n\006parent"
- + "\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/C"
- + "atalog\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_"
- + "token\030\003 \001(\tB\004\342A\001\001\"z\n\032ListServingConfigsR"
- + "esponse\022C\n\017serving_configs\030\001 \003(\0132*.googl"
- + "e.cloud.retail.v2alpha.ServingConfig\022\027\n\017"
- + "next_page_token\030\002 \001(\t\"s\n\021AddControlReque"
- + "st\022D\n\016serving_config\030\001 \001(\tB,\342A\001\002\372A%\n#ret"
- + "ail.googleapis.com/ServingConfig\022\030\n\ncont"
- + "rol_id\030\002 \001(\tB\004\342A\001\002\"v\n\024RemoveControlReque"
- + "st\022D\n\016serving_config\030\001 \001(\tB,\342A\001\002\372A%\n#ret"
- + "ail.googleapis.com/ServingConfig\022\030\n\ncont"
- + "rol_id\030\002 \001(\tB\004\342A\001\0022\227\r\n\024ServingConfigServ"
- + "ice\022\201\002\n\023CreateServingConfig\0227.google.clo"
- + "ud.retail.v2alpha.CreateServingConfigReq"
- + "uest\032*.google.cloud.retail.v2alpha.Servi"
- + "ngConfig\"\204\001\332A\'parent,serving_config,serv"
- + "ing_config_id\202\323\344\223\002T\"B/v2alpha/{parent=pr"
- + "ojects/*/locations/*/catalogs/*}/serving"
- + "Configs:\016serving_config\022\271\001\n\023DeleteServin"
- + "gConfig\0227.google.cloud.retail.v2alpha.De"
- + "leteServingConfigRequest\032\026.google.protob"
- + "uf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v2alpha/{name="
- + "projects/*/locations/*/catalogs/*/servin"
- + "gConfigs/*}\022\203\002\n\023UpdateServingConfig\0227.go"
- + "ogle.cloud.retail.v2alpha.UpdateServingC"
- + "onfigRequest\032*.google.cloud.retail.v2alp"
- + "ha.ServingConfig\"\206\001\332A\032serving_config,upd"
- + "ate_mask\202\323\344\223\002c2Q/v2alpha/{serving_config"
- + ".name=projects/*/locations/*/catalogs/*/"
- + "servingConfigs/*}:\016serving_config\022\307\001\n\020Ge"
- + "tServingConfig\0224.google.cloud.retail.v2a"
- + "lpha.GetServingConfigRequest\032*.google.cl"
- + "oud.retail.v2alpha.ServingConfig\"Q\332A\004nam"
- + "e\202\323\344\223\002D\022B/v2alpha/{name=projects/*/locat"
- + "ions/*/catalogs/*/servingConfigs/*}\022\332\001\n\022"
- + "ListServingConfigs\0226.google.cloud.retail"
- + ".v2alpha.ListServingConfigsRequest\0327.goo"
- + "gle.cloud.retail.v2alpha.ListServingConf"
- + "igsResponse\"S\332A\006parent\202\323\344\223\002D\022B/v2alpha/{"
- + "parent=projects/*/locations/*/catalogs/*"
- + "}/servingConfigs\022\335\001\n\nAddControl\022..google"
- + ".cloud.retail.v2alpha.AddControlRequest\032"
+ + "o\032 google/protobuf/field_mask.proto\"\274\001\n\032"
+ + "CreateServingConfigRequest\0225\n\006parent\030\001 \001"
+ + "(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Catalo"
+ + "g\022G\n\016serving_config\030\002 \001(\0132*.google.cloud"
+ + ".retail.v2alpha.ServingConfigB\003\340A\002\022\036\n\021se"
+ + "rving_config_id\030\003 \001(\tB\003\340A\002\"\226\001\n\032UpdateSer"
+ + "vingConfigRequest\022G\n\016serving_config\030\001 \001("
+ + "\0132*.google.cloud.retail.v2alpha.ServingC"
+ + "onfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google"
+ + ".protobuf.FieldMask\"W\n\032DeleteServingConf"
+ + "igRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#retail."
+ + "googleapis.com/ServingConfig\"T\n\027GetServi"
+ + "ngConfigRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#r"
+ + "etail.googleapis.com/ServingConfig\"\203\001\n\031L"
+ + "istServingConfigsRequest\0225\n\006parent\030\001 \001(\t"
+ + "B%\340A\002\372A\037\n\035retail.googleapis.com/Catalog\022"
+ + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 "
+ + "\001(\tB\003\340A\001\"z\n\032ListServingConfigsResponse\022C"
+ + "\n\017serving_configs\030\001 \003(\0132*.google.cloud.r"
+ + "etail.v2alpha.ServingConfig\022\027\n\017next_page"
+ + "_token\030\002 \001(\t\"q\n\021AddControlRequest\022C\n\016ser"
+ + "ving_config\030\001 \001(\tB+\340A\002\372A%\n#retail.google"
+ + "apis.com/ServingConfig\022\027\n\ncontrol_id\030\002 \001"
+ + "(\tB\003\340A\002\"t\n\024RemoveControlRequest\022C\n\016servi"
+ + "ng_config\030\001 \001(\tB+\340A\002\372A%\n#retail.googleap"
+ + "is.com/ServingConfig\022\027\n\ncontrol_id\030\002 \001(\t"
+ + "B\003\340A\0022\227\r\n\024ServingConfigService\022\201\002\n\023Creat"
+ + "eServingConfig\0227.google.cloud.retail.v2a"
+ + "lpha.CreateServingConfigRequest\032*.google"
+ + ".cloud.retail.v2alpha.ServingConfig\"\204\001\332A"
+ + "\'parent,serving_config,serving_config_id"
+ + "\202\323\344\223\002T\"B/v2alpha/{parent=projects/*/loca"
+ + "tions/*/catalogs/*}/servingConfigs:\016serv"
+ + "ing_config\022\271\001\n\023DeleteServingConfig\0227.goo"
+ + "gle.cloud.retail.v2alpha.DeleteServingCo"
+ + "nfigRequest\032\026.google.protobuf.Empty\"Q\332A\004"
+ + "name\202\323\344\223\002D*B/v2alpha/{name=projects/*/lo"
+ + "cations/*/catalogs/*/servingConfigs/*}\022\203"
+ + "\002\n\023UpdateServingConfig\0227.google.cloud.re"
+ + "tail.v2alpha.UpdateServingConfigRequest\032"
+ "*.google.cloud.retail.v2alpha.ServingCon"
- + "fig\"s\332A\016serving_config\202\323\344\223\002\\\"W/v2alpha/{"
- + "serving_config=projects/*/locations/*/ca"
- + "talogs/*/servingConfigs/*}:addControl:\001*"
- + "\022\346\001\n\rRemoveControl\0221.google.cloud.retail"
- + ".v2alpha.RemoveControlRequest\032*.google.c"
- + "loud.retail.v2alpha.ServingConfig\"v\332A\016se"
- + "rving_config\202\323\344\223\002_\"Z/v2alpha/{serving_co"
- + "nfig=projects/*/locations/*/catalogs/*/s"
- + "ervingConfigs/*}:removeControl:\001*\032I\312A\025re"
- + "tail.googleapis.com\322A.https://www.google"
- + "apis.com/auth/cloud-platformB\335\001\n\037com.goo"
- + "gle.cloud.retail.v2alphaB\031ServingConfigS"
- + "erviceProtoP\001Z7cloud.google.com/go/retai"
- + "l/apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252"
- + "\002\033Google.Cloud.Retail.V2Alpha\312\002\033Google\\C"
- + "loud\\Retail\\V2alpha\352\002\036Google::Cloud::Ret"
- + "ail::V2alphab\006proto3"
+ + "fig\"\206\001\332A\032serving_config,update_mask\202\323\344\223\002"
+ + "c2Q/v2alpha/{serving_config.name=project"
+ + "s/*/locations/*/catalogs/*/servingConfig"
+ + "s/*}:\016serving_config\022\307\001\n\020GetServingConfi"
+ + "g\0224.google.cloud.retail.v2alpha.GetServi"
+ + "ngConfigRequest\032*.google.cloud.retail.v2"
+ + "alpha.ServingConfig\"Q\332A\004name\202\323\344\223\002D\022B/v2a"
+ + "lpha/{name=projects/*/locations/*/catalo"
+ + "gs/*/servingConfigs/*}\022\332\001\n\022ListServingCo"
+ + "nfigs\0226.google.cloud.retail.v2alpha.List"
+ + "ServingConfigsRequest\0327.google.cloud.ret"
+ + "ail.v2alpha.ListServingConfigsResponse\"S"
+ + "\332A\006parent\202\323\344\223\002D\022B/v2alpha/{parent=projec"
+ + "ts/*/locations/*/catalogs/*}/servingConf"
+ + "igs\022\335\001\n\nAddControl\022..google.cloud.retail"
+ + ".v2alpha.AddControlRequest\032*.google.clou"
+ + "d.retail.v2alpha.ServingConfig\"s\332A\016servi"
+ + "ng_config\202\323\344\223\002\\\"W/v2alpha/{serving_confi"
+ + "g=projects/*/locations/*/catalogs/*/serv"
+ + "ingConfigs/*}:addControl:\001*\022\346\001\n\rRemoveCo"
+ + "ntrol\0221.google.cloud.retail.v2alpha.Remo"
+ + "veControlRequest\032*.google.cloud.retail.v"
+ + "2alpha.ServingConfig\"v\332A\016serving_config\202"
+ + "\323\344\223\002_\"Z/v2alpha/{serving_config=projects"
+ + "/*/locations/*/catalogs/*/servingConfigs"
+ + "/*}:removeControl:\001*\032I\312A\025retail.googleap"
+ + "is.com\322A.https://www.googleapis.com/auth"
+ + "/cloud-platformB\335\001\n\037com.google.cloud.ret"
+ + "ail.v2alphaB\031ServingConfigServiceProtoP\001"
+ + "Z7cloud.google.com/go/retail/apiv2alpha/"
+ + "retailpb;retailpb\242\002\006RETAIL\252\002\033Google.Clou"
+ + "d.Retail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V"
+ + "2alpha\352\002\036Google::Cloud::Retail::V2alphab"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventProto.java
index 0814a0a1eaad..df83decb5296 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventProto.java
@@ -63,42 +63,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ud/retail/v2alpha/common.proto\032)google/c"
+ "loud/retail/v2alpha/product.proto\032\037googl"
+ "e/protobuf/timestamp.proto\032\036google/proto"
- + "buf/wrappers.proto\"\267\006\n\tUserEvent\022\030\n\neven"
- + "t_type\030\001 \001(\tB\004\342A\001\002\022\030\n\nvisitor_id\030\002 \001(\tB\004"
- + "\342A\001\002\022\022\n\nsession_id\030\025 \001(\t\022.\n\nevent_time\030\003"
- + " \001(\0132\032.google.protobuf.Timestamp\022\026\n\016expe"
- + "riment_ids\030\004 \003(\t\022\031\n\021attribution_token\030\005 "
- + "\001(\t\022C\n\017product_details\030\006 \003(\0132*.google.cl"
- + "oud.retail.v2alpha.ProductDetail\022H\n\021comp"
- + "letion_detail\030\026 \001(\0132-.google.cloud.retai"
- + "l.v2alpha.CompletionDetail\022J\n\nattributes"
- + "\030\007 \003(\01326.google.cloud.retail.v2alpha.Use"
- + "rEvent.AttributesEntry\022\017\n\007cart_id\030\010 \001(\t\022"
- + "N\n\024purchase_transaction\030\t \001(\01320.google.c"
- + "loud.retail.v2alpha.PurchaseTransaction\022"
- + "\024\n\014search_query\030\n \001(\t\022\016\n\006filter\030\020 \001(\t\022\020\n"
- + "\010order_by\030\021 \001(\t\022\016\n\006offset\030\022 \001(\005\022\027\n\017page_"
- + "categories\030\013 \003(\t\0228\n\tuser_info\030\014 \001(\0132%.go"
- + "ogle.cloud.retail.v2alpha.UserInfo\022\013\n\003ur"
- + "i\030\r \001(\t\022\024\n\014referrer_uri\030\016 \001(\t\022\024\n\014page_vi"
- + "ew_id\030\017 \001(\t\022\016\n\006entity\030\027 \001(\t\032_\n\017Attribute"
- + "sEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.goo"
- + "gle.cloud.retail.v2alpha.CustomAttribute"
- + ":\0028\001\"{\n\rProductDetail\022;\n\007product\030\001 \001(\0132$"
- + ".google.cloud.retail.v2alpha.ProductB\004\342A"
- + "\001\002\022-\n\010quantity\030\002 \001(\0132\033.google.protobuf.I"
- + "nt32Value\"p\n\020CompletionDetail\022$\n\034complet"
- + "ion_attribution_token\030\001 \001(\t\022\033\n\023selected_"
- + "suggestion\030\002 \001(\t\022\031\n\021selected_position\030\003 "
- + "\001(\005\"p\n\023PurchaseTransaction\022\n\n\002id\030\001 \001(\t\022\025"
- + "\n\007revenue\030\002 \001(\002B\004\342A\001\002\022\013\n\003tax\030\003 \001(\002\022\014\n\004co"
- + "st\030\004 \001(\002\022\033\n\rcurrency_code\030\005 \001(\tB\004\342A\001\002B\322\001"
- + "\n\037com.google.cloud.retail.v2alphaB\016UserE"
- + "ventProtoP\001Z7cloud.google.com/go/retail/"
- + "apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033"
- + "Google.Cloud.Retail.V2Alpha\312\002\033Google\\Clo"
- + "ud\\Retail\\V2alpha\352\002\036Google::Cloud::Retai"
- + "l::V2alphab\006proto3"
+ + "buf/wrappers.proto\"\265\006\n\tUserEvent\022\027\n\neven"
+ + "t_type\030\001 \001(\tB\003\340A\002\022\027\n\nvisitor_id\030\002 \001(\tB\003\340"
+ + "A\002\022\022\n\nsession_id\030\025 \001(\t\022.\n\nevent_time\030\003 \001"
+ + "(\0132\032.google.protobuf.Timestamp\022\026\n\016experi"
+ + "ment_ids\030\004 \003(\t\022\031\n\021attribution_token\030\005 \001("
+ + "\t\022C\n\017product_details\030\006 \003(\0132*.google.clou"
+ + "d.retail.v2alpha.ProductDetail\022H\n\021comple"
+ + "tion_detail\030\026 \001(\0132-.google.cloud.retail."
+ + "v2alpha.CompletionDetail\022J\n\nattributes\030\007"
+ + " \003(\01326.google.cloud.retail.v2alpha.UserE"
+ + "vent.AttributesEntry\022\017\n\007cart_id\030\010 \001(\t\022N\n"
+ + "\024purchase_transaction\030\t \001(\01320.google.clo"
+ + "ud.retail.v2alpha.PurchaseTransaction\022\024\n"
+ + "\014search_query\030\n \001(\t\022\016\n\006filter\030\020 \001(\t\022\020\n\010o"
+ + "rder_by\030\021 \001(\t\022\016\n\006offset\030\022 \001(\005\022\027\n\017page_ca"
+ + "tegories\030\013 \003(\t\0228\n\tuser_info\030\014 \001(\0132%.goog"
+ + "le.cloud.retail.v2alpha.UserInfo\022\013\n\003uri\030"
+ + "\r \001(\t\022\024\n\014referrer_uri\030\016 \001(\t\022\024\n\014page_view"
+ + "_id\030\017 \001(\t\022\016\n\006entity\030\027 \001(\t\032_\n\017AttributesE"
+ + "ntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.googl"
+ + "e.cloud.retail.v2alpha.CustomAttribute:\002"
+ + "8\001\"z\n\rProductDetail\022:\n\007product\030\001 \001(\0132$.g"
+ + "oogle.cloud.retail.v2alpha.ProductB\003\340A\002\022"
+ + "-\n\010quantity\030\002 \001(\0132\033.google.protobuf.Int3"
+ + "2Value\"p\n\020CompletionDetail\022$\n\034completion"
+ + "_attribution_token\030\001 \001(\t\022\033\n\023selected_sug"
+ + "gestion\030\002 \001(\t\022\031\n\021selected_position\030\003 \001(\005"
+ + "\"n\n\023PurchaseTransaction\022\n\n\002id\030\001 \001(\t\022\024\n\007r"
+ + "evenue\030\002 \001(\002B\003\340A\002\022\013\n\003tax\030\003 \001(\002\022\014\n\004cost\030\004"
+ + " \001(\002\022\032\n\rcurrency_code\030\005 \001(\tB\003\340A\002B\322\001\n\037com"
+ + ".google.cloud.retail.v2alphaB\016UserEventP"
+ + "rotoP\001Z7cloud.google.com/go/retail/apiv2"
+ + "alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Googl"
+ + "e.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Re"
+ + "tail\\V2alpha\352\002\036Google::Cloud::Retail::V2"
+ + "alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceProto.java
index dda9918c3e5e..16299a71ac9a 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceProto.java
@@ -67,61 +67,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "le/cloud/retail/v2alpha/purge_config.pro"
+ "to\032,google/cloud/retail/v2alpha/user_eve"
+ "nt.proto\032#google/longrunning/operations."
- + "proto\"\204\001\n\025WriteUserEventRequest\022\024\n\006paren"
- + "t\030\001 \001(\tB\004\342A\001\002\022@\n\nuser_event\030\002 \001(\0132&.goog"
- + "le.cloud.retail.v2alpha.UserEventB\004\342A\001\002\022"
- + "\023\n\013write_async\030\003 \001(\010\"\241\001\n\027CollectUserEven"
- + "tRequest\022\027\n\rprebuilt_rule\030\006 \001(\tH\000\022\024\n\006par"
- + "ent\030\001 \001(\tB\004\342A\001\002\022\030\n\nuser_event\030\002 \001(\tB\004\342A\001"
- + "\002\022\013\n\003uri\030\003 \001(\t\022\013\n\003ets\030\004 \001(\003\022\020\n\010raw_json\030"
- + "\005 \001(\tB\021\n\017conversion_rule\"\204\002\n\027RejoinUserE"
- + "ventsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022j\n\027us"
- + "er_event_rejoin_scope\030\002 \001(\0162I.google.clo"
- + "ud.retail.v2alpha.RejoinUserEventsReques"
- + "t.UserEventRejoinScope\"g\n\024UserEventRejoi"
- + "nScope\022\'\n#USER_EVENT_REJOIN_SCOPE_UNSPEC"
- + "IFIED\020\000\022\021\n\rJOINED_EVENTS\020\001\022\023\n\017UNJOINED_E"
- + "VENTS\020\002\">\n\030RejoinUserEventsResponse\022\"\n\032r"
- + "ejoined_user_events_count\030\001 \001(\003\"\032\n\030Rejoi"
- + "nUserEventsMetadata2\212\n\n\020UserEventService"
- + "\022\306\001\n\016WriteUserEvent\0222.google.cloud.retai"
- + "l.v2alpha.WriteUserEventRequest\032&.google"
- + ".cloud.retail.v2alpha.UserEvent\"X\202\323\344\223\002R\""
- + "D/v2alpha/{parent=projects/*/locations/*"
- + "/catalogs/*}/userEvents:write:\nuser_even"
- + "t\022\256\001\n\020CollectUserEvent\0224.google.cloud.re"
- + "tail.v2alpha.CollectUserEventRequest\032\024.g"
- + "oogle.api.HttpBody\"N\202\323\344\223\002H\022F/v2alpha/{pa"
- + "rent=projects/*/locations/*/catalogs/*}/"
- + "userEvents:collect\022\232\002\n\017PurgeUserEvents\0223"
- + ".google.cloud.retail.v2alpha.PurgeUserEv"
- + "entsRequest\032\035.google.longrunning.Operati"
- + "on\"\262\001\312A`\n3google.cloud.retail.v2alpha.Pu"
- + "rgeUserEventsResponse\022)google.cloud.reta"
- + "il.v2alpha.PurgeMetadata\202\323\344\223\002I\"D/v2alpha"
- + "/{parent=projects/*/locations/*/catalogs"
- + "/*}/userEvents:purge:\001*\022\237\002\n\020ImportUserEv"
- + "ents\0224.google.cloud.retail.v2alpha.Impor"
- + "tUserEventsRequest\032\035.google.longrunning."
- + "Operation\"\265\001\312Ab\n4google.cloud.retail.v2a"
- + "lpha.ImportUserEventsResponse\022*google.cl"
- + "oud.retail.v2alpha.ImportMetadata\202\323\344\223\002J\""
- + "E/v2alpha/{parent=projects/*/locations/*"
- + "/catalogs/*}/userEvents:import:\001*\022\361\001\n\020Re"
- + "joinUserEvents\0224.google.cloud.retail.v2a"
- + "lpha.RejoinUserEventsRequest\032\035.google.lo"
- + "ngrunning.Operation\"\207\001\312A4\n\030RejoinUserEve"
- + "ntsResponse\022\030RejoinUserEventsMetadata\202\323\344"
- + "\223\002J\"E/v2alpha/{parent=projects/*/locatio"
- + "ns/*/catalogs/*}/userEvents:rejoin:\001*\032I\312"
- + "A\025retail.googleapis.com\322A.https://www.go"
- + "ogleapis.com/auth/cloud-platformB\331\001\n\037com"
- + ".google.cloud.retail.v2alphaB\025UserEventS"
- + "erviceProtoP\001Z7cloud.google.com/go/retai"
- + "l/apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252"
- + "\002\033Google.Cloud.Retail.V2Alpha\312\002\033Google\\C"
- + "loud\\Retail\\V2alpha\352\002\036Google::Cloud::Ret"
- + "ail::V2alphab\006proto3"
+ + "proto\"\202\001\n\025WriteUserEventRequest\022\023\n\006paren"
+ + "t\030\001 \001(\tB\003\340A\002\022?\n\nuser_event\030\002 \001(\0132&.googl"
+ + "e.cloud.retail.v2alpha.UserEventB\003\340A\002\022\023\n"
+ + "\013write_async\030\003 \001(\010\"\237\001\n\027CollectUserEventR"
+ + "equest\022\027\n\rprebuilt_rule\030\006 \001(\tH\000\022\023\n\006paren"
+ + "t\030\001 \001(\tB\003\340A\002\022\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\013\n"
+ + "\003uri\030\003 \001(\t\022\013\n\003ets\030\004 \001(\003\022\020\n\010raw_json\030\005 \001("
+ + "\tB\021\n\017conversion_rule\"\203\002\n\027RejoinUserEvent"
+ + "sRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022j\n\027user_ev"
+ + "ent_rejoin_scope\030\002 \001(\0162I.google.cloud.re"
+ + "tail.v2alpha.RejoinUserEventsRequest.Use"
+ + "rEventRejoinScope\"g\n\024UserEventRejoinScop"
+ + "e\022\'\n#USER_EVENT_REJOIN_SCOPE_UNSPECIFIED"
+ + "\020\000\022\021\n\rJOINED_EVENTS\020\001\022\023\n\017UNJOINED_EVENTS"
+ + "\020\002\">\n\030RejoinUserEventsResponse\022\"\n\032rejoin"
+ + "ed_user_events_count\030\001 \001(\003\"\032\n\030RejoinUser"
+ + "EventsMetadata2\212\n\n\020UserEventService\022\306\001\n\016"
+ + "WriteUserEvent\0222.google.cloud.retail.v2a"
+ + "lpha.WriteUserEventRequest\032&.google.clou"
+ + "d.retail.v2alpha.UserEvent\"X\202\323\344\223\002R\"D/v2a"
+ + "lpha/{parent=projects/*/locations/*/cata"
+ + "logs/*}/userEvents:write:\nuser_event\022\256\001\n"
+ + "\020CollectUserEvent\0224.google.cloud.retail."
+ + "v2alpha.CollectUserEventRequest\032\024.google"
+ + ".api.HttpBody\"N\202\323\344\223\002H\022F/v2alpha/{parent="
+ + "projects/*/locations/*/catalogs/*}/userE"
+ + "vents:collect\022\232\002\n\017PurgeUserEvents\0223.goog"
+ + "le.cloud.retail.v2alpha.PurgeUserEventsR"
+ + "equest\032\035.google.longrunning.Operation\"\262\001"
+ + "\312A`\n3google.cloud.retail.v2alpha.PurgeUs"
+ + "erEventsResponse\022)google.cloud.retail.v2"
+ + "alpha.PurgeMetadata\202\323\344\223\002I\"D/v2alpha/{par"
+ + "ent=projects/*/locations/*/catalogs/*}/u"
+ + "serEvents:purge:\001*\022\237\002\n\020ImportUserEvents\022"
+ + "4.google.cloud.retail.v2alpha.ImportUser"
+ + "EventsRequest\032\035.google.longrunning.Opera"
+ + "tion\"\265\001\312Ab\n4google.cloud.retail.v2alpha."
+ + "ImportUserEventsResponse\022*google.cloud.r"
+ + "etail.v2alpha.ImportMetadata\202\323\344\223\002J\"E/v2a"
+ + "lpha/{parent=projects/*/locations/*/cata"
+ + "logs/*}/userEvents:import:\001*\022\361\001\n\020RejoinU"
+ + "serEvents\0224.google.cloud.retail.v2alpha."
+ + "RejoinUserEventsRequest\032\035.google.longrun"
+ + "ning.Operation\"\207\001\312A4\n\030RejoinUserEventsRe"
+ + "sponse\022\030RejoinUserEventsMetadata\202\323\344\223\002J\"E"
+ + "/v2alpha/{parent=projects/*/locations/*/"
+ + "catalogs/*}/userEvents:rejoin:\001*\032I\312A\025ret"
+ + "ail.googleapis.com\322A.https://www.googlea"
+ + "pis.com/auth/cloud-platformB\331\001\n\037com.goog"
+ + "le.cloud.retail.v2alphaB\025UserEventServic"
+ + "eProtoP\001Z7cloud.google.com/go/retail/api"
+ + "v2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Goo"
+ + "gle.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\"
+ + "Retail\\V2alpha\352\002\036Google::Cloud::Retail::"
+ + "V2alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java
index 2644df004088..69a8ed7e00c9 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java
@@ -80,93 +80,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ommon.proto\032.google/cloud/retail/v2beta/"
+ "import_config.proto\"^\n\022ProductLevelConfi"
+ "g\022\036\n\026ingestion_product_type\030\001 \001(\t\022(\n mer"
- + "chant_center_product_id_field\030\002 \001(\t\"\300\n\n\020"
- + "CatalogAttribute\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\022\024\n\006i"
- + "n_use\030\t \001(\010B\004\342A\001\003\022N\n\004type\030\n \001(\0162:.google"
- + ".cloud.retail.v2beta.CatalogAttribute.At"
- + "tributeTypeB\004\342A\001\003\022V\n\020indexable_option\030\005 "
- + "\001(\0162<.google.cloud.retail.v2beta.Catalog"
- + "Attribute.IndexableOption\022e\n\030dynamic_fac"
- + "etable_option\030\006 \001(\0162C.google.cloud.retai"
- + "l.v2beta.CatalogAttribute.DynamicFacetab"
- + "leOption\022X\n\021searchable_option\030\007 \001(\0162=.go"
- + "ogle.cloud.retail.v2beta.CatalogAttribut"
- + "e.SearchableOption\022d\n recommendations_fi"
- + "ltering_option\030\010 \001(\0162:.google.cloud.reta"
- + "il.v2beta.RecommendationsFilteringOption"
- + "\022c\n\027exact_searchable_option\030\013 \001(\0162B.goog"
- + "le.cloud.retail.v2beta.CatalogAttribute."
- + "ExactSearchableOption\022Z\n\022retrievable_opt"
- + "ion\030\014 \001(\0162>.google.cloud.retail.v2beta.C"
- + "atalogAttribute.RetrievableOption\"8\n\rAtt"
- + "ributeType\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTUAL\020\001\022\r\n\t"
- + "NUMERICAL\020\002\"b\n\017IndexableOption\022 \n\034INDEXA"
- + "BLE_OPTION_UNSPECIFIED\020\000\022\025\n\021INDEXABLE_EN"
- + "ABLED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\"\201\001\n\026Dyna"
- + "micFacetableOption\022(\n$DYNAMIC_FACETABLE_"
- + "OPTION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_FACETABL"
- + "E_ENABLED\020\001\022\036\n\032DYNAMIC_FACETABLE_DISABLE"
- + "D\020\002\"f\n\020SearchableOption\022!\n\035SEARCHABLE_OP"
- + "TION_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE_ENABLED"
- + "\020\001\022\027\n\023SEARCHABLE_DISABLED\020\002\"}\n\025ExactSear"
- + "chableOption\022\'\n#EXACT_SEARCHABLE_OPTION_"
- + "UNSPECIFIED\020\000\022\034\n\030EXACT_SEARCHABLE_ENABLE"
- + "D\020\001\022\035\n\031EXACT_SEARCHABLE_DISABLED\020\002\"j\n\021Re"
- + "trievableOption\022\"\n\036RETRIEVABLE_OPTION_UN"
- + "SPECIFIED\020\000\022\027\n\023RETRIEVABLE_ENABLED\020\001\022\030\n\024"
- + "RETRIEVABLE_DISABLED\020\002\"\302\003\n\020AttributesCon"
- + "fig\022\023\n\004name\030\001 \001(\tB\005\342A\002\002\005\022_\n\022catalog_attr"
- + "ibutes\030\002 \003(\0132C.google.cloud.retail.v2bet"
- + "a.AttributesConfig.CatalogAttributesEntr"
- + "y\022V\n\026attribute_config_level\030\003 \001(\01620.goog"
- + "le.cloud.retail.v2beta.AttributeConfigLe"
- + "velB\004\342A\001\003\032f\n\026CatalogAttributesEntry\022\013\n\003k"
- + "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.r"
- + "etail.v2beta.CatalogAttribute:\0028\001:x\352Au\n&"
- + "retail.googleapis.com/AttributesConfig\022K"
- + "projects/{project}/locations/{location}/"
- + "catalogs/{catalog}/attributesConfig\"\252\005\n\020"
- + "CompletionConfig\022\023\n\004name\030\001 \001(\tB\005\342A\002\002\005\022\026\n"
- + "\016matching_order\030\002 \001(\t\022\027\n\017max_suggestions"
- + "\030\003 \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022\025\n\raut"
- + "o_learning\030\013 \001(\010\022]\n\030suggestions_input_co"
- + "nfig\030\005 \001(\01325.google.cloud.retail.v2beta."
- + "CompletionDataInputConfigB\004\342A\001\003\022/\n!last_"
- + "suggestions_import_operation\030\006 \001(\tB\004\342A\001\003"
- + "\022Z\n\025denylist_input_config\030\007 \001(\01325.google"
- + ".cloud.retail.v2beta.CompletionDataInput"
- + "ConfigB\004\342A\001\003\022,\n\036last_denylist_import_ope"
- + "ration\030\010 \001(\tB\004\342A\001\003\022[\n\026allowlist_input_co"
- + "nfig\030\t \001(\01325.google.cloud.retail.v2beta."
- + "CompletionDataInputConfigB\004\342A\001\003\022-\n\037last_"
- + "allowlist_import_operation\030\n \001(\tB\004\342A\001\003:x"
- + "\352Au\n&retail.googleapis.com/CompletionCon"
- + "fig\022Kprojects/{project}/locations/{locat"
- + "ion}/catalogs/{catalog}/completionConfig"
- + "\"\330\001\n\022MerchantCenterLink\022(\n\032merchant_cent"
- + "er_account_id\030\001 \001(\003B\004\342A\001\002\022\021\n\tbranch_id\030\002"
- + " \001(\t\022\024\n\014destinations\030\003 \003(\t\022\023\n\013region_cod"
- + "e\030\004 \001(\t\022\025\n\rlanguage_code\030\005 \001(\t\022C\n\005feeds\030"
- + "\006 \003(\01324.google.cloud.retail.v2beta.Merch"
- + "antCenterFeedFilter\"N\n\030MerchantCenterFee"
- + "dFilter\022\027\n\017primary_feed_id\030\001 \001(\003\022\031\n\021prim"
- + "ary_feed_name\030\002 \001(\t\"\\\n\033MerchantCenterLin"
- + "kingConfig\022=\n\005links\030\001 \003(\0132..google.cloud"
- + ".retail.v2beta.MerchantCenterLink\"\320\002\n\007Ca"
- + "talog\022\023\n\004name\030\001 \001(\tB\005\342A\002\002\005\022\033\n\014display_na"
- + "me\030\002 \001(\tB\005\342A\002\002\005\022R\n\024product_level_config\030"
- + "\004 \001(\0132..google.cloud.retail.v2beta.Produ"
- + "ctLevelConfigB\004\342A\001\002\022_\n\036merchant_center_l"
- + "inking_config\030\006 \001(\01327.google.cloud.retai"
- + "l.v2beta.MerchantCenterLinkingConfig:^\352A"
- + "[\n\035retail.googleapis.com/Catalog\022:projec"
- + "ts/{project}/locations/{location}/catalo"
- + "gs/{catalog}B\313\001\n\036com.google.cloud.retail"
- + ".v2betaB\014CatalogProtoP\001Z6cloud.google.co"
- + "m/go/retail/apiv2beta/retailpb;retailpb\242"
- + "\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032"
- + "Google\\Cloud\\Retail\\V2beta\352\002\035Google::Clo"
- + "ud::Retail::V2betab\006proto3"
+ + "chant_center_product_id_field\030\002 \001(\t\"\275\n\n\020"
+ + "CatalogAttribute\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023\n\006in"
+ + "_use\030\t \001(\010B\003\340A\003\022M\n\004type\030\n \001(\0162:.google.c"
+ + "loud.retail.v2beta.CatalogAttribute.Attr"
+ + "ibuteTypeB\003\340A\003\022V\n\020indexable_option\030\005 \001(\016"
+ + "2<.google.cloud.retail.v2beta.CatalogAtt"
+ + "ribute.IndexableOption\022e\n\030dynamic_faceta"
+ + "ble_option\030\006 \001(\0162C.google.cloud.retail.v"
+ + "2beta.CatalogAttribute.DynamicFacetableO"
+ + "ption\022X\n\021searchable_option\030\007 \001(\0162=.googl"
+ + "e.cloud.retail.v2beta.CatalogAttribute.S"
+ + "earchableOption\022d\n recommendations_filte"
+ + "ring_option\030\010 \001(\0162:.google.cloud.retail."
+ + "v2beta.RecommendationsFilteringOption\022c\n"
+ + "\027exact_searchable_option\030\013 \001(\0162B.google."
+ + "cloud.retail.v2beta.CatalogAttribute.Exa"
+ + "ctSearchableOption\022Z\n\022retrievable_option"
+ + "\030\014 \001(\0162>.google.cloud.retail.v2beta.Cata"
+ + "logAttribute.RetrievableOption\"8\n\rAttrib"
+ + "uteType\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTUAL\020\001\022\r\n\tNUM"
+ + "ERICAL\020\002\"b\n\017IndexableOption\022 \n\034INDEXABLE"
+ + "_OPTION_UNSPECIFIED\020\000\022\025\n\021INDEXABLE_ENABL"
+ + "ED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\"\201\001\n\026Dynamic"
+ + "FacetableOption\022(\n$DYNAMIC_FACETABLE_OPT"
+ + "ION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_FACETABLE_E"
+ + "NABLED\020\001\022\036\n\032DYNAMIC_FACETABLE_DISABLED\020\002"
+ + "\"f\n\020SearchableOption\022!\n\035SEARCHABLE_OPTIO"
+ + "N_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE_ENABLED\020\001\022"
+ + "\027\n\023SEARCHABLE_DISABLED\020\002\"}\n\025ExactSearcha"
+ + "bleOption\022\'\n#EXACT_SEARCHABLE_OPTION_UNS"
+ + "PECIFIED\020\000\022\034\n\030EXACT_SEARCHABLE_ENABLED\020\001"
+ + "\022\035\n\031EXACT_SEARCHABLE_DISABLED\020\002\"j\n\021Retri"
+ + "evableOption\022\"\n\036RETRIEVABLE_OPTION_UNSPE"
+ + "CIFIED\020\000\022\027\n\023RETRIEVABLE_ENABLED\020\001\022\030\n\024RET"
+ + "RIEVABLE_DISABLED\020\002\"\302\003\n\020AttributesConfig"
+ + "\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022_\n\022catalog_attrib"
+ + "utes\030\002 \003(\0132C.google.cloud.retail.v2beta."
+ + "AttributesConfig.CatalogAttributesEntry\022"
+ + "U\n\026attribute_config_level\030\003 \001(\01620.google"
+ + ".cloud.retail.v2beta.AttributeConfigLeve"
+ + "lB\003\340A\003\032f\n\026CatalogAttributesEntry\022\013\n\003key\030"
+ + "\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.reta"
+ + "il.v2beta.CatalogAttribute:\0028\001:x\352Au\n&ret"
+ + "ail.googleapis.com/AttributesConfig\022Kpro"
+ + "jects/{project}/locations/{location}/cat"
+ + "alogs/{catalog}/attributesConfig\"\245\005\n\020Com"
+ + "pletionConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\026\n\016m"
+ + "atching_order\030\002 \001(\t\022\027\n\017max_suggestions\030\003"
+ + " \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022\025\n\rauto_"
+ + "learning\030\013 \001(\010\022\\\n\030suggestions_input_conf"
+ + "ig\030\005 \001(\01325.google.cloud.retail.v2beta.Co"
+ + "mpletionDataInputConfigB\003\340A\003\022.\n!last_sug"
+ + "gestions_import_operation\030\006 \001(\tB\003\340A\003\022Y\n\025"
+ + "denylist_input_config\030\007 \001(\01325.google.clo"
+ + "ud.retail.v2beta.CompletionDataInputConf"
+ + "igB\003\340A\003\022+\n\036last_denylist_import_operatio"
+ + "n\030\010 \001(\tB\003\340A\003\022Z\n\026allowlist_input_config\030\t"
+ + " \001(\01325.google.cloud.retail.v2beta.Comple"
+ + "tionDataInputConfigB\003\340A\003\022,\n\037last_allowli"
+ + "st_import_operation\030\n \001(\tB\003\340A\003:x\352Au\n&ret"
+ + "ail.googleapis.com/CompletionConfig\022Kpro"
+ + "jects/{project}/locations/{location}/cat"
+ + "alogs/{catalog}/completionConfig\"\327\001\n\022Mer"
+ + "chantCenterLink\022\'\n\032merchant_center_accou"
+ + "nt_id\030\001 \001(\003B\003\340A\002\022\021\n\tbranch_id\030\002 \001(\t\022\024\n\014d"
+ + "estinations\030\003 \003(\t\022\023\n\013region_code\030\004 \001(\t\022\025"
+ + "\n\rlanguage_code\030\005 \001(\t\022C\n\005feeds\030\006 \003(\01324.g"
+ + "oogle.cloud.retail.v2beta.MerchantCenter"
+ + "FeedFilter\"N\n\030MerchantCenterFeedFilter\022\027"
+ + "\n\017primary_feed_id\030\001 \001(\003\022\031\n\021primary_feed_"
+ + "name\030\002 \001(\t\"\\\n\033MerchantCenterLinkingConfi"
+ + "g\022=\n\005links\030\001 \003(\0132..google.cloud.retail.v"
+ + "2beta.MerchantCenterLink\"\321\002\n\007Catalog\022\024\n\004"
+ + "name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n\014display_name\030\002 \001(\t"
+ + "B\006\340A\002\340A\005\022Q\n\024product_level_config\030\004 \001(\0132."
+ + ".google.cloud.retail.v2beta.ProductLevel"
+ + "ConfigB\003\340A\002\022_\n\036merchant_center_linking_c"
+ + "onfig\030\006 \001(\01327.google.cloud.retail.v2beta"
+ + ".MerchantCenterLinkingConfig:^\352A[\n\035retai"
+ + "l.googleapis.com/Catalog\022:projects/{proj"
+ + "ect}/locations/{location}/catalogs/{cata"
+ + "log}B\313\001\n\036com.google.cloud.retail.v2betaB"
+ + "\014CatalogProtoP\001Z6cloud.google.com/go/ret"
+ + "ail/apiv2beta/retailpb;retailpb\242\002\006RETAIL"
+ + "\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\C"
+ + "loud\\Retail\\V2beta\352\002\035Google::Cloud::Reta"
+ + "il::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceProto.java
index 4f3d99817dbe..e136efc5d5e1 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceProto.java
@@ -105,136 +105,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e/cloud/retail/v2beta/catalog.proto\032\033goo"
+ "gle/protobuf/empty.proto\032 google/protobu"
+ "f/field_mask.proto\032\037google/protobuf/time"
- + "stamp.proto\"x\n\023ListCatalogsRequest\022:\n\006pa"
- + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi"
- + "s.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
- + "e_token\030\003 \001(\t\"f\n\024ListCatalogsResponse\0225\n"
- + "\010catalogs\030\001 \003(\0132#.google.cloud.retail.v2"
- + "beta.Catalog\022\027\n\017next_page_token\030\002 \001(\t\"\203\001"
- + "\n\024UpdateCatalogRequest\022:\n\007catalog\030\001 \001(\0132"
- + "#.google.cloud.retail.v2beta.CatalogB\004\342A"
- + "\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobu"
- + "f.FieldMask\"\241\001\n\027SetDefaultBranchRequest\022"
- + "3\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.googleapis"
- + ".com/Catalog\0224\n\tbranch_id\030\002 \001(\tB!\372A\036\n\034re"
- + "tail.googleapis.com/Branch\022\014\n\004note\030\003 \001(\t"
- + "\022\r\n\005force\030\004 \001(\010\"N\n\027GetDefaultBranchReque"
- + "st\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.googlea"
- + "pis.com/Catalog\"\211\001\n\030GetDefaultBranchResp"
- + "onse\0221\n\006branch\030\001 \001(\tB!\372A\036\n\034retail.google"
- + "apis.com/Branch\022,\n\010set_time\030\002 \001(\0132\032.goog"
- + "le.protobuf.Timestamp\022\014\n\004note\030\003 \001(\t\"[\n\032G"
- + "etCompletionConfigRequest\022=\n\004name\030\001 \001(\tB"
- + "/\342A\001\002\372A(\n&retail.googleapis.com/Completi"
- + "onConfig\"\237\001\n\035UpdateCompletionConfigReque"
- + "st\022M\n\021completion_config\030\001 \001(\0132,.google.c"
- + "loud.retail.v2beta.CompletionConfigB\004\342A\001"
- + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf"
- + ".FieldMask\"[\n\032GetAttributesConfigRequest"
- + "\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googleap"
- + "is.com/AttributesConfig\"\237\001\n\035UpdateAttrib"
- + "utesConfigRequest\022M\n\021attributes_config\030\001"
- + " \001(\0132,.google.cloud.retail.v2beta.Attrib"
- + "utesConfigB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032."
- + "google.protobuf.FieldMask\"\267\001\n\032AddCatalog"
- + "AttributeRequest\022J\n\021attributes_config\030\001 "
- + "\001(\tB/\342A\001\002\372A(\n&retail.googleapis.com/Attr"
- + "ibutesConfig\022M\n\021catalog_attribute\030\002 \001(\0132"
- + ",.google.cloud.retail.v2beta.CatalogAttr"
- + "ibuteB\004\342A\001\002\"~\n\035RemoveCatalogAttributeReq"
- + "uest\022J\n\021attributes_config\030\001 \001(\tB/\342A\001\002\372A("
- + "\n&retail.googleapis.com/AttributesConfig"
- + "\022\021\n\003key\030\002 \001(\tB\004\342A\001\002\"\217\001\n#BatchRemoveCatal"
- + "ogAttributesRequest\022J\n\021attributes_config"
- + "\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googleapis.com/A"
- + "ttributesConfig\022\034\n\016attribute_keys\030\002 \003(\tB"
- + "\004\342A\001\002\"l\n$BatchRemoveCatalogAttributesRes"
- + "ponse\022\"\n\032deleted_catalog_attributes\030\001 \003("
- + "\t\022 \n\030reset_catalog_attributes\030\002 \003(\t\"\354\001\n\036"
- + "ReplaceCatalogAttributeRequest\022J\n\021attrib"
- + "utes_config\030\001 \001(\tB/\342A\001\002\372A(\n&retail.googl"
- + "eapis.com/AttributesConfig\022M\n\021catalog_at"
- + "tribute\030\002 \001(\0132,.google.cloud.retail.v2be"
- + "ta.CatalogAttributeB\004\342A\001\002\022/\n\013update_mask"
- + "\030\003 \001(\0132\032.google.protobuf.FieldMask2\263\026\n\016C"
- + "atalogService\022\264\001\n\014ListCatalogs\022/.google."
- + "cloud.retail.v2beta.ListCatalogsRequest\032"
- + "0.google.cloud.retail.v2beta.ListCatalog"
- + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v2beta/{par"
- + "ent=projects/*/locations/*}/catalogs\022\307\001\n"
- + "\rUpdateCatalog\0220.google.cloud.retail.v2b"
- + "eta.UpdateCatalogRequest\032#.google.cloud."
- + "retail.v2beta.Catalog\"_\332A\023catalog,update"
- + "_mask\202\323\344\223\002C28/v2beta/{catalog.name=proje"
- + "cts/*/locations/*/catalogs/*}:\007catalog\022\272"
- + "\001\n\020SetDefaultBranch\0223.google.cloud.retai"
- + "l.v2beta.SetDefaultBranchRequest\032\026.googl"
- + "e.protobuf.Empty\"Y\332A\007catalog\202\323\344\223\002I\"D/v2b"
- + "eta/{catalog=projects/*/locations/*/cata"
- + "logs/*}:setDefaultBranch:\001*\022\325\001\n\020GetDefau"
- + "ltBranch\0223.google.cloud.retail.v2beta.Ge"
- + "tDefaultBranchRequest\0324.google.cloud.ret"
- + "ail.v2beta.GetDefaultBranchResponse\"V\332A\007"
- + "catalog\202\323\344\223\002F\022D/v2beta/{catalog=projects"
- + "/*/locations/*/catalogs/*}:getDefaultBra"
- + "nch\022\315\001\n\023GetCompletionConfig\0226.google.clo"
- + "ud.retail.v2beta.GetCompletionConfigRequ"
+ + "stamp.proto\"w\n\023ListCatalogsRequest\0229\n\006pa"
+ + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis"
+ + ".com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
+ + "_token\030\003 \001(\t\"f\n\024ListCatalogsResponse\0225\n\010"
+ + "catalogs\030\001 \003(\0132#.google.cloud.retail.v2b"
+ + "eta.Catalog\022\027\n\017next_page_token\030\002 \001(\t\"\202\001\n"
+ + "\024UpdateCatalogRequest\0229\n\007catalog\030\001 \001(\0132#"
+ + ".google.cloud.retail.v2beta.CatalogB\003\340A\002"
+ + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf."
+ + "FieldMask\"\241\001\n\027SetDefaultBranchRequest\0223\n"
+ + "\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.googleapis.c"
+ + "om/Catalog\0224\n\tbranch_id\030\002 \001(\tB!\372A\036\n\034reta"
+ + "il.googleapis.com/Branch\022\014\n\004note\030\003 \001(\t\022\r"
+ + "\n\005force\030\004 \001(\010\"N\n\027GetDefaultBranchRequest"
+ + "\0223\n\007catalog\030\001 \001(\tB\"\372A\037\n\035retail.googleapi"
+ + "s.com/Catalog\"\211\001\n\030GetDefaultBranchRespon"
+ + "se\0221\n\006branch\030\001 \001(\tB!\372A\036\n\034retail.googleap"
+ + "is.com/Branch\022,\n\010set_time\030\002 \001(\0132\032.google"
+ + ".protobuf.Timestamp\022\014\n\004note\030\003 \001(\t\"Z\n\032Get"
+ + "CompletionConfigRequest\022<\n\004name\030\001 \001(\tB.\340"
+ + "A\002\372A(\n&retail.googleapis.com/CompletionC"
+ + "onfig\"\236\001\n\035UpdateCompletionConfigRequest\022"
+ + "L\n\021completion_config\030\001 \001(\0132,.google.clou"
+ + "d.retail.v2beta.CompletionConfigB\003\340A\002\022/\n"
+ + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie"
+ + "ldMask\"Z\n\032GetAttributesConfigRequest\022<\n\004"
+ + "name\030\001 \001(\tB.\340A\002\372A(\n&retail.googleapis.co"
+ + "m/AttributesConfig\"\236\001\n\035UpdateAttributesC"
+ + "onfigRequest\022L\n\021attributes_config\030\001 \001(\0132"
+ + ",.google.cloud.retail.v2beta.AttributesC"
+ + "onfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google"
+ + ".protobuf.FieldMask\"\265\001\n\032AddCatalogAttrib"
+ + "uteRequest\022I\n\021attributes_config\030\001 \001(\tB.\340"
+ + "A\002\372A(\n&retail.googleapis.com/AttributesC"
+ + "onfig\022L\n\021catalog_attribute\030\002 \001(\0132,.googl"
+ + "e.cloud.retail.v2beta.CatalogAttributeB\003"
+ + "\340A\002\"|\n\035RemoveCatalogAttributeRequest\022I\n\021"
+ + "attributes_config\030\001 \001(\tB.\340A\002\372A(\n&retail."
+ + "googleapis.com/AttributesConfig\022\020\n\003key\030\002"
+ + " \001(\tB\003\340A\002\"\215\001\n#BatchRemoveCatalogAttribut"
+ + "esRequest\022I\n\021attributes_config\030\001 \001(\tB.\340A"
+ + "\002\372A(\n&retail.googleapis.com/AttributesCo"
+ + "nfig\022\033\n\016attribute_keys\030\002 \003(\tB\003\340A\002\"l\n$Bat"
+ + "chRemoveCatalogAttributesResponse\022\"\n\032del"
+ + "eted_catalog_attributes\030\001 \003(\t\022 \n\030reset_c"
+ + "atalog_attributes\030\002 \003(\t\"\352\001\n\036ReplaceCatal"
+ + "ogAttributeRequest\022I\n\021attributes_config\030"
+ + "\001 \001(\tB.\340A\002\372A(\n&retail.googleapis.com/Att"
+ + "ributesConfig\022L\n\021catalog_attribute\030\002 \001(\013"
+ + "2,.google.cloud.retail.v2beta.CatalogAtt"
+ + "ributeB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.googl"
+ + "e.protobuf.FieldMask2\263\026\n\016CatalogService\022"
+ + "\264\001\n\014ListCatalogs\022/.google.cloud.retail.v"
+ + "2beta.ListCatalogsRequest\0320.google.cloud"
+ + ".retail.v2beta.ListCatalogsResponse\"A\332A\006"
+ + "parent\202\323\344\223\0022\0220/v2beta/{parent=projects/*"
+ + "/locations/*}/catalogs\022\307\001\n\rUpdateCatalog"
+ + "\0220.google.cloud.retail.v2beta.UpdateCata"
+ + "logRequest\032#.google.cloud.retail.v2beta."
+ + "Catalog\"_\332A\023catalog,update_mask\202\323\344\223\002C28/"
+ + "v2beta/{catalog.name=projects/*/location"
+ + "s/*/catalogs/*}:\007catalog\022\272\001\n\020SetDefaultB"
+ + "ranch\0223.google.cloud.retail.v2beta.SetDe"
+ + "faultBranchRequest\032\026.google.protobuf.Emp"
+ + "ty\"Y\332A\007catalog\202\323\344\223\002I\"D/v2beta/{catalog=p"
+ + "rojects/*/locations/*/catalogs/*}:setDef"
+ + "aultBranch:\001*\022\325\001\n\020GetDefaultBranch\0223.goo"
+ + "gle.cloud.retail.v2beta.GetDefaultBranch"
+ + "Request\0324.google.cloud.retail.v2beta.Get"
+ + "DefaultBranchResponse\"V\332A\007catalog\202\323\344\223\002F\022"
+ + "D/v2beta/{catalog=projects/*/locations/*"
+ + "/catalogs/*}:getDefaultBranch\022\315\001\n\023GetCom"
+ + "pletionConfig\0226.google.cloud.retail.v2be"
+ + "ta.GetCompletionConfigRequest\032,.google.c"
+ + "loud.retail.v2beta.CompletionConfig\"P\332A\004"
+ + "name\202\323\344\223\002C\022A/v2beta/{name=projects/*/loc"
+ + "ations/*/catalogs/*/completionConfig}\022\222\002"
+ + "\n\026UpdateCompletionConfig\0229.google.cloud."
+ + "retail.v2beta.UpdateCompletionConfigRequ"
+ "est\032,.google.cloud.retail.v2beta.Complet"
- + "ionConfig\"P\332A\004name\202\323\344\223\002C\022A/v2beta/{name="
- + "projects/*/locations/*/catalogs/*/comple"
- + "tionConfig}\022\222\002\n\026UpdateCompletionConfig\0229"
- + ".google.cloud.retail.v2beta.UpdateComple"
- + "tionConfigRequest\032,.google.cloud.retail."
- + "v2beta.CompletionConfig\"\216\001\332A\035completion_"
- + "config,update_mask\202\323\344\223\002h2S/v2beta/{compl"
- + "etion_config.name=projects/*/locations/*"
- + "/catalogs/*/completionConfig}:\021completio"
- + "n_config\022\315\001\n\023GetAttributesConfig\0226.googl"
- + "e.cloud.retail.v2beta.GetAttributesConfi"
+ + "ionConfig\"\216\001\332A\035completion_config,update_"
+ + "mask\202\323\344\223\002h2S/v2beta/{completion_config.n"
+ + "ame=projects/*/locations/*/catalogs/*/co"
+ + "mpletionConfig}:\021completion_config\022\315\001\n\023G"
+ + "etAttributesConfig\0226.google.cloud.retail"
+ + ".v2beta.GetAttributesConfigRequest\032,.goo"
+ + "gle.cloud.retail.v2beta.AttributesConfig"
+ + "\"P\332A\004name\202\323\344\223\002C\022A/v2beta/{name=projects/"
+ + "*/locations/*/catalogs/*/attributesConfi"
+ + "g}\022\222\002\n\026UpdateAttributesConfig\0229.google.c"
+ + "loud.retail.v2beta.UpdateAttributesConfi"
+ "gRequest\032,.google.cloud.retail.v2beta.At"
- + "tributesConfig\"P\332A\004name\202\323\344\223\002C\022A/v2beta/{"
- + "name=projects/*/locations/*/catalogs/*/a"
- + "ttributesConfig}\022\222\002\n\026UpdateAttributesCon"
- + "fig\0229.google.cloud.retail.v2beta.UpdateA"
- + "ttributesConfigRequest\032,.google.cloud.re"
- + "tail.v2beta.AttributesConfig\"\216\001\332A\035attrib"
- + "utes_config,update_mask\202\323\344\223\002h2S/v2beta/{"
- + "attributes_config.name=projects/*/locati"
- + "ons/*/catalogs/*/attributesConfig}:\021attr"
- + "ibutes_config\022\352\001\n\023AddCatalogAttribute\0226."
- + "google.cloud.retail.v2beta.AddCatalogAtt"
- + "ributeRequest\032,.google.cloud.retail.v2be"
- + "ta.AttributesConfig\"m\202\323\344\223\002g\"b/v2beta/{at"
- + "tributes_config=projects/*/locations/*/c"
- + "atalogs/*/attributesConfig}:addCatalogAt"
- + "tribute:\001*\022\363\001\n\026RemoveCatalogAttribute\0229."
- + "google.cloud.retail.v2beta.RemoveCatalog"
- + "AttributeRequest\032,.google.cloud.retail.v"
- + "2beta.AttributesConfig\"p\202\323\344\223\002j\"e/v2beta/"
- + "{attributes_config=projects/*/locations/"
- + "*/catalogs/*/attributesConfig}:removeCat"
- + "alogAttribute:\001*\022\231\002\n\034BatchRemoveCatalogA"
- + "ttributes\022?.google.cloud.retail.v2beta.B"
- + "atchRemoveCatalogAttributesRequest\032@.goo"
- + "gle.cloud.retail.v2beta.BatchRemoveCatal"
- + "ogAttributesResponse\"v\202\323\344\223\002p\"k/v2beta/{a"
+ + "tributesConfig\"\216\001\332A\035attributes_config,up"
+ + "date_mask\202\323\344\223\002h2S/v2beta/{attributes_con"
+ + "fig.name=projects/*/locations/*/catalogs"
+ + "/*/attributesConfig}:\021attributes_config\022"
+ + "\352\001\n\023AddCatalogAttribute\0226.google.cloud.r"
+ + "etail.v2beta.AddCatalogAttributeRequest\032"
+ + ",.google.cloud.retail.v2beta.AttributesC"
+ + "onfig\"m\202\323\344\223\002g\"b/v2beta/{attributes_confi"
+ + "g=projects/*/locations/*/catalogs/*/attr"
+ + "ibutesConfig}:addCatalogAttribute:\001*\022\363\001\n"
+ + "\026RemoveCatalogAttribute\0229.google.cloud.r"
+ + "etail.v2beta.RemoveCatalogAttributeReque"
+ + "st\032,.google.cloud.retail.v2beta.Attribut"
+ + "esConfig\"p\202\323\344\223\002j\"e/v2beta/{attributes_co"
+ + "nfig=projects/*/locations/*/catalogs/*/a"
+ + "ttributesConfig}:removeCatalogAttribute:"
+ + "\001*\022\231\002\n\034BatchRemoveCatalogAttributes\022?.go"
+ + "ogle.cloud.retail.v2beta.BatchRemoveCata"
+ + "logAttributesRequest\032@.google.cloud.reta"
+ + "il.v2beta.BatchRemoveCatalogAttributesRe"
+ + "sponse\"v\202\323\344\223\002p\"k/v2beta/{attributes_conf"
+ + "ig=projects/*/locations/*/catalogs/*/att"
+ + "ributesConfig}:batchRemoveCatalogAttribu"
+ + "tes:\001*\022\366\001\n\027ReplaceCatalogAttribute\022:.goo"
+ + "gle.cloud.retail.v2beta.ReplaceCatalogAt"
+ + "tributeRequest\032,.google.cloud.retail.v2b"
+ + "eta.AttributesConfig\"q\202\323\344\223\002k\"f/v2beta/{a"
+ "ttributes_config=projects/*/locations/*/"
- + "catalogs/*/attributesConfig}:batchRemove"
- + "CatalogAttributes:\001*\022\366\001\n\027ReplaceCatalogA"
- + "ttribute\022:.google.cloud.retail.v2beta.Re"
- + "placeCatalogAttributeRequest\032,.google.cl"
- + "oud.retail.v2beta.AttributesConfig\"q\202\323\344\223"
- + "\002k\"f/v2beta/{attributes_config=projects/"
- + "*/locations/*/catalogs/*/attributesConfi"
- + "g}:replaceCatalogAttribute:\001*\032I\312A\025retail"
- + ".googleapis.com\322A.https://www.googleapis"
- + ".com/auth/cloud-platformB\322\001\n\036com.google."
- + "cloud.retail.v2betaB\023CatalogServiceProto"
- + "P\001Z6cloud.google.com/go/retail/apiv2beta"
- + "/retailpb;retailpb\242\002\006RETAIL\252\002\032Google.Clo"
- + "ud.Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V"
- + "2beta\352\002\035Google::Cloud::Retail::V2betab\006p"
- + "roto3"
+ + "catalogs/*/attributesConfig}:replaceCata"
+ + "logAttribute:\001*\032I\312A\025retail.googleapis.co"
+ + "m\322A.https://www.googleapis.com/auth/clou"
+ + "d-platformB\322\001\n\036com.google.cloud.retail.v"
+ + "2betaB\023CatalogServiceProtoP\001Z6cloud.goog"
+ + "le.com/go/retail/apiv2beta/retailpb;reta"
+ + "ilpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Be"
+ + "ta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google"
+ + "::Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java
index 7c6c48845783..6fcea50d1e5e 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java
@@ -144,7 +144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n\tTimeRange\022.\n\n"
+ "start_time\030\001 \001(\0132\032.google.protobuf.Times"
+ "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf"
- + ".Timestamp\"\242\t\n\004Rule\022D\n\014boost_action\030\002 \001("
+ + ".Timestamp\"\241\t\n\004Rule\022D\n\014boost_action\030\002 \001("
+ "\0132,.google.cloud.retail.v2beta.Rule.Boos"
+ "tActionH\000\022J\n\017redirect_action\030\003 \001(\0132/.goo"
+ "gle.cloud.retail.v2beta.Rule.RedirectAct"
@@ -160,74 +160,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\0132-.google.cloud.retail.v2beta.Rule.Filt"
+ "erActionH\000\022W\n\026twoway_synonyms_action\030\013 \001"
+ "(\01325.google.cloud.retail.v2beta.Rule.Two"
- + "waySynonymsActionH\000\022>\n\tcondition\030\001 \001(\0132%"
- + ".google.cloud.retail.v2beta.ConditionB\004\342"
- + "A\001\002\0325\n\013BoostAction\022\r\n\005boost\030\001 \001(\002\022\027\n\017pro"
- + "ducts_filter\030\002 \001(\t\032\036\n\014FilterAction\022\016\n\006fi"
- + "lter\030\001 \001(\t\032&\n\016RedirectAction\022\024\n\014redirect"
- + "_uri\030\001 \001(\t\032(\n\024TwowaySynonymsAction\022\020\n\010sy"
- + "nonyms\030\001 \003(\t\032S\n\024OnewaySynonymsAction\022\023\n\013"
- + "query_terms\030\003 \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014o"
- + "neway_terms\030\002 \003(\t\032Z\n\024DoNotAssociateActio"
- + "n\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026do_not_associa"
- + "te_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003(\t\032P\n\021Replace"
- + "mentAction\022\023\n\013query_terms\030\002 \003(\t\022\030\n\020repla"
- + "cement_term\030\003 \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014Ignor"
- + "eAction\022\024\n\014ignore_terms\030\001 \003(\tB\010\n\006action\""
- + "/\n\010Audience\022\017\n\007genders\030\001 \003(\t\022\022\n\nage_grou"
- + "ps\030\002 \003(\t\"3\n\tColorInfo\022\026\n\016color_families\030"
- + "\001 \003(\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017CustomAttribut"
- + "e\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsear"
- + "chable\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010"
- + "B\002\030\001H\001\210\001\001B\r\n\013_searchableB\014\n\n_indexable\"2"
- + "\n\017FulfillmentInfo\022\014\n\004type\030\001 \001(\t\022\021\n\tplace"
- + "_ids\030\002 \003(\t\"9\n\005Image\022\021\n\003uri\030\001 \001(\tB\004\342A\001\002\022\016"
- + "\n\006height\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\"x\n\010Interva"
- + "l\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive_minimu"
- + "m\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exclusiv"
- + "e_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"\226\003\n\tPric"
- + "eInfo\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005price\030\002 "
- + "\001(\002\022\026\n\016original_price\030\003 \001(\002\022\014\n\004cost\030\004 \001("
- + "\002\0228\n\024price_effective_time\030\005 \001(\0132\032.google"
- + ".protobuf.Timestamp\0225\n\021price_expire_time"
- + "\030\006 \001(\0132\032.google.protobuf.Timestamp\022K\n\013pr"
- + "ice_range\030\007 \001(\01320.google.cloud.retail.v2"
- + "beta.PriceInfo.PriceRangeB\004\342A\001\003\032\177\n\nPrice"
- + "Range\0223\n\005price\030\001 \001(\0132$.google.cloud.reta"
- + "il.v2beta.Interval\022<\n\016original_price\030\002 \001"
- + "(\0132$.google.cloud.retail.v2beta.Interval"
- + "\"P\n\006Rating\022\024\n\014rating_count\030\001 \001(\005\022\026\n\016aver"
- + "age_rating\030\002 \001(\002\022\030\n\020rating_histogram\030\003 \003"
- + "(\005\"`\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nip_ad"
- + "dress\030\002 \001(\t\022\022\n\nuser_agent\030\003 \001(\t\022\033\n\023direc"
- + "t_user_request\030\004 \001(\010\"\256\002\n\016LocalInventory\022"
- + "\020\n\010place_id\030\001 \001(\t\0229\n\nprice_info\030\002 \001(\0132%."
- + "google.cloud.retail.v2beta.PriceInfo\022N\n\n"
- + "attributes\030\003 \003(\0132:.google.cloud.retail.v"
- + "2beta.LocalInventory.AttributesEntry\022\037\n\021"
- + "fulfillment_types\030\004 \003(\tB\004\342A\001\004\032^\n\017Attribu"
- + "tesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.g"
- + "oogle.cloud.retail.v2beta.CustomAttribut"
- + "e:\0028\001*\206\001\n\024AttributeConfigLevel\022&\n\"ATTRIB"
- + "UTE_CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PRODUC"
- + "T_LEVEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALOG_LE"
- + "VEL_ATTRIBUTE_CONFIG\020\002*i\n\014SolutionType\022\035"
- + "\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOLUTIO"
- + "N_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_TYPE"
- + "_SEARCH\020\002*\241\001\n\036RecommendationsFilteringOp"
- + "tion\0220\n,RECOMMENDATIONS_FILTERING_OPTION"
- + "_UNSPECIFIED\020\000\022&\n\"RECOMMENDATIONS_FILTER"
- + "ING_DISABLED\020\001\022%\n!RECOMMENDATIONS_FILTER"
- + "ING_ENABLED\020\003*\213\001\n\025SearchSolutionUseCase\022"
- + "(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIFIED\020"
- + "\000\022#\n\037SEARCH_SOLUTION_USE_CASE_SEARCH\020\001\022#"
- + "\n\037SEARCH_SOLUTION_USE_CASE_BROWSE\020\002B\312\001\n\036"
- + "com.google.cloud.retail.v2betaB\013CommonPr"
- + "otoP\001Z6cloud.google.com/go/retail/apiv2b"
- + "eta/retailpb;retailpb\242\002\006RETAIL\252\002\032Google."
- + "Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\Retai"
- + "l\\V2beta\352\002\035Google::Cloud::Retail::V2beta"
- + "b\006proto3"
+ + "waySynonymsActionH\000\022=\n\tcondition\030\001 \001(\0132%"
+ + ".google.cloud.retail.v2beta.ConditionB\003\340"
+ + "A\002\0325\n\013BoostAction\022\r\n\005boost\030\001 \001(\002\022\027\n\017prod"
+ + "ucts_filter\030\002 \001(\t\032\036\n\014FilterAction\022\016\n\006fil"
+ + "ter\030\001 \001(\t\032&\n\016RedirectAction\022\024\n\014redirect_"
+ + "uri\030\001 \001(\t\032(\n\024TwowaySynonymsAction\022\020\n\010syn"
+ + "onyms\030\001 \003(\t\032S\n\024OnewaySynonymsAction\022\023\n\013q"
+ + "uery_terms\030\003 \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014on"
+ + "eway_terms\030\002 \003(\t\032Z\n\024DoNotAssociateAction"
+ + "\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026do_not_associat"
+ + "e_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003(\t\032P\n\021Replacem"
+ + "entAction\022\023\n\013query_terms\030\002 \003(\t\022\030\n\020replac"
+ + "ement_term\030\003 \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014Ignore"
+ + "Action\022\024\n\014ignore_terms\030\001 \003(\tB\010\n\006action\"/"
+ + "\n\010Audience\022\017\n\007genders\030\001 \003(\t\022\022\n\nage_group"
+ + "s\030\002 \003(\t\"3\n\tColorInfo\022\026\n\016color_families\030\001"
+ + " \003(\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017CustomAttribute"
+ + "\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearc"
+ + "hable\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B"
+ + "\002\030\001H\001\210\001\001B\r\n\013_searchableB\014\n\n_indexable\"2\n"
+ + "\017FulfillmentInfo\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_"
+ + "ids\030\002 \003(\t\"8\n\005Image\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006"
+ + "height\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\"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\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_"
+ + "maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"\225\003\n\tPriceI"
+ + "nfo\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005price\030\002 \001("
+ + "\002\022\026\n\016original_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\022"
+ + "8\n\024price_effective_time\030\005 \001(\0132\032.google.p"
+ + "rotobuf.Timestamp\0225\n\021price_expire_time\030\006"
+ + " \001(\0132\032.google.protobuf.Timestamp\022J\n\013pric"
+ + "e_range\030\007 \001(\01320.google.cloud.retail.v2be"
+ + "ta.PriceInfo.PriceRangeB\003\340A\003\032\177\n\nPriceRan"
+ + "ge\0223\n\005price\030\001 \001(\0132$.google.cloud.retail."
+ + "v2beta.Interval\022<\n\016original_price\030\002 \001(\0132"
+ + "$.google.cloud.retail.v2beta.Interval\"P\n"
+ + "\006Rating\022\024\n\014rating_count\030\001 \001(\005\022\026\n\016average"
+ + "_rating\030\002 \001(\002\022\030\n\020rating_histogram\030\003 \003(\005\""
+ + "`\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nip_addre"
+ + "ss\030\002 \001(\t\022\022\n\nuser_agent\030\003 \001(\t\022\033\n\023direct_u"
+ + "ser_request\030\004 \001(\010\"\255\002\n\016LocalInventory\022\020\n\010"
+ + "place_id\030\001 \001(\t\0229\n\nprice_info\030\002 \001(\0132%.goo"
+ + "gle.cloud.retail.v2beta.PriceInfo\022N\n\natt"
+ + "ributes\030\003 \003(\0132:.google.cloud.retail.v2be"
+ + "ta.LocalInventory.AttributesEntry\022\036\n\021ful"
+ + "fillment_types\030\004 \003(\tB\003\340A\004\032^\n\017AttributesE"
+ + "ntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.googl"
+ + "e.cloud.retail.v2beta.CustomAttribute:\0028"
+ + "\001*\206\001\n\024AttributeConfigLevel\022&\n\"ATTRIBUTE_"
+ + "CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PRODUCT_LE"
+ + "VEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALOG_LEVEL_"
+ + "ATTRIBUTE_CONFIG\020\002*i\n\014SolutionType\022\035\n\031SO"
+ + "LUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOLUTION_TY"
+ + "PE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_TYPE_SEA"
+ + "RCH\020\002*\241\001\n\036RecommendationsFilteringOption"
+ + "\0220\n,RECOMMENDATIONS_FILTERING_OPTION_UNS"
+ + "PECIFIED\020\000\022&\n\"RECOMMENDATIONS_FILTERING_"
+ + "DISABLED\020\001\022%\n!RECOMMENDATIONS_FILTERING_"
+ + "ENABLED\020\003*\213\001\n\025SearchSolutionUseCase\022(\n$S"
+ + "EARCH_SOLUTION_USE_CASE_UNSPECIFIED\020\000\022#\n"
+ + "\037SEARCH_SOLUTION_USE_CASE_SEARCH\020\001\022#\n\037SE"
+ + "ARCH_SOLUTION_USE_CASE_BROWSE\020\002B\312\001\n\036com."
+ + "google.cloud.retail.v2betaB\013CommonProtoP"
+ + "\001Z6cloud.google.com/go/retail/apiv2beta/"
+ + "retailpb;retailpb\242\002\006RETAIL\252\002\032Google.Clou"
+ + "d.Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2"
+ + "beta\352\002\035Google::Cloud::Retail::V2betab\006pr"
+ + "oto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java
index 72928b1af9d3..1bdb7e38028c 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java
@@ -65,46 +65,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ogle/cloud/retail/v2beta/common.proto\032.g"
+ "oogle/cloud/retail/v2beta/import_config."
+ "proto\032#google/longrunning/operations.pro"
- + "to\"\337\001\n\024CompleteQueryRequest\0227\n\007catalog\030\001"
- + " \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/Cat"
- + "alog\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022\022\n\nvisitor_id\030"
- + "\007 \001(\t\022\026\n\016language_codes\030\003 \003(\t\022\023\n\013device_"
- + "type\030\004 \001(\t\022\017\n\007dataset\030\006 \001(\t\022\027\n\017max_sugge"
- + "stions\030\005 \001(\005\022\016\n\006entity\030\n \001(\t\"\225\004\n\025Complet"
- + "eQueryResponse\022^\n\022completion_results\030\001 \003"
- + "(\0132B.google.cloud.retail.v2beta.Complete"
- + "QueryResponse.CompletionResult\022\031\n\021attrib"
- + "ution_token\030\002 \001(\t\022c\n\025recent_search_resul"
- + "ts\030\003 \003(\0132D.google.cloud.retail.v2beta.Co"
- + "mpleteQueryResponse.RecentSearchResult\032\356"
- + "\001\n\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t\022"
- + "f\n\nattributes\030\002 \003(\0132R.google.cloud.retai"
- + "l.v2beta.CompleteQueryResponse.Completio"
- + "nResult.AttributesEntry\032^\n\017AttributesEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google."
- + "cloud.retail.v2beta.CustomAttribute:\0028\001\032"
- + "+\n\022RecentSearchResult\022\025\n\rrecent_search\030\001"
- + " \001(\t2\316\004\n\021CompletionService\022\277\001\n\rCompleteQ"
- + "uery\0220.google.cloud.retail.v2beta.Comple"
- + "teQueryRequest\0321.google.cloud.retail.v2b"
- + "eta.CompleteQueryResponse\"I\202\323\344\223\002C\022A/v2be"
- + "ta/{catalog=projects/*/locations/*/catal"
- + "ogs/*}:completeQuery\022\253\002\n\024ImportCompletio"
- + "nData\0227.google.cloud.retail.v2beta.Impor"
- + "tCompletionDataRequest\032\035.google.longrunn"
- + "ing.Operation\"\272\001\312Ad\n7google.cloud.retail"
- + ".v2beta.ImportCompletionDataResponse\022)go"
- + "ogle.cloud.retail.v2beta.ImportMetadata\202"
- + "\323\344\223\002M\"H/v2beta/{parent=projects/*/locati"
- + "ons/*/catalogs/*}/completionData:import:"
- + "\001*\032I\312A\025retail.googleapis.com\322A.https://w"
- + "ww.googleapis.com/auth/cloud-platformB\325\001"
- + "\n\036com.google.cloud.retail.v2betaB\026Comple"
- + "tionServiceProtoP\001Z6cloud.google.com/go/"
- + "retail/apiv2beta/retailpb;retailpb\242\002\006RET"
- + "AIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Googl"
- + "e\\Cloud\\Retail\\V2beta\352\002\035Google::Cloud::R"
- + "etail::V2betab\006proto3"
+ + "to\"\335\001\n\024CompleteQueryRequest\0226\n\007catalog\030\001"
+ + " \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Cata"
+ + "log\022\022\n\005query\030\002 \001(\tB\003\340A\002\022\022\n\nvisitor_id\030\007 "
+ + "\001(\t\022\026\n\016language_codes\030\003 \003(\t\022\023\n\013device_ty"
+ + "pe\030\004 \001(\t\022\017\n\007dataset\030\006 \001(\t\022\027\n\017max_suggest"
+ + "ions\030\005 \001(\005\022\016\n\006entity\030\n \001(\t\"\225\004\n\025CompleteQ"
+ + "ueryResponse\022^\n\022completion_results\030\001 \003(\013"
+ + "2B.google.cloud.retail.v2beta.CompleteQu"
+ + "eryResponse.CompletionResult\022\031\n\021attribut"
+ + "ion_token\030\002 \001(\t\022c\n\025recent_search_results"
+ + "\030\003 \003(\0132D.google.cloud.retail.v2beta.Comp"
+ + "leteQueryResponse.RecentSearchResult\032\356\001\n"
+ + "\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t\022f\n"
+ + "\nattributes\030\002 \003(\0132R.google.cloud.retail."
+ + "v2beta.CompleteQueryResponse.CompletionR"
+ + "esult.AttributesEntry\032^\n\017AttributesEntry"
+ + "\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google.cl"
+ + "oud.retail.v2beta.CustomAttribute:\0028\001\032+\n"
+ + "\022RecentSearchResult\022\025\n\rrecent_search\030\001 \001"
+ + "(\t2\316\004\n\021CompletionService\022\277\001\n\rCompleteQue"
+ + "ry\0220.google.cloud.retail.v2beta.Complete"
+ + "QueryRequest\0321.google.cloud.retail.v2bet"
+ + "a.CompleteQueryResponse\"I\202\323\344\223\002C\022A/v2beta"
+ + "/{catalog=projects/*/locations/*/catalog"
+ + "s/*}:completeQuery\022\253\002\n\024ImportCompletionD"
+ + "ata\0227.google.cloud.retail.v2beta.ImportC"
+ + "ompletionDataRequest\032\035.google.longrunnin"
+ + "g.Operation\"\272\001\312Ad\n7google.cloud.retail.v"
+ + "2beta.ImportCompletionDataResponse\022)goog"
+ + "le.cloud.retail.v2beta.ImportMetadata\202\323\344"
+ + "\223\002M\"H/v2beta/{parent=projects/*/location"
+ + "s/*/catalogs/*}/completionData:import:\001*"
+ + "\032I\312A\025retail.googleapis.com\322A.https://www"
+ + ".googleapis.com/auth/cloud-platformB\325\001\n\036"
+ + "com.google.cloud.retail.v2betaB\026Completi"
+ + "onServiceProtoP\001Z6cloud.google.com/go/re"
+ + "tail/apiv2beta/retailpb;retailpb\242\002\006RETAI"
+ + "L\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\"
+ + "Cloud\\Retail\\V2beta\352\002\035Google::Cloud::Ret"
+ + "ail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlProto.java
index b76fa70e5817..2e4f60c0e7a4 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlProto.java
@@ -46,25 +46,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "pi/field_behavior.proto\032\031google/api/reso"
+ "urce.proto\032\'google/cloud/retail/v2beta/c"
+ "ommon.proto\032/google/cloud/retail/v2beta/"
- + "search_service.proto\"\203\004\n\007Control\022M\n\nface"
+ + "search_service.proto\"\201\004\n\007Control\022M\n\nface"
+ "t_spec\030\003 \001(\01323.google.cloud.retail.v2bet"
+ "a.SearchRequest.FacetSpecB\002\030\001H\000\0220\n\004rule\030"
+ "\004 \001(\0132 .google.cloud.retail.v2beta.RuleH"
- + "\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 "
- + "\001(\tB\004\342A\001\002\022+\n\035associated_serving_config_i"
- + "ds\030\005 \003(\tB\004\342A\001\003\022G\n\016solution_types\030\006 \003(\0162("
- + ".google.cloud.retail.v2beta.SolutionType"
- + "B\005\342A\002\002\005\022S\n\030search_solution_use_case\030\007 \003("
- + "\01621.google.cloud.retail.v2beta.SearchSol"
- + "utionUseCase:q\352An\n\035retail.googleapis.com"
- + "/Control\022Mprojects/{project}/locations/{"
- + "location}/catalogs/{catalog}/controls/{c"
- + "ontrol}B\t\n\007controlB\313\001\n\036com.google.cloud."
- + "retail.v2betaB\014ControlProtoP\001Z6cloud.goo"
- + "gle.com/go/retail/apiv2beta/retailpb;ret"
- + "ailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2B"
- + "eta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Googl"
- + "e::Cloud::Retail::V2betab\006proto3"
+ + "\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\005 \003(\tB\003\340A\003\022H\n\016solution_types\030\006 \003(\0162(.go"
+ + "ogle.cloud.retail.v2beta.SolutionTypeB\006\340"
+ + "A\002\340A\005\022S\n\030search_solution_use_case\030\007 \003(\0162"
+ + "1.google.cloud.retail.v2beta.SearchSolut"
+ + "ionUseCase:q\352An\n\035retail.googleapis.com/C"
+ + "ontrol\022Mprojects/{project}/locations/{lo"
+ + "cation}/catalogs/{catalog}/controls/{con"
+ + "trol}B\t\n\007controlB\313\001\n\036com.google.cloud.re"
+ + "tail.v2betaB\014ControlProtoP\001Z6cloud.googl"
+ + "e.com/go/retail/apiv2beta/retailpb;retai"
+ + "lpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Bet"
+ + "a\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google:"
+ + ":Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceProto.java
index f89729509a97..6e1128ab884c 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceProto.java
@@ -68,57 +68,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".proto\032\031google/api/resource.proto\032(googl"
+ "e/cloud/retail/v2beta/control.proto\032\033goo"
+ "gle/protobuf/empty.proto\032 google/protobu"
- + "f/field_mask.proto\"\244\001\n\024CreateControlRequ"
- + "est\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.goo"
- + "gleapis.com/Catalog\022:\n\007control\030\002 \001(\0132#.g"
- + "oogle.cloud.retail.v2beta.ControlB\004\342A\001\002\022"
- + "\030\n\ncontrol_id\030\003 \001(\tB\004\342A\001\002\"\203\001\n\024UpdateCont"
- + "rolRequest\022:\n\007control\030\001 \001(\0132#.google.clo"
- + "ud.retail.v2beta.ControlB\004\342A\001\002\022/\n\013update"
- + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\""
- + "L\n\024DeleteControlRequest\0224\n\004name\030\001 \001(\tB&\342"
- + "A\001\002\372A\037\n\035retail.googleapis.com/Control\"I\n"
- + "\021GetControlRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A"
- + "\037\n\035retail.googleapis.com/Control\"\226\001\n\023Lis"
- + "tControlsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A"
- + "\037\n\035retail.googleapis.com/Catalog\022\027\n\tpage"
- + "_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342"
- + "A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\"f\n\024ListControl"
- + "sResponse\0225\n\010controls\030\001 \003(\0132#.google.clo"
- + "ud.retail.v2beta.Control\022\027\n\017next_page_to"
- + "ken\030\002 \001(\t2\234\010\n\016ControlService\022\320\001\n\rCreateC"
- + "ontrol\0220.google.cloud.retail.v2beta.Crea"
- + "teControlRequest\032#.google.cloud.retail.v"
- + "2beta.Control\"h\332A\031parent,control,control"
- + "_id\202\323\344\223\002F\";/v2beta/{parent=projects/*/lo"
- + "cations/*/catalogs/*}/controls:\007control\022"
- + "\245\001\n\rDeleteControl\0220.google.cloud.retail."
- + "v2beta.DeleteControlRequest\032\026.google.pro"
- + "tobuf.Empty\"J\332A\004name\202\323\344\223\002=*;/v2beta/{nam"
- + "e=projects/*/locations/*/catalogs/*/cont"
- + "rols/*}\022\322\001\n\rUpdateControl\0220.google.cloud"
- + ".retail.v2beta.UpdateControlRequest\032#.go"
- + "ogle.cloud.retail.v2beta.Control\"j\332A\023con"
- + "trol,update_mask\202\323\344\223\002N2C/v2beta/{control"
- + ".name=projects/*/locations/*/catalogs/*/"
- + "controls/*}:\007control\022\254\001\n\nGetControl\022-.go"
- + "ogle.cloud.retail.v2beta.GetControlReque"
- + "st\032#.google.cloud.retail.v2beta.Control\""
- + "J\332A\004name\202\323\344\223\002=\022;/v2beta/{name=projects/*"
- + "/locations/*/catalogs/*/controls/*}\022\277\001\n\014"
- + "ListControls\022/.google.cloud.retail.v2bet"
- + "a.ListControlsRequest\0320.google.cloud.ret"
- + "ail.v2beta.ListControlsResponse\"L\332A\006pare"
- + "nt\202\323\344\223\002=\022;/v2beta/{parent=projects/*/loc"
- + "ations/*/catalogs/*}/controls\032I\312A\025retail"
- + ".googleapis.com\322A.https://www.googleapis"
- + ".com/auth/cloud-platformB\322\001\n\036com.google."
- + "cloud.retail.v2betaB\023ControlServiceProto"
- + "P\001Z6cloud.google.com/go/retail/apiv2beta"
- + "/retailpb;retailpb\242\002\006RETAIL\252\002\032Google.Clo"
- + "ud.Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V"
- + "2beta\352\002\035Google::Cloud::Retail::V2betab\006p"
- + "roto3"
+ + "f/field_mask.proto\"\241\001\n\024CreateControlRequ"
+ + "est\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.goog"
+ + "leapis.com/Catalog\0229\n\007control\030\002 \001(\0132#.go"
+ + "ogle.cloud.retail.v2beta.ControlB\003\340A\002\022\027\n"
+ + "\ncontrol_id\030\003 \001(\tB\003\340A\002\"\202\001\n\024UpdateControl"
+ + "Request\0229\n\007control\030\001 \001(\0132#.google.cloud."
+ + "retail.v2beta.ControlB\003\340A\002\022/\n\013update_mas"
+ + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"K\n\024D"
+ + "eleteControlRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A"
+ + "\037\n\035retail.googleapis.com/Control\"H\n\021GetC"
+ + "ontrolRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035ret"
+ + "ail.googleapis.com/Control\"\222\001\n\023ListContr"
+ + "olsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035reta"
+ + "il.googleapis.com/Catalog\022\026\n\tpage_size\030\002"
+ + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fi"
+ + "lter\030\004 \001(\tB\003\340A\001\"f\n\024ListControlsResponse\022"
+ + "5\n\010controls\030\001 \003(\0132#.google.cloud.retail."
+ + "v2beta.Control\022\027\n\017next_page_token\030\002 \001(\t2"
+ + "\234\010\n\016ControlService\022\320\001\n\rCreateControl\0220.g"
+ + "oogle.cloud.retail.v2beta.CreateControlR"
+ + "equest\032#.google.cloud.retail.v2beta.Cont"
+ + "rol\"h\332A\031parent,control,control_id\202\323\344\223\002F\""
+ + ";/v2beta/{parent=projects/*/locations/*/"
+ + "catalogs/*}/controls:\007control\022\245\001\n\rDelete"
+ + "Control\0220.google.cloud.retail.v2beta.Del"
+ + "eteControlRequest\032\026.google.protobuf.Empt"
+ + "y\"J\332A\004name\202\323\344\223\002=*;/v2beta/{name=projects"
+ + "/*/locations/*/catalogs/*/controls/*}\022\322\001"
+ + "\n\rUpdateControl\0220.google.cloud.retail.v2"
+ + "beta.UpdateControlRequest\032#.google.cloud"
+ + ".retail.v2beta.Control\"j\332A\023control,updat"
+ + "e_mask\202\323\344\223\002N2C/v2beta/{control.name=proj"
+ + "ects/*/locations/*/catalogs/*/controls/*"
+ + "}:\007control\022\254\001\n\nGetControl\022-.google.cloud"
+ + ".retail.v2beta.GetControlRequest\032#.googl"
+ + "e.cloud.retail.v2beta.Control\"J\332A\004name\202\323"
+ + "\344\223\002=\022;/v2beta/{name=projects/*/locations"
+ + "/*/catalogs/*/controls/*}\022\277\001\n\014ListContro"
+ + "ls\022/.google.cloud.retail.v2beta.ListCont"
+ + "rolsRequest\0320.google.cloud.retail.v2beta"
+ + ".ListControlsResponse\"L\332A\006parent\202\323\344\223\002=\022;"
+ + "/v2beta/{parent=projects/*/locations/*/c"
+ + "atalogs/*}/controls\032I\312A\025retail.googleapi"
+ + "s.com\322A.https://www.googleapis.com/auth/"
+ + "cloud-platformB\322\001\n\036com.google.cloud.reta"
+ + "il.v2betaB\023ControlServiceProtoP\001Z6cloud."
+ + "google.com/go/retail/apiv2beta/retailpb;"
+ + "retailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail."
+ + "V2Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Go"
+ + "ogle::Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExportConfigProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExportConfigProto.java
index b49cd4887589..eeecd0699b89 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExportConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExportConfigProto.java
@@ -89,52 +89,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ig.proto\022\032google.cloud.retail.v2beta\032\037go"
+ "ogle/api/field_behavior.proto\032\031google/ap"
+ "i/resource.proto\032\037google/protobuf/timest"
- + "amp.proto\032\027google/rpc/status.proto\"\354\002\n\014O"
+ + "amp.proto\032\027google/rpc/status.proto\"\350\002\n\014O"
+ "utputConfig\022R\n\017gcs_destination\030\001 \001(\01327.g"
+ "oogle.cloud.retail.v2beta.OutputConfig.G"
+ "csDestinationH\000\022\\\n\024bigquery_destination\030"
+ "\002 \001(\0132<.google.cloud.retail.v2beta.Outpu"
- + "tConfig.BigQueryDestinationH\000\0321\n\016GcsDest"
- + "ination\022\037\n\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002"
- + "\032h\n\023BigQueryDestination\022\030\n\ndataset_id\030\001 "
- + "\001(\tB\004\342A\001\002\022\035\n\017table_id_prefix\030\002 \001(\tB\004\342A\001\002"
- + "\022\030\n\ntable_type\030\003 \001(\tB\004\342A\001\002B\r\n\013destinatio"
- + "n\"9\n\022ExportErrorsConfig\022\024\n\ngcs_prefix\030\001 "
- + "\001(\tH\000B\r\n\013destination\"\215\001\n\035ExportAnalytics"
- + "MetricsRequest\022\025\n\007catalog\030\001 \001(\tB\004\342A\001\002\022E\n"
- + "\routput_config\030\002 \001(\0132(.google.cloud.reta"
- + "il.v2beta.OutputConfigB\004\342A\001\002\022\016\n\006filter\030\003"
- + " \001(\t\"r\n\016ExportMetadata\022/\n\013create_time\030\001 "
- + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat"
- + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp"
- + "\"\313\001\n\026ExportProductsResponse\022)\n\rerror_sam"
- + "ples\030\001 \003(\0132\022.google.rpc.Status\022E\n\rerrors"
- + "_config\030\002 \001(\0132..google.cloud.retail.v2be"
- + "ta.ExportErrorsConfig\022?\n\routput_result\030\003"
- + " \001(\0132(.google.cloud.retail.v2beta.Output"
- + "Result\"\315\001\n\030ExportUserEventsResponse\022)\n\re"
- + "rror_samples\030\001 \003(\0132\022.google.rpc.Status\022E"
- + "\n\rerrors_config\030\002 \001(\0132..google.cloud.ret"
- + "ail.v2beta.ExportErrorsConfig\022?\n\routput_"
- + "result\030\003 \001(\0132(.google.cloud.retail.v2bet"
- + "a.OutputResult\"\323\001\n\036ExportAnalyticsMetric"
- + "sResponse\022)\n\rerror_samples\030\001 \003(\0132\022.googl"
- + "e.rpc.Status\022E\n\rerrors_config\030\002 \001(\0132..go"
- + "ogle.cloud.retail.v2beta.ExportErrorsCon"
- + "fig\022?\n\routput_result\030\003 \001(\0132(.google.clou"
- + "d.retail.v2beta.OutputResult\"\232\001\n\014OutputR"
- + "esult\022I\n\017bigquery_result\030\001 \003(\01320.google."
- + "cloud.retail.v2beta.BigQueryOutputResult"
- + "\022?\n\ngcs_result\030\002 \003(\0132+.google.cloud.reta"
- + "il.v2beta.GcsOutputResult\"<\n\024BigQueryOut"
- + "putResult\022\022\n\ndataset_id\030\001 \001(\t\022\020\n\010table_i"
- + "d\030\002 \001(\t\"%\n\017GcsOutputResult\022\022\n\noutput_uri"
- + "\030\001 \001(\tB\320\001\n\036com.google.cloud.retail.v2bet"
- + "aB\021ExportConfigProtoP\001Z6cloud.google.com"
- + "/go/retail/apiv2beta/retailpb;retailpb\242\002"
- + "\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032G"
- + "oogle\\Cloud\\Retail\\V2beta\352\002\035Google::Clou"
- + "d::Retail::V2betab\006proto3"
+ + "tConfig.BigQueryDestinationH\000\0320\n\016GcsDest"
+ + "ination\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\032"
+ + "e\n\023BigQueryDestination\022\027\n\ndataset_id\030\001 \001"
+ + "(\tB\003\340A\002\022\034\n\017table_id_prefix\030\002 \001(\tB\003\340A\002\022\027\n"
+ + "\ntable_type\030\003 \001(\tB\003\340A\002B\r\n\013destination\"9\n"
+ + "\022ExportErrorsConfig\022\024\n\ngcs_prefix\030\001 \001(\tH"
+ + "\000B\r\n\013destination\"\213\001\n\035ExportAnalyticsMetr"
+ + "icsRequest\022\024\n\007catalog\030\001 \001(\tB\003\340A\002\022D\n\routp"
+ + "ut_config\030\002 \001(\0132(.google.cloud.retail.v2"
+ + "beta.OutputConfigB\003\340A\002\022\016\n\006filter\030\003 \001(\t\"r"
+ + "\n\016ExportMetadata\022/\n\013create_time\030\001 \001(\0132\032."
+ + "google.protobuf.Timestamp\022/\n\013update_time"
+ + "\030\002 \001(\0132\032.google.protobuf.Timestamp\"\313\001\n\026E"
+ + "xportProductsResponse\022)\n\rerror_samples\030\001"
+ + " \003(\0132\022.google.rpc.Status\022E\n\rerrors_confi"
+ + "g\030\002 \001(\0132..google.cloud.retail.v2beta.Exp"
+ + "ortErrorsConfig\022?\n\routput_result\030\003 \001(\0132("
+ + ".google.cloud.retail.v2beta.OutputResult"
+ + "\"\315\001\n\030ExportUserEventsResponse\022)\n\rerror_s"
+ + "amples\030\001 \003(\0132\022.google.rpc.Status\022E\n\rerro"
+ + "rs_config\030\002 \001(\0132..google.cloud.retail.v2"
+ + "beta.ExportErrorsConfig\022?\n\routput_result"
+ + "\030\003 \001(\0132(.google.cloud.retail.v2beta.Outp"
+ + "utResult\"\323\001\n\036ExportAnalyticsMetricsRespo"
+ + "nse\022)\n\rerror_samples\030\001 \003(\0132\022.google.rpc."
+ + "Status\022E\n\rerrors_config\030\002 \001(\0132..google.c"
+ + "loud.retail.v2beta.ExportErrorsConfig\022?\n"
+ + "\routput_result\030\003 \001(\0132(.google.cloud.reta"
+ + "il.v2beta.OutputResult\"\232\001\n\014OutputResult\022"
+ + "I\n\017bigquery_result\030\001 \003(\01320.google.cloud."
+ + "retail.v2beta.BigQueryOutputResult\022?\n\ngc"
+ + "s_result\030\002 \003(\0132+.google.cloud.retail.v2b"
+ + "eta.GcsOutputResult\"<\n\024BigQueryOutputRes"
+ + "ult\022\022\n\ndataset_id\030\001 \001(\t\022\020\n\010table_id\030\002 \001("
+ + "\t\"%\n\017GcsOutputResult\022\022\n\noutput_uri\030\001 \001(\t"
+ + "B\320\001\n\036com.google.cloud.retail.v2betaB\021Exp"
+ + "ortConfigProtoP\001Z6cloud.google.com/go/re"
+ + "tail/apiv2beta/retailpb;retailpb\242\002\006RETAI"
+ + "L\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\"
+ + "Cloud\\Retail\\V2beta\352\002\035Google::Cloud::Ret"
+ + "ail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportConfigProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportConfigProto.java
index aa1cbd8665c0..0f0f1282b190 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportConfigProto.java
@@ -109,83 +109,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "v2beta/user_event.proto\032 google/protobuf"
+ "/field_mask.proto\032\037google/protobuf/times"
+ "tamp.proto\032\027google/rpc/status.proto\032\026goo"
- + "gle/type/date.proto\":\n\tGcsSource\022\030\n\ninpu"
- + "t_uris\030\001 \003(\tB\004\342A\001\002\022\023\n\013data_schema\030\002 \001(\t\""
- + "\276\001\n\016BigQuerySource\022+\n\016partition_date\030\006 \001"
- + "(\0132\021.google.type.DateH\000\022\022\n\nproject_id\030\005 "
- + "\001(\t\022\030\n\ndataset_id\030\001 \001(\tB\004\342A\001\002\022\026\n\010table_i"
- + "d\030\002 \001(\tB\004\342A\001\002\022\027\n\017gcs_staging_dir\030\003 \001(\t\022\023"
- + "\n\013data_schema\030\004 \001(\tB\013\n\tpartition\"R\n\023Prod"
- + "uctInlineSource\022;\n\010products\030\001 \003(\0132#.goog"
- + "le.cloud.retail.v2beta.ProductB\004\342A\001\002\"Y\n\025"
- + "UserEventInlineSource\022@\n\013user_events\030\001 \003"
- + "(\0132%.google.cloud.retail.v2beta.UserEven"
- + "tB\004\342A\001\002\"9\n\022ImportErrorsConfig\022\024\n\ngcs_pre"
- + "fix\030\001 \001(\tH\000B\r\n\013destination\"\206\004\n\025ImportPro"
- + "ductsRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034r"
- + "etail.googleapis.com/Branch\022\026\n\nrequest_i"
- + "d\030\006 \001(\tB\002\030\001\022J\n\014input_config\030\002 \001(\0132..goog"
- + "le.cloud.retail.v2beta.ProductInputConfi"
- + "gB\004\342A\001\002\022E\n\rerrors_config\030\003 \001(\0132..google."
- + "cloud.retail.v2beta.ImportErrorsConfig\022/"
- + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi"
- + "eldMask\022a\n\023reconciliation_mode\030\005 \001(\0162D.g"
- + "oogle.cloud.retail.v2beta.ImportProducts"
- + "Request.ReconciliationMode\022!\n\031notificati"
- + "on_pubsub_topic\030\007 \001(\t\"T\n\022ReconciliationM"
- + "ode\022#\n\037RECONCILIATION_MODE_UNSPECIFIED\020\000"
- + "\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002\"\346\001\n\027ImportUs"
- + "erEventsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037"
- + "\n\035retail.googleapis.com/Catalog\022L\n\014input"
- + "_config\030\002 \001(\01320.google.cloud.retail.v2be"
- + "ta.UserEventInputConfigB\004\342A\001\002\022E\n\rerrors_"
- + "config\030\003 \001(\0132..google.cloud.retail.v2bet"
- + "a.ImportErrorsConfig\"\313\001\n\033ImportCompletio"
- + "nDataRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A\037\n\035r"
- + "etail.googleapis.com/Catalog\022Q\n\014input_co"
- + "nfig\030\002 \001(\01325.google.cloud.retail.v2beta."
- + "CompletionDataInputConfigB\004\342A\001\002\022!\n\031notif"
- + "ication_pubsub_topic\030\003 \001(\t\"\365\001\n\022ProductIn"
- + "putConfig\022P\n\025product_inline_source\030\001 \001(\013"
- + "2/.google.cloud.retail.v2beta.ProductInl"
- + "ineSourceH\000\022;\n\ngcs_source\030\002 \001(\0132%.google"
- + ".cloud.retail.v2beta.GcsSourceH\000\022F\n\020big_"
- + "query_source\030\003 \001(\0132*.google.cloud.retail"
- + ".v2beta.BigQuerySourceH\000B\010\n\006source\"\216\002\n\024U"
- + "serEventInputConfig\022[\n\030user_event_inline"
- + "_source\030\001 \001(\01321.google.cloud.retail.v2be"
- + "ta.UserEventInlineSourceB\004\342A\001\002H\000\022A\n\ngcs_"
- + "source\030\002 \001(\0132%.google.cloud.retail.v2bet"
- + "a.GcsSourceB\004\342A\001\002H\000\022L\n\020big_query_source\030"
- + "\003 \001(\0132*.google.cloud.retail.v2beta.BigQu"
- + "erySourceB\004\342A\001\002H\000B\010\n\006source\"s\n\031Completio"
- + "nDataInputConfig\022L\n\020big_query_source\030\001 \001"
- + "(\0132*.google.cloud.retail.v2beta.BigQuery"
- + "SourceB\004\342A\001\002H\000B\010\n\006source\"\333\001\n\016ImportMetad"
- + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob"
- + "uf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goog"
- + "le.protobuf.Timestamp\022\025\n\rsuccess_count\030\003"
- + " \001(\003\022\025\n\rfailure_count\030\004 \001(\003\022\026\n\nrequest_i"
- + "d\030\005 \001(\tB\002\030\001\022!\n\031notification_pubsub_topic"
- + "\030\006 \001(\t\"\212\001\n\026ImportProductsResponse\022)\n\rerr"
- + "or_samples\030\001 \003(\0132\022.google.rpc.Status\022E\n\r"
- + "errors_config\030\002 \001(\0132..google.cloud.retai"
- + "l.v2beta.ImportErrorsConfig\"\330\001\n\030ImportUs"
- + "erEventsResponse\022)\n\rerror_samples\030\001 \003(\0132"
- + "\022.google.rpc.Status\022E\n\rerrors_config\030\002 \001"
- + "(\0132..google.cloud.retail.v2beta.ImportEr"
- + "rorsConfig\022J\n\016import_summary\030\003 \001(\01322.goo"
- + "gle.cloud.retail.v2beta.UserEventImportS"
- + "ummary\"T\n\026UserEventImportSummary\022\033\n\023join"
- + "ed_events_count\030\001 \001(\003\022\035\n\025unjoined_events"
- + "_count\030\002 \001(\003\"I\n\034ImportCompletionDataResp"
- + "onse\022)\n\rerror_samples\030\001 \003(\0132\022.google.rpc"
- + ".StatusB\320\001\n\036com.google.cloud.retail.v2be"
- + "taB\021ImportConfigProtoP\001Z6cloud.google.co"
- + "m/go/retail/apiv2beta/retailpb;retailpb\242"
- + "\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032"
- + "Google\\Cloud\\Retail\\V2beta\352\002\035Google::Clo"
- + "ud::Retail::V2betab\006proto3"
+ + "gle/type/date.proto\"9\n\tGcsSource\022\027\n\ninpu"
+ + "t_uris\030\001 \003(\tB\003\340A\002\022\023\n\013data_schema\030\002 \001(\t\"\274"
+ + "\001\n\016BigQuerySource\022+\n\016partition_date\030\006 \001("
+ + "\0132\021.google.type.DateH\000\022\022\n\nproject_id\030\005 \001"
+ + "(\t\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\025\n\010table_id\030"
+ + "\002 \001(\tB\003\340A\002\022\027\n\017gcs_staging_dir\030\003 \001(\t\022\023\n\013d"
+ + "ata_schema\030\004 \001(\tB\013\n\tpartition\"Q\n\023Product"
+ + "InlineSource\022:\n\010products\030\001 \003(\0132#.google."
+ + "cloud.retail.v2beta.ProductB\003\340A\002\"X\n\025User"
+ + "EventInlineSource\022?\n\013user_events\030\001 \003(\0132%"
+ + ".google.cloud.retail.v2beta.UserEventB\003\340"
+ + "A\002\"9\n\022ImportErrorsConfig\022\024\n\ngcs_prefix\030\001"
+ + " \001(\tH\000B\r\n\013destination\"\204\004\n\025ImportProducts"
+ + "Request\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail."
+ + "googleapis.com/Branch\022\026\n\nrequest_id\030\006 \001("
+ + "\tB\002\030\001\022I\n\014input_config\030\002 \001(\0132..google.clo"
+ + "ud.retail.v2beta.ProductInputConfigB\003\340A\002"
+ + "\022E\n\rerrors_config\030\003 \001(\0132..google.cloud.r"
+ + "etail.v2beta.ImportErrorsConfig\022/\n\013updat"
+ + "e_mask\030\004 \001(\0132\032.google.protobuf.FieldMask"
+ + "\022a\n\023reconciliation_mode\030\005 \001(\0162D.google.c"
+ + "loud.retail.v2beta.ImportProductsRequest"
+ + ".ReconciliationMode\022!\n\031notification_pubs"
+ + "ub_topic\030\007 \001(\t\"T\n\022ReconciliationMode\022#\n\037"
+ + "RECONCILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013INC"
+ + "REMENTAL\020\001\022\010\n\004FULL\020\002\"\344\001\n\027ImportUserEvent"
+ + "sRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail"
+ + ".googleapis.com/Catalog\022K\n\014input_config\030"
+ + "\002 \001(\01320.google.cloud.retail.v2beta.UserE"
+ + "ventInputConfigB\003\340A\002\022E\n\rerrors_config\030\003 "
+ + "\001(\0132..google.cloud.retail.v2beta.ImportE"
+ + "rrorsConfig\"\311\001\n\033ImportCompletionDataRequ"
+ + "est\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.goog"
+ + "leapis.com/Catalog\022P\n\014input_config\030\002 \001(\013"
+ + "25.google.cloud.retail.v2beta.Completion"
+ + "DataInputConfigB\003\340A\002\022!\n\031notification_pub"
+ + "sub_topic\030\003 \001(\t\"\365\001\n\022ProductInputConfig\022P"
+ + "\n\025product_inline_source\030\001 \001(\0132/.google.c"
+ + "loud.retail.v2beta.ProductInlineSourceH\000"
+ + "\022;\n\ngcs_source\030\002 \001(\0132%.google.cloud.reta"
+ + "il.v2beta.GcsSourceH\000\022F\n\020big_query_sourc"
+ + "e\030\003 \001(\0132*.google.cloud.retail.v2beta.Big"
+ + "QuerySourceH\000B\010\n\006source\"\213\002\n\024UserEventInp"
+ + "utConfig\022Z\n\030user_event_inline_source\030\001 \001"
+ + "(\01321.google.cloud.retail.v2beta.UserEven"
+ + "tInlineSourceB\003\340A\002H\000\022@\n\ngcs_source\030\002 \001(\013"
+ + "2%.google.cloud.retail.v2beta.GcsSourceB"
+ + "\003\340A\002H\000\022K\n\020big_query_source\030\003 \001(\0132*.googl"
+ + "e.cloud.retail.v2beta.BigQuerySourceB\003\340A"
+ + "\002H\000B\010\n\006source\"r\n\031CompletionDataInputConf"
+ + "ig\022K\n\020big_query_source\030\001 \001(\0132*.google.cl"
+ + "oud.retail.v2beta.BigQuerySourceB\003\340A\002H\000B"
+ + "\010\n\006source\"\333\001\n\016ImportMetadata\022/\n\013create_t"
+ + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n"
+ + "\013update_time\030\002 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure"
+ + "_count\030\004 \001(\003\022\026\n\nrequest_id\030\005 \001(\tB\002\030\001\022!\n\031"
+ + "notification_pubsub_topic\030\006 \001(\t\"\212\001\n\026Impo"
+ + "rtProductsResponse\022)\n\rerror_samples\030\001 \003("
+ + "\0132\022.google.rpc.Status\022E\n\rerrors_config\030\002"
+ + " \001(\0132..google.cloud.retail.v2beta.Import"
+ + "ErrorsConfig\"\330\001\n\030ImportUserEventsRespons"
+ + "e\022)\n\rerror_samples\030\001 \003(\0132\022.google.rpc.St"
+ + "atus\022E\n\rerrors_config\030\002 \001(\0132..google.clo"
+ + "ud.retail.v2beta.ImportErrorsConfig\022J\n\016i"
+ + "mport_summary\030\003 \001(\01322.google.cloud.retai"
+ + "l.v2beta.UserEventImportSummary\"T\n\026UserE"
+ + "ventImportSummary\022\033\n\023joined_events_count"
+ + "\030\001 \001(\003\022\035\n\025unjoined_events_count\030\002 \001(\003\"I\n"
+ + "\034ImportCompletionDataResponse\022)\n\rerror_s"
+ + "amples\030\001 \003(\0132\022.google.rpc.StatusB\320\001\n\036com"
+ + ".google.cloud.retail.v2betaB\021ImportConfi"
+ + "gProtoP\001Z6cloud.google.com/go/retail/api"
+ + "v2beta/retailpb;retailpb\242\002\006RETAIL\252\002\032Goog"
+ + "le.Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\Re"
+ + "tail\\V2beta\352\002\035Google::Cloud::Retail::V2b"
+ + "etab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java
index a40c7afd2ee1..fa74567ff3a4 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java
@@ -50,46 +50,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/field_behavior.proto\032\031google/api/resour"
+ "ce.proto\032\'google/cloud/retail/v2beta/com"
+ "mon.proto\032\037google/protobuf/timestamp.pro"
- + "to\"\311\n\n\005Model\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\032\n\014disp"
- + "lay_name\030\002 \001(\tB\004\342A\001\002\022M\n\016training_state\030\003"
- + " \001(\0162/.google.cloud.retail.v2beta.Model."
- + "TrainingStateB\004\342A\001\001\022K\n\rserving_state\030\004 \001"
- + "(\0162..google.cloud.retail.v2beta.Model.Se"
- + "rvingStateB\004\342A\001\003\0225\n\013create_time\030\005 \001(\0132\032."
- + "google.protobuf.TimestampB\004\342A\001\003\0225\n\013updat"
- + "e_time\030\006 \001(\0132\032.google.protobuf.Timestamp"
- + "B\004\342A\001\003\022\022\n\004type\030\007 \001(\tB\004\342A\001\002\022$\n\026optimizati"
- + "on_objective\030\010 \001(\tB\004\342A\001\001\022Z\n\025periodic_tun"
- + "ing_state\030\013 \001(\01625.google.cloud.retail.v2"
- + "beta.Model.PeriodicTuningStateB\004\342A\001\001\0228\n\016"
- + "last_tune_time\030\014 \001(\0132\032.google.protobuf.T"
- + "imestampB\004\342A\001\003\022\036\n\020tuning_operation\030\017 \001(\t"
- + "B\004\342A\001\003\022E\n\ndata_state\030\020 \001(\0162+.google.clou"
- + "d.retail.v2beta.Model.DataStateB\004\342A\001\003\022Z\n"
- + "\020filtering_option\030\022 \001(\0162:.google.cloud.r"
- + "etail.v2beta.RecommendationsFilteringOpt"
- + "ionB\004\342A\001\001\022W\n\024serving_config_lists\030\023 \003(\0132"
- + "3.google.cloud.retail.v2beta.Model.Servi"
- + "ngConfigListB\004\342A\001\003\0325\n\021ServingConfigList\022"
- + " \n\022serving_config_ids\030\001 \003(\tB\004\342A\001\001\"R\n\014Ser"
- + "vingState\022\035\n\031SERVING_STATE_UNSPECIFIED\020\000"
- + "\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n"
- + "\rTrainingState\022\036\n\032TRAINING_STATE_UNSPECI"
- + "FIED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023Per"
- + "iodicTuningState\022%\n!PERIODIC_TUNING_STAT"
- + "E_UNSPECIFIED\020\000\022\034\n\030PERIODIC_TUNING_DISAB"
- + "LED\020\001\022\027\n\023ALL_TUNING_DISABLED\020\003\022\033\n\027PERIOD"
- + "IC_TUNING_ENABLED\020\002\"D\n\tDataState\022\032\n\026DATA"
- + "_STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDAT"
- + "A_ERROR\020\002:k\352Ah\n\033retail.googleapis.com/Mo"
- + "del\022Iprojects/{project}/locations/{locat"
- + "ion}/catalogs/{catalog}/models/{model}B\311"
- + "\001\n\036com.google.cloud.retail.v2betaB\nModel"
- + "ProtoP\001Z6cloud.google.com/go/retail/apiv"
- + "2beta/retailpb;retailpb\242\002\006RETAIL\252\002\032Googl"
- + "e.Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\Ret"
- + "ail\\V2beta\352\002\035Google::Cloud::Retail::V2be"
- + "tab\006proto3"
+ + "to\"\272\n\n\005Model\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014displ"
+ + "ay_name\030\002 \001(\tB\003\340A\002\022L\n\016training_state\030\003 \001"
+ + "(\0162/.google.cloud.retail.v2beta.Model.Tr"
+ + "ainingStateB\003\340A\001\022J\n\rserving_state\030\004 \001(\0162"
+ + "..google.cloud.retail.v2beta.Model.Servi"
+ + "ngStateB\003\340A\003\0224\n\013create_time\030\005 \001(\0132\032.goog"
+ + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim"
+ + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
+ + "\022\021\n\004type\030\007 \001(\tB\003\340A\002\022#\n\026optimization_obje"
+ + "ctive\030\010 \001(\tB\003\340A\001\022Y\n\025periodic_tuning_stat"
+ + "e\030\013 \001(\01625.google.cloud.retail.v2beta.Mod"
+ + "el.PeriodicTuningStateB\003\340A\001\0227\n\016last_tune"
+ + "_time\030\014 \001(\0132\032.google.protobuf.TimestampB"
+ + "\003\340A\003\022\035\n\020tuning_operation\030\017 \001(\tB\003\340A\003\022D\n\nd"
+ + "ata_state\030\020 \001(\0162+.google.cloud.retail.v2"
+ + "beta.Model.DataStateB\003\340A\003\022Y\n\020filtering_o"
+ + "ption\030\022 \001(\0162:.google.cloud.retail.v2beta"
+ + ".RecommendationsFilteringOptionB\003\340A\001\022V\n\024"
+ + "serving_config_lists\030\023 \003(\01323.google.clou"
+ + "d.retail.v2beta.Model.ServingConfigListB"
+ + "\003\340A\003\0324\n\021ServingConfigList\022\037\n\022serving_con"
+ + "fig_ids\030\001 \003(\tB\003\340A\001\"R\n\014ServingState\022\035\n\031SE"
+ + "RVING_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020\001\022"
+ + "\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n\rTrainingState\022"
+ + "\036\n\032TRAINING_STATE_UNSPECIFIED\020\000\022\n\n\006PAUSE"
+ + "D\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023PeriodicTuningStat"
+ + "e\022%\n!PERIODIC_TUNING_STATE_UNSPECIFIED\020\000"
+ + "\022\034\n\030PERIODIC_TUNING_DISABLED\020\001\022\027\n\023ALL_TU"
+ + "NING_DISABLED\020\003\022\033\n\027PERIODIC_TUNING_ENABL"
+ + "ED\020\002\"D\n\tDataState\022\032\n\026DATA_STATE_UNSPECIF"
+ + "IED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002:k\352Ah\n"
+ + "\033retail.googleapis.com/Model\022Iprojects/{"
+ + "project}/locations/{location}/catalogs/{"
+ + "catalog}/models/{model}B\311\001\n\036com.google.c"
+ + "loud.retail.v2betaB\nModelProtoP\001Z6cloud."
+ + "google.com/go/retail/apiv2beta/retailpb;"
+ + "retailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail."
+ + "V2Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Go"
+ + "ogle::Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceProto.java
index 9d57ee25810d..51477454f326 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceProto.java
@@ -93,79 +93,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "cloud/retail/v2beta/model.proto\032#google/"
+ "longrunning/operations.proto\032\033google/pro"
+ "tobuf/empty.proto\032 google/protobuf/field"
- + "_mask.proto\"\233\001\n\022CreateModelRequest\0226\n\006pa"
- + "rent\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.c"
- + "om/Catalog\0226\n\005model\030\002 \001(\0132!.google.cloud"
- + ".retail.v2beta.ModelB\004\342A\001\002\022\025\n\007dry_run\030\003 "
- + "\001(\010B\004\342A\001\001\"\203\001\n\022UpdateModelRequest\0226\n\005mode"
- + "l\030\001 \001(\0132!.google.cloud.retail.v2beta.Mod"
- + "elB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.p"
- + "rotobuf.FieldMaskB\004\342A\001\001\"E\n\017GetModelReque"
- + "st\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail.google"
- + "apis.com/Model\"G\n\021PauseModelRequest\0222\n\004n"
- + "ame\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail.googleapis.co"
- + "m/Model\"(\n\022ResumeModelRequest\022\022\n\004name\030\001 "
- + "\001(\tB\004\342A\001\002\"~\n\021ListModelsRequest\0226\n\006parent"
- + "\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/C"
- + "atalog\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_"
- + "token\030\003 \001(\tB\004\342A\001\001\"H\n\022DeleteModelRequest\022"
- + "2\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail.googleapi"
- + "s.com/Model\"`\n\022ListModelsResponse\0221\n\006mod"
- + "els\030\001 \003(\0132!.google.cloud.retail.v2beta.M"
- + "odel\022\027\n\017next_page_token\030\002 \001(\t\"F\n\020TuneMod"
- + "elRequest\0222\n\004name\030\001 \001(\tB$\342A\001\002\372A\035\n\033retail"
- + ".googleapis.com/Model\"$\n\023CreateModelMeta"
- + "data\022\r\n\005model\030\001 \001(\t\"\"\n\021TuneModelMetadata"
- + "\022\r\n\005model\030\001 \001(\t\"\023\n\021TuneModelResponse2\251\r\n"
- + "\014ModelService\022\213\002\n\013CreateModel\022..google.c"
- + "loud.retail.v2beta.CreateModelRequest\032\035."
- + "google.longrunning.Operation\"\254\001\312AR\n goog"
- + "le.cloud.retail.v2beta.Model\022.google.clo"
- + "ud.retail.v2beta.CreateModelMetadata\332A\014p"
- + "arent,model\202\323\344\223\002B\"9/v2beta/{parent=proje"
- + "cts/*/locations/*/catalogs/*}/models:\005mo"
- + "del\022\244\001\n\010GetModel\022+.google.cloud.retail.v"
- + "2beta.GetModelRequest\032!.google.cloud.ret"
- + "ail.v2beta.Model\"H\332A\004name\202\323\344\223\002;\0229/v2beta"
- + "/{name=projects/*/locations/*/catalogs/*"
- + "/models/*}\022\261\001\n\nPauseModel\022-.google.cloud"
- + ".retail.v2beta.PauseModelRequest\032!.googl"
- + "e.cloud.retail.v2beta.Model\"Q\332A\004name\202\323\344\223"
- + "\002D\"?/v2beta/{name=projects/*/locations/*"
- + "/catalogs/*/models/*}:pause:\001*\022\264\001\n\013Resum"
- + "eModel\022..google.cloud.retail.v2beta.Resu"
- + "meModelRequest\032!.google.cloud.retail.v2b"
- + "eta.Model\"R\332A\004name\202\323\344\223\002E\"@/v2beta/{name="
- + "projects/*/locations/*/catalogs/*/models"
- + "/*}:resume:\001*\022\237\001\n\013DeleteModel\022..google.c"
- + "loud.retail.v2beta.DeleteModelRequest\032\026."
- + "google.protobuf.Empty\"H\332A\004name\202\323\344\223\002;*9/v"
- + "2beta/{name=projects/*/locations/*/catal"
- + "ogs/*/models/*}\022\267\001\n\nListModels\022-.google."
- + "cloud.retail.v2beta.ListModelsRequest\032.."
- + "google.cloud.retail.v2beta.ListModelsRes"
- + "ponse\"J\332A\006parent\202\323\344\223\002;\0229/v2beta/{parent="
- + "projects/*/locations/*/catalogs/*}/model"
- + "s\022\304\001\n\013UpdateModel\022..google.cloud.retail."
- + "v2beta.UpdateModelRequest\032!.google.cloud"
- + ".retail.v2beta.Model\"b\332A\021model,update_ma"
- + "sk\202\323\344\223\002H2?/v2beta/{model.name=projects/*"
- + "/locations/*/catalogs/*/models/*}:\005model"
- + "\022\212\002\n\tTuneModel\022,.google.cloud.retail.v2b"
- + "eta.TuneModelRequest\032\035.google.longrunnin"
- + "g.Operation\"\257\001\312A\\\n,google.cloud.retail.v"
- + "2beta.TuneModelResponse\022,google.cloud.re"
- + "tail.v2beta.TuneModelMetadata\332A\004name\202\323\344\223"
- + "\002C\">/v2beta/{name=projects/*/locations/*"
- + "/catalogs/*/models/*}:tune:\001*\032I\312A\025retail"
- + ".googleapis.com\322A.https://www.googleapis"
- + ".com/auth/cloud-platformB\320\001\n\036com.google."
- + "cloud.retail.v2betaB\021ModelServiceProtoP\001"
- + "Z6cloud.google.com/go/retail/apiv2beta/r"
- + "etailpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud"
- + ".Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2b"
- + "eta\352\002\035Google::Cloud::Retail::V2betab\006pro"
- + "to3"
+ + "_mask.proto\"\230\001\n\022CreateModelRequest\0225\n\006pa"
+ + "rent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.co"
+ + "m/Catalog\0225\n\005model\030\002 \001(\0132!.google.cloud."
+ + "retail.v2beta.ModelB\003\340A\002\022\024\n\007dry_run\030\003 \001("
+ + "\010B\003\340A\001\"\201\001\n\022UpdateModelRequest\0225\n\005model\030\001"
+ + " \001(\0132!.google.cloud.retail.v2beta.ModelB"
+ + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto"
+ + "buf.FieldMaskB\003\340A\001\"D\n\017GetModelRequest\0221\n"
+ + "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033retail.googleapis.c"
+ + "om/Model\"F\n\021PauseModelRequest\0221\n\004name\030\001 "
+ + "\001(\tB#\340A\002\372A\035\n\033retail.googleapis.com/Model"
+ + "\"\'\n\022ResumeModelRequest\022\021\n\004name\030\001 \001(\tB\003\340A"
+ + "\002\"{\n\021ListModelsRequest\0225\n\006parent\030\001 \001(\tB%"
+ + "\340A\002\372A\037\n\035retail.googleapis.com/Catalog\022\026\n"
+ + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001("
+ + "\tB\003\340A\001\"G\n\022DeleteModelRequest\0221\n\004name\030\001 \001"
+ + "(\tB#\340A\002\372A\035\n\033retail.googleapis.com/Model\""
+ + "`\n\022ListModelsResponse\0221\n\006models\030\001 \003(\0132!."
+ + "google.cloud.retail.v2beta.Model\022\027\n\017next"
+ + "_page_token\030\002 \001(\t\"E\n\020TuneModelRequest\0221\n"
+ + "\004name\030\001 \001(\tB#\340A\002\372A\035\n\033retail.googleapis.c"
+ + "om/Model\"$\n\023CreateModelMetadata\022\r\n\005model"
+ + "\030\001 \001(\t\"\"\n\021TuneModelMetadata\022\r\n\005model\030\001 \001"
+ + "(\t\"\023\n\021TuneModelResponse2\251\r\n\014ModelService"
+ + "\022\213\002\n\013CreateModel\022..google.cloud.retail.v"
+ + "2beta.CreateModelRequest\032\035.google.longru"
+ + "nning.Operation\"\254\001\312AR\n google.cloud.reta"
+ + "il.v2beta.Model\022.google.cloud.retail.v2b"
+ + "eta.CreateModelMetadata\332A\014parent,model\202\323"
+ + "\344\223\002B\"9/v2beta/{parent=projects/*/locatio"
+ + "ns/*/catalogs/*}/models:\005model\022\244\001\n\010GetMo"
+ + "del\022+.google.cloud.retail.v2beta.GetMode"
+ + "lRequest\032!.google.cloud.retail.v2beta.Mo"
+ + "del\"H\332A\004name\202\323\344\223\002;\0229/v2beta/{name=projec"
+ + "ts/*/locations/*/catalogs/*/models/*}\022\261\001"
+ + "\n\nPauseModel\022-.google.cloud.retail.v2bet"
+ + "a.PauseModelRequest\032!.google.cloud.retai"
+ + "l.v2beta.Model\"Q\332A\004name\202\323\344\223\002D\"?/v2beta/{"
+ + "name=projects/*/locations/*/catalogs/*/m"
+ + "odels/*}:pause:\001*\022\264\001\n\013ResumeModel\022..goog"
+ + "le.cloud.retail.v2beta.ResumeModelReques"
+ + "t\032!.google.cloud.retail.v2beta.Model\"R\332A"
+ + "\004name\202\323\344\223\002E\"@/v2beta/{name=projects/*/lo"
+ + "cations/*/catalogs/*/models/*}:resume:\001*"
+ + "\022\237\001\n\013DeleteModel\022..google.cloud.retail.v"
+ + "2beta.DeleteModelRequest\032\026.google.protob"
+ + "uf.Empty\"H\332A\004name\202\323\344\223\002;*9/v2beta/{name=p"
+ + "rojects/*/locations/*/catalogs/*/models/"
+ + "*}\022\267\001\n\nListModels\022-.google.cloud.retail."
+ + "v2beta.ListModelsRequest\032..google.cloud."
+ + "retail.v2beta.ListModelsResponse\"J\332A\006par"
+ + "ent\202\323\344\223\002;\0229/v2beta/{parent=projects/*/lo"
+ + "cations/*/catalogs/*}/models\022\304\001\n\013UpdateM"
+ + "odel\022..google.cloud.retail.v2beta.Update"
+ + "ModelRequest\032!.google.cloud.retail.v2bet"
+ + "a.Model\"b\332A\021model,update_mask\202\323\344\223\002H2?/v2"
+ + "beta/{model.name=projects/*/locations/*/"
+ + "catalogs/*/models/*}:\005model\022\212\002\n\tTuneMode"
+ + "l\022,.google.cloud.retail.v2beta.TuneModel"
+ + "Request\032\035.google.longrunning.Operation\"\257"
+ + "\001\312A\\\n,google.cloud.retail.v2beta.TuneMod"
+ + "elResponse\022,google.cloud.retail.v2beta.T"
+ + "uneModelMetadata\332A\004name\202\323\344\223\002C\">/v2beta/{"
+ + "name=projects/*/locations/*/catalogs/*/m"
+ + "odels/*}:tune:\001*\032I\312A\025retail.googleapis.c"
+ + "om\322A.https://www.googleapis.com/auth/clo"
+ + "ud-platformB\320\001\n\036com.google.cloud.retail."
+ + "v2betaB\021ModelServiceProtoP\001Z6cloud.googl"
+ + "e.com/go/retail/apiv2beta/retailpb;retai"
+ + "lpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Bet"
+ + "a\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google:"
+ + ":Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceProto.java
index 9dfa3be84fb6..eca5a693e014 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceProto.java
@@ -67,43 +67,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "api/client.proto\032\037google/api/field_behav"
+ "ior.proto\032\031google/api/resource.proto\032+go"
+ "ogle/cloud/retail/v2beta/user_event.prot"
- + "o\032\034google/protobuf/struct.proto\"\302\003\n\016Pred"
- + "ictRequest\022\027\n\tplacement\030\001 \001(\tB\004\342A\001\002\022?\n\nu"
- + "ser_event\030\002 \001(\0132%.google.cloud.retail.v2"
- + "beta.UserEventB\004\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022"
- + "\026\n\npage_token\030\004 \001(\tB\002\030\001\022\016\n\006filter\030\005 \001(\t\022"
- + "\025\n\rvalidate_only\030\006 \001(\010\022F\n\006params\030\007 \003(\01326"
- + ".google.cloud.retail.v2beta.PredictReque"
- + "st.ParamsEntry\022F\n\006labels\030\010 \003(\01326.google."
- + "cloud.retail.v2beta.PredictRequest.Label"
- + "sEntry\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va"
- + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032-\n"
- + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
- + ":\0028\001\"\357\002\n\017PredictResponse\022M\n\007results\030\001 \003("
- + "\0132<.google.cloud.retail.v2beta.PredictRe"
- + "sponse.PredictionResult\022\031\n\021attribution_t"
- + "oken\030\002 \001(\t\022\023\n\013missing_ids\030\003 \003(\t\022\025\n\rvalid"
- + "ate_only\030\004 \001(\010\032\305\001\n\020PredictionResult\022\n\n\002i"
- + "d\030\001 \001(\t\022\\\n\010metadata\030\002 \003(\0132J.google.cloud"
- + ".retail.v2beta.PredictResponse.Predictio"
- + "nResult.MetadataEntry\032G\n\rMetadataEntry\022\013"
- + "\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.prot"
- + "obuf.Value:\0028\0012\361\002\n\021PredictionService\022\220\002\n"
- + "\007Predict\022*.google.cloud.retail.v2beta.Pr"
- + "edictRequest\032+.google.cloud.retail.v2bet"
- + "a.PredictResponse\"\253\001\202\323\344\223\002\244\001\"J/v2beta/{pl"
- + "acement=projects/*/locations/*/catalogs/"
- + "*/placements/*}:predict:\001*ZS\"N/v2beta/{p"
- + "lacement=projects/*/locations/*/catalogs"
- + "/*/servingConfigs/*}:predict:\001*\032I\312A\025reta"
- + "il.googleapis.com\322A.https://www.googleap"
- + "is.com/auth/cloud-platformB\325\001\n\036com.googl"
- + "e.cloud.retail.v2betaB\026PredictionService"
- + "ProtoP\001Z6cloud.google.com/go/retail/apiv"
- + "2beta/retailpb;retailpb\242\002\006RETAIL\252\002\032Googl"
- + "e.Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\Ret"
- + "ail\\V2beta\352\002\035Google::Cloud::Retail::V2be"
- + "tab\006proto3"
+ + "o\032\034google/protobuf/struct.proto\"\300\003\n\016Pred"
+ + "ictRequest\022\026\n\tplacement\030\001 \001(\tB\003\340A\002\022>\n\nus"
+ + "er_event\030\002 \001(\0132%.google.cloud.retail.v2b"
+ + "eta.UserEventB\003\340A\002\022\021\n\tpage_size\030\003 \001(\005\022\026\n"
+ + "\npage_token\030\004 \001(\tB\002\030\001\022\016\n\006filter\030\005 \001(\t\022\025\n"
+ + "\rvalidate_only\030\006 \001(\010\022F\n\006params\030\007 \003(\01326.g"
+ + "oogle.cloud.retail.v2beta.PredictRequest"
+ + ".ParamsEntry\022F\n\006labels\030\010 \003(\01326.google.cl"
+ + "oud.retail.v2beta.PredictRequest.LabelsE"
+ + "ntry\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005valu"
+ + "e\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032-\n\013L"
+ + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
+ + "8\001\"\357\002\n\017PredictResponse\022M\n\007results\030\001 \003(\0132"
+ + "<.google.cloud.retail.v2beta.PredictResp"
+ + "onse.PredictionResult\022\031\n\021attribution_tok"
+ + "en\030\002 \001(\t\022\023\n\013missing_ids\030\003 \003(\t\022\025\n\rvalidat"
+ + "e_only\030\004 \001(\010\032\305\001\n\020PredictionResult\022\n\n\002id\030"
+ + "\001 \001(\t\022\\\n\010metadata\030\002 \003(\0132J.google.cloud.r"
+ + "etail.v2beta.PredictResponse.PredictionR"
+ + "esult.MetadataEntry\032G\n\rMetadataEntry\022\013\n\003"
+ + "key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protob"
+ + "uf.Value:\0028\0012\361\002\n\021PredictionService\022\220\002\n\007P"
+ + "redict\022*.google.cloud.retail.v2beta.Pred"
+ + "ictRequest\032+.google.cloud.retail.v2beta."
+ + "PredictResponse\"\253\001\202\323\344\223\002\244\001\"J/v2beta/{plac"
+ + "ement=projects/*/locations/*/catalogs/*/"
+ + "placements/*}:predict:\001*ZS\"N/v2beta/{pla"
+ + "cement=projects/*/locations/*/catalogs/*"
+ + "/servingConfigs/*}:predict:\001*\032I\312A\025retail"
+ + ".googleapis.com\322A.https://www.googleapis"
+ + ".com/auth/cloud-platformB\325\001\n\036com.google."
+ + "cloud.retail.v2betaB\026PredictionServicePr"
+ + "otoP\001Z6cloud.google.com/go/retail/apiv2b"
+ + "eta/retailpb;retailpb\242\002\006RETAIL\252\002\032Google."
+ + "Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\Retai"
+ + "l\\V2beta\352\002\035Google::Cloud::Retail::V2beta"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductProto.java
index ae66ab21d77e..e1d6cee92580 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductProto.java
@@ -53,61 +53,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "promotion.proto\032\036google/protobuf/duratio"
+ "n.proto\032 google/protobuf/field_mask.prot"
+ "o\032\037google/protobuf/timestamp.proto\032\036goog"
- + "le/protobuf/wrappers.proto\"\226\016\n\007Product\0221"
+ + "le/protobuf/wrappers.proto\"\217\016\n\007Product\0221"
+ "\n\013expire_time\030\020 \001(\0132\032.google.protobuf.Ti"
- + "mestampH\000\022.\n\003ttl\030\021 \001(\0132\031.google.protobuf"
- + ".DurationB\004\342A\001\004H\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\020\n"
- + "\002id\030\002 \001(\tB\004\342A\001\005\022<\n\004type\030\003 \001(\0162(.google.c"
- + "loud.retail.v2beta.Product.TypeB\004\342A\001\005\022\032\n"
- + "\022primary_product_id\030\004 \001(\t\022\035\n\025collection_"
- + "member_ids\030\005 \003(\t\022\014\n\004gtin\030\006 \001(\t\022\022\n\ncatego"
- + "ries\030\007 \003(\t\022\023\n\005title\030\010 \001(\tB\004\342A\001\002\022\016\n\006brand"
- + "s\030\t \003(\t\022\023\n\013description\030\n \001(\t\022\025\n\rlanguage"
- + "_code\030\013 \001(\t\022G\n\nattributes\030\014 \003(\01323.google"
- + ".cloud.retail.v2beta.Product.AttributesE"
- + "ntry\022\014\n\004tags\030\r \003(\t\0229\n\nprice_info\030\016 \001(\0132%"
- + ".google.cloud.retail.v2beta.PriceInfo\0222\n"
- + "\006rating\030\017 \001(\0132\".google.cloud.retail.v2be"
- + "ta.Rating\0222\n\016available_time\030\022 \001(\0132\032.goog"
- + "le.protobuf.Timestamp\022F\n\014availability\030\023 "
- + "\001(\01620.google.cloud.retail.v2beta.Product"
- + ".Availability\0227\n\022available_quantity\030\024 \001("
- + "\0132\033.google.protobuf.Int32Value\022E\n\020fulfil"
- + "lment_info\030\025 \003(\0132+.google.cloud.retail.v"
- + "2beta.FulfillmentInfo\022\013\n\003uri\030\026 \001(\t\0221\n\006im"
- + "ages\030\027 \003(\0132!.google.cloud.retail.v2beta."
- + "Image\0226\n\010audience\030\030 \001(\0132$.google.cloud.r"
- + "etail.v2beta.Audience\0229\n\ncolor_info\030\031 \001("
- + "\0132%.google.cloud.retail.v2beta.ColorInfo"
- + "\022\r\n\005sizes\030\032 \003(\t\022\021\n\tmaterials\030\033 \003(\t\022\020\n\010pa"
- + "tterns\030\034 \003(\t\022\022\n\nconditions\030\035 \003(\t\0229\n\nprom"
- + "otions\030\" \003(\0132%.google.cloud.retail.v2bet"
- + "a.Promotion\0220\n\014publish_time\030! \001(\0132\032.goog"
- + "le.protobuf.Timestamp\022:\n\022retrievable_fie"
- + "lds\030\036 \001(\0132\032.google.protobuf.FieldMaskB\002\030"
- + "\001\022;\n\010variants\030\037 \003(\0132#.google.cloud.retai"
- + "l.v2beta.ProductB\004\342A\001\003\022K\n\021local_inventor"
- + "ies\030# \003(\0132*.google.cloud.retail.v2beta.L"
- + "ocalInventoryB\004\342A\001\003\032^\n\017AttributesEntry\022\013"
- + "\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google.clou"
- + "d.retail.v2beta.CustomAttribute:\0028\001\"F\n\004T"
- + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007PRIMARY\020\001\022\013"
- + "\n\007VARIANT\020\002\022\016\n\nCOLLECTION\020\003\"i\n\014Availabil"
- + "ity\022\034\n\030AVAILABILITY_UNSPECIFIED\020\000\022\014\n\010IN_"
- + "STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\014\n\010PREORDER\020\003\022"
- + "\r\n\tBACKORDER\020\004:\204\001\352A\200\001\n\035retail.googleapis"
- + ".com/Product\022_projects/{project}/locatio"
- + "ns/{location}/catalogs/{catalog}/branche"
- + "s/{branch}/products/{product}B\014\n\nexpirat"
- + "ionB\272\002\n\036com.google.cloud.retail.v2betaB\014"
- + "ProductProtoP\001Z6cloud.google.com/go/reta"
- + "il/apiv2beta/retailpb;retailpb\242\002\006RETAIL\252"
- + "\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\Cl"
- + "oud\\Retail\\V2beta\352\002\035Google::Cloud::Retai"
- + "l::V2beta\352Al\n\034retail.googleapis.com/Bran"
- + "ch\022Lprojects/{project}/locations/{locati"
- + "on}/catalogs/{catalog}/branches/{branch}"
- + "b\006proto3"
+ + "mestampH\000\022-\n\003ttl\030\021 \001(\0132\031.google.protobuf"
+ + ".DurationB\003\340A\004H\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\017\n\002i"
+ + "d\030\002 \001(\tB\003\340A\005\022;\n\004type\030\003 \001(\0162(.google.clou"
+ + "d.retail.v2beta.Product.TypeB\003\340A\005\022\032\n\022pri"
+ + "mary_product_id\030\004 \001(\t\022\035\n\025collection_memb"
+ + "er_ids\030\005 \003(\t\022\014\n\004gtin\030\006 \001(\t\022\022\n\ncategories"
+ + "\030\007 \003(\t\022\022\n\005title\030\010 \001(\tB\003\340A\002\022\016\n\006brands\030\t \003"
+ + "(\t\022\023\n\013description\030\n \001(\t\022\025\n\rlanguage_code"
+ + "\030\013 \001(\t\022G\n\nattributes\030\014 \003(\01323.google.clou"
+ + "d.retail.v2beta.Product.AttributesEntry\022"
+ + "\014\n\004tags\030\r \003(\t\0229\n\nprice_info\030\016 \001(\0132%.goog"
+ + "le.cloud.retail.v2beta.PriceInfo\0222\n\006rati"
+ + "ng\030\017 \001(\0132\".google.cloud.retail.v2beta.Ra"
+ + "ting\0222\n\016available_time\030\022 \001(\0132\032.google.pr"
+ + "otobuf.Timestamp\022F\n\014availability\030\023 \001(\01620"
+ + ".google.cloud.retail.v2beta.Product.Avai"
+ + "lability\0227\n\022available_quantity\030\024 \001(\0132\033.g"
+ + "oogle.protobuf.Int32Value\022E\n\020fulfillment"
+ + "_info\030\025 \003(\0132+.google.cloud.retail.v2beta"
+ + ".FulfillmentInfo\022\013\n\003uri\030\026 \001(\t\0221\n\006images\030"
+ + "\027 \003(\0132!.google.cloud.retail.v2beta.Image"
+ + "\0226\n\010audience\030\030 \001(\0132$.google.cloud.retail"
+ + ".v2beta.Audience\0229\n\ncolor_info\030\031 \001(\0132%.g"
+ + "oogle.cloud.retail.v2beta.ColorInfo\022\r\n\005s"
+ + "izes\030\032 \003(\t\022\021\n\tmaterials\030\033 \003(\t\022\020\n\010pattern"
+ + "s\030\034 \003(\t\022\022\n\nconditions\030\035 \003(\t\0229\n\npromotion"
+ + "s\030\" \003(\0132%.google.cloud.retail.v2beta.Pro"
+ + "motion\0220\n\014publish_time\030! \001(\0132\032.google.pr"
+ + "otobuf.Timestamp\022:\n\022retrievable_fields\030\036"
+ + " \001(\0132\032.google.protobuf.FieldMaskB\002\030\001\022:\n\010"
+ + "variants\030\037 \003(\0132#.google.cloud.retail.v2b"
+ + "eta.ProductB\003\340A\003\022J\n\021local_inventories\030# "
+ + "\003(\0132*.google.cloud.retail.v2beta.LocalIn"
+ + "ventoryB\003\340A\003\032^\n\017AttributesEntry\022\013\n\003key\030\001"
+ + " \001(\t\022:\n\005value\030\002 \001(\0132+.google.cloud.retai"
+ + "l.v2beta.CustomAttribute:\0028\001\"F\n\004Type\022\024\n\020"
+ + "TYPE_UNSPECIFIED\020\000\022\013\n\007PRIMARY\020\001\022\013\n\007VARIA"
+ + "NT\020\002\022\016\n\nCOLLECTION\020\003\"i\n\014Availability\022\034\n\030"
+ + "AVAILABILITY_UNSPECIFIED\020\000\022\014\n\010IN_STOCK\020\001"
+ + "\022\020\n\014OUT_OF_STOCK\020\002\022\014\n\010PREORDER\020\003\022\r\n\tBACK"
+ + "ORDER\020\004:\204\001\352A\200\001\n\035retail.googleapis.com/Pr"
+ + "oduct\022_projects/{project}/locations/{loc"
+ + "ation}/catalogs/{catalog}/branches/{bran"
+ + "ch}/products/{product}B\014\n\nexpirationB\272\002\n"
+ + "\036com.google.cloud.retail.v2betaB\014Product"
+ + "ProtoP\001Z6cloud.google.com/go/retail/apiv"
+ + "2beta/retailpb;retailpb\242\002\006RETAIL\252\002\032Googl"
+ + "e.Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\Ret"
+ + "ail\\V2beta\352\002\035Google::Cloud::Retail::V2be"
+ + "ta\352Al\n\034retail.googleapis.com/Branch\022Lpro"
+ + "jects/{project}/locations/{location}/cat"
+ + "alogs/{catalog}/branches/{branch}b\006proto"
+ + "3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java
index 8ef5d18bed24..49605396714e 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java
@@ -132,145 +132,144 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "roto\032#google/longrunning/operations.prot"
+ "o\032\033google/protobuf/empty.proto\032 google/p"
+ "rotobuf/field_mask.proto\032\037google/protobu"
- + "f/timestamp.proto\"\243\001\n\024CreateProductReque"
- + "st\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034retail.goog"
- + "leapis.com/Branch\022:\n\007product\030\002 \001(\0132#.goo"
- + "gle.cloud.retail.v2beta.ProductB\004\342A\001\002\022\030\n"
- + "\nproduct_id\030\003 \001(\tB\004\342A\001\002\"I\n\021GetProductReq"
- + "uest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.goog"
- + "leapis.com/Product\"\232\001\n\024UpdateProductRequ"
- + "est\022:\n\007product\030\001 \001(\0132#.google.cloud.reta"
- + "il.v2beta.ProductB\004\342A\001\002\022/\n\013update_mask\030\002"
- + " \001(\0132\032.google.protobuf.FieldMask\022\025\n\rallo"
- + "w_missing\030\003 \001(\010\"L\n\024DeleteProductRequest\022"
- + "4\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapi"
- + "s.com/Product\"\262\001\n\023ListProductsRequest\0225\n"
- + "\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034retail.googleapi"
- + "s.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_"
- + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread_mask"
- + "\030\005 \001(\0132\032.google.protobuf.FieldMask\"f\n\024Li"
- + "stProductsResponse\0225\n\010products\030\001 \003(\0132#.g"
- + "oogle.cloud.retail.v2beta.Product\022\027\n\017nex"
- + "t_page_token\030\002 \001(\t\"\306\001\n\023SetInventoryReque"
- + "st\022<\n\tinventory\030\001 \001(\0132#.google.cloud.ret"
- + "ail.v2beta.ProductB\004\342A\001\002\022,\n\010set_mask\030\002 \001"
- + "(\0132\032.google.protobuf.FieldMask\022,\n\010set_ti"
- + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r"
- + "allow_missing\030\004 \001(\010\"\026\n\024SetInventoryMetad"
- + "ata\"\026\n\024SetInventoryResponse\"\310\001\n\033AddFulfi"
- + "llmentPlacesRequest\0227\n\007product\030\001 \001(\tB&\342A"
- + "\001\002\372A\037\n\035retail.googleapis.com/Product\022\022\n\004"
- + "type\030\002 \001(\tB\004\342A\001\002\022\027\n\tplace_ids\030\003 \003(\tB\004\342A\001"
- + "\002\022,\n\010add_time\030\004 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034AddFul"
- + "fillmentPlacesMetadata\"\036\n\034AddFulfillment"
- + "PlacesResponse\"\225\002\n\032AddLocalInventoriesRe"
- + "quest\0227\n\007product\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail."
- + "googleapis.com/Product\022K\n\021local_inventor"
- + "ies\030\002 \003(\0132*.google.cloud.retail.v2beta.L"
- + "ocalInventoryB\004\342A\001\002\022,\n\010add_mask\030\004 \001(\0132\032."
- + "google.protobuf.FieldMask\022,\n\010add_time\030\005 "
- + "\001(\0132\032.google.protobuf.Timestamp\022\025\n\rallow"
- + "_missing\030\006 \001(\010\"\035\n\033AddLocalInventoriesMet"
- + "adata\"\035\n\033AddLocalInventoriesResponse\"\271\001\n"
- + "\035RemoveLocalInventoriesRequest\0227\n\007produc"
- + "t\030\001 \001(\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/"
- + "Product\022\027\n\tplace_ids\030\002 \003(\tB\004\342A\001\002\022/\n\013remo"
- + "ve_time\030\005 \001(\0132\032.google.protobuf.Timestam"
- + "p\022\025\n\rallow_missing\030\003 \001(\010\" \n\036RemoveLocalI"
- + "nventoriesMetadata\" \n\036RemoveLocalInvento"
- + "riesResponse\"\316\001\n\036RemoveFulfillmentPlaces"
- + "Request\0227\n\007product\030\001 \001(\tB&\342A\001\002\372A\037\n\035retai"
- + "l.googleapis.com/Product\022\022\n\004type\030\002 \001(\tB\004"
- + "\342A\001\002\022\027\n\tplace_ids\030\003 \003(\tB\004\342A\001\002\022/\n\013remove_"
- + "time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\025"
- + "\n\rallow_missing\030\005 \001(\010\"!\n\037RemoveFulfillme"
- + "ntPlacesMetadata\"!\n\037RemoveFulfillmentPla"
- + "cesResponse2\306\030\n\016ProductService\022\333\001\n\rCreat"
- + "eProduct\0220.google.cloud.retail.v2beta.Cr"
- + "eateProductRequest\032#.google.cloud.retail"
- + ".v2beta.Product\"s\332A\031parent,product,produ"
- + "ct_id\202\323\344\223\002Q\"F/v2beta/{parent=projects/*/"
- + "locations/*/catalogs/*/branches/*}/produ"
- + "cts:\007product\022\270\001\n\nGetProduct\022-.google.clo"
- + "ud.retail.v2beta.GetProductRequest\032#.goo"
- + "gle.cloud.retail.v2beta.Product\"V\332A\004name"
- + "\202\323\344\223\002I\022G/v2beta/{name=projects/*/locatio"
- + "ns/*/catalogs/*/branches/*/products/**}\022"
- + "\312\001\n\014ListProducts\022/.google.cloud.retail.v"
- + "2beta.ListProductsRequest\0320.google.cloud"
- + ".retail.v2beta.ListProductsResponse\"W\332A\006"
- + "parent\202\323\344\223\002H\022F/v2beta/{parent=projects/*"
- + "/locations/*/catalogs/*/branches/*}/prod"
- + "ucts\022\336\001\n\rUpdateProduct\0220.google.cloud.re"
- + "tail.v2beta.UpdateProductRequest\032#.googl"
- + "e.cloud.retail.v2beta.Product\"v\332A\023produc"
- + "t,update_mask\202\323\344\223\002Z2O/v2beta/{product.na"
- + "me=projects/*/locations/*/catalogs/*/bra"
- + "nches/*/products/**}:\007product\022\261\001\n\rDelete"
- + "Product\0220.google.cloud.retail.v2beta.Del"
- + "eteProductRequest\032\026.google.protobuf.Empt"
- + "y\"V\332A\004name\202\323\344\223\002I*G/v2beta/{name=projects"
- + "/*/locations/*/catalogs/*/branches/*/pro"
- + "ducts/**}\022\236\002\n\016ImportProducts\0221.google.cl"
- + "oud.retail.v2beta.ImportProductsRequest\032"
- + "\035.google.longrunning.Operation\"\271\001\312A^\n1go"
- + "ogle.cloud.retail.v2beta.ImportProductsR"
- + "esponse\022)google.cloud.retail.v2beta.Impo"
- + "rtMetadata\202\323\344\223\002R\"M/v2beta/{parent=projec"
- + "ts/*/locations/*/catalogs/*/branches/*}/"
- + "products:import:\001*\022\304\002\n\014SetInventory\022/.go"
- + "ogle.cloud.retail.v2beta.SetInventoryReq"
- + "uest\032\035.google.longrunning.Operation\"\343\001\312A"
- + "b\n/google.cloud.retail.v2beta.SetInvento"
- + "ryResponse\022/google.cloud.retail.v2beta.S"
- + "etInventoryMetadata\332A\022inventory,set_mask"
- + "\202\323\344\223\002c\"^/v2beta/{inventory.name=projects"
- + "/*/locations/*/catalogs/*/branches/*/pro"
- + "ducts/**}:setInventory:\001*\022\332\002\n\024AddFulfill"
- + "mentPlaces\0227.google.cloud.retail.v2beta."
- + "AddFulfillmentPlacesRequest\032\035.google.lon"
- + "grunning.Operation\"\351\001\312Ar\n7google.cloud.r"
- + "etail.v2beta.AddFulfillmentPlacesRespons"
- + "e\0227google.cloud.retail.v2beta.AddFulfill"
- + "mentPlacesMetadata\332A\007product\202\323\344\223\002d\"_/v2b"
- + "eta/{product=projects/*/locations/*/cata"
- + "logs/*/branches/*/products/**}:addFulfil"
- + "lmentPlaces:\001*\022\351\002\n\027RemoveFulfillmentPlac"
- + "es\022:.google.cloud.retail.v2beta.RemoveFu"
- + "lfillmentPlacesRequest\032\035.google.longrunn"
- + "ing.Operation\"\362\001\312Ax\n:google.cloud.retail"
- + ".v2beta.RemoveFulfillmentPlacesResponse\022"
- + ":google.cloud.retail.v2beta.RemoveFulfil"
- + "lmentPlacesMetadata\332A\007product\202\323\344\223\002g\"b/v2"
- + "beta/{product=projects/*/locations/*/cat"
- + "alogs/*/branches/*/products/**}:removeFu"
- + "lfillmentPlaces:\001*\022\325\002\n\023AddLocalInventori"
- + "es\0226.google.cloud.retail.v2beta.AddLocal"
- + "InventoriesRequest\032\035.google.longrunning."
- + "Operation\"\346\001\312Ap\n6google.cloud.retail.v2b"
- + "eta.AddLocalInventoriesResponse\0226google."
- + "cloud.retail.v2beta.AddLocalInventoriesM"
- + "etadata\332A\007product\202\323\344\223\002c\"^/v2beta/{produc"
- + "t=projects/*/locations/*/catalogs/*/bran"
- + "ches/*/products/**}:addLocalInventories:"
- + "\001*\022\344\002\n\026RemoveLocalInventories\0229.google.c"
- + "loud.retail.v2beta.RemoveLocalInventorie"
- + "sRequest\032\035.google.longrunning.Operation\""
- + "\357\001\312Av\n9google.cloud.retail.v2beta.Remove"
- + "LocalInventoriesResponse\0229google.cloud.r"
- + "etail.v2beta.RemoveLocalInventoriesMetad"
- + "ata\332A\007product\202\323\344\223\002f\"a/v2beta/{product=pr"
- + "ojects/*/locations/*/catalogs/*/branches"
- + "/*/products/**}:removeLocalInventories:\001"
- + "*\032I\312A\025retail.googleapis.com\322A.https://ww"
- + "w.googleapis.com/auth/cloud-platformB\322\001\n"
- + "\036com.google.cloud.retail.v2betaB\023Product"
- + "ServiceProtoP\001Z6cloud.google.com/go/reta"
- + "il/apiv2beta/retailpb;retailpb\242\002\006RETAIL\252"
- + "\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\Cl"
- + "oud\\Retail\\V2beta\352\002\035Google::Cloud::Retai"
- + "l::V2betab\006proto3"
+ + "f/timestamp.proto\"\240\001\n\024CreateProductReque"
+ + "st\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail.googl"
+ + "eapis.com/Branch\0229\n\007product\030\002 \001(\0132#.goog"
+ + "le.cloud.retail.v2beta.ProductB\003\340A\002\022\027\n\np"
+ + "roduct_id\030\003 \001(\tB\003\340A\002\"H\n\021GetProductReques"
+ + "t\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap"
+ + "is.com/Product\"\231\001\n\024UpdateProductRequest\022"
+ + "9\n\007product\030\001 \001(\0132#.google.cloud.retail.v"
+ + "2beta.ProductB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132"
+ + "\032.google.protobuf.FieldMask\022\025\n\rallow_mis"
+ + "sing\030\003 \001(\010\"K\n\024DeleteProductRequest\0223\n\004na"
+ + "me\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/"
+ + "Product\"\261\001\n\023ListProductsRequest\0224\n\006paren"
+ + "t\030\001 \001(\tB$\340A\002\372A\036\n\034retail.googleapis.com/B"
+ + "ranch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003"
+ + " \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132"
+ + "\032.google.protobuf.FieldMask\"f\n\024ListProdu"
+ + "ctsResponse\0225\n\010products\030\001 \003(\0132#.google.c"
+ + "loud.retail.v2beta.Product\022\027\n\017next_page_"
+ + "token\030\002 \001(\t\"\305\001\n\023SetInventoryRequest\022;\n\ti"
+ + "nventory\030\001 \001(\0132#.google.cloud.retail.v2b"
+ + "eta.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001(\0132\032.goo"
+ + "gle.protobuf.FieldMask\022,\n\010set_time\030\003 \001(\013"
+ + "2\032.google.protobuf.Timestamp\022\025\n\rallow_mi"
+ + "ssing\030\004 \001(\010\"\026\n\024SetInventoryMetadata\"\026\n\024S"
+ + "etInventoryResponse\"\305\001\n\033AddFulfillmentPl"
+ + "acesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035re"
+ + "tail.googleapis.com/Product\022\021\n\004type\030\002 \001("
+ + "\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n\010add_ti"
+ + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r"
+ + "allow_missing\030\005 \001(\010\"\036\n\034AddFulfillmentPla"
+ + "cesMetadata\"\036\n\034AddFulfillmentPlacesRespo"
+ + "nse\"\223\002\n\032AddLocalInventoriesRequest\0226\n\007pr"
+ + "oduct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.c"
+ + "om/Product\022J\n\021local_inventories\030\002 \003(\0132*."
+ + "google.cloud.retail.v2beta.LocalInventor"
+ + "yB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google.protob"
+ + "uf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032.google."
+ + "protobuf.Timestamp\022\025\n\rallow_missing\030\006 \001("
+ + "\010\"\035\n\033AddLocalInventoriesMetadata\"\035\n\033AddL"
+ + "ocalInventoriesResponse\"\267\001\n\035RemoveLocalI"
+ + "nventoriesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372"
+ + "A\037\n\035retail.googleapis.com/Product\022\026\n\tpla"
+ + "ce_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030\005 \001(\0132\032"
+ + ".google.protobuf.Timestamp\022\025\n\rallow_miss"
+ + "ing\030\003 \001(\010\" \n\036RemoveLocalInventoriesMetad"
+ + "ata\" \n\036RemoveLocalInventoriesResponse\"\313\001"
+ + "\n\036RemoveFulfillmentPlacesRequest\0226\n\007prod"
+ + "uct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com"
+ + "/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tplace_ids"
+ + "\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\022\025\n\rallow_missing\030\005 "
+ + "\001(\010\"!\n\037RemoveFulfillmentPlacesMetadata\"!"
+ + "\n\037RemoveFulfillmentPlacesResponse2\306\030\n\016Pr"
+ + "oductService\022\333\001\n\rCreateProduct\0220.google."
+ + "cloud.retail.v2beta.CreateProductRequest"
+ + "\032#.google.cloud.retail.v2beta.Product\"s\332"
+ + "A\031parent,product,product_id\202\323\344\223\002Q\"F/v2be"
+ + "ta/{parent=projects/*/locations/*/catalo"
+ + "gs/*/branches/*}/products:\007product\022\270\001\n\nG"
+ + "etProduct\022-.google.cloud.retail.v2beta.G"
+ + "etProductRequest\032#.google.cloud.retail.v"
+ + "2beta.Product\"V\332A\004name\202\323\344\223\002I\022G/v2beta/{n"
+ + "ame=projects/*/locations/*/catalogs/*/br"
+ + "anches/*/products/**}\022\312\001\n\014ListProducts\022/"
+ + ".google.cloud.retail.v2beta.ListProducts"
+ + "Request\0320.google.cloud.retail.v2beta.Lis"
+ + "tProductsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v2b"
+ + "eta/{parent=projects/*/locations/*/catal"
+ + "ogs/*/branches/*}/products\022\336\001\n\rUpdatePro"
+ + "duct\0220.google.cloud.retail.v2beta.Update"
+ + "ProductRequest\032#.google.cloud.retail.v2b"
+ + "eta.Product\"v\332A\023product,update_mask\202\323\344\223\002"
+ + "Z2O/v2beta/{product.name=projects/*/loca"
+ + "tions/*/catalogs/*/branches/*/products/*"
+ + "*}:\007product\022\261\001\n\rDeleteProduct\0220.google.c"
+ + "loud.retail.v2beta.DeleteProductRequest\032"
+ + "\026.google.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G"
+ + "/v2beta/{name=projects/*/locations/*/cat"
+ + "alogs/*/branches/*/products/**}\022\236\002\n\016Impo"
+ + "rtProducts\0221.google.cloud.retail.v2beta."
+ + "ImportProductsRequest\032\035.google.longrunni"
+ + "ng.Operation\"\271\001\312A^\n1google.cloud.retail."
+ + "v2beta.ImportProductsResponse\022)google.cl"
+ + "oud.retail.v2beta.ImportMetadata\202\323\344\223\002R\"M"
+ + "/v2beta/{parent=projects/*/locations/*/c"
+ + "atalogs/*/branches/*}/products:import:\001*"
+ + "\022\304\002\n\014SetInventory\022/.google.cloud.retail."
+ + "v2beta.SetInventoryRequest\032\035.google.long"
+ + "running.Operation\"\343\001\312Ab\n/google.cloud.re"
+ + "tail.v2beta.SetInventoryResponse\022/google"
+ + ".cloud.retail.v2beta.SetInventoryMetadat"
+ + "a\332A\022inventory,set_mask\202\323\344\223\002c\"^/v2beta/{i"
+ + "nventory.name=projects/*/locations/*/cat"
+ + "alogs/*/branches/*/products/**}:setInven"
+ + "tory:\001*\022\332\002\n\024AddFulfillmentPlaces\0227.googl"
+ + "e.cloud.retail.v2beta.AddFulfillmentPlac"
+ + "esRequest\032\035.google.longrunning.Operation"
+ + "\"\351\001\312Ar\n7google.cloud.retail.v2beta.AddFu"
+ + "lfillmentPlacesResponse\0227google.cloud.re"
+ + "tail.v2beta.AddFulfillmentPlacesMetadata"
+ + "\332A\007product\202\323\344\223\002d\"_/v2beta/{product=proje"
+ + "cts/*/locations/*/catalogs/*/branches/*/"
+ + "products/**}:addFulfillmentPlaces:\001*\022\351\002\n"
+ + "\027RemoveFulfillmentPlaces\022:.google.cloud."
+ + "retail.v2beta.RemoveFulfillmentPlacesReq"
+ + "uest\032\035.google.longrunning.Operation\"\362\001\312A"
+ + "x\n:google.cloud.retail.v2beta.RemoveFulf"
+ + "illmentPlacesResponse\022:google.cloud.reta"
+ + "il.v2beta.RemoveFulfillmentPlacesMetadat"
+ + "a\332A\007product\202\323\344\223\002g\"b/v2beta/{product=proj"
+ + "ects/*/locations/*/catalogs/*/branches/*"
+ + "/products/**}:removeFulfillmentPlaces:\001*"
+ + "\022\325\002\n\023AddLocalInventories\0226.google.cloud."
+ + "retail.v2beta.AddLocalInventoriesRequest"
+ + "\032\035.google.longrunning.Operation\"\346\001\312Ap\n6g"
+ + "oogle.cloud.retail.v2beta.AddLocalInvent"
+ + "oriesResponse\0226google.cloud.retail.v2bet"
+ + "a.AddLocalInventoriesMetadata\332A\007product\202"
+ + "\323\344\223\002c\"^/v2beta/{product=projects/*/locat"
+ + "ions/*/catalogs/*/branches/*/products/**"
+ + "}:addLocalInventories:\001*\022\344\002\n\026RemoveLocal"
+ + "Inventories\0229.google.cloud.retail.v2beta"
+ + ".RemoveLocalInventoriesRequest\032\035.google."
+ + "longrunning.Operation\"\357\001\312Av\n9google.clou"
+ + "d.retail.v2beta.RemoveLocalInventoriesRe"
+ + "sponse\0229google.cloud.retail.v2beta.Remov"
+ + "eLocalInventoriesMetadata\332A\007product\202\323\344\223\002"
+ + "f\"a/v2beta/{product=projects/*/locations"
+ + "/*/catalogs/*/branches/*/products/**}:re"
+ + "moveLocalInventories:\001*\032I\312A\025retail.googl"
+ + "eapis.com\322A.https://www.googleapis.com/a"
+ + "uth/cloud-platformB\322\001\n\036com.google.cloud."
+ + "retail.v2betaB\023ProductServiceProtoP\001Z6cl"
+ + "oud.google.com/go/retail/apiv2beta/retai"
+ + "lpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud.Ret"
+ + "ail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352"
+ + "\002\035Google::Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java
index d3ddf6b54f27..cc5c80292858 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java
@@ -52,17 +52,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n-google/cloud/retail/v2beta/purge_confi"
+ "g.proto\022\032google.cloud.retail.v2beta\032\037goo"
+ "gle/api/field_behavior.proto\032\031google/api"
- + "/resource.proto\"\017\n\rPurgeMetadata\"u\n\026Purg"
- + "eUserEventsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002"
- + "\372A\037\n\035retail.googleapis.com/Catalog\022\024\n\006fi"
- + "lter\030\002 \001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"6\n\027Purge"
- + "UserEventsResponse\022\033\n\023purged_events_coun"
- + "t\030\001 \001(\003B\317\001\n\036com.google.cloud.retail.v2be"
- + "taB\020PurgeConfigProtoP\001Z6cloud.google.com"
- + "/go/retail/apiv2beta/retailpb;retailpb\242\002"
- + "\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032G"
- + "oogle\\Cloud\\Retail\\V2beta\352\002\035Google::Clou"
- + "d::Retail::V2betab\006proto3"
+ + "/resource.proto\"\017\n\rPurgeMetadata\"s\n\026Purg"
+ + "eUserEventsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372"
+ + "A\037\n\035retail.googleapis.com/Catalog\022\023\n\006fil"
+ + "ter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"6\n\027PurgeUs"
+ + "erEventsResponse\022\033\n\023purged_events_count\030"
+ + "\001 \001(\003B\317\001\n\036com.google.cloud.retail.v2beta"
+ + "B\020PurgeConfigProtoP\001Z6cloud.google.com/g"
+ + "o/retail/apiv2beta/retailpb;retailpb\242\002\006R"
+ + "ETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Goo"
+ + "gle\\Cloud\\Retail\\V2beta\352\002\035Google::Cloud:"
+ + ":Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceProto.java
index 55db1e1724ea..ac5567da3890 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceProto.java
@@ -121,135 +121,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/cloud/retail/v2beta/common.proto\032(googl"
+ "e/cloud/retail/v2beta/product.proto\032 goo"
+ "gle/protobuf/field_mask.proto\032\034google/pr"
- + "otobuf/struct.proto\"\202\024\n\rSearchRequest\022\027\n"
- + "\tplacement\030\001 \001(\tB\004\342A\001\002\0221\n\006branch\030\002 \001(\tB!"
- + "\372A\036\n\034retail.googleapis.com/Branch\022\r\n\005que"
- + "ry\030\003 \001(\t\022\030\n\nvisitor_id\030\004 \001(\tB\004\342A\001\002\0227\n\tus"
- + "er_info\030\005 \001(\0132$.google.cloud.retail.v2be"
- + "ta.UserInfo\022\021\n\tpage_size\030\007 \001(\005\022\022\n\npage_t"
- + "oken\030\010 \001(\t\022\016\n\006offset\030\t \001(\005\022\016\n\006filter\030\n \001"
- + "(\t\022\030\n\020canonical_filter\030\034 \001(\t\022\020\n\010order_by"
- + "\030\013 \001(\t\022H\n\013facet_specs\030\014 \003(\01323.google.clo"
- + "ud.retail.v2beta.SearchRequest.FacetSpec"
- + "\022Z\n\022dynamic_facet_spec\030\025 \001(\0132:.google.cl"
- + "oud.retail.v2beta.SearchRequest.DynamicF"
- + "acetSpecB\002\030\001\022G\n\nboost_spec\030\r \001(\01323.googl"
- + "e.cloud.retail.v2beta.SearchRequest.Boos"
- + "tSpec\022Z\n\024query_expansion_spec\030\016 \001(\0132<.go"
- + "ogle.cloud.retail.v2beta.SearchRequest.Q"
- + "ueryExpansionSpec\022\033\n\023variant_rollup_keys"
- + "\030\021 \003(\t\022\027\n\017page_categories\030\027 \003(\t\022I\n\013searc"
- + "h_mode\030\037 \001(\01624.google.cloud.retail.v2bet"
- + "a.SearchRequest.SearchMode\022[\n\024personaliz"
- + "ation_spec\030 \001(\0132=.google.cloud.retail.v"
- + "2beta.SearchRequest.PersonalizationSpec\022"
- + "E\n\006labels\030\" \003(\01325.google.cloud.retail.v2"
- + "beta.SearchRequest.LabelsEntry\022a\n\025spell_"
- + "correction_spec\030# \001(\0132=.google.cloud.ret"
- + "ail.v2beta.SearchRequest.SpellCorrection"
- + "SpecH\000\210\001\001\022\016\n\006entity\030& \001(\t\032\233\003\n\tFacetSpec\022"
- + "U\n\tfacet_key\030\001 \001(\0132<.google.cloud.retail"
- + ".v2beta.SearchRequest.FacetSpec.FacetKey"
- + "B\004\342A\001\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\350\001\n\010FacetKey\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\0227\n\t"
- + "intervals\030\002 \003(\0132$.google.cloud.retail.v2"
- + "beta.Interval\022\031\n\021restricted_values\030\003 \003(\t"
- + "\022\020\n\010prefixes\030\010 \003(\t\022\020\n\010contains\030\t \003(\t\022\030\n\020"
- + "case_insensitive\030\n \001(\010\022\020\n\010order_by\030\004 \001(\t"
- + "\022\r\n\005query\030\005 \001(\t\022\026\n\016return_min_max\030\013 \001(\010\032"
- + "\232\001\n\020DynamicFacetSpec\022M\n\004mode\030\001 \001(\0162?.goo"
- + "gle.cloud.retail.v2beta.SearchRequest.Dy"
- + "namicFacetSpec.Mode\"7\n\004Mode\022\024\n\020MODE_UNSP"
- + "ECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002\032\362\001\n"
- + "\tBoostSpec\022e\n\025condition_boost_specs\030\001 \003("
- + "\0132F.google.cloud.retail.v2beta.SearchReq"
- + "uest.BoostSpec.ConditionBoostSpec\022\'\n\032ski"
- + "p_boost_spec_validation\030\002 \001(\010H\000\210\001\001\0326\n\022Co"
- + "nditionBoostSpec\022\021\n\tcondition\030\001 \001(\t\022\r\n\005b"
- + "oost\030\002 \001(\002B\035\n\033_skip_boost_spec_validatio"
- + "n\032\317\001\n\022QueryExpansionSpec\022Y\n\tcondition\030\001 "
- + "\001(\0162F.google.cloud.retail.v2beta.SearchR"
- + "equest.QueryExpansionSpec.Condition\022\036\n\026p"
- + "in_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\003\032\235\001\n\023PersonalizationSpec\022P\n\004m"
- + "ode\030\001 \001(\0162B.google.cloud.retail.v2beta.S"
- + "earchRequest.PersonalizationSpec.Mode\"4\n"
- + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\014\n"
- + "\010DISABLED\020\002\032\244\001\n\023SpellCorrectionSpec\022P\n\004m"
- + "ode\030\001 \001(\0162B.google.cloud.retail.v2beta.S"
- + "earchRequest.SpellCorrectionSpec.Mode\";\n"
- + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTIO"
- + "N_ONLY\020\001\022\010\n\004AUTO\020\002\032-\n\013LabelsEntry\022\013\n\003key"
- + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nSearchMode\022"
- + "\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\027\n\023PRODUCT_"
- + "SEARCH_ONLY\020\001\022\027\n\023FACETED_SEARCH_ONLY\020\002B\030"
- + "\n\026_spell_correction_spec\"\302\013\n\016SearchRespo"
- + "nse\022H\n\007results\030\001 \003(\01327.google.cloud.reta"
- + "il.v2beta.SearchResponse.SearchResult\022@\n"
- + "\006facets\030\002 \003(\01320.google.cloud.retail.v2be"
- + "ta.SearchResponse.Facet\022\022\n\ntotal_size\030\003 "
- + "\001(\005\022\027\n\017corrected_query\030\004 \001(\t\022\031\n\021attribut"
- + "ion_token\030\005 \001(\t\022\027\n\017next_page_token\030\006 \001(\t"
- + "\022[\n\024query_expansion_info\030\007 \001(\0132=.google."
- + "cloud.retail.v2beta.SearchResponse.Query"
- + "ExpansionInfo\022\024\n\014redirect_uri\030\n \001(\t\022\030\n\020a"
- + "pplied_controls\030\014 \003(\t\022m\n\035invalid_conditi"
- + "on_boost_specs\030\016 \003(\0132F.google.cloud.reta"
- + "il.v2beta.SearchRequest.BoostSpec.Condit"
- + "ionBoostSpec\022C\n\017experiment_info\030\021 \003(\0132*."
- + "google.cloud.retail.v2beta.ExperimentInf"
- + "o\032\235\004\n\014SearchResult\022\n\n\002id\030\001 \001(\t\0224\n\007produc"
- + "t\030\002 \001(\0132#.google.cloud.retail.v2beta.Pro"
- + "duct\022\036\n\026matching_variant_count\030\003 \001(\005\022s\n\027"
- + "matching_variant_fields\030\004 \003(\0132R.google.c"
- + "loud.retail.v2beta.SearchResponse.Search"
- + "Result.MatchingVariantFieldsEntry\022o\n\025var"
- + "iant_rollup_values\030\005 \003(\0132P.google.cloud."
- + "retail.v2beta.SearchResponse.SearchResul"
- + "t.VariantRollupValuesEntry\022\027\n\017personal_l"
- + "abels\030\007 \003(\t\032X\n\032MatchingVariantFieldsEntr"
- + "y\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.p"
- + "rotobuf.FieldMask:\0028\001\032R\n\030VariantRollupVa"
- + "luesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026."
- + "google.protobuf.Value:\0028\001\032\226\002\n\005Facet\022\013\n\003k"
- + "ey\030\001 \001(\t\022K\n\006values\030\002 \003(\0132;.google.cloud."
- + "retail.v2beta.SearchResponse.Facet.Facet"
- + "Value\022\025\n\rdynamic_facet\030\003 \001(\010\032\233\001\n\nFacetVa"
- + "lue\022\017\n\005value\030\001 \001(\tH\000\0228\n\010interval\030\002 \001(\0132$"
- + ".google.cloud.retail.v2beta.IntervalH\000\022\r"
- + "\n\005count\030\003 \001(\003\022\021\n\tmin_value\030\005 \001(\001\022\021\n\tmax_"
- + "value\030\006 \001(\001B\r\n\013facet_value\032I\n\022QueryExpan"
- + "sionInfo\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinn"
- + "ed_result_count\030\002 \001(\003\"\377\002\n\016ExperimentInfo"
- + "\022g\n\031serving_config_experiment\030\002 \001(\0132B.go"
- + "ogle.cloud.retail.v2beta.ExperimentInfo."
- + "ServingConfigExperimentH\000\0229\n\nexperiment\030"
- + "\001 \001(\tB%\372A\"\n retail.googleapis.com/Experi"
- + "ment\032\261\001\n\027ServingConfigExperiment\022I\n\027orig"
- + "inal_serving_config\030\001 \001(\tB(\372A%\n#retail.g"
- + "oogleapis.com/ServingConfig\022K\n\031experimen"
- + "t_serving_config\030\002 \001(\tB(\372A%\n#retail.goog"
- + "leapis.com/ServingConfigB\025\n\023experiment_m"
- + "etadata2\350\002\n\rSearchService\022\213\002\n\006Search\022).g"
- + "oogle.cloud.retail.v2beta.SearchRequest\032"
- + "*.google.cloud.retail.v2beta.SearchRespo"
- + "nse\"\251\001\202\323\344\223\002\242\001\"I/v2beta/{placement=projec"
- + "ts/*/locations/*/catalogs/*/placements/*"
- + "}:search:\001*ZR\"M/v2beta/{placement=projec"
- + "ts/*/locations/*/catalogs/*/servingConfi"
- + "gs/*}:search:\001*\032I\312A\025retail.googleapis.co"
- + "m\322A.https://www.googleapis.com/auth/clou"
- + "d-platformB\313\002\n\036com.google.cloud.retail.v"
- + "2betaB\022SearchServiceProtoP\001Z6cloud.googl"
- + "e.com/go/retail/apiv2beta/retailpb;retai"
- + "lpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Bet"
- + "a\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google:"
- + ":Cloud::Retail::V2beta\352Aw\n retail.google"
- + "apis.com/Experiment\022Sprojects/{project}/"
- + "locations/{location}/catalogs/{catalog}/"
- + "experiments/{experiment}b\006proto3"
+ + "otobuf/struct.proto\"\376\023\n\rSearchRequest\022\026\n"
+ + "\tplacement\030\001 \001(\tB\003\340A\002\0221\n\006branch\030\002 \001(\tB!\372"
+ + "A\036\n\034retail.googleapis.com/Branch\022\r\n\005quer"
+ + "y\030\003 \001(\t\022\027\n\nvisitor_id\030\004 \001(\tB\003\340A\002\0227\n\tuser"
+ + "_info\030\005 \001(\0132$.google.cloud.retail.v2beta"
+ + ".UserInfo\022\021\n\tpage_size\030\007 \001(\005\022\022\n\npage_tok"
+ + "en\030\010 \001(\t\022\016\n\006offset\030\t \001(\005\022\016\n\006filter\030\n \001(\t"
+ + "\022\030\n\020canonical_filter\030\034 \001(\t\022\020\n\010order_by\030\013"
+ + " \001(\t\022H\n\013facet_specs\030\014 \003(\01323.google.cloud"
+ + ".retail.v2beta.SearchRequest.FacetSpec\022Z"
+ + "\n\022dynamic_facet_spec\030\025 \001(\0132:.google.clou"
+ + "d.retail.v2beta.SearchRequest.DynamicFac"
+ + "etSpecB\002\030\001\022G\n\nboost_spec\030\r \001(\01323.google."
+ + "cloud.retail.v2beta.SearchRequest.BoostS"
+ + "pec\022Z\n\024query_expansion_spec\030\016 \001(\0132<.goog"
+ + "le.cloud.retail.v2beta.SearchRequest.Que"
+ + "ryExpansionSpec\022\033\n\023variant_rollup_keys\030\021"
+ + " \003(\t\022\027\n\017page_categories\030\027 \003(\t\022I\n\013search_"
+ + "mode\030\037 \001(\01624.google.cloud.retail.v2beta."
+ + "SearchRequest.SearchMode\022[\n\024personalizat"
+ + "ion_spec\030 \001(\0132=.google.cloud.retail.v2b"
+ + "eta.SearchRequest.PersonalizationSpec\022E\n"
+ + "\006labels\030\" \003(\01325.google.cloud.retail.v2be"
+ + "ta.SearchRequest.LabelsEntry\022a\n\025spell_co"
+ + "rrection_spec\030# \001(\0132=.google.cloud.retai"
+ + "l.v2beta.SearchRequest.SpellCorrectionSp"
+ + "ecH\000\210\001\001\022\016\n\006entity\030& \001(\t\032\231\003\n\tFacetSpec\022T\n"
+ + "\tfacet_key\030\001 \001(\0132<.google.cloud.retail.v"
+ + "2beta.SearchRequest.FacetSpec.FacetKeyB\003"
+ + "\340A\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024excluded_filter_ke"
+ + "ys\030\003 \003(\t\022\037\n\027enable_dynamic_position\030\004 \001("
+ + "\010\032\347\001\n\010FacetKey\022\020\n\003key\030\001 \001(\tB\003\340A\002\0227\n\tinte"
+ + "rvals\030\002 \003(\0132$.google.cloud.retail.v2beta"
+ + ".Interval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010"
+ + "prefixes\030\010 \003(\t\022\020\n\010contains\030\t \003(\t\022\030\n\020case"
+ + "_insensitive\030\n \001(\010\022\020\n\010order_by\030\004 \001(\t\022\r\n\005"
+ + "query\030\005 \001(\t\022\026\n\016return_min_max\030\013 \001(\010\032\232\001\n\020"
+ + "DynamicFacetSpec\022M\n\004mode\030\001 \001(\0162?.google."
+ + "cloud.retail.v2beta.SearchRequest.Dynami"
+ + "cFacetSpec.Mode\"7\n\004Mode\022\024\n\020MODE_UNSPECIF"
+ + "IED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002\032\362\001\n\tBoo"
+ + "stSpec\022e\n\025condition_boost_specs\030\001 \003(\0132F."
+ + "google.cloud.retail.v2beta.SearchRequest"
+ + ".BoostSpec.ConditionBoostSpec\022\'\n\032skip_bo"
+ + "ost_spec_validation\030\002 \001(\010H\000\210\001\001\0326\n\022Condit"
+ + "ionBoostSpec\022\021\n\tcondition\030\001 \001(\t\022\r\n\005boost"
+ + "\030\002 \001(\002B\035\n\033_skip_boost_spec_validation\032\317\001"
+ + "\n\022QueryExpansionSpec\022Y\n\tcondition\030\001 \001(\0162"
+ + "F.google.cloud.retail.v2beta.SearchReque"
+ + "st.QueryExpansionSpec.Condition\022\036\n\026pin_u"
+ + "nexpanded_results\030\002 \001(\010\">\n\tCondition\022\031\n\025"
+ + "CONDITION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n"
+ + "\004AUTO\020\003\032\235\001\n\023PersonalizationSpec\022P\n\004mode\030"
+ + "\001 \001(\0162B.google.cloud.retail.v2beta.Searc"
+ + "hRequest.PersonalizationSpec.Mode\"4\n\004Mod"
+ + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\014\n\010DIS"
+ + "ABLED\020\002\032\244\001\n\023SpellCorrectionSpec\022P\n\004mode\030"
+ + "\001 \001(\0162B.google.cloud.retail.v2beta.Searc"
+ + "hRequest.SpellCorrectionSpec.Mode\";\n\004Mod"
+ + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ON"
+ + "LY\020\001\022\010\n\004AUTO\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001"
+ + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nSearchMode\022\033\n\027S"
+ + "EARCH_MODE_UNSPECIFIED\020\000\022\027\n\023PRODUCT_SEAR"
+ + "CH_ONLY\020\001\022\027\n\023FACETED_SEARCH_ONLY\020\002B\030\n\026_s"
+ + "pell_correction_spec\"\302\013\n\016SearchResponse\022"
+ + "H\n\007results\030\001 \003(\01327.google.cloud.retail.v"
+ + "2beta.SearchResponse.SearchResult\022@\n\006fac"
+ + "ets\030\002 \003(\01320.google.cloud.retail.v2beta.S"
+ + "earchResponse.Facet\022\022\n\ntotal_size\030\003 \001(\005\022"
+ + "\027\n\017corrected_query\030\004 \001(\t\022\031\n\021attribution_"
+ + "token\030\005 \001(\t\022\027\n\017next_page_token\030\006 \001(\t\022[\n\024"
+ + "query_expansion_info\030\007 \001(\0132=.google.clou"
+ + "d.retail.v2beta.SearchResponse.QueryExpa"
+ + "nsionInfo\022\024\n\014redirect_uri\030\n \001(\t\022\030\n\020appli"
+ + "ed_controls\030\014 \003(\t\022m\n\035invalid_condition_b"
+ + "oost_specs\030\016 \003(\0132F.google.cloud.retail.v"
+ + "2beta.SearchRequest.BoostSpec.ConditionB"
+ + "oostSpec\022C\n\017experiment_info\030\021 \003(\0132*.goog"
+ + "le.cloud.retail.v2beta.ExperimentInfo\032\235\004"
+ + "\n\014SearchResult\022\n\n\002id\030\001 \001(\t\0224\n\007product\030\002 "
+ + "\001(\0132#.google.cloud.retail.v2beta.Product"
+ + "\022\036\n\026matching_variant_count\030\003 \001(\005\022s\n\027matc"
+ + "hing_variant_fields\030\004 \003(\0132R.google.cloud"
+ + ".retail.v2beta.SearchResponse.SearchResu"
+ + "lt.MatchingVariantFieldsEntry\022o\n\025variant"
+ + "_rollup_values\030\005 \003(\0132P.google.cloud.reta"
+ + "il.v2beta.SearchResponse.SearchResult.Va"
+ + "riantRollupValuesEntry\022\027\n\017personal_label"
+ + "s\030\007 \003(\t\032X\n\032MatchingVariantFieldsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.proto"
+ + "buf.FieldMask:\0028\001\032R\n\030VariantRollupValues"
+ + "Entry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goog"
+ + "le.protobuf.Value:\0028\001\032\226\002\n\005Facet\022\013\n\003key\030\001"
+ + " \001(\t\022K\n\006values\030\002 \003(\0132;.google.cloud.reta"
+ + "il.v2beta.SearchResponse.Facet.FacetValu"
+ + "e\022\025\n\rdynamic_facet\030\003 \001(\010\032\233\001\n\nFacetValue\022"
+ + "\017\n\005value\030\001 \001(\tH\000\0228\n\010interval\030\002 \001(\0132$.goo"
+ + "gle.cloud.retail.v2beta.IntervalH\000\022\r\n\005co"
+ + "unt\030\003 \001(\003\022\021\n\tmin_value\030\005 \001(\001\022\021\n\tmax_valu"
+ + "e\030\006 \001(\001B\r\n\013facet_value\032I\n\022QueryExpansion"
+ + "Info\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinned_r"
+ + "esult_count\030\002 \001(\003\"\377\002\n\016ExperimentInfo\022g\n\031"
+ + "serving_config_experiment\030\002 \001(\0132B.google"
+ + ".cloud.retail.v2beta.ExperimentInfo.Serv"
+ + "ingConfigExperimentH\000\0229\n\nexperiment\030\001 \001("
+ + "\tB%\372A\"\n retail.googleapis.com/Experiment"
+ + "\032\261\001\n\027ServingConfigExperiment\022I\n\027original"
+ + "_serving_config\030\001 \001(\tB(\372A%\n#retail.googl"
+ + "eapis.com/ServingConfig\022K\n\031experiment_se"
+ + "rving_config\030\002 \001(\tB(\372A%\n#retail.googleap"
+ + "is.com/ServingConfigB\025\n\023experiment_metad"
+ + "ata2\350\002\n\rSearchService\022\213\002\n\006Search\022).googl"
+ + "e.cloud.retail.v2beta.SearchRequest\032*.go"
+ + "ogle.cloud.retail.v2beta.SearchResponse\""
+ + "\251\001\202\323\344\223\002\242\001\"I/v2beta/{placement=projects/*"
+ + "/locations/*/catalogs/*/placements/*}:se"
+ + "arch:\001*ZR\"M/v2beta/{placement=projects/*"
+ + "/locations/*/catalogs/*/servingConfigs/*"
+ + "}:search:\001*\032I\312A\025retail.googleapis.com\322A."
+ + "https://www.googleapis.com/auth/cloud-pl"
+ + "atformB\313\002\n\036com.google.cloud.retail.v2bet"
+ + "aB\022SearchServiceProtoP\001Z6cloud.google.co"
+ + "m/go/retail/apiv2beta/retailpb;retailpb\242"
+ + "\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032"
+ + "Google\\Cloud\\Retail\\V2beta\352\002\035Google::Clo"
+ + "ud::Retail::V2beta\352Aw\n retail.googleapis"
+ + ".com/Experiment\022Sprojects/{project}/loca"
+ + "tions/{location}/catalogs/{catalog}/expe"
+ + "riments/{experiment}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java
index f9da43282c87..273fc5aa1eca 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java
@@ -46,39 +46,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "oogle/api/field_behavior.proto\032\031google/a"
+ "pi/resource.proto\032\'google/cloud/retail/v"
+ "2beta/common.proto\032/google/cloud/retail/"
- + "v2beta/search_service.proto\"\211\010\n\rServingC"
- + "onfig\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_nam"
- + "e\030\002 \001(\tB\004\342A\001\002\022\020\n\010model_id\030\003 \001(\t\022\035\n\025price"
- + "_reranking_level\030\004 \001(\t\022\031\n\021facet_control_"
- + "ids\030\005 \003(\t\022V\n\022dynamic_facet_spec\030\006 \001(\0132:."
- + "google.cloud.retail.v2beta.SearchRequest"
- + ".DynamicFacetSpec\022\031\n\021boost_control_ids\030\007"
- + " \003(\t\022\032\n\022filter_control_ids\030\t \003(\t\022\034\n\024redi"
- + "rect_control_ids\030\n \003(\t\022#\n\033twoway_synonym"
- + "s_control_ids\030\022 \003(\t\022#\n\033oneway_synonyms_c"
- + "ontrol_ids\030\014 \003(\t\022$\n\034do_not_associate_con"
- + "trol_ids\030\r \003(\t\022\037\n\027replacement_control_id"
- + "s\030\016 \003(\t\022\032\n\022ignore_control_ids\030\017 \003(\t\022\027\n\017d"
- + "iversity_level\030\010 \001(\t\022O\n\016diversity_type\030\024"
- + " \001(\01627.google.cloud.retail.v2beta.Servin"
- + "gConfig.DiversityType\022$\n\034enable_category"
- + "_filter_level\030\020 \001(\t\022[\n\024personalization_s"
- + "pec\030\025 \001(\0132=.google.cloud.retail.v2beta.S"
- + "earchRequest.PersonalizationSpec\022G\n\016solu"
- + "tion_types\030\023 \003(\0162(.google.cloud.retail.v"
- + "2beta.SolutionTypeB\005\342A\002\002\005\"d\n\rDiversityTy"
- + "pe\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020\000\022\030\n\024RU"
- + "LE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIVEN_DIVE"
- + "RSITY\020\003:\205\001\352A\201\001\n#retail.googleapis.com/Se"
- + "rvingConfig\022Zprojects/{project}/location"
- + "s/{location}/catalogs/{catalog}/servingC"
- + "onfigs/{serving_config}B\321\001\n\036com.google.c"
- + "loud.retail.v2betaB\022ServingConfigProtoP\001"
- + "Z6cloud.google.com/go/retail/apiv2beta/r"
- + "etailpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud"
- + ".Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2b"
- + "eta\352\002\035Google::Cloud::Retail::V2betab\006pro"
- + "to3"
+ + "v2beta/search_service.proto\"\210\010\n\rServingC"
+ + "onfig\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_name"
+ + "\030\002 \001(\tB\003\340A\002\022\020\n\010model_id\030\003 \001(\t\022\035\n\025price_r"
+ + "eranking_level\030\004 \001(\t\022\031\n\021facet_control_id"
+ + "s\030\005 \003(\t\022V\n\022dynamic_facet_spec\030\006 \001(\0132:.go"
+ + "ogle.cloud.retail.v2beta.SearchRequest.D"
+ + "ynamicFacetSpec\022\031\n\021boost_control_ids\030\007 \003"
+ + "(\t\022\032\n\022filter_control_ids\030\t \003(\t\022\034\n\024redire"
+ + "ct_control_ids\030\n \003(\t\022#\n\033twoway_synonyms_"
+ + "control_ids\030\022 \003(\t\022#\n\033oneway_synonyms_con"
+ + "trol_ids\030\014 \003(\t\022$\n\034do_not_associate_contr"
+ + "ol_ids\030\r \003(\t\022\037\n\027replacement_control_ids\030"
+ + "\016 \003(\t\022\032\n\022ignore_control_ids\030\017 \003(\t\022\027\n\017div"
+ + "ersity_level\030\010 \001(\t\022O\n\016diversity_type\030\024 \001"
+ + "(\01627.google.cloud.retail.v2beta.ServingC"
+ + "onfig.DiversityType\022$\n\034enable_category_f"
+ + "ilter_level\030\020 \001(\t\022[\n\024personalization_spe"
+ + "c\030\025 \001(\0132=.google.cloud.retail.v2beta.Sea"
+ + "rchRequest.PersonalizationSpec\022H\n\016soluti"
+ + "on_types\030\023 \003(\0162(.google.cloud.retail.v2b"
+ + "eta.SolutionTypeB\006\340A\002\340A\005\"d\n\rDiversityTyp"
+ + "e\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020\000\022\030\n\024RUL"
+ + "E_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIVEN_DIVER"
+ + "SITY\020\003:\205\001\352A\201\001\n#retail.googleapis.com/Ser"
+ + "vingConfig\022Zprojects/{project}/locations"
+ + "/{location}/catalogs/{catalog}/servingCo"
+ + "nfigs/{serving_config}B\321\001\n\036com.google.cl"
+ + "oud.retail.v2betaB\022ServingConfigProtoP\001Z"
+ + "6cloud.google.com/go/retail/apiv2beta/re"
+ + "tailpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud."
+ + "Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2be"
+ + "ta\352\002\035Google::Cloud::Retail::V2betab\006prot"
+ + "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceProto.java
index ddb886483507..d58ba589145b 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceProto.java
@@ -76,80 +76,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ehavior.proto\032\031google/api/resource.proto"
+ "\032/google/cloud/retail/v2beta/serving_con"
+ "fig.proto\032\033google/protobuf/empty.proto\032 "
- + "google/protobuf/field_mask.proto\"\276\001\n\032Cre"
- + "ateServingConfigRequest\0226\n\006parent\030\001 \001(\tB"
- + "&\342A\001\002\372A\037\n\035retail.googleapis.com/Catalog\022"
- + "G\n\016serving_config\030\002 \001(\0132).google.cloud.r"
- + "etail.v2beta.ServingConfigB\004\342A\001\002\022\037\n\021serv"
- + "ing_config_id\030\003 \001(\tB\004\342A\001\002\"\226\001\n\032UpdateServ"
- + "ingConfigRequest\022G\n\016serving_config\030\001 \001(\013"
- + "2).google.cloud.retail.v2beta.ServingCon"
- + "figB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google."
- + "protobuf.FieldMask\"X\n\032DeleteServingConfi"
- + "gRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#retail."
- + "googleapis.com/ServingConfig\"U\n\027GetServi"
- + "ngConfigRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#"
- + "retail.googleapis.com/ServingConfig\"\206\001\n\031"
- + "ListServingConfigsRequest\0226\n\006parent\030\001 \001("
- + "\tB&\342A\001\002\372A\037\n\035retail.googleapis.com/Catalo"
- + "g\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token"
- + "\030\003 \001(\tB\004\342A\001\001\"y\n\032ListServingConfigsRespon"
- + "se\022B\n\017serving_configs\030\001 \003(\0132).google.clo"
- + "ud.retail.v2beta.ServingConfig\022\027\n\017next_p"
- + "age_token\030\002 \001(\t\"s\n\021AddControlRequest\022D\n\016"
- + "serving_config\030\001 \001(\tB,\342A\001\002\372A%\n#retail.go"
- + "ogleapis.com/ServingConfig\022\030\n\ncontrol_id"
- + "\030\002 \001(\tB\004\342A\001\002\"v\n\024RemoveControlRequest\022D\n\016"
- + "serving_config\030\001 \001(\tB,\342A\001\002\372A%\n#retail.go"
- + "ogleapis.com/ServingConfig\022\030\n\ncontrol_id"
- + "\030\002 \001(\tB\004\342A\001\0022\203\r\n\024ServingConfigService\022\376\001"
- + "\n\023CreateServingConfig\0226.google.cloud.ret"
- + "ail.v2beta.CreateServingConfigRequest\032)."
+ + "google/protobuf/field_mask.proto\"\273\001\n\032Cre"
+ + "ateServingConfigRequest\0225\n\006parent\030\001 \001(\tB"
+ + "%\340A\002\372A\037\n\035retail.googleapis.com/Catalog\022F"
+ + "\n\016serving_config\030\002 \001(\0132).google.cloud.re"
+ + "tail.v2beta.ServingConfigB\003\340A\002\022\036\n\021servin"
+ + "g_config_id\030\003 \001(\tB\003\340A\002\"\225\001\n\032UpdateServing"
+ + "ConfigRequest\022F\n\016serving_config\030\001 \001(\0132)."
+ "google.cloud.retail.v2beta.ServingConfig"
- + "\"\203\001\332A\'parent,serving_config,serving_conf"
- + "ig_id\202\323\344\223\002S\"A/v2beta/{parent=projects/*/"
- + "locations/*/catalogs/*}/servingConfigs:\016"
- + "serving_config\022\267\001\n\023DeleteServingConfig\0226"
- + ".google.cloud.retail.v2beta.DeleteServin"
- + "gConfigRequest\032\026.google.protobuf.Empty\"P"
- + "\332A\004name\202\323\344\223\002C*A/v2beta/{name=projects/*/"
- + "locations/*/catalogs/*/servingConfigs/*}"
- + "\022\200\002\n\023UpdateServingConfig\0226.google.cloud."
- + "retail.v2beta.UpdateServingConfigRequest"
+ + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot"
+ + "obuf.FieldMask\"W\n\032DeleteServingConfigReq"
+ + "uest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#retail.googl"
+ + "eapis.com/ServingConfig\"T\n\027GetServingCon"
+ + "figRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#retail"
+ + ".googleapis.com/ServingConfig\"\203\001\n\031ListSe"
+ + "rvingConfigsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002"
+ + "\372A\037\n\035retail.googleapis.com/Catalog\022\026\n\tpa"
+ + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003"
+ + "\340A\001\"y\n\032ListServingConfigsResponse\022B\n\017ser"
+ + "ving_configs\030\001 \003(\0132).google.cloud.retail"
+ + ".v2beta.ServingConfig\022\027\n\017next_page_token"
+ + "\030\002 \001(\t\"q\n\021AddControlRequest\022C\n\016serving_c"
+ + "onfig\030\001 \001(\tB+\340A\002\372A%\n#retail.googleapis.c"
+ + "om/ServingConfig\022\027\n\ncontrol_id\030\002 \001(\tB\003\340A"
+ + "\002\"t\n\024RemoveControlRequest\022C\n\016serving_con"
+ + "fig\030\001 \001(\tB+\340A\002\372A%\n#retail.googleapis.com"
+ + "/ServingConfig\022\027\n\ncontrol_id\030\002 \001(\tB\003\340A\0022"
+ + "\203\r\n\024ServingConfigService\022\376\001\n\023CreateServi"
+ + "ngConfig\0226.google.cloud.retail.v2beta.Cr"
+ + "eateServingConfigRequest\032).google.cloud."
+ + "retail.v2beta.ServingConfig\"\203\001\332A\'parent,"
+ + "serving_config,serving_config_id\202\323\344\223\002S\"A"
+ + "/v2beta/{parent=projects/*/locations/*/c"
+ + "atalogs/*}/servingConfigs:\016serving_confi"
+ + "g\022\267\001\n\023DeleteServingConfig\0226.google.cloud"
+ + ".retail.v2beta.DeleteServingConfigReques"
+ + "t\032\026.google.protobuf.Empty\"P\332A\004name\202\323\344\223\002C"
+ + "*A/v2beta/{name=projects/*/locations/*/c"
+ + "atalogs/*/servingConfigs/*}\022\200\002\n\023UpdateSe"
+ + "rvingConfig\0226.google.cloud.retail.v2beta"
+ + ".UpdateServingConfigRequest\032).google.clo"
+ + "ud.retail.v2beta.ServingConfig\"\205\001\332A\032serv"
+ + "ing_config,update_mask\202\323\344\223\002b2P/v2beta/{s"
+ + "erving_config.name=projects/*/locations/"
+ + "*/catalogs/*/servingConfigs/*}:\016serving_"
+ + "config\022\304\001\n\020GetServingConfig\0223.google.clo"
+ + "ud.retail.v2beta.GetServingConfigRequest"
+ "\032).google.cloud.retail.v2beta.ServingCon"
- + "fig\"\205\001\332A\032serving_config,update_mask\202\323\344\223\002"
- + "b2P/v2beta/{serving_config.name=projects"
- + "/*/locations/*/catalogs/*/servingConfigs"
- + "/*}:\016serving_config\022\304\001\n\020GetServingConfig"
- + "\0223.google.cloud.retail.v2beta.GetServing"
- + "ConfigRequest\032).google.cloud.retail.v2be"
- + "ta.ServingConfig\"P\332A\004name\202\323\344\223\002C\022A/v2beta"
- + "/{name=projects/*/locations/*/catalogs/*"
- + "/servingConfigs/*}\022\327\001\n\022ListServingConfig"
- + "s\0225.google.cloud.retail.v2beta.ListServi"
- + "ngConfigsRequest\0326.google.cloud.retail.v"
- + "2beta.ListServingConfigsResponse\"R\332A\006par"
- + "ent\202\323\344\223\002C\022A/v2beta/{parent=projects/*/lo"
- + "cations/*/catalogs/*}/servingConfigs\022\332\001\n"
- + "\nAddControl\022-.google.cloud.retail.v2beta"
- + ".AddControlRequest\032).google.cloud.retail"
- + ".v2beta.ServingConfig\"r\332A\016serving_config"
- + "\202\323\344\223\002[\"V/v2beta/{serving_config=projects"
- + "/*/locations/*/catalogs/*/servingConfigs"
- + "/*}:addControl:\001*\022\343\001\n\rRemoveControl\0220.go"
- + "ogle.cloud.retail.v2beta.RemoveControlRe"
+ + "fig\"P\332A\004name\202\323\344\223\002C\022A/v2beta/{name=projec"
+ + "ts/*/locations/*/catalogs/*/servingConfi"
+ + "gs/*}\022\327\001\n\022ListServingConfigs\0225.google.cl"
+ + "oud.retail.v2beta.ListServingConfigsRequ"
+ + "est\0326.google.cloud.retail.v2beta.ListSer"
+ + "vingConfigsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v"
+ + "2beta/{parent=projects/*/locations/*/cat"
+ + "alogs/*}/servingConfigs\022\332\001\n\nAddControl\022-"
+ + ".google.cloud.retail.v2beta.AddControlRe"
+ "quest\032).google.cloud.retail.v2beta.Servi"
- + "ngConfig\"u\332A\016serving_config\202\323\344\223\002^\"Y/v2be"
+ + "ngConfig\"r\332A\016serving_config\202\323\344\223\002[\"V/v2be"
+ "ta/{serving_config=projects/*/locations/"
- + "*/catalogs/*/servingConfigs/*}:removeCon"
- + "trol:\001*\032I\312A\025retail.googleapis.com\322A.http"
- + "s://www.googleapis.com/auth/cloud-platfo"
- + "rmB\330\001\n\036com.google.cloud.retail.v2betaB\031S"
- + "ervingConfigServiceProtoP\001Z6cloud.google"
- + ".com/go/retail/apiv2beta/retailpb;retail"
- + "pb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta"
- + "\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google::"
- + "Cloud::Retail::V2betab\006proto3"
+ + "*/catalogs/*/servingConfigs/*}:addContro"
+ + "l:\001*\022\343\001\n\rRemoveControl\0220.google.cloud.re"
+ + "tail.v2beta.RemoveControlRequest\032).googl"
+ + "e.cloud.retail.v2beta.ServingConfig\"u\332A\016"
+ + "serving_config\202\323\344\223\002^\"Y/v2beta/{serving_c"
+ + "onfig=projects/*/locations/*/catalogs/*/"
+ + "servingConfigs/*}:removeControl:\001*\032I\312A\025r"
+ + "etail.googleapis.com\322A.https://www.googl"
+ + "eapis.com/auth/cloud-platformB\330\001\n\036com.go"
+ + "ogle.cloud.retail.v2betaB\031ServingConfigS"
+ + "erviceProtoP\001Z6cloud.google.com/go/retai"
+ + "l/apiv2beta/retailpb;retailpb\242\002\006RETAIL\252\002"
+ + "\032Google.Cloud.Retail.V2Beta\312\002\032Google\\Clo"
+ + "ud\\Retail\\V2beta\352\002\035Google::Cloud::Retail"
+ + "::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventProto.java
index db307442f842..5958bbcc8255 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventProto.java
@@ -63,42 +63,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/retail/v2beta/common.proto\032(google/clou"
+ "d/retail/v2beta/product.proto\032\037google/pr"
+ "otobuf/timestamp.proto\032\036google/protobuf/"
- + "wrappers.proto\"\261\006\n\tUserEvent\022\030\n\nevent_ty"
- + "pe\030\001 \001(\tB\004\342A\001\002\022\030\n\nvisitor_id\030\002 \001(\tB\004\342A\001\002"
- + "\022\022\n\nsession_id\030\025 \001(\t\022.\n\nevent_time\030\003 \001(\013"
- + "2\032.google.protobuf.Timestamp\022\026\n\016experime"
- + "nt_ids\030\004 \003(\t\022\031\n\021attribution_token\030\005 \001(\t\022"
- + "B\n\017product_details\030\006 \003(\0132).google.cloud."
- + "retail.v2beta.ProductDetail\022G\n\021completio"
- + "n_detail\030\026 \001(\0132,.google.cloud.retail.v2b"
- + "eta.CompletionDetail\022I\n\nattributes\030\007 \003(\013"
- + "25.google.cloud.retail.v2beta.UserEvent."
- + "AttributesEntry\022\017\n\007cart_id\030\010 \001(\t\022M\n\024purc"
- + "hase_transaction\030\t \001(\0132/.google.cloud.re"
- + "tail.v2beta.PurchaseTransaction\022\024\n\014searc"
- + "h_query\030\n \001(\t\022\016\n\006filter\030\020 \001(\t\022\020\n\010order_b"
- + "y\030\021 \001(\t\022\016\n\006offset\030\022 \001(\005\022\027\n\017page_categori"
- + "es\030\013 \003(\t\0227\n\tuser_info\030\014 \001(\0132$.google.clo"
- + "ud.retail.v2beta.UserInfo\022\013\n\003uri\030\r \001(\t\022\024"
- + "\n\014referrer_uri\030\016 \001(\t\022\024\n\014page_view_id\030\017 \001"
- + "(\t\022\016\n\006entity\030\027 \001(\t\032^\n\017AttributesEntry\022\013\n"
- + "\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google.cloud"
- + ".retail.v2beta.CustomAttribute:\0028\001\"z\n\rPr"
- + "oductDetail\022:\n\007product\030\001 \001(\0132#.google.cl"
- + "oud.retail.v2beta.ProductB\004\342A\001\002\022-\n\010quant"
- + "ity\030\002 \001(\0132\033.google.protobuf.Int32Value\"p"
- + "\n\020CompletionDetail\022$\n\034completion_attribu"
- + "tion_token\030\001 \001(\t\022\033\n\023selected_suggestion\030"
- + "\002 \001(\t\022\031\n\021selected_position\030\003 \001(\005\"p\n\023Purc"
- + "haseTransaction\022\n\n\002id\030\001 \001(\t\022\025\n\007revenue\030\002"
- + " \001(\002B\004\342A\001\002\022\013\n\003tax\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\022\033\n"
- + "\rcurrency_code\030\005 \001(\tB\004\342A\001\002B\315\001\n\036com.googl"
- + "e.cloud.retail.v2betaB\016UserEventProtoP\001Z"
- + "6cloud.google.com/go/retail/apiv2beta/re"
- + "tailpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud."
- + "Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2be"
- + "ta\352\002\035Google::Cloud::Retail::V2betab\006prot"
- + "o3"
+ + "wrappers.proto\"\257\006\n\tUserEvent\022\027\n\nevent_ty"
+ + "pe\030\001 \001(\tB\003\340A\002\022\027\n\nvisitor_id\030\002 \001(\tB\003\340A\002\022\022"
+ + "\n\nsession_id\030\025 \001(\t\022.\n\nevent_time\030\003 \001(\0132\032"
+ + ".google.protobuf.Timestamp\022\026\n\016experiment"
+ + "_ids\030\004 \003(\t\022\031\n\021attribution_token\030\005 \001(\t\022B\n"
+ + "\017product_details\030\006 \003(\0132).google.cloud.re"
+ + "tail.v2beta.ProductDetail\022G\n\021completion_"
+ + "detail\030\026 \001(\0132,.google.cloud.retail.v2bet"
+ + "a.CompletionDetail\022I\n\nattributes\030\007 \003(\01325"
+ + ".google.cloud.retail.v2beta.UserEvent.At"
+ + "tributesEntry\022\017\n\007cart_id\030\010 \001(\t\022M\n\024purcha"
+ + "se_transaction\030\t \001(\0132/.google.cloud.reta"
+ + "il.v2beta.PurchaseTransaction\022\024\n\014search_"
+ + "query\030\n \001(\t\022\016\n\006filter\030\020 \001(\t\022\020\n\010order_by\030"
+ + "\021 \001(\t\022\016\n\006offset\030\022 \001(\005\022\027\n\017page_categories"
+ + "\030\013 \003(\t\0227\n\tuser_info\030\014 \001(\0132$.google.cloud"
+ + ".retail.v2beta.UserInfo\022\013\n\003uri\030\r \001(\t\022\024\n\014"
+ + "referrer_uri\030\016 \001(\t\022\024\n\014page_view_id\030\017 \001(\t"
+ + "\022\016\n\006entity\030\027 \001(\t\032^\n\017AttributesEntry\022\013\n\003k"
+ + "ey\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google.cloud.r"
+ + "etail.v2beta.CustomAttribute:\0028\001\"y\n\rProd"
+ + "uctDetail\0229\n\007product\030\001 \001(\0132#.google.clou"
+ + "d.retail.v2beta.ProductB\003\340A\002\022-\n\010quantity"
+ + "\030\002 \001(\0132\033.google.protobuf.Int32Value\"p\n\020C"
+ + "ompletionDetail\022$\n\034completion_attributio"
+ + "n_token\030\001 \001(\t\022\033\n\023selected_suggestion\030\002 \001"
+ + "(\t\022\031\n\021selected_position\030\003 \001(\005\"n\n\023Purchas"
+ + "eTransaction\022\n\n\002id\030\001 \001(\t\022\024\n\007revenue\030\002 \001("
+ + "\002B\003\340A\002\022\013\n\003tax\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\022\032\n\rcur"
+ + "rency_code\030\005 \001(\tB\003\340A\002B\315\001\n\036com.google.clo"
+ + "ud.retail.v2betaB\016UserEventProtoP\001Z6clou"
+ + "d.google.com/go/retail/apiv2beta/retailp"
+ + "b;retailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retai"
+ + "l.V2Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035"
+ + "Google::Cloud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceProto.java
index 5b9ef479ca68..febfdec27ded 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceProto.java
@@ -67,60 +67,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "cloud/retail/v2beta/purge_config.proto\032+"
+ "google/cloud/retail/v2beta/user_event.pr"
+ "oto\032#google/longrunning/operations.proto"
- + "\"\203\001\n\025WriteUserEventRequest\022\024\n\006parent\030\001 \001"
- + "(\tB\004\342A\001\002\022?\n\nuser_event\030\002 \001(\0132%.google.cl"
- + "oud.retail.v2beta.UserEventB\004\342A\001\002\022\023\n\013wri"
- + "te_async\030\003 \001(\010\"\241\001\n\027CollectUserEventReque"
- + "st\022\027\n\rprebuilt_rule\030\006 \001(\tH\000\022\024\n\006parent\030\001 "
- + "\001(\tB\004\342A\001\002\022\030\n\nuser_event\030\002 \001(\tB\004\342A\001\002\022\013\n\003u"
- + "ri\030\003 \001(\t\022\013\n\003ets\030\004 \001(\003\022\020\n\010raw_json\030\005 \001(\tB"
- + "\021\n\017conversion_rule\"\203\002\n\027RejoinUserEventsR"
- + "equest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022i\n\027user_eve"
- + "nt_rejoin_scope\030\002 \001(\0162H.google.cloud.ret"
- + "ail.v2beta.RejoinUserEventsRequest.UserE"
- + "ventRejoinScope\"g\n\024UserEventRejoinScope\022"
- + "\'\n#USER_EVENT_REJOIN_SCOPE_UNSPECIFIED\020\000"
- + "\022\021\n\rJOINED_EVENTS\020\001\022\023\n\017UNJOINED_EVENTS\020\002"
- + "\">\n\030RejoinUserEventsResponse\022\"\n\032rejoined"
- + "_user_events_count\030\001 \001(\003\"\032\n\030RejoinUserEv"
- + "entsMetadata2\373\t\n\020UserEventService\022\303\001\n\016Wr"
- + "iteUserEvent\0221.google.cloud.retail.v2bet"
- + "a.WriteUserEventRequest\032%.google.cloud.r"
- + "etail.v2beta.UserEvent\"W\202\323\344\223\002Q\"C/v2beta/"
- + "{parent=projects/*/locations/*/catalogs/"
- + "*}/userEvents:write:\nuser_event\022\254\001\n\020Coll"
- + "ectUserEvent\0223.google.cloud.retail.v2bet"
- + "a.CollectUserEventRequest\032\024.google.api.H"
- + "ttpBody\"M\202\323\344\223\002G\022E/v2beta/{parent=project"
- + "s/*/locations/*/catalogs/*}/userEvents:c"
- + "ollect\022\226\002\n\017PurgeUserEvents\0222.google.clou"
- + "d.retail.v2beta.PurgeUserEventsRequest\032\035"
- + ".google.longrunning.Operation\"\257\001\312A^\n2goo"
- + "gle.cloud.retail.v2beta.PurgeUserEventsR"
- + "esponse\022(google.cloud.retail.v2beta.Purg"
- + "eMetadata\202\323\344\223\002H\"C/v2beta/{parent=project"
- + "s/*/locations/*/catalogs/*}/userEvents:p"
- + "urge:\001*\022\233\002\n\020ImportUserEvents\0223.google.cl"
- + "oud.retail.v2beta.ImportUserEventsReques"
- + "t\032\035.google.longrunning.Operation\"\262\001\312A`\n3"
- + "google.cloud.retail.v2beta.ImportUserEve"
- + "ntsResponse\022)google.cloud.retail.v2beta."
- + "ImportMetadata\202\323\344\223\002I\"D/v2beta/{parent=pr"
- + "ojects/*/locations/*/catalogs/*}/userEve"
- + "nts:import:\001*\022\357\001\n\020RejoinUserEvents\0223.goo"
- + "gle.cloud.retail.v2beta.RejoinUserEvents"
- + "Request\032\035.google.longrunning.Operation\"\206"
- + "\001\312A4\n\030RejoinUserEventsResponse\022\030RejoinUs"
- + "erEventsMetadata\202\323\344\223\002I\"D/v2beta/{parent="
- + "projects/*/locations/*/catalogs/*}/userE"
- + "vents:rejoin:\001*\032I\312A\025retail.googleapis.co"
- + "m\322A.https://www.googleapis.com/auth/clou"
- + "d-platformB\324\001\n\036com.google.cloud.retail.v"
- + "2betaB\025UserEventServiceProtoP\001Z6cloud.go"
- + "ogle.com/go/retail/apiv2beta/retailpb;re"
- + "tailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2"
- + "Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Goog"
- + "le::Cloud::Retail::V2betab\006proto3"
+ + "\"\201\001\n\025WriteUserEventRequest\022\023\n\006parent\030\001 \001"
+ + "(\tB\003\340A\002\022>\n\nuser_event\030\002 \001(\0132%.google.clo"
+ + "ud.retail.v2beta.UserEventB\003\340A\002\022\023\n\013write"
+ + "_async\030\003 \001(\010\"\237\001\n\027CollectUserEventRequest"
+ + "\022\027\n\rprebuilt_rule\030\006 \001(\tH\000\022\023\n\006parent\030\001 \001("
+ + "\tB\003\340A\002\022\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\013\n\003uri\030\003"
+ + " \001(\t\022\013\n\003ets\030\004 \001(\003\022\020\n\010raw_json\030\005 \001(\tB\021\n\017c"
+ + "onversion_rule\"\202\002\n\027RejoinUserEventsReque"
+ + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022i\n\027user_event_re"
+ + "join_scope\030\002 \001(\0162H.google.cloud.retail.v"
+ + "2beta.RejoinUserEventsRequest.UserEventR"
+ + "ejoinScope\"g\n\024UserEventRejoinScope\022\'\n#US"
+ + "ER_EVENT_REJOIN_SCOPE_UNSPECIFIED\020\000\022\021\n\rJ"
+ + "OINED_EVENTS\020\001\022\023\n\017UNJOINED_EVENTS\020\002\">\n\030R"
+ + "ejoinUserEventsResponse\022\"\n\032rejoined_user"
+ + "_events_count\030\001 \001(\003\"\032\n\030RejoinUserEventsM"
+ + "etadata2\373\t\n\020UserEventService\022\303\001\n\016WriteUs"
+ + "erEvent\0221.google.cloud.retail.v2beta.Wri"
+ + "teUserEventRequest\032%.google.cloud.retail"
+ + ".v2beta.UserEvent\"W\202\323\344\223\002Q\"C/v2beta/{pare"
+ + "nt=projects/*/locations/*/catalogs/*}/us"
+ + "erEvents:write:\nuser_event\022\254\001\n\020CollectUs"
+ + "erEvent\0223.google.cloud.retail.v2beta.Col"
+ + "lectUserEventRequest\032\024.google.api.HttpBo"
+ + "dy\"M\202\323\344\223\002G\022E/v2beta/{parent=projects/*/l"
+ + "ocations/*/catalogs/*}/userEvents:collec"
+ + "t\022\226\002\n\017PurgeUserEvents\0222.google.cloud.ret"
+ + "ail.v2beta.PurgeUserEventsRequest\032\035.goog"
+ + "le.longrunning.Operation\"\257\001\312A^\n2google.c"
+ + "loud.retail.v2beta.PurgeUserEventsRespon"
+ + "se\022(google.cloud.retail.v2beta.PurgeMeta"
+ + "data\202\323\344\223\002H\"C/v2beta/{parent=projects/*/l"
+ + "ocations/*/catalogs/*}/userEvents:purge:"
+ + "\001*\022\233\002\n\020ImportUserEvents\0223.google.cloud.r"
+ + "etail.v2beta.ImportUserEventsRequest\032\035.g"
+ + "oogle.longrunning.Operation\"\262\001\312A`\n3googl"
+ + "e.cloud.retail.v2beta.ImportUserEventsRe"
+ + "sponse\022)google.cloud.retail.v2beta.Impor"
+ + "tMetadata\202\323\344\223\002I\"D/v2beta/{parent=project"
+ + "s/*/locations/*/catalogs/*}/userEvents:i"
+ + "mport:\001*\022\357\001\n\020RejoinUserEvents\0223.google.c"
+ + "loud.retail.v2beta.RejoinUserEventsReque"
+ + "st\032\035.google.longrunning.Operation\"\206\001\312A4\n"
+ + "\030RejoinUserEventsResponse\022\030RejoinUserEve"
+ + "ntsMetadata\202\323\344\223\002I\"D/v2beta/{parent=proje"
+ + "cts/*/locations/*/catalogs/*}/userEvents"
+ + ":rejoin:\001*\032I\312A\025retail.googleapis.com\322A.h"
+ + "ttps://www.googleapis.com/auth/cloud-pla"
+ + "tformB\324\001\n\036com.google.cloud.retail.v2beta"
+ + "B\025UserEventServiceProtoP\001Z6cloud.google."
+ + "com/go/retail/apiv2beta/retailpb;retailp"
+ + "b\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312"
+ + "\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google::C"
+ + "loud::Retail::V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 000000000000..9f55b2827a49
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,45 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsService_Create_SetCredentialsProvider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.retail.v2.AnalyticsServiceClient;
+import com.google.cloud.retail.v2.AnalyticsServiceSettings;
+import com.google.cloud.retail.v2.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
+ AnalyticsServiceSettings analyticsServiceSettings =
+ AnalyticsServiceSettings.newBuilder()
+ .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ .build();
+ AnalyticsServiceClient analyticsServiceClient =
+ AnalyticsServiceClient.create(analyticsServiceSettings);
+ }
+}
+// [END retail_v2_generated_AnalyticsService_Create_SetCredentialsProvider_sync]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 000000000000..ff56768e5547
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,41 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsService_Create_SetCredentialsProvider1_sync]
+import com.google.cloud.retail.v2.AnalyticsServiceClient;
+import com.google.cloud.retail.v2.AnalyticsServiceSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateSetCredentialsProvider1();
+ }
+
+ public static void syncCreateSetCredentialsProvider1() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ AnalyticsServiceSettings analyticsServiceSettings =
+ AnalyticsServiceSettings.newHttpJsonBuilder().build();
+ AnalyticsServiceClient analyticsServiceClient =
+ AnalyticsServiceClient.create(analyticsServiceSettings);
+ }
+}
+// [END retail_v2_generated_AnalyticsService_Create_SetCredentialsProvider1_sync]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetEndpoint.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetEndpoint.java
new file mode 100644
index 000000000000..e4aa0f5f8903
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,42 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsService_Create_SetEndpoint_sync]
+import com.google.cloud.retail.v2.AnalyticsServiceClient;
+import com.google.cloud.retail.v2.AnalyticsServiceSettings;
+import com.google.cloud.retail.v2.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
+ AnalyticsServiceSettings analyticsServiceSettings =
+ AnalyticsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ AnalyticsServiceClient analyticsServiceClient =
+ AnalyticsServiceClient.create(analyticsServiceSettings);
+ }
+}
+// [END retail_v2_generated_AnalyticsService_Create_SetEndpoint_sync]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/AsyncExportAnalyticsMetrics.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/AsyncExportAnalyticsMetrics.java
new file mode 100644
index 000000000000..58afaecf5cc7
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/AsyncExportAnalyticsMetrics.java
@@ -0,0 +1,52 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.retail.v2.AnalyticsServiceClient;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.OutputConfig;
+import com.google.longrunning.Operation;
+
+public class AsyncExportAnalyticsMetrics {
+
+ public static void main(String[] args) throws Exception {
+ asyncExportAnalyticsMetrics();
+ }
+
+ public static void asyncExportAnalyticsMetrics() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (AnalyticsServiceClient analyticsServiceClient = AnalyticsServiceClient.create()) {
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("catalog555704345")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+ ApiFuture future =
+ analyticsServiceClient.exportAnalyticsMetricsCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_async]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/AsyncExportAnalyticsMetricsLRO.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/AsyncExportAnalyticsMetricsLRO.java
new file mode 100644
index 000000000000..0a5a9467f7a2
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/AsyncExportAnalyticsMetricsLRO.java
@@ -0,0 +1,53 @@
+/*
+ * 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_LRO_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.retail.v2.AnalyticsServiceClient;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse;
+import com.google.cloud.retail.v2.ExportMetadata;
+import com.google.cloud.retail.v2.OutputConfig;
+
+public class AsyncExportAnalyticsMetricsLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncExportAnalyticsMetricsLRO();
+ }
+
+ public static void asyncExportAnalyticsMetricsLRO() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (AnalyticsServiceClient analyticsServiceClient = AnalyticsServiceClient.create()) {
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("catalog555704345")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+ OperationFuture future =
+ analyticsServiceClient.exportAnalyticsMetricsOperationCallable().futureCall(request);
+ // Do something.
+ ExportAnalyticsMetricsResponse response = future.get();
+ }
+ }
+}
+// [END retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_LRO_async]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java
new file mode 100644
index 000000000000..22c1e7282916
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java
@@ -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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_sync]
+import com.google.cloud.retail.v2.AnalyticsServiceClient;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest;
+import com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse;
+import com.google.cloud.retail.v2.OutputConfig;
+
+public class SyncExportAnalyticsMetrics {
+
+ public static void main(String[] args) throws Exception {
+ syncExportAnalyticsMetrics();
+ }
+
+ public static void syncExportAnalyticsMetrics() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (AnalyticsServiceClient analyticsServiceClient = AnalyticsServiceClient.create()) {
+ ExportAnalyticsMetricsRequest request =
+ ExportAnalyticsMetricsRequest.newBuilder()
+ .setCatalog("catalog555704345")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setFilter("filter-1274492040")
+ .build();
+ ExportAnalyticsMetricsResponse response =
+ analyticsServiceClient.exportAnalyticsMetricsAsync(request).get();
+ }
+ }
+}
+// [END retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_sync]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservicesettings/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservicesettings/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java
new file mode 100644
index 000000000000..e75aa66aaf3d
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservicesettings/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java
@@ -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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.samples;
+
+// [START retail_v2_generated_AnalyticsServiceSettings_ExportAnalyticsMetrics_sync]
+import com.google.cloud.retail.v2.AnalyticsServiceSettings;
+import java.time.Duration;
+
+public class SyncExportAnalyticsMetrics {
+
+ public static void main(String[] args) throws Exception {
+ syncExportAnalyticsMetrics();
+ }
+
+ public static void syncExportAnalyticsMetrics() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ AnalyticsServiceSettings.Builder analyticsServiceSettingsBuilder =
+ AnalyticsServiceSettings.newBuilder();
+ analyticsServiceSettingsBuilder
+ .exportAnalyticsMetricsSettings()
+ .setRetrySettings(
+ analyticsServiceSettingsBuilder
+ .exportAnalyticsMetricsSettings()
+ .getRetrySettings()
+ .toBuilder()
+ .setTotalTimeout(Duration.ofSeconds(30))
+ .build());
+ AnalyticsServiceSettings analyticsServiceSettings = analyticsServiceSettingsBuilder.build();
+ }
+}
+// [END retail_v2_generated_AnalyticsServiceSettings_ExportAnalyticsMetrics_sync]
diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/stub/analyticsservicestubsettings/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/stub/analyticsservicestubsettings/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java
new file mode 100644
index 000000000000..09d0a74d9d04
--- /dev/null
+++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/stub/analyticsservicestubsettings/exportanalyticsmetrics/SyncExportAnalyticsMetrics.java
@@ -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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.retail.v2.stub.samples;
+
+// [START retail_v2_generated_AnalyticsServiceStubSettings_ExportAnalyticsMetrics_sync]
+import com.google.cloud.retail.v2.stub.AnalyticsServiceStubSettings;
+import java.time.Duration;
+
+public class SyncExportAnalyticsMetrics {
+
+ public static void main(String[] args) throws Exception {
+ syncExportAnalyticsMetrics();
+ }
+
+ public static void syncExportAnalyticsMetrics() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ AnalyticsServiceStubSettings.Builder analyticsServiceSettingsBuilder =
+ AnalyticsServiceStubSettings.newBuilder();
+ analyticsServiceSettingsBuilder
+ .exportAnalyticsMetricsSettings()
+ .setRetrySettings(
+ analyticsServiceSettingsBuilder
+ .exportAnalyticsMetricsSettings()
+ .getRetrySettings()
+ .toBuilder()
+ .setTotalTimeout(Duration.ofSeconds(30))
+ .build());
+ AnalyticsServiceStubSettings analyticsServiceSettings = analyticsServiceSettingsBuilder.build();
+ }
+}
+// [END retail_v2_generated_AnalyticsServiceStubSettings_ExportAnalyticsMetrics_sync]