Package com.google.cloud.retail.v2alpha (2.17.0)

A client to Retail API

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

CatalogServiceClient

Service Description: Service for managing catalog configuration.

Sample for CatalogServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
   Catalog catalog = Catalog.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Catalog response = catalogServiceClient.updateCatalog(catalog, updateMask);
 }
 

CompletionServiceClient

Service Description: Autocomplete service for retail.

This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Sample for CompletionServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
   CompleteQueryRequest request =
       CompleteQueryRequest.newBuilder()
           .setCatalog(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
           .setQuery("query107944136")
           .setVisitorId("visitorId1880545833")
           .addAllLanguageCodes(new ArrayList<String>())
           .setDeviceType("deviceType781190832")
           .setDataset("dataset1443214456")
           .setMaxSuggestions(618824852)
           .setEnableAttributeSuggestions(true)
           .setEntity("entity-1298275357")
           .build();
   CompleteQueryResponse response = completionServiceClient.completeQuery(request);
 }
 

ControlServiceClient

Service Description: Service for modifying Control.

Sample for ControlServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ControlServiceClient controlServiceClient = ControlServiceClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
   Control control = Control.newBuilder().build();
   String controlId = "controlId-395080872";
   Control response = controlServiceClient.createControl(parent, control, controlId);
 }
 

MerchantCenterAccountLinkServiceClient

Service Description: Merchant Center Link service to link a Branch to a Merchant Center Account.

Sample for MerchantCenterAccountLinkServiceClient:


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

ModelServiceClient

Service Description: Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page).

This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

Sample for ModelServiceClient:


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

PredictionServiceClient

Service Description: Service for making recommendation prediction.

Sample for PredictionServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
   PredictRequest request =
       PredictRequest.newBuilder()
           .setPlacement("placement1792938725")
           .setUserEvent(UserEvent.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setValidateOnly(true)
           .putAllParams(new HashMap<String, Value>())
           .putAllLabels(new HashMap<String, String>())
           .build();
   PredictResponse response = predictionServiceClient.predict(request);
 }
 

ProductServiceClient

Service Description: Service for ingesting Product information of the customer's website.

Sample for ProductServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
   BranchName parent = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]");
   Product product = Product.newBuilder().build();
   String productId = "productId-1051830678";
   Product response = productServiceClient.createProduct(parent, product, productId);
 }
 

SearchServiceClient

Service Description: Service for search.

This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Sample for SearchServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
   SearchRequest request =
       SearchRequest.newBuilder()
           .setPlacement("placement1792938725")
           .setBranch(
               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
           .setQuery("query107944136")
           .setVisitorId("visitorId1880545833")
           .setUserInfo(UserInfo.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOffset(-1019779949)
           .setFilter("filter-1274492040")
           .setCanonicalFilter("canonicalFilter-722283124")
           .setOrderBy("orderBy-1207110587")
           .addAllFacetSpecs(new ArrayList<SearchRequest.FacetSpec>())
           .setDynamicFacetSpec(SearchRequest.DynamicFacetSpec.newBuilder().build())
           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
           .addAllVariantRollupKeys(new ArrayList<String>())
           .addAllPageCategories(new ArrayList<String>())
           .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build())
           .putAllLabels(new HashMap<String, String>())
           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
           .setEntity("entity-1298275357")
           .build();
   for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 

ServingConfigServiceClient

Service Description: Service for modifying ServingConfig.

Sample for ServingConfigServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ServingConfigServiceClient servingConfigServiceClient =
     ServingConfigServiceClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
   ServingConfig servingConfig = ServingConfig.newBuilder().build();
   String servingConfigId = "servingConfigId-831052759";
   ServingConfig response =
       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
 }
 

UserEventServiceClient

Service Description: Service for ingesting end user actions on the customer website.

Sample for UserEventServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
   WriteUserEventRequest request =
       WriteUserEventRequest.newBuilder()
           .setParent("parent-995424086")
           .setUserEvent(UserEvent.newBuilder().build())
           .setWriteAsync(true)
           .build();
   UserEvent response = userEventServiceClient.writeUserEvent(request);
 }
 

Classes

AddCatalogAttributeRequest

Request for CatalogService.AddCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.AddCatalogAttributeRequest

AddCatalogAttributeRequest.Builder

Request for CatalogService.AddCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.AddCatalogAttributeRequest

AddControlRequest

Request for AddControl method.

Protobuf type google.cloud.retail.v2alpha.AddControlRequest

AddControlRequest.Builder

Request for AddControl method.

Protobuf type google.cloud.retail.v2alpha.AddControlRequest

AddFulfillmentPlacesMetadata

Metadata related to the progress of the AddFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the ProductService.AddFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.AddFulfillmentPlacesMetadata

AddFulfillmentPlacesMetadata.Builder

Metadata related to the progress of the AddFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the ProductService.AddFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.AddFulfillmentPlacesMetadata

AddFulfillmentPlacesRequest

Request message for ProductService.AddFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest

AddFulfillmentPlacesRequest.Builder

Request message for ProductService.AddFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest

AddFulfillmentPlacesResponse

Response of the AddFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the ProductService.AddFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.AddFulfillmentPlacesResponse

AddFulfillmentPlacesResponse.Builder

Response of the AddFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the ProductService.AddFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.AddFulfillmentPlacesResponse

AddLocalInventoriesMetadata

Metadata related to the progress of the AddLocalInventories operation. Currently empty because there is no meaningful metadata populated from the ProductService.AddLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.AddLocalInventoriesMetadata

AddLocalInventoriesMetadata.Builder

Metadata related to the progress of the AddLocalInventories operation. Currently empty because there is no meaningful metadata populated from the ProductService.AddLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.AddLocalInventoriesMetadata

AddLocalInventoriesRequest

Request message for ProductService.AddLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.AddLocalInventoriesRequest

AddLocalInventoriesRequest.Builder

Request message for ProductService.AddLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.AddLocalInventoriesRequest

AddLocalInventoriesResponse

Response of the ProductService.AddLocalInventories API. Currently empty because there is no meaningful response populated from the ProductService.AddLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.AddLocalInventoriesResponse

AddLocalInventoriesResponse.Builder

Response of the ProductService.AddLocalInventories API. Currently empty because there is no meaningful response populated from the ProductService.AddLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.AddLocalInventoriesResponse

AttributesConfig

Catalog level attribute config.

Protobuf type google.cloud.retail.v2alpha.AttributesConfig

AttributesConfig.Builder

Catalog level attribute config.

Protobuf type google.cloud.retail.v2alpha.AttributesConfig

AttributesConfigName

AttributesConfigName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/attributesConfig.

Audience

An intended audience of the Product for whom it's sold.

Protobuf type google.cloud.retail.v2alpha.Audience

Audience.Builder

An intended audience of the Product for whom it's sold.

Protobuf type google.cloud.retail.v2alpha.Audience

BatchRemoveCatalogAttributesRequest

Request for CatalogService.BatchRemoveCatalogAttributes method.

Protobuf type google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesRequest

BatchRemoveCatalogAttributesRequest.Builder

Request for CatalogService.BatchRemoveCatalogAttributes method.

Protobuf type google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesRequest

BatchRemoveCatalogAttributesResponse

Response of the CatalogService.BatchRemoveCatalogAttributes.

Protobuf type google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse

BatchRemoveCatalogAttributesResponse.Builder

Response of the CatalogService.BatchRemoveCatalogAttributes.

Protobuf type google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse

BigQueryOutputResult

A BigQuery output result.

Protobuf type google.cloud.retail.v2alpha.BigQueryOutputResult

BigQueryOutputResult.Builder

A BigQuery output result.

Protobuf type google.cloud.retail.v2alpha.BigQueryOutputResult

BigQuerySource

BigQuery source import data from.

Protobuf type google.cloud.retail.v2alpha.BigQuerySource

BigQuerySource.Builder

BigQuery source import data from.

Protobuf type google.cloud.retail.v2alpha.BigQuerySource

BranchName

BranchName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}.

Catalog

The catalog configuration.

Protobuf type google.cloud.retail.v2alpha.Catalog

Catalog.Builder

The catalog configuration.

Protobuf type google.cloud.retail.v2alpha.Catalog

CatalogAttribute

Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.

Protobuf type google.cloud.retail.v2alpha.CatalogAttribute

CatalogAttribute.Builder

Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.

Protobuf type google.cloud.retail.v2alpha.CatalogAttribute

CatalogName

CatalogName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}.

CatalogProto

CatalogServiceClient

Service Description: Service for managing catalog configuration.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
   Catalog catalog = Catalog.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Catalog response = catalogServiceClient.updateCatalog(catalog, updateMask);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

CatalogServiceClient.ListCatalogsFixedSizeCollection

CatalogServiceClient.ListCatalogsPage

CatalogServiceClient.ListCatalogsPagedResponse

CatalogServiceGrpc

Service for managing catalog configuration.

CatalogServiceGrpc.CatalogServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service CatalogService.

Service for managing catalog configuration.

CatalogServiceGrpc.CatalogServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service CatalogService.

Service for managing catalog configuration.

CatalogServiceGrpc.CatalogServiceImplBase

Base class for the server implementation of the service CatalogService.

Service for managing catalog configuration.

CatalogServiceGrpc.CatalogServiceStub

A stub to allow clients to do asynchronous rpc calls to service CatalogService.

Service for managing catalog configuration.

CatalogServiceProto

CatalogServiceSettings

Settings class to configure an instance of CatalogServiceClient.

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 updateCatalog to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 CatalogServiceSettings.Builder catalogServiceSettingsBuilder =
     CatalogServiceSettings.newBuilder();
 catalogServiceSettingsBuilder
     .updateCatalogSettings()
     .setRetrySettings(
         catalogServiceSettingsBuilder
             .updateCatalogSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 CatalogServiceSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
 

CatalogServiceSettings.Builder

Builder for CatalogServiceSettings.

CollectUserEventRequest

Request message for CollectUserEvent method.

Protobuf type google.cloud.retail.v2alpha.CollectUserEventRequest

CollectUserEventRequest.Builder

Request message for CollectUserEvent method.

Protobuf type google.cloud.retail.v2alpha.CollectUserEventRequest

ColorInfo

The color information of a Product.

Protobuf type google.cloud.retail.v2alpha.ColorInfo

ColorInfo.Builder

The color information of a Product.

Protobuf type google.cloud.retail.v2alpha.ColorInfo

CommonProto

CompleteQueryRequest

Autocomplete parameters.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryRequest

CompleteQueryRequest.Builder

Autocomplete parameters.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryRequest

CompleteQueryResponse

Response of the autocomplete query.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse

CompleteQueryResponse.AttributeResult

Resource that represents attribute results.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult

CompleteQueryResponse.AttributeResult.Builder

Resource that represents attribute results.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult

CompleteQueryResponse.Builder

Response of the autocomplete query.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse

CompleteQueryResponse.CompletionResult

Resource that represents completion results.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult

CompleteQueryResponse.CompletionResult.Builder

Resource that represents completion results.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult

CompleteQueryResponse.RecentSearchResult

Recent search of this user.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult

CompleteQueryResponse.RecentSearchResult.Builder

Recent search of this user.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult

CompletionConfig

Catalog level autocomplete config for customers to customize autocomplete feature's settings.

Protobuf type google.cloud.retail.v2alpha.CompletionConfig

CompletionConfig.Builder

Catalog level autocomplete config for customers to customize autocomplete feature's settings.

Protobuf type google.cloud.retail.v2alpha.CompletionConfig

CompletionConfigName

CompletionConfigName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/completionConfig.

CompletionDataInputConfig

The input config source for completion data.

Protobuf type google.cloud.retail.v2alpha.CompletionDataInputConfig

CompletionDataInputConfig.Builder

The input config source for completion data.

Protobuf type google.cloud.retail.v2alpha.CompletionDataInputConfig

CompletionDetail

Detailed completion information including completion attribution token and clicked completion info.

Protobuf type google.cloud.retail.v2alpha.CompletionDetail

CompletionDetail.Builder

Detailed completion information including completion attribution token and clicked completion info.

Protobuf type google.cloud.retail.v2alpha.CompletionDetail

CompletionServiceClient

Service Description: Autocomplete service for retail.

This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
   CompleteQueryRequest request =
       CompleteQueryRequest.newBuilder()
           .setCatalog(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
           .setQuery("query107944136")
           .setVisitorId("visitorId1880545833")
           .addAllLanguageCodes(new ArrayList<String>())
           .setDeviceType("deviceType781190832")
           .setDataset("dataset1443214456")
           .setMaxSuggestions(618824852)
           .setEnableAttributeSuggestions(true)
           .setEntity("entity-1298275357")
           .build();
   CompleteQueryResponse response = completionServiceClient.completeQuery(request);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

CompletionServiceGrpc

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

CompletionServiceGrpc.CompletionServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service CompletionService.

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

CompletionServiceGrpc.CompletionServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service CompletionService.

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

CompletionServiceGrpc.CompletionServiceImplBase

Base class for the server implementation of the service CompletionService.

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

CompletionServiceGrpc.CompletionServiceStub

A stub to allow clients to do asynchronous rpc calls to service CompletionService.

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

CompletionServiceProto

CompletionServiceSettings

Settings class to configure an instance of CompletionServiceClient.

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 completeQuery to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 CompletionServiceSettings.Builder completionServiceSettingsBuilder =
     CompletionServiceSettings.newBuilder();
 completionServiceSettingsBuilder
     .completeQuerySettings()
     .setRetrySettings(
         completionServiceSettingsBuilder
             .completeQuerySettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 CompletionServiceSettings completionServiceSettings = completionServiceSettingsBuilder.build();
 

CompletionServiceSettings.Builder

Builder for CompletionServiceSettings.

Condition

Metadata that is used to define a condition that triggers an action. A valid condition must specify at least one of 'query_terms' or 'products_filter'. If multiple fields are specified, the condition is met if all the fields are satisfied e.g. if a set of query terms and product_filter are set, then only items matching the product_filter for requests with a query matching the query terms wil get boosted.

Protobuf type google.cloud.retail.v2alpha.Condition

Condition.Builder

Metadata that is used to define a condition that triggers an action. A valid condition must specify at least one of 'query_terms' or 'products_filter'. If multiple fields are specified, the condition is met if all the fields are satisfied e.g. if a set of query terms and product_filter are set, then only items matching the product_filter for requests with a query matching the query terms wil get boosted.

Protobuf type google.cloud.retail.v2alpha.Condition

Condition.QueryTerm

Query terms that we want to match on.

Protobuf type google.cloud.retail.v2alpha.Condition.QueryTerm

Condition.QueryTerm.Builder

Query terms that we want to match on.

Protobuf type google.cloud.retail.v2alpha.Condition.QueryTerm

Condition.TimeRange

Used for time-dependent conditions. Example: Want to have rule applied for week long sale.

Protobuf type google.cloud.retail.v2alpha.Condition.TimeRange

Condition.TimeRange.Builder

Used for time-dependent conditions. Example: Want to have rule applied for week long sale.

Protobuf type google.cloud.retail.v2alpha.Condition.TimeRange

Control

Configures dynamic metadata that can be linked to a ServingConfig and affect search or recommendation results at serving time.

Protobuf type google.cloud.retail.v2alpha.Control

Control.Builder

Configures dynamic metadata that can be linked to a ServingConfig and affect search or recommendation results at serving time.

Protobuf type google.cloud.retail.v2alpha.Control

ControlName

ControlName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/controls/{control}.

ControlProto

ControlServiceClient

Service Description: Service for modifying Control.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ControlServiceClient controlServiceClient = ControlServiceClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
   Control control = Control.newBuilder().build();
   String controlId = "controlId-395080872";
   Control response = controlServiceClient.createControl(parent, control, controlId);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

ControlServiceClient.ListControlsFixedSizeCollection

ControlServiceClient.ListControlsPage

ControlServiceClient.ListControlsPagedResponse

ControlServiceGrpc

Service for modifying Control.

ControlServiceGrpc.ControlServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service ControlService.

Service for modifying Control.

ControlServiceGrpc.ControlServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service ControlService.

Service for modifying Control.

ControlServiceGrpc.ControlServiceImplBase

Base class for the server implementation of the service ControlService.

Service for modifying Control.

ControlServiceGrpc.ControlServiceStub

A stub to allow clients to do asynchronous rpc calls to service ControlService.

Service for modifying Control.

ControlServiceProto

ControlServiceSettings

Settings class to configure an instance of ControlServiceClient.

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 createControl to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ControlServiceSettings.Builder controlServiceSettingsBuilder =
     ControlServiceSettings.newBuilder();
 controlServiceSettingsBuilder
     .createControlSettings()
     .setRetrySettings(
         controlServiceSettingsBuilder
             .createControlSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ControlServiceSettings controlServiceSettings = controlServiceSettingsBuilder.build();
 

ControlServiceSettings.Builder

Builder for ControlServiceSettings.

CreateControlRequest

Request for CreateControl method.

Protobuf type google.cloud.retail.v2alpha.CreateControlRequest

CreateControlRequest.Builder

Request for CreateControl method.

Protobuf type google.cloud.retail.v2alpha.CreateControlRequest

CreateMerchantCenterAccountLinkMetadata

Common metadata related to the progress of the operations.

Protobuf type google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkMetadata

CreateMerchantCenterAccountLinkMetadata.Builder

Common metadata related to the progress of the operations.

Protobuf type google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkMetadata

CreateMerchantCenterAccountLinkRequest

Request for MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink method.

Protobuf type google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest

CreateMerchantCenterAccountLinkRequest.Builder

Request for MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink method.

Protobuf type google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest

CreateModelMetadata

Metadata associated with a create operation.

Protobuf type google.cloud.retail.v2alpha.CreateModelMetadata

CreateModelMetadata.Builder

Metadata associated with a create operation.

Protobuf type google.cloud.retail.v2alpha.CreateModelMetadata

CreateModelRequest

Request for creating a model.

Protobuf type google.cloud.retail.v2alpha.CreateModelRequest

CreateModelRequest.Builder

Request for creating a model.

Protobuf type google.cloud.retail.v2alpha.CreateModelRequest

CreateProductRequest

Request message for ProductService.CreateProduct method.

Protobuf type google.cloud.retail.v2alpha.CreateProductRequest

CreateProductRequest.Builder

Request message for ProductService.CreateProduct method.

Protobuf type google.cloud.retail.v2alpha.CreateProductRequest

CreateServingConfigRequest

Request for CreateServingConfig method.

Protobuf type google.cloud.retail.v2alpha.CreateServingConfigRequest

CreateServingConfigRequest.Builder

Request for CreateServingConfig method.

Protobuf type google.cloud.retail.v2alpha.CreateServingConfigRequest

CustomAttribute

A custom attribute that is not explicitly modeled in Product.

Protobuf type google.cloud.retail.v2alpha.CustomAttribute

CustomAttribute.Builder

A custom attribute that is not explicitly modeled in Product.

Protobuf type google.cloud.retail.v2alpha.CustomAttribute

DeleteControlRequest

Request for DeleteControl method.

Protobuf type google.cloud.retail.v2alpha.DeleteControlRequest

DeleteControlRequest.Builder

Request for DeleteControl method.

Protobuf type google.cloud.retail.v2alpha.DeleteControlRequest

DeleteMerchantCenterAccountLinkRequest

Request for MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLink method.

Protobuf type google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest

DeleteMerchantCenterAccountLinkRequest.Builder

Request for MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLink method.

Protobuf type google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest

DeleteModelRequest

Request for deleting a model.

Protobuf type google.cloud.retail.v2alpha.DeleteModelRequest

DeleteModelRequest.Builder

Request for deleting a model.

Protobuf type google.cloud.retail.v2alpha.DeleteModelRequest

DeleteProductRequest

Request message for ProductService.DeleteProduct method.

Protobuf type google.cloud.retail.v2alpha.DeleteProductRequest

DeleteProductRequest.Builder

Request message for ProductService.DeleteProduct method.

Protobuf type google.cloud.retail.v2alpha.DeleteProductRequest

DeleteServingConfigRequest

Request for DeleteServingConfig method.

Protobuf type google.cloud.retail.v2alpha.DeleteServingConfigRequest

DeleteServingConfigRequest.Builder

Request for DeleteServingConfig method.

Protobuf type google.cloud.retail.v2alpha.DeleteServingConfigRequest

ExperimentInfo

Metadata for active A/B testing [Experiments][].

Protobuf type google.cloud.retail.v2alpha.ExperimentInfo

ExperimentInfo.Builder

Metadata for active A/B testing [Experiments][].

Protobuf type google.cloud.retail.v2alpha.ExperimentInfo

ExperimentInfo.ServingConfigExperiment

Metadata for active serving config A/B tests.

Protobuf type google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment

ExperimentInfo.ServingConfigExperiment.Builder

Metadata for active serving config A/B tests.

Protobuf type google.cloud.retail.v2alpha.ExperimentInfo.ServingConfigExperiment

ExportConfigProto

ExportErrorsConfig

Configuration of destination for Export related errors.

Protobuf type google.cloud.retail.v2alpha.ExportErrorsConfig

ExportErrorsConfig.Builder

Configuration of destination for Export related errors.

Protobuf type google.cloud.retail.v2alpha.ExportErrorsConfig

ExportMetadata

Metadata related to the progress of the Export operation. This is returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.ExportMetadata

ExportMetadata.Builder

Metadata related to the progress of the Export operation. This is returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.ExportMetadata

ExportProductsResponse

Response of the ExportProductsRequest. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.

Protobuf type google.cloud.retail.v2alpha.ExportProductsResponse

ExportProductsResponse.Builder

Response of the ExportProductsRequest. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.

Protobuf type google.cloud.retail.v2alpha.ExportProductsResponse

ExportUserEventsResponse

Response of the ExportUserEventsRequest. 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 google.cloud.retail.v2alpha.ExportUserEventsResponse

ExportUserEventsResponse.Builder

Response of the ExportUserEventsRequest. 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 google.cloud.retail.v2alpha.ExportUserEventsResponse

FulfillmentInfo

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

Protobuf type google.cloud.retail.v2alpha.FulfillmentInfo

FulfillmentInfo.Builder

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

Protobuf type google.cloud.retail.v2alpha.FulfillmentInfo

GcsOutputResult

A Gcs output result.

Protobuf type google.cloud.retail.v2alpha.GcsOutputResult

GcsOutputResult.Builder

A Gcs output result.

Protobuf type google.cloud.retail.v2alpha.GcsOutputResult

GcsSource

Google Cloud Storage location for input content.

Protobuf type google.cloud.retail.v2alpha.GcsSource

GcsSource.Builder

Google Cloud Storage location for input content.

Protobuf type google.cloud.retail.v2alpha.GcsSource

GetAttributesConfigRequest

Request for CatalogService.GetAttributesConfig method.

Protobuf type google.cloud.retail.v2alpha.GetAttributesConfigRequest

GetAttributesConfigRequest.Builder

Request for CatalogService.GetAttributesConfig method.

Protobuf type google.cloud.retail.v2alpha.GetAttributesConfigRequest

GetCompletionConfigRequest

Request for CatalogService.GetCompletionConfig method.

Protobuf type google.cloud.retail.v2alpha.GetCompletionConfigRequest

GetCompletionConfigRequest.Builder

Request for CatalogService.GetCompletionConfig method.

Protobuf type google.cloud.retail.v2alpha.GetCompletionConfigRequest

GetControlRequest

Request for GetControl method.

Protobuf type google.cloud.retail.v2alpha.GetControlRequest

GetControlRequest.Builder

Request for GetControl method.

Protobuf type google.cloud.retail.v2alpha.GetControlRequest

GetDefaultBranchRequest

Request message to show which branch is currently the default branch.

Protobuf type google.cloud.retail.v2alpha.GetDefaultBranchRequest

GetDefaultBranchRequest.Builder

Request message to show which branch is currently the default branch.

Protobuf type google.cloud.retail.v2alpha.GetDefaultBranchRequest

GetDefaultBranchResponse

Response message of CatalogService.GetDefaultBranch.

Protobuf type google.cloud.retail.v2alpha.GetDefaultBranchResponse

GetDefaultBranchResponse.Builder

Response message of CatalogService.GetDefaultBranch.

Protobuf type google.cloud.retail.v2alpha.GetDefaultBranchResponse

GetModelRequest

Request for getting a model.

Protobuf type google.cloud.retail.v2alpha.GetModelRequest

GetModelRequest.Builder

Request for getting a model.

Protobuf type google.cloud.retail.v2alpha.GetModelRequest

GetProductRequest

Request message for ProductService.GetProduct method.

Protobuf type google.cloud.retail.v2alpha.GetProductRequest

GetProductRequest.Builder

Request message for ProductService.GetProduct method.

Protobuf type google.cloud.retail.v2alpha.GetProductRequest

GetServingConfigRequest

Request for GetServingConfig method.

Protobuf type google.cloud.retail.v2alpha.GetServingConfigRequest

GetServingConfigRequest.Builder

Request for GetServingConfig method.

Protobuf type google.cloud.retail.v2alpha.GetServingConfigRequest

Image

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

Protobuf type google.cloud.retail.v2alpha.Image

Image.Builder

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

Protobuf type google.cloud.retail.v2alpha.Image

ImportCompletionDataRequest

Request message for ImportCompletionData methods.

Protobuf type google.cloud.retail.v2alpha.ImportCompletionDataRequest

ImportCompletionDataRequest.Builder

Request message for ImportCompletionData methods.

Protobuf type google.cloud.retail.v2alpha.ImportCompletionDataRequest

ImportCompletionDataResponse

Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.

Protobuf type google.cloud.retail.v2alpha.ImportCompletionDataResponse

ImportCompletionDataResponse.Builder

Response of the ImportCompletionDataRequest. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.

Protobuf type google.cloud.retail.v2alpha.ImportCompletionDataResponse

ImportConfigProto

ImportErrorsConfig

Configuration of destination for Import related errors.

Protobuf type google.cloud.retail.v2alpha.ImportErrorsConfig

ImportErrorsConfig.Builder

Configuration of destination for Import related errors.

Protobuf type google.cloud.retail.v2alpha.ImportErrorsConfig

ImportMetadata

Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.ImportMetadata

ImportMetadata.Builder

Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.ImportMetadata

ImportProductsRequest

Request message for Import methods.

Protobuf type google.cloud.retail.v2alpha.ImportProductsRequest

ImportProductsRequest.Builder

Request message for Import methods.

Protobuf type google.cloud.retail.v2alpha.ImportProductsRequest

ImportProductsResponse

Response of the ImportProductsRequest. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.

Protobuf type google.cloud.retail.v2alpha.ImportProductsResponse

ImportProductsResponse.Builder

Response of the ImportProductsRequest. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.

Protobuf type google.cloud.retail.v2alpha.ImportProductsResponse

ImportUserEventsRequest

Request message for the ImportUserEvents request.

Protobuf type google.cloud.retail.v2alpha.ImportUserEventsRequest

ImportUserEventsRequest.Builder

Request message for the ImportUserEvents request.

Protobuf type google.cloud.retail.v2alpha.ImportUserEventsRequest

ImportUserEventsResponse

Response of the ImportUserEventsRequest. 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 google.cloud.retail.v2alpha.ImportUserEventsResponse

ImportUserEventsResponse.Builder

Response of the ImportUserEventsRequest. 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 google.cloud.retail.v2alpha.ImportUserEventsResponse

Interval

A floating point interval.

Protobuf type google.cloud.retail.v2alpha.Interval

Interval.Builder

A floating point interval.

Protobuf type google.cloud.retail.v2alpha.Interval

ListCatalogsRequest

Request for CatalogService.ListCatalogs method.

Protobuf type google.cloud.retail.v2alpha.ListCatalogsRequest

ListCatalogsRequest.Builder

Request for CatalogService.ListCatalogs method.

Protobuf type google.cloud.retail.v2alpha.ListCatalogsRequest

ListCatalogsResponse

Response for CatalogService.ListCatalogs method.

Protobuf type google.cloud.retail.v2alpha.ListCatalogsResponse

ListCatalogsResponse.Builder

Response for CatalogService.ListCatalogs method.

Protobuf type google.cloud.retail.v2alpha.ListCatalogsResponse

ListControlsRequest

Request for ListControls method.

Protobuf type google.cloud.retail.v2alpha.ListControlsRequest

ListControlsRequest.Builder

Request for ListControls method.

Protobuf type google.cloud.retail.v2alpha.ListControlsRequest

ListControlsResponse

Response for ListControls method.

Protobuf type google.cloud.retail.v2alpha.ListControlsResponse

ListControlsResponse.Builder

Response for ListControls method.

Protobuf type google.cloud.retail.v2alpha.ListControlsResponse

ListMerchantCenterAccountLinksRequest

Request for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method.

Protobuf type google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest

ListMerchantCenterAccountLinksRequest.Builder

Request for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method.

Protobuf type google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest

ListMerchantCenterAccountLinksResponse

Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method.

Protobuf type google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse

ListMerchantCenterAccountLinksResponse.Builder

Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method.

Protobuf type google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse

ListModelsRequest

Request for listing models associated with a resource.

Protobuf type google.cloud.retail.v2alpha.ListModelsRequest

ListModelsRequest.Builder

Request for listing models associated with a resource.

Protobuf type google.cloud.retail.v2alpha.ListModelsRequest

ListModelsResponse

Response to a ListModelRequest.

Protobuf type google.cloud.retail.v2alpha.ListModelsResponse

ListModelsResponse.Builder

Response to a ListModelRequest.

Protobuf type google.cloud.retail.v2alpha.ListModelsResponse

ListProductsRequest

Request message for ProductService.ListProducts method.

Protobuf type google.cloud.retail.v2alpha.ListProductsRequest

ListProductsRequest.Builder

Request message for ProductService.ListProducts method.

Protobuf type google.cloud.retail.v2alpha.ListProductsRequest

ListProductsResponse

Response message for ProductService.ListProducts method.

Protobuf type google.cloud.retail.v2alpha.ListProductsResponse

ListProductsResponse.Builder

Response message for ProductService.ListProducts method.

Protobuf type google.cloud.retail.v2alpha.ListProductsResponse

ListServingConfigsRequest

Request for ListServingConfigs method.

Protobuf type google.cloud.retail.v2alpha.ListServingConfigsRequest

ListServingConfigsRequest.Builder

Request for ListServingConfigs method.

Protobuf type google.cloud.retail.v2alpha.ListServingConfigsRequest

ListServingConfigsResponse

Response for ListServingConfigs method.

Protobuf type google.cloud.retail.v2alpha.ListServingConfigsResponse

ListServingConfigsResponse.Builder

Response for ListServingConfigs method.

Protobuf type google.cloud.retail.v2alpha.ListServingConfigsResponse

LocalInventory

The inventory information at a place (e.g. a store) identified by a place ID.

Protobuf type google.cloud.retail.v2alpha.LocalInventory

LocalInventory.Builder

The inventory information at a place (e.g. a store) identified by a place ID.

Protobuf type google.cloud.retail.v2alpha.LocalInventory

LocationName

LocationName.Builder

Builder for projects/{project}/locations/{location}.

Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterAccountLink

MerchantCenterAccountLink.Builder

Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterAccountLink

MerchantCenterAccountLink.MerchantCenterFeedFilter

Merchant Center Feed filter criterion.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilter

MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder

Merchant Center Feed filter criterion.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilter

MerchantCenterAccountLinkName

MerchantCenterAccountLinkName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/merchantCenterAccountLinks/{merchant_center_account_link}.

MerchantCenterAccountLinkProto

MerchantCenterAccountLinkServiceClient

Service Description: Merchant Center Link service to link a Branch to a Merchant Center Account.

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


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

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

MerchantCenterAccountLinkServiceGrpc

Merchant Center Link service to link a Branch to a Merchant Center Account.

MerchantCenterAccountLinkServiceGrpc.MerchantCenterAccountLinkServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service MerchantCenterAccountLinkService.

Merchant Center Link service to link a Branch to a Merchant Center Account.

MerchantCenterAccountLinkServiceGrpc.MerchantCenterAccountLinkServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service MerchantCenterAccountLinkService.

Merchant Center Link service to link a Branch to a Merchant Center Account.

MerchantCenterAccountLinkServiceGrpc.MerchantCenterAccountLinkServiceImplBase

Base class for the server implementation of the service MerchantCenterAccountLinkService.

Merchant Center Link service to link a Branch to a Merchant Center Account.

MerchantCenterAccountLinkServiceGrpc.MerchantCenterAccountLinkServiceStub

A stub to allow clients to do asynchronous rpc calls to service MerchantCenterAccountLinkService.

Merchant Center Link service to link a Branch to a Merchant Center Account.

MerchantCenterAccountLinkServiceProto

MerchantCenterAccountLinkServiceSettings

Settings class to configure an instance of MerchantCenterAccountLinkServiceClient.

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 listMerchantCenterAccountLinks to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 MerchantCenterAccountLinkServiceSettings.Builder
     merchantCenterAccountLinkServiceSettingsBuilder =
         MerchantCenterAccountLinkServiceSettings.newBuilder();
 merchantCenterAccountLinkServiceSettingsBuilder
     .listMerchantCenterAccountLinksSettings()
     .setRetrySettings(
         merchantCenterAccountLinkServiceSettingsBuilder
             .listMerchantCenterAccountLinksSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 MerchantCenterAccountLinkServiceSettings merchantCenterAccountLinkServiceSettings =
     merchantCenterAccountLinkServiceSettingsBuilder.build();
 

MerchantCenterAccountLinkServiceSettings.Builder

Builder for MerchantCenterAccountLinkServiceSettings.

MerchantCenterFeedFilter

Merchant Center Feed filter criterion.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterFeedFilter

MerchantCenterFeedFilter.Builder

Merchant Center Feed filter criterion.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterFeedFilter

Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterLink

MerchantCenterLink.Builder

Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterLink

MerchantCenterLinkingConfig

Configures Merchant Center linking. Links contained in the config will be used to sync data from a Merchant Center account to a Cloud Retail branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterLinkingConfig

MerchantCenterLinkingConfig.Builder

Configures Merchant Center linking. Links contained in the config will be used to sync data from a Merchant Center account to a Cloud Retail branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterLinkingConfig

Model

Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.

Protobuf type google.cloud.retail.v2alpha.Model

Model.Builder

Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.

Protobuf type google.cloud.retail.v2alpha.Model

Model.PageOptimizationConfig

The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig

Model.PageOptimizationConfig.Builder

The PageOptimizationConfig for model training. This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which ServingConfig to show on which panels in way that optimizes the visitors shopping journey.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig

Model.PageOptimizationConfig.Candidate

A candidate to consider for a given panel. Currently only ServingConfig are valid candidates.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate

Model.PageOptimizationConfig.Candidate.Builder

A candidate to consider for a given panel. Currently only ServingConfig are valid candidates.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Candidate

Model.PageOptimizationConfig.Panel

An individual panel with a list of ServingConfigs to consider for it.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Panel

Model.PageOptimizationConfig.Panel.Builder

An individual panel with a list of ServingConfigs to consider for it.

Protobuf type google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Panel

Model.ServingConfigList

Represents an ordered combination of valid serving configs, which can be used for PAGE_OPTIMIZATION recommendations.

Protobuf type google.cloud.retail.v2alpha.Model.ServingConfigList

Model.ServingConfigList.Builder

Represents an ordered combination of valid serving configs, which can be used for PAGE_OPTIMIZATION recommendations.

Protobuf type google.cloud.retail.v2alpha.Model.ServingConfigList

ModelName

ModelName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/models/{model}.

ModelProto

ModelServiceClient

Service Description: Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page).

This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

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


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

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

ModelServiceClient.ListModelsFixedSizeCollection

ModelServiceClient.ListModelsPage

ModelServiceClient.ListModelsPagedResponse

ModelServiceGrpc

Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page). This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

ModelServiceGrpc.ModelServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service ModelService.

Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page). This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

ModelServiceGrpc.ModelServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service ModelService.

Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page). This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

ModelServiceGrpc.ModelServiceImplBase

Base class for the server implementation of the service ModelService.

Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page). This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

ModelServiceGrpc.ModelServiceStub

A stub to allow clients to do asynchronous rpc calls to service ModelService.

Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page). This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

ModelServiceProto

ModelServiceSettings

Settings class to configure an instance of ModelServiceClient.

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 getModel to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ModelServiceSettings.Builder modelServiceSettingsBuilder = ModelServiceSettings.newBuilder();
 modelServiceSettingsBuilder
     .getModelSettings()
     .setRetrySettings(
         modelServiceSettingsBuilder
             .getModelSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ModelServiceSettings modelServiceSettings = modelServiceSettingsBuilder.build();
 

ModelServiceSettings.Builder

Builder for ModelServiceSettings.

OutputResult

Output result that stores the information about where the exported data is stored.

Protobuf type google.cloud.retail.v2alpha.OutputResult

OutputResult.Builder

Output result that stores the information about where the exported data is stored.

Protobuf type google.cloud.retail.v2alpha.OutputResult

PauseModelRequest

Request for pausing training of a model.

Protobuf type google.cloud.retail.v2alpha.PauseModelRequest

PauseModelRequest.Builder

Request for pausing training of a model.

Protobuf type google.cloud.retail.v2alpha.PauseModelRequest

PredictRequest

Request message for Predict method.

Protobuf type google.cloud.retail.v2alpha.PredictRequest

PredictRequest.Builder

Request message for Predict method.

Protobuf type google.cloud.retail.v2alpha.PredictRequest

PredictResponse

Response message for predict method.

Protobuf type google.cloud.retail.v2alpha.PredictResponse

PredictResponse.Builder

Response message for predict method.

Protobuf type google.cloud.retail.v2alpha.PredictResponse

PredictResponse.PredictionResult

PredictionResult represents the recommendation prediction results.

Protobuf type google.cloud.retail.v2alpha.PredictResponse.PredictionResult

PredictResponse.PredictionResult.Builder

PredictionResult represents the recommendation prediction results.

Protobuf type google.cloud.retail.v2alpha.PredictResponse.PredictionResult

PredictionServiceClient

Service Description: Service for making recommendation prediction.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
   PredictRequest request =
       PredictRequest.newBuilder()
           .setPlacement("placement1792938725")
           .setUserEvent(UserEvent.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setValidateOnly(true)
           .putAllParams(new HashMap<String, Value>())
           .putAllLabels(new HashMap<String, String>())
           .build();
   PredictResponse response = predictionServiceClient.predict(request);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

PredictionServiceGrpc

Service for making recommendation prediction.

PredictionServiceGrpc.PredictionServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service PredictionService.

Service for making recommendation prediction.

PredictionServiceGrpc.PredictionServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service PredictionService.

Service for making recommendation prediction.

PredictionServiceGrpc.PredictionServiceImplBase

Base class for the server implementation of the service PredictionService.

Service for making recommendation prediction.

PredictionServiceGrpc.PredictionServiceStub

A stub to allow clients to do asynchronous rpc calls to service PredictionService.

Service for making recommendation prediction.

PredictionServiceProto

PredictionServiceSettings

Settings class to configure an instance of PredictionServiceClient.

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 predict to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 PredictionServiceSettings.Builder predictionServiceSettingsBuilder =
     PredictionServiceSettings.newBuilder();
 predictionServiceSettingsBuilder
     .predictSettings()
     .setRetrySettings(
         predictionServiceSettingsBuilder
             .predictSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 PredictionServiceSettings predictionServiceSettings = predictionServiceSettingsBuilder.build();
 

PredictionServiceSettings.Builder

Builder for PredictionServiceSettings.

PriceInfo

The price information of a Product.

Protobuf type google.cloud.retail.v2alpha.PriceInfo

PriceInfo.Builder

The price information of a Product.

Protobuf type google.cloud.retail.v2alpha.PriceInfo

PriceInfo.PriceRange

The price range of all variant Product having the same Product.primary_product_id.

Protobuf type google.cloud.retail.v2alpha.PriceInfo.PriceRange

PriceInfo.PriceRange.Builder

The price range of all variant Product having the same Product.primary_product_id.

Protobuf type google.cloud.retail.v2alpha.PriceInfo.PriceRange

Product

Product captures all metadata information of items to be recommended or searched.

Protobuf type google.cloud.retail.v2alpha.Product

Product.Builder

Product captures all metadata information of items to be recommended or searched.

Protobuf type google.cloud.retail.v2alpha.Product

ProductDetail

Detailed product information associated with a user event.

Protobuf type google.cloud.retail.v2alpha.ProductDetail

ProductDetail.Builder

Detailed product information associated with a user event.

Protobuf type google.cloud.retail.v2alpha.ProductDetail

ProductInlineSource

The inline source for the input config for ImportProducts method.

Protobuf type google.cloud.retail.v2alpha.ProductInlineSource

ProductInlineSource.Builder

The inline source for the input config for ImportProducts method.

Protobuf type google.cloud.retail.v2alpha.ProductInlineSource

ProductInputConfig

The input config source for products.

Protobuf type google.cloud.retail.v2alpha.ProductInputConfig

ProductInputConfig.Builder

The input config source for products.

Protobuf type google.cloud.retail.v2alpha.ProductInputConfig

ProductLevelConfig

Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.

Protobuf type google.cloud.retail.v2alpha.ProductLevelConfig

ProductLevelConfig.Builder

Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.

Protobuf type google.cloud.retail.v2alpha.ProductLevelConfig

ProductName

ProductName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}/products/{product}.

ProductProto

ProductServiceClient

Service Description: Service for ingesting Product information of the customer's website.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
   BranchName parent = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]");
   Product product = Product.newBuilder().build();
   String productId = "productId-1051830678";
   Product response = productServiceClient.createProduct(parent, product, productId);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

ProductServiceClient.ListProductsFixedSizeCollection

ProductServiceClient.ListProductsPage

ProductServiceClient.ListProductsPagedResponse

ProductServiceGrpc

Service for ingesting Product information of the customer's website.

ProductServiceGrpc.ProductServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service ProductService.

Service for ingesting Product information of the customer's website.

ProductServiceGrpc.ProductServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service ProductService.

Service for ingesting Product information of the customer's website.

ProductServiceGrpc.ProductServiceImplBase

Base class for the server implementation of the service ProductService.

Service for ingesting Product information of the customer's website.

ProductServiceGrpc.ProductServiceStub

A stub to allow clients to do asynchronous rpc calls to service ProductService.

Service for ingesting Product information of the customer's website.

ProductServiceProto

ProductServiceSettings

Settings class to configure an instance of ProductServiceClient.

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 createProduct to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ProductServiceSettings.Builder productServiceSettingsBuilder =
     ProductServiceSettings.newBuilder();
 productServiceSettingsBuilder
     .createProductSettings()
     .setRetrySettings(
         productServiceSettingsBuilder
             .createProductSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ProductServiceSettings productServiceSettings = productServiceSettingsBuilder.build();
 

ProductServiceSettings.Builder

Builder for ProductServiceSettings.

Promotion

Promotion information.

Protobuf type google.cloud.retail.v2alpha.Promotion

Promotion.Builder

Promotion information.

Protobuf type google.cloud.retail.v2alpha.Promotion

PromotionProto

PurchaseTransaction

A transaction represents the entire purchase transaction.

Protobuf type google.cloud.retail.v2alpha.PurchaseTransaction

PurchaseTransaction.Builder

A transaction represents the entire purchase transaction.

Protobuf type google.cloud.retail.v2alpha.PurchaseTransaction

PurgeConfigProto

PurgeMetadata

Metadata related to the progress of the Purge operation. This will be returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.PurgeMetadata

PurgeMetadata.Builder

Metadata related to the progress of the Purge operation. This will be returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.PurgeMetadata

PurgeProductsMetadata

Metadata related to the progress of the PurgeProducts operation. This will be returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.PurgeProductsMetadata

PurgeProductsMetadata.Builder

Metadata related to the progress of the PurgeProducts operation. This will be returned by the google.longrunning.Operation.metadata field.

Protobuf type google.cloud.retail.v2alpha.PurgeProductsMetadata

PurgeProductsRequest

Request message for PurgeProducts method.

Protobuf type google.cloud.retail.v2alpha.PurgeProductsRequest

PurgeProductsRequest.Builder

Request message for PurgeProducts method.

Protobuf type google.cloud.retail.v2alpha.PurgeProductsRequest

PurgeProductsResponse

Response of the PurgeProductsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.

Protobuf type google.cloud.retail.v2alpha.PurgeProductsResponse

PurgeProductsResponse.Builder

Response of the PurgeProductsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.

Protobuf type google.cloud.retail.v2alpha.PurgeProductsResponse

PurgeUserEventsRequest

Request message for PurgeUserEvents method.

Protobuf type google.cloud.retail.v2alpha.PurgeUserEventsRequest

PurgeUserEventsRequest.Builder

Request message for PurgeUserEvents method.

Protobuf type google.cloud.retail.v2alpha.PurgeUserEventsRequest

PurgeUserEventsResponse

Response of the PurgeUserEventsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.

Protobuf type google.cloud.retail.v2alpha.PurgeUserEventsResponse

PurgeUserEventsResponse.Builder

Response of the PurgeUserEventsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.

Protobuf type google.cloud.retail.v2alpha.PurgeUserEventsResponse

Rating

The rating of a Product.

Protobuf type google.cloud.retail.v2alpha.Rating

Rating.Builder

The rating of a Product.

Protobuf type google.cloud.retail.v2alpha.Rating

RejoinUserEventsMetadata

Metadata for RejoinUserEvents method.

Protobuf type google.cloud.retail.v2alpha.RejoinUserEventsMetadata

RejoinUserEventsMetadata.Builder

Metadata for RejoinUserEvents method.

Protobuf type google.cloud.retail.v2alpha.RejoinUserEventsMetadata

RejoinUserEventsRequest

Request message for RejoinUserEvents method.

Protobuf type google.cloud.retail.v2alpha.RejoinUserEventsRequest

RejoinUserEventsRequest.Builder

Request message for RejoinUserEvents method.

Protobuf type google.cloud.retail.v2alpha.RejoinUserEventsRequest

RejoinUserEventsResponse

Response message for RejoinUserEvents method.

Protobuf type google.cloud.retail.v2alpha.RejoinUserEventsResponse

RejoinUserEventsResponse.Builder

Response message for RejoinUserEvents method.

Protobuf type google.cloud.retail.v2alpha.RejoinUserEventsResponse

RemoveCatalogAttributeRequest

Request for CatalogService.RemoveCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.RemoveCatalogAttributeRequest

RemoveCatalogAttributeRequest.Builder

Request for CatalogService.RemoveCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.RemoveCatalogAttributeRequest

RemoveControlRequest

Request for RemoveControl method.

Protobuf type google.cloud.retail.v2alpha.RemoveControlRequest

RemoveControlRequest.Builder

Request for RemoveControl method.

Protobuf type google.cloud.retail.v2alpha.RemoveControlRequest

RemoveFulfillmentPlacesMetadata

Metadata related to the progress of the RemoveFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the ProductService.RemoveFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.RemoveFulfillmentPlacesMetadata

RemoveFulfillmentPlacesMetadata.Builder

Metadata related to the progress of the RemoveFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the ProductService.RemoveFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.RemoveFulfillmentPlacesMetadata

RemoveFulfillmentPlacesRequest

Request message for ProductService.RemoveFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest

RemoveFulfillmentPlacesRequest.Builder

Request message for ProductService.RemoveFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest

RemoveFulfillmentPlacesResponse

Response of the RemoveFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the ProductService.RemoveFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.RemoveFulfillmentPlacesResponse

RemoveFulfillmentPlacesResponse.Builder

Response of the RemoveFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the ProductService.RemoveFulfillmentPlaces method.

Protobuf type google.cloud.retail.v2alpha.RemoveFulfillmentPlacesResponse

RemoveLocalInventoriesMetadata

Metadata related to the progress of the RemoveLocalInventories operation. Currently empty because there is no meaningful metadata populated from the ProductService.RemoveLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.RemoveLocalInventoriesMetadata

RemoveLocalInventoriesMetadata.Builder

Metadata related to the progress of the RemoveLocalInventories operation. Currently empty because there is no meaningful metadata populated from the ProductService.RemoveLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.RemoveLocalInventoriesMetadata

RemoveLocalInventoriesRequest

Request message for ProductService.RemoveLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.RemoveLocalInventoriesRequest

RemoveLocalInventoriesRequest.Builder

Request message for ProductService.RemoveLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.RemoveLocalInventoriesRequest

RemoveLocalInventoriesResponse

Response of the ProductService.RemoveLocalInventories API. Currently empty because there is no meaningful response populated from the ProductService.RemoveLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.RemoveLocalInventoriesResponse

RemoveLocalInventoriesResponse.Builder

Response of the ProductService.RemoveLocalInventories API. Currently empty because there is no meaningful response populated from the ProductService.RemoveLocalInventories method.

Protobuf type google.cloud.retail.v2alpha.RemoveLocalInventoriesResponse

ReplaceCatalogAttributeRequest

Request for CatalogService.ReplaceCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.ReplaceCatalogAttributeRequest

ReplaceCatalogAttributeRequest.Builder

Request for CatalogService.ReplaceCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.ReplaceCatalogAttributeRequest

ResumeModelRequest

Request for resuming training of a model.

Protobuf type google.cloud.retail.v2alpha.ResumeModelRequest

ResumeModelRequest.Builder

Request for resuming training of a model.

Protobuf type google.cloud.retail.v2alpha.ResumeModelRequest

Rule

A rule is a condition-action pair

  • A condition defines when a rule is to be triggered.
  • An action specifies what occurs on that trigger. Currently rules only work for controls with SOLUTION_TYPE_SEARCH.

Protobuf type google.cloud.retail.v2alpha.Rule

Rule.BoostAction

A boost action to apply to results matching condition specified above.

Protobuf type google.cloud.retail.v2alpha.Rule.BoostAction

Rule.BoostAction.Builder

A boost action to apply to results matching condition specified above.

Protobuf type google.cloud.retail.v2alpha.Rule.BoostAction

Rule.Builder

A rule is a condition-action pair

  • A condition defines when a rule is to be triggered.
  • An action specifies what occurs on that trigger. Currently rules only work for controls with SOLUTION_TYPE_SEARCH.

Protobuf type google.cloud.retail.v2alpha.Rule

Rule.DoNotAssociateAction

Prevents query_term from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".

Protobuf type google.cloud.retail.v2alpha.Rule.DoNotAssociateAction

Rule.DoNotAssociateAction.Builder

Prevents query_term from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".

Protobuf type google.cloud.retail.v2alpha.Rule.DoNotAssociateAction

Rule.FilterAction

  • Rule Condition:
    • No Condition.query_terms provided is a global match.
    • 1 or more Condition.query_terms provided are combined with OR operator.
  • Action Input: The request query and filter that are applied to the retrieved products, in addition to any filters already provided with the SearchRequest. The AND operator is used to combine the query's existing filters with the filter rule(s). NOTE: May result in 0 results when filters conflict.
  • Action Result: Filters the returned objects to be ONLY those that passed the filter.

Protobuf type google.cloud.retail.v2alpha.Rule.FilterAction

Rule.FilterAction.Builder

  • Rule Condition:
    • No Condition.query_terms provided is a global match.
    • 1 or more Condition.query_terms provided are combined with OR operator.
  • Action Input: The request query and filter that are applied to the retrieved products, in addition to any filters already provided with the SearchRequest. The AND operator is used to combine the query's existing filters with the filter rule(s). NOTE: May result in 0 results when filters conflict.
  • Action Result: Filters the returned objects to be ONLY those that passed the filter.

Protobuf type google.cloud.retail.v2alpha.Rule.FilterAction

Rule.IgnoreAction

Prevents a term in the query from being used in search. Example: Don't search for "shoddy".

Protobuf type google.cloud.retail.v2alpha.Rule.IgnoreAction

Rule.IgnoreAction.Builder

Prevents a term in the query from being used in search. Example: Don't search for "shoddy".

Protobuf type google.cloud.retail.v2alpha.Rule.IgnoreAction

Rule.OnewaySynonymsAction

Maps a set of terms to a set of synonyms. Set of synonyms will be treated as synonyms of each query term only. query_terms will not be treated as synonyms of each other. Example: "sneakers" will use a synonym of "shoes". "shoes" will not use a synonym of "sneakers".

Protobuf type google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction

Rule.OnewaySynonymsAction.Builder

Maps a set of terms to a set of synonyms. Set of synonyms will be treated as synonyms of each query term only. query_terms will not be treated as synonyms of each other. Example: "sneakers" will use a synonym of "shoes". "shoes" will not use a synonym of "sneakers".

Protobuf type google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction

Rule.RedirectAction

Redirects a shopper to a specific page.

  • Rule Condition:
    • Must specify Condition.query_terms.
  • Action Input: Request Query
  • Action Result: Redirects shopper to provided uri.

Protobuf type google.cloud.retail.v2alpha.Rule.RedirectAction

Rule.RedirectAction.Builder

Redirects a shopper to a specific page.

  • Rule Condition:
    • Must specify Condition.query_terms.
  • Action Input: Request Query
  • Action Result: Redirects shopper to provided uri.

Protobuf type google.cloud.retail.v2alpha.Rule.RedirectAction

Rule.ReplacementAction

Replaces a term in the query. Multiple replacement candidates can be specified. All query_terms will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".

Protobuf type google.cloud.retail.v2alpha.Rule.ReplacementAction

Rule.ReplacementAction.Builder

Replaces a term in the query. Multiple replacement candidates can be specified. All query_terms will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".

Protobuf type google.cloud.retail.v2alpha.Rule.ReplacementAction

Rule.TwowaySynonymsAction

Creates a set of terms that will be treated as synonyms of each other. Example: synonyms of "sneakers" and "shoes":

  • "sneakers" will use a synonym of "shoes".
  • "shoes" will use a synonym of "sneakers".

Protobuf type google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction

Rule.TwowaySynonymsAction.Builder

Creates a set of terms that will be treated as synonyms of each other. Example: synonyms of "sneakers" and "shoes":

  • "sneakers" will use a synonym of "shoes".
  • "shoes" will use a synonym of "sneakers".

Protobuf type google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction

SearchRequest

Request message for SearchService.Search method.

Protobuf type google.cloud.retail.v2alpha.SearchRequest

SearchRequest.BoostSpec

Boost specification to boost certain items.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.BoostSpec

SearchRequest.BoostSpec.Builder

Boost specification to boost certain items.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.BoostSpec

SearchRequest.BoostSpec.ConditionBoostSpec

Boost applies to products which match a condition.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec

SearchRequest.BoostSpec.ConditionBoostSpec.Builder

Boost applies to products which match a condition.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec

SearchRequest.Builder

Request message for SearchService.Search method.

Protobuf type google.cloud.retail.v2alpha.SearchRequest

SearchRequest.DynamicFacetSpec

The specifications of dynamically generated facets.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec

SearchRequest.DynamicFacetSpec.Builder

The specifications of dynamically generated facets.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec

SearchRequest.FacetSpec

A facet specification to perform faceted search.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.FacetSpec

SearchRequest.FacetSpec.Builder

A facet specification to perform faceted search.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.FacetSpec

SearchRequest.FacetSpec.FacetKey

Specifies how a facet is computed.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey

SearchRequest.FacetSpec.FacetKey.Builder

Specifies how a facet is computed.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey

SearchRequest.PersonalizationSpec

The specification for personalization.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec

SearchRequest.PersonalizationSpec.Builder

The specification for personalization.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec

SearchRequest.QueryExpansionSpec

Specification to determine under which conditions query expansion should occur.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec

SearchRequest.QueryExpansionSpec.Builder

Specification to determine under which conditions query expansion should occur.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec

SearchRequest.SpellCorrectionSpec

The specification for query spell correction.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec

SearchRequest.SpellCorrectionSpec.Builder

The specification for query spell correction.

Protobuf type google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec

SearchResponse

Response message for SearchService.Search method.

Protobuf type google.cloud.retail.v2alpha.SearchResponse

SearchResponse.Builder

Response message for SearchService.Search method.

Protobuf type google.cloud.retail.v2alpha.SearchResponse

SearchResponse.Facet

A facet result.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.Facet

SearchResponse.Facet.Builder

A facet result.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.Facet

SearchResponse.Facet.FacetValue

A facet value which contains value names and their count.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue

SearchResponse.Facet.FacetValue.Builder

A facet value which contains value names and their count.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue

SearchResponse.QueryExpansionInfo

Information describing query expansion including whether expansion has occurred.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.QueryExpansionInfo

SearchResponse.QueryExpansionInfo.Builder

Information describing query expansion including whether expansion has occurred.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.QueryExpansionInfo

SearchResponse.SearchResult

Represents the search results.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.SearchResult

SearchResponse.SearchResult.Builder

Represents the search results.

Protobuf type google.cloud.retail.v2alpha.SearchResponse.SearchResult

SearchServiceClient

Service Description: Service for search.

This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
   SearchRequest request =
       SearchRequest.newBuilder()
           .setPlacement("placement1792938725")
           .setBranch(
               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
           .setQuery("query107944136")
           .setVisitorId("visitorId1880545833")
           .setUserInfo(UserInfo.newBuilder().build())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOffset(-1019779949)
           .setFilter("filter-1274492040")
           .setCanonicalFilter("canonicalFilter-722283124")
           .setOrderBy("orderBy-1207110587")
           .addAllFacetSpecs(new ArrayList<SearchRequest.FacetSpec>())
           .setDynamicFacetSpec(SearchRequest.DynamicFacetSpec.newBuilder().build())
           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
           .addAllVariantRollupKeys(new ArrayList<String>())
           .addAllPageCategories(new ArrayList<String>())
           .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build())
           .putAllLabels(new HashMap<String, String>())
           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
           .setEntity("entity-1298275357")
           .build();
   for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

SearchServiceClient.SearchFixedSizeCollection

SearchServiceClient.SearchPage

SearchServiceClient.SearchPagedResponse

SearchServiceGrpc

Service for search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

SearchServiceGrpc.SearchServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service SearchService.

Service for search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

SearchServiceGrpc.SearchServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service SearchService.

Service for search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

SearchServiceGrpc.SearchServiceImplBase

Base class for the server implementation of the service SearchService.

Service for search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

SearchServiceGrpc.SearchServiceStub

A stub to allow clients to do asynchronous rpc calls to service SearchService.

Service for search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

SearchServiceProto

SearchServiceSettings

Settings class to configure an instance of SearchServiceClient.

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 search to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 SearchServiceSettings.Builder searchServiceSettingsBuilder = SearchServiceSettings.newBuilder();
 searchServiceSettingsBuilder
     .searchSettings()
     .setRetrySettings(
         searchServiceSettingsBuilder
             .searchSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 SearchServiceSettings searchServiceSettings = searchServiceSettingsBuilder.build();
 

SearchServiceSettings.Builder

Builder for SearchServiceSettings.

ServingConfig

Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).

Protobuf type google.cloud.retail.v2alpha.ServingConfig

ServingConfig.Builder

Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).

Protobuf type google.cloud.retail.v2alpha.ServingConfig

ServingConfigName

ServingConfigName.Builder

Builder for projects/{project}/locations/{location}/catalogs/{catalog}/servingConfigs/{serving_config}.

ServingConfigProto

ServingConfigServiceClient

Service Description: Service for modifying ServingConfig.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ServingConfigServiceClient servingConfigServiceClient =
     ServingConfigServiceClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
   ServingConfig servingConfig = ServingConfig.newBuilder().build();
   String servingConfigId = "servingConfigId-831052759";
   ServingConfig response =
       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

ServingConfigServiceClient.ListServingConfigsFixedSizeCollection

ServingConfigServiceClient.ListServingConfigsPage

ServingConfigServiceClient.ListServingConfigsPagedResponse

ServingConfigServiceGrpc

Service for modifying ServingConfig.

ServingConfigServiceGrpc.ServingConfigServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service ServingConfigService.

Service for modifying ServingConfig.

ServingConfigServiceGrpc.ServingConfigServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service ServingConfigService.

Service for modifying ServingConfig.

ServingConfigServiceGrpc.ServingConfigServiceImplBase

Base class for the server implementation of the service ServingConfigService.

Service for modifying ServingConfig.

ServingConfigServiceGrpc.ServingConfigServiceStub

A stub to allow clients to do asynchronous rpc calls to service ServingConfigService.

Service for modifying ServingConfig.

ServingConfigServiceProto

ServingConfigServiceSettings

Settings class to configure an instance of ServingConfigServiceClient.

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 createServingConfig to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder =
     ServingConfigServiceSettings.newBuilder();
 servingConfigServiceSettingsBuilder
     .createServingConfigSettings()
     .setRetrySettings(
         servingConfigServiceSettingsBuilder
             .createServingConfigSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ServingConfigServiceSettings servingConfigServiceSettings =
     servingConfigServiceSettingsBuilder.build();
 

ServingConfigServiceSettings.Builder

Builder for ServingConfigServiceSettings.

SetDefaultBranchRequest

Request message to set a specified branch as new default_branch.

Protobuf type google.cloud.retail.v2alpha.SetDefaultBranchRequest

SetDefaultBranchRequest.Builder

Request message to set a specified branch as new default_branch.

Protobuf type google.cloud.retail.v2alpha.SetDefaultBranchRequest

SetInventoryMetadata

Metadata related to the progress of the SetInventory operation. Currently empty because there is no meaningful metadata populated from the ProductService.SetInventory method.

Protobuf type google.cloud.retail.v2alpha.SetInventoryMetadata

SetInventoryMetadata.Builder

Metadata related to the progress of the SetInventory operation. Currently empty because there is no meaningful metadata populated from the ProductService.SetInventory method.

Protobuf type google.cloud.retail.v2alpha.SetInventoryMetadata

SetInventoryRequest

Request message for ProductService.SetInventory method.

Protobuf type google.cloud.retail.v2alpha.SetInventoryRequest

SetInventoryRequest.Builder

Request message for ProductService.SetInventory method.

Protobuf type google.cloud.retail.v2alpha.SetInventoryRequest

SetInventoryResponse

Response of the SetInventoryRequest. Currently empty because there is no meaningful response populated from the ProductService.SetInventory method.

Protobuf type google.cloud.retail.v2alpha.SetInventoryResponse

SetInventoryResponse.Builder

Response of the SetInventoryRequest. Currently empty because there is no meaningful response populated from the ProductService.SetInventory method.

Protobuf type google.cloud.retail.v2alpha.SetInventoryResponse

TransformedUserEventsMetadata

Metadata related to transform user events operation.

Protobuf type google.cloud.retail.v2alpha.TransformedUserEventsMetadata

TransformedUserEventsMetadata.Builder

Metadata related to transform user events operation.

Protobuf type google.cloud.retail.v2alpha.TransformedUserEventsMetadata

TuneModelMetadata

Metadata associated with a tune operation.

Protobuf type google.cloud.retail.v2alpha.TuneModelMetadata

TuneModelMetadata.Builder

Metadata associated with a tune operation.

Protobuf type google.cloud.retail.v2alpha.TuneModelMetadata

TuneModelRequest

Request to manually start a tuning process now (instead of waiting for the periodically scheduled tuning to happen).

Protobuf type google.cloud.retail.v2alpha.TuneModelRequest

TuneModelRequest.Builder

Request to manually start a tuning process now (instead of waiting for the periodically scheduled tuning to happen).

Protobuf type google.cloud.retail.v2alpha.TuneModelRequest

TuneModelResponse

Response associated with a tune operation.

Protobuf type google.cloud.retail.v2alpha.TuneModelResponse

TuneModelResponse.Builder

Response associated with a tune operation.

Protobuf type google.cloud.retail.v2alpha.TuneModelResponse

UpdateAttributesConfigRequest

Request for CatalogService.UpdateAttributesConfig method.

Protobuf type google.cloud.retail.v2alpha.UpdateAttributesConfigRequest

UpdateAttributesConfigRequest.Builder

Request for CatalogService.UpdateAttributesConfig method.

Protobuf type google.cloud.retail.v2alpha.UpdateAttributesConfigRequest

UpdateCatalogRequest

Request for CatalogService.UpdateCatalog method.

Protobuf type google.cloud.retail.v2alpha.UpdateCatalogRequest

UpdateCatalogRequest.Builder

Request for CatalogService.UpdateCatalog method.

Protobuf type google.cloud.retail.v2alpha.UpdateCatalogRequest

UpdateCompletionConfigRequest

Request for CatalogService.UpdateCompletionConfig method.

Protobuf type google.cloud.retail.v2alpha.UpdateCompletionConfigRequest

UpdateCompletionConfigRequest.Builder

Request for CatalogService.UpdateCompletionConfig method.

Protobuf type google.cloud.retail.v2alpha.UpdateCompletionConfigRequest

UpdateControlRequest

Request for UpdateControl method.

Protobuf type google.cloud.retail.v2alpha.UpdateControlRequest

UpdateControlRequest.Builder

Request for UpdateControl method.

Protobuf type google.cloud.retail.v2alpha.UpdateControlRequest

UpdateModelRequest

Request for updating an existing model.

Protobuf type google.cloud.retail.v2alpha.UpdateModelRequest

UpdateModelRequest.Builder

Request for updating an existing model.

Protobuf type google.cloud.retail.v2alpha.UpdateModelRequest

UpdateProductRequest

Request message for ProductService.UpdateProduct method.

Protobuf type google.cloud.retail.v2alpha.UpdateProductRequest

UpdateProductRequest.Builder

Request message for ProductService.UpdateProduct method.

Protobuf type google.cloud.retail.v2alpha.UpdateProductRequest

UpdateServingConfigRequest

Request for UpdateServingConfig method.

Protobuf type google.cloud.retail.v2alpha.UpdateServingConfigRequest

UpdateServingConfigRequest.Builder

Request for UpdateServingConfig method.

Protobuf type google.cloud.retail.v2alpha.UpdateServingConfigRequest

UserEvent

UserEvent captures all metadata information Retail API needs to know about how end users interact with customers' website.

Protobuf type google.cloud.retail.v2alpha.UserEvent

UserEvent.Builder

UserEvent captures all metadata information Retail API needs to know about how end users interact with customers' website.

Protobuf type google.cloud.retail.v2alpha.UserEvent

UserEventImportSummary

A summary of import result. The UserEventImportSummary summarizes the import status for user events.

Protobuf type google.cloud.retail.v2alpha.UserEventImportSummary

UserEventImportSummary.Builder

A summary of import result. The UserEventImportSummary summarizes the import status for user events.

Protobuf type google.cloud.retail.v2alpha.UserEventImportSummary

UserEventInlineSource

The inline source for the input config for ImportUserEvents method.

Protobuf type google.cloud.retail.v2alpha.UserEventInlineSource

UserEventInlineSource.Builder

The inline source for the input config for ImportUserEvents method.

Protobuf type google.cloud.retail.v2alpha.UserEventInlineSource

UserEventInputConfig

The input config source for user events.

Protobuf type google.cloud.retail.v2alpha.UserEventInputConfig

UserEventInputConfig.Builder

The input config source for user events.

Protobuf type google.cloud.retail.v2alpha.UserEventInputConfig

UserEventProto

UserEventServiceClient

Service Description: Service for ingesting end user actions on the customer website.

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


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
   WriteUserEventRequest request =
       WriteUserEventRequest.newBuilder()
           .setParent("parent-995424086")
           .setUserEvent(UserEvent.newBuilder().build())
           .setWriteAsync(true)
           .build();
   UserEvent response = userEventServiceClient.writeUserEvent(request);
 }
 

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

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

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

To customize credentials:


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

To customize the endpoint:


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

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


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

Please refer to the GitHub repository's samples for more quickstart code snippets.

UserEventServiceGrpc

Service for ingesting end user actions on the customer website.

UserEventServiceGrpc.UserEventServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service UserEventService.

Service for ingesting end user actions on the customer website.

UserEventServiceGrpc.UserEventServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service UserEventService.

Service for ingesting end user actions on the customer website.

UserEventServiceGrpc.UserEventServiceImplBase

Base class for the server implementation of the service UserEventService.

Service for ingesting end user actions on the customer website.

UserEventServiceGrpc.UserEventServiceStub

A stub to allow clients to do asynchronous rpc calls to service UserEventService.

Service for ingesting end user actions on the customer website.

UserEventServiceProto

UserEventServiceSettings

Settings class to configure an instance of UserEventServiceClient.

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 writeUserEvent to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 UserEventServiceSettings.Builder userEventServiceSettingsBuilder =
     UserEventServiceSettings.newBuilder();
 userEventServiceSettingsBuilder
     .writeUserEventSettings()
     .setRetrySettings(
         userEventServiceSettingsBuilder
             .writeUserEventSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 UserEventServiceSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();
 

UserEventServiceSettings.Builder

Builder for UserEventServiceSettings.

UserInfo

Information of an end user.

Protobuf type google.cloud.retail.v2alpha.UserInfo

UserInfo.Builder

Information of an end user.

Protobuf type google.cloud.retail.v2alpha.UserInfo

WriteUserEventRequest

Request message for WriteUserEvent method.

Protobuf type google.cloud.retail.v2alpha.WriteUserEventRequest

WriteUserEventRequest.Builder

Request message for WriteUserEvent method.

Protobuf type google.cloud.retail.v2alpha.WriteUserEventRequest

Interfaces

AddCatalogAttributeRequestOrBuilder

AddControlRequestOrBuilder

AddFulfillmentPlacesMetadataOrBuilder

AddFulfillmentPlacesRequestOrBuilder

AddFulfillmentPlacesResponseOrBuilder

AddLocalInventoriesMetadataOrBuilder

AddLocalInventoriesRequestOrBuilder

AddLocalInventoriesResponseOrBuilder

AttributesConfigOrBuilder

AudienceOrBuilder

BatchRemoveCatalogAttributesRequestOrBuilder

BatchRemoveCatalogAttributesResponseOrBuilder

BigQueryOutputResultOrBuilder

BigQuerySourceOrBuilder

CatalogAttributeOrBuilder

CatalogOrBuilder

CatalogServiceGrpc.AsyncService

Service for managing catalog configuration.

CollectUserEventRequestOrBuilder

ColorInfoOrBuilder

CompleteQueryRequestOrBuilder

CompleteQueryResponse.AttributeResultOrBuilder

CompleteQueryResponse.CompletionResultOrBuilder

CompleteQueryResponse.RecentSearchResultOrBuilder

CompleteQueryResponseOrBuilder

CompletionConfigOrBuilder

CompletionDataInputConfigOrBuilder

CompletionDetailOrBuilder

CompletionServiceGrpc.AsyncService

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Condition.QueryTermOrBuilder

Condition.TimeRangeOrBuilder

ConditionOrBuilder

ControlOrBuilder

ControlServiceGrpc.AsyncService

Service for modifying Control.

CreateControlRequestOrBuilder

CreateMerchantCenterAccountLinkMetadataOrBuilder

CreateMerchantCenterAccountLinkRequestOrBuilder

CreateModelMetadataOrBuilder

CreateModelRequestOrBuilder

CreateProductRequestOrBuilder

CreateServingConfigRequestOrBuilder

CustomAttributeOrBuilder

DeleteControlRequestOrBuilder

DeleteMerchantCenterAccountLinkRequestOrBuilder

DeleteModelRequestOrBuilder

DeleteProductRequestOrBuilder

DeleteServingConfigRequestOrBuilder

ExperimentInfo.ServingConfigExperimentOrBuilder

ExperimentInfoOrBuilder

ExportErrorsConfigOrBuilder

ExportMetadataOrBuilder

ExportProductsResponseOrBuilder

ExportUserEventsResponseOrBuilder

FulfillmentInfoOrBuilder

GcsOutputResultOrBuilder

GcsSourceOrBuilder

GetAttributesConfigRequestOrBuilder

GetCompletionConfigRequestOrBuilder

GetControlRequestOrBuilder

GetDefaultBranchRequestOrBuilder

GetDefaultBranchResponseOrBuilder

GetModelRequestOrBuilder

GetProductRequestOrBuilder

GetServingConfigRequestOrBuilder

ImageOrBuilder

ImportCompletionDataRequestOrBuilder

ImportCompletionDataResponseOrBuilder

ImportErrorsConfigOrBuilder

ImportMetadataOrBuilder

ImportProductsRequestOrBuilder

ImportProductsResponseOrBuilder

ImportUserEventsRequestOrBuilder

ImportUserEventsResponseOrBuilder

IntervalOrBuilder

ListCatalogsRequestOrBuilder

ListCatalogsResponseOrBuilder

ListControlsRequestOrBuilder

ListControlsResponseOrBuilder

ListMerchantCenterAccountLinksRequestOrBuilder

ListMerchantCenterAccountLinksResponseOrBuilder

ListModelsRequestOrBuilder

ListModelsResponseOrBuilder

ListProductsRequestOrBuilder

ListProductsResponseOrBuilder

ListServingConfigsRequestOrBuilder

ListServingConfigsResponseOrBuilder

LocalInventoryOrBuilder

MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder

MerchantCenterAccountLinkOrBuilder

MerchantCenterAccountLinkServiceGrpc.AsyncService

Merchant Center Link service to link a Branch to a Merchant Center Account.

MerchantCenterFeedFilterOrBuilder

MerchantCenterLinkOrBuilder

MerchantCenterLinkingConfigOrBuilder

Model.PageOptimizationConfig.CandidateOrBuilder

Model.PageOptimizationConfig.PanelOrBuilder

Model.PageOptimizationConfigOrBuilder

Model.ServingConfigListOrBuilder

ModelOrBuilder

ModelServiceGrpc.AsyncService

Service for performing CRUD operations on models. Recommendation models contain all the metadata necessary to generate a set of models for the Predict() API. A model is queried indirectly via a ServingConfig, which associates a model with a given Placement (e.g. Frequently Bought Together on Home Page). This service allows you to do the following:

  • Initiate training of a model.
  • Pause training of an existing model.
  • List all the available models along with their metadata.
  • Control their tuning schedule.

OutputResultOrBuilder

PauseModelRequestOrBuilder

PredictRequestOrBuilder

PredictResponse.PredictionResultOrBuilder

PredictResponseOrBuilder

PredictionServiceGrpc.AsyncService

Service for making recommendation prediction.

PriceInfo.PriceRangeOrBuilder

PriceInfoOrBuilder

ProductDetailOrBuilder

ProductInlineSourceOrBuilder

ProductInputConfigOrBuilder

ProductLevelConfigOrBuilder

ProductOrBuilder

ProductServiceGrpc.AsyncService

Service for ingesting Product information of the customer's website.

PromotionOrBuilder

PurchaseTransactionOrBuilder

PurgeMetadataOrBuilder

PurgeProductsMetadataOrBuilder

PurgeProductsRequestOrBuilder

PurgeProductsResponseOrBuilder

PurgeUserEventsRequestOrBuilder

PurgeUserEventsResponseOrBuilder

RatingOrBuilder

RejoinUserEventsMetadataOrBuilder

RejoinUserEventsRequestOrBuilder

RejoinUserEventsResponseOrBuilder

RemoveCatalogAttributeRequestOrBuilder

RemoveControlRequestOrBuilder

RemoveFulfillmentPlacesMetadataOrBuilder

RemoveFulfillmentPlacesRequestOrBuilder

RemoveFulfillmentPlacesResponseOrBuilder

RemoveLocalInventoriesMetadataOrBuilder

RemoveLocalInventoriesRequestOrBuilder

RemoveLocalInventoriesResponseOrBuilder

ReplaceCatalogAttributeRequestOrBuilder

ResumeModelRequestOrBuilder

Rule.BoostActionOrBuilder

Rule.DoNotAssociateActionOrBuilder

Rule.FilterActionOrBuilder

Rule.IgnoreActionOrBuilder

Rule.OnewaySynonymsActionOrBuilder

Rule.RedirectActionOrBuilder

Rule.ReplacementActionOrBuilder

Rule.TwowaySynonymsActionOrBuilder

RuleOrBuilder

SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder

SearchRequest.BoostSpecOrBuilder

SearchRequest.DynamicFacetSpecOrBuilder

SearchRequest.FacetSpec.FacetKeyOrBuilder

SearchRequest.FacetSpecOrBuilder

SearchRequest.PersonalizationSpecOrBuilder

SearchRequest.QueryExpansionSpecOrBuilder

SearchRequest.SpellCorrectionSpecOrBuilder

SearchRequestOrBuilder

SearchResponse.Facet.FacetValueOrBuilder

SearchResponse.FacetOrBuilder

SearchResponse.QueryExpansionInfoOrBuilder

SearchResponse.SearchResultOrBuilder

SearchResponseOrBuilder

SearchServiceGrpc.AsyncService

Service for search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

ServingConfigOrBuilder

ServingConfigServiceGrpc.AsyncService

Service for modifying ServingConfig.

SetDefaultBranchRequestOrBuilder

SetInventoryMetadataOrBuilder

SetInventoryRequestOrBuilder

SetInventoryResponseOrBuilder

TransformedUserEventsMetadataOrBuilder

TuneModelMetadataOrBuilder

TuneModelRequestOrBuilder

TuneModelResponseOrBuilder

UpdateAttributesConfigRequestOrBuilder

UpdateCatalogRequestOrBuilder

UpdateCompletionConfigRequestOrBuilder

UpdateControlRequestOrBuilder

UpdateModelRequestOrBuilder

UpdateProductRequestOrBuilder

UpdateServingConfigRequestOrBuilder

UserEventImportSummaryOrBuilder

UserEventInlineSourceOrBuilder

UserEventInputConfigOrBuilder

UserEventOrBuilder

UserEventServiceGrpc.AsyncService

Service for ingesting end user actions on the customer website.

UserInfoOrBuilder

WriteUserEventRequestOrBuilder

Enums

AttributeConfigLevel

At which level we offer configuration for attributes.

Protobuf enum google.cloud.retail.v2alpha.AttributeConfigLevel

BigQuerySource.PartitionCase

CatalogAttribute.AttributeType

The type of an attribute.

Protobuf enum google.cloud.retail.v2alpha.CatalogAttribute.AttributeType

CatalogAttribute.DynamicFacetableOption

The status of the dynamic facetable option of a catalog attribute.

Protobuf enum google.cloud.retail.v2alpha.CatalogAttribute.DynamicFacetableOption

CatalogAttribute.ExactSearchableOption

The status of the exact-searchable option of a catalog attribute.

Protobuf enum google.cloud.retail.v2alpha.CatalogAttribute.ExactSearchableOption

CatalogAttribute.IndexableOption

The status of the indexable option of a catalog attribute.

Protobuf enum google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption

CatalogAttribute.RetrievableOption

The status of the retrievable option of a catalog attribute.

Protobuf enum google.cloud.retail.v2alpha.CatalogAttribute.RetrievableOption

CatalogAttribute.SearchableOption

The status of the searchable option of a catalog attribute.

Protobuf enum google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption

CollectUserEventRequest.ConversionRuleCase

CompletionDataInputConfig.SourceCase

Control.ControlCase

ExperimentInfo.ExperimentMetadataCase

ExportErrorsConfig.DestinationCase

ImportErrorsConfig.DestinationCase

ImportProductsRequest.ReconciliationMode

Indicates how imported products are reconciled with the existing products created or imported before.

Protobuf enum google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode

Interval.MaxCase

Interval.MinCase

MerchantCenterAccountLink.State

The state of the link.

Protobuf enum google.cloud.retail.v2alpha.MerchantCenterAccountLink.State

Model.DataState

Describes whether this model have sufficient training data to be continuously trained.

Protobuf enum google.cloud.retail.v2alpha.Model.DataState

Model.PageOptimizationConfig.Candidate.CandidateCase

Model.PageOptimizationConfig.Restriction

Restrictions of expected returned results.

Protobuf enum google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Restriction

Model.PeriodicTuningState

Describes whether periodic tuning is enabled for this model or not. Periodic tuning is scheduled at most every three months. You can start a tuning process manually by using the TuneModel method, which starts a tuning process immediately and resets the quarterly schedule. Enabling or disabling periodic tuning does not affect any current tuning processes.

Protobuf enum google.cloud.retail.v2alpha.Model.PeriodicTuningState

Model.ServingState

The serving state of the model.

Protobuf enum google.cloud.retail.v2alpha.Model.ServingState

Model.TrainingConfigCase

Model.TrainingState

The training state of the model.

Protobuf enum google.cloud.retail.v2alpha.Model.TrainingState

Product.Availability

Product availability. If this field is unspecified, the product is assumed to be in stock.

Protobuf enum google.cloud.retail.v2alpha.Product.Availability

Product.ExpirationCase

Product.Type

The type of this product.

Protobuf enum google.cloud.retail.v2alpha.Product.Type

ProductInputConfig.SourceCase

RecommendationsFilteringOption

If filtering for recommendations is enabled.

Protobuf enum google.cloud.retail.v2alpha.RecommendationsFilteringOption

RejoinUserEventsRequest.UserEventRejoinScope

The scope of user events to be rejoined with the latest product catalog. If the rejoining aims at reducing number of unjoined events, set UserEventRejoinScope to UNJOINED_EVENTS. If the rejoining aims at correcting product catalog information in joined events, set UserEventRejoinScope to JOINED_EVENTS. If all events needs to be rejoined, set UserEventRejoinScope to USER_EVENT_REJOIN_SCOPE_UNSPECIFIED.

Protobuf enum google.cloud.retail.v2alpha.RejoinUserEventsRequest.UserEventRejoinScope

Rule.ActionCase

SearchRequest.DynamicFacetSpec.Mode

Enum to control DynamicFacet mode

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode

SearchRequest.PersonalizationSpec.Mode

The personalization mode of each search request.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec.Mode

SearchRequest.QueryExpansionSpec.Condition

Enum describing under which condition query expansion should occur.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec.Condition

SearchRequest.RelevanceThreshold

The relevance threshold of the search results. The higher relevance threshold is, the higher relevant results are shown and the less number of results are returned.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold

SearchRequest.SearchMode

The search mode of each search request.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.SearchMode

SearchRequest.SpellCorrectionSpec.Mode

Enum describing under which mode spell correction should occur.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode

SearchResponse.Facet.FacetValue.FacetValueCase

SearchSolutionUseCase

The use case of Cloud Retail Search.

Protobuf enum google.cloud.retail.v2alpha.SearchSolutionUseCase

ServingConfig.DiversityType

What type of diversity - data or rule based.

Protobuf enum google.cloud.retail.v2alpha.ServingConfig.DiversityType

SolutionType

The type of solution.

Protobuf enum google.cloud.retail.v2alpha.SolutionType

UserEventInputConfig.SourceCase