diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java index 9135d6b6..e0f21db3 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.retail.v2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -766,12 +765,7 @@ public static ApiFuture createAsync( ListCatalogsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListCatalogsPagedResponse apply(ListCatalogsPage input) { - return new ListCatalogsPagedResponse(input); - } - }, + input -> new ListCatalogsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java index 95e1ec68..48488a89 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java @@ -177,14 +177,13 @@ public CatalogServiceStubSettings.Builder getStubSettingsBuilder() { return ((CatalogServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java index 97e40bed..f5e296a7 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java @@ -171,14 +171,13 @@ public CompletionServiceStubSettings.Builder getStubSettingsBuilder() { return ((CompletionServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java index 95059dc0..00678153 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java @@ -156,14 +156,13 @@ public PredictionServiceStubSettings.Builder getStubSettingsBuilder() { return ((PredictionServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java index 707c6dd4..2358c680 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.retail.v2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1640,12 +1639,7 @@ public static ApiFuture createAsync( ListProductsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListProductsPagedResponse apply(ListProductsPage input) { - return new ListProductsPagedResponse(input); - } - }, + input -> new ListProductsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java index 08d591e5..4108ccb5 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java @@ -233,14 +233,13 @@ public ProductServiceStubSettings.Builder getStubSettingsBuilder() { return ((ProductServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java index d01d5838..31769129 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.retail.v2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -361,14 +360,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = SearchPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public SearchPagedResponse apply(SearchPage input) { - return new SearchPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new SearchPagedResponse(input), MoreExecutors.directExecutor()); } private SearchPagedResponse(SearchPage page) { diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java index 27f1deba..b9d7b65a 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java @@ -158,14 +158,13 @@ public SearchServiceStubSettings.Builder getStubSettingsBuilder() { return ((SearchServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java index 4148e079..8404c11e 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java @@ -198,14 +198,13 @@ public UserEventServiceStubSettings.Builder getStubSettingsBuilder() { return ((UserEventServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java index 6030c9c3..3dbedb2b 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java @@ -376,14 +376,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java index f69dd85a..efbd2509 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java @@ -319,14 +319,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCatalogServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCatalogServiceStub.java index 4cffdfe9..03ae2b26 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCatalogServiceStub.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCatalogServiceStub.java @@ -23,7 +23,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.retail.v2.Catalog; import com.google.cloud.retail.v2.GetDefaultBranchRequest; @@ -38,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -147,39 +145,30 @@ protected GrpcCatalogServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(listCatalogsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListCatalogsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateCatalogTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateCatalogMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateCatalogRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("catalog.name", String.valueOf(request.getCatalog().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("catalog.name", String.valueOf(request.getCatalog().getName())); + return params.build(); }) .build(); GrpcCallSettings setDefaultBranchTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setDefaultBranchMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetDefaultBranchRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("catalog", String.valueOf(request.getCatalog())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("catalog", String.valueOf(request.getCatalog())); + return params.build(); }) .build(); GrpcCallSettings @@ -187,13 +176,10 @@ public Map extract(SetDefaultBranchRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getDefaultBranchMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetDefaultBranchRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("catalog", String.valueOf(request.getCatalog())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("catalog", String.valueOf(request.getCatalog())); + return params.build(); }) .build(); @@ -249,7 +235,13 @@ public UnaryCallable setDefaultBranchCallable() @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCompletionServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCompletionServiceStub.java index cc41b778..a5c91834 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCompletionServiceStub.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcCompletionServiceStub.java @@ -22,7 +22,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.retail.v2.CompleteQueryRequest; import com.google.cloud.retail.v2.CompleteQueryResponse; @@ -35,7 +34,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -122,26 +120,20 @@ protected GrpcCompletionServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(completeQueryMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CompleteQueryRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("catalog", String.valueOf(request.getCatalog())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("catalog", String.valueOf(request.getCatalog())); + return params.build(); }) .build(); GrpcCallSettings importCompletionDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importCompletionDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ImportCompletionDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -187,7 +179,13 @@ public UnaryCallable importCompletionDat @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcPredictionServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcPredictionServiceStub.java index 1eaa56f6..3ab6275e 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcPredictionServiceStub.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcPredictionServiceStub.java @@ -21,7 +21,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.retail.v2.PredictRequest; import com.google.cloud.retail.v2.PredictResponse; @@ -30,7 +29,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -100,13 +98,10 @@ protected GrpcPredictionServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(predictMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PredictRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("placement", String.valueOf(request.getPlacement())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("placement", String.valueOf(request.getPlacement())); + return params.build(); }) .build(); @@ -129,7 +124,13 @@ public UnaryCallable predictCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java index ae915fe0..0b806a2e 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.retail.v2.AddFulfillmentPlacesMetadata; import com.google.cloud.retail.v2.AddFulfillmentPlacesRequest; @@ -52,7 +51,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -222,104 +220,80 @@ protected GrpcProductServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createProductMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateProductRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getProductTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getProductMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetProductRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listProductsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listProductsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListProductsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateProductTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateProductMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateProductRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("product.name", String.valueOf(request.getProduct().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("product.name", String.valueOf(request.getProduct().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteProductTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteProductMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteProductRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings importProductsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importProductsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ImportProductsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings setInventoryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setInventoryMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetInventoryRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("inventory.name", String.valueOf(request.getInventory().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("inventory.name", String.valueOf(request.getInventory().getName())); + return params.build(); }) .build(); GrpcCallSettings addFulfillmentPlacesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(addFulfillmentPlacesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(AddFulfillmentPlacesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("product", String.valueOf(request.getProduct())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("product", String.valueOf(request.getProduct())); + return params.build(); }) .build(); GrpcCallSettings @@ -327,13 +301,10 @@ public Map extract(AddFulfillmentPlacesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(removeFulfillmentPlacesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RemoveFulfillmentPlacesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("product", String.valueOf(request.getProduct())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("product", String.valueOf(request.getProduct())); + return params.build(); }) .build(); @@ -485,7 +456,13 @@ public UnaryCallable addFulfillmentPlace @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcSearchServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcSearchServiceStub.java index 8889e511..4b3b058d 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcSearchServiceStub.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcSearchServiceStub.java @@ -23,7 +23,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.retail.v2.SearchRequest; import com.google.cloud.retail.v2.SearchResponse; @@ -32,7 +31,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -101,13 +99,10 @@ protected GrpcSearchServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(searchMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SearchRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("placement", String.valueOf(request.getPlacement())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("placement", String.valueOf(request.getPlacement())); + return params.build(); }) .build(); @@ -138,7 +133,13 @@ public UnaryCallable searchPagedCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcUserEventServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcUserEventServiceStub.java index 26371077..a2bcc60a 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcUserEventServiceStub.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcUserEventServiceStub.java @@ -23,7 +23,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.retail.v2.CollectUserEventRequest; import com.google.cloud.retail.v2.ImportMetadata; @@ -43,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -166,65 +164,50 @@ protected GrpcUserEventServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(writeUserEventMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(WriteUserEventRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings collectUserEventTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(collectUserEventMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CollectUserEventRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings purgeUserEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeUserEventsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PurgeUserEventsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings importUserEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importUserEventsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ImportUserEventsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings rejoinUserEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(rejoinUserEventsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RejoinUserEventsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -316,7 +299,13 @@ public UnaryCallable rejoinUserEventsCallabl @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java index 6c1f44a8..868c7294 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java @@ -247,14 +247,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java index 03024950..d4d06cec 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java @@ -651,14 +651,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java index 3bcd6106..85ea50dd 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java @@ -309,14 +309,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java index 9f3fe976..5a77d20c 100644 --- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java +++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java @@ -455,14 +455,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java b/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java index cacb4270..99c85998 100644 --- a/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java +++ b/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java @@ -633,171 +633,34 @@ public interface FacetKeyOrBuilder * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -815,171 +678,34 @@ public interface FacetKeyOrBuilder * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1579,171 +1305,34 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1772,171 +1361,34 @@ public java.lang.String getKey() { * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2990,171 +2442,34 @@ public Builder mergeFrom( * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3182,171 +2497,34 @@ public java.lang.String getKey() { * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3374,171 +2552,34 @@ public com.google.protobuf.ByteString getKeyBytes() { * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3565,171 +2606,34 @@ public Builder setKey(java.lang.String value) { * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3752,171 +2656,34 @@ public Builder clearKey() { * Allowed facet keys when * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] * is not specified: - * * textual_field =<br> - * <font color='grey'> - * *# The - * [Product.brands][google.cloud.retail.v2.Product.brands].<br>* - * </font> - * "brands"; - * <br> - * <font color='categories'> - * *# The - * [Product.categories][google.cloud.retail.v2.Product.categories].<br>* - * </font> - * "categories"; - * <br> - * <font color='grey'> - * *# The - * [Audience.genders][google.cloud.retail.v2.Audience.genders].<br>* - * </font> - * | "genders"; - * <br> - * <font color='grey'> - * *# The - * [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].<br>* - * </font> - * | "ageGroups"; - * <br> - * <font color='grey'> - * *# The - * [Product.availability][google.cloud.retail.v2.Product.availability]. - * Value is one of<br>* - * *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".<br>* - * </font> - * | "availability"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].<br>* - * </font> - * | "colorFamilies"; - * <br> - * <font color='grey'> - * *# The - * [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].<br>* - * </font> - * | "colors"; - * <br> - * <font color='grey'> - * *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].<br>* - * </font> - * | "sizes"; - * <br> - * <font color='grey'> - * *# The - * [Product.materials][google.cloud.retail.v2.Product.materials].<br>* - * </font> - * | "materials"; - * <br> - * <font color='grey'> - * *# The - * [Product.patterns][google.cloud.retail.v2.Product.patterns].<br>* - * </font> - * | "patterns"; - * <br> - * <font color='grey'> - * *# The - * [Product.conditions][google.cloud.retail.v2.Product.conditions].<br>* - * </font> - * | "conditions"; - * <br> - * <font color='grey'> - * *# The textual custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are textual.<br>* - * *# map.<br>* - * </font> - * | "attributes.key"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].<br>* - * </font> - * | "pickupInStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SHIP_TO_STORE][].<br>* - * </font> - * | "shipToStore"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].<br>* - * </font> - * | "sameDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].<br>* - * </font> - * | "nextDayDelivery"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].<br>* - * </font> - * | "customFulfillment1"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].<br>* - * </font> - * | "customFulfillment2"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].<br>* - * </font> - * | "customFulfillment3"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].<br>* - * </font> - * | "customFulfillment4"; - * <br> - * <font color='grey'> - * *# The [FulfillmentInfo.ids][] for type - * *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].<br>* - * </font> - * | "customFulfillment5"; - * * numerical_field =<br> - * <font color='grey'> - * *# The - * [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].<br>* - * </font> - * "price"; - * <br> - * <font color='grey'> - * *# The discount. Computed by (original_price-price)/price <br>* - * </font> - * "discount"; - * <br> - * <font color='grey'> - * *# The - * [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].<br>* - * </font> - * "rating"; - * <br> - * <font color='grey'> - * *# The - * [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].<br>* - * </font> - * "ratingCount"; - * <br> - * <font color='grey'> - * *# The numerical custom attribute in - * [Product][google.cloud.retail.v2.Product] object. Key can<br>* - * *# be any key in the - * [Product.attributes][google.cloud.retail.v2.Product.attributes] - * map<br>* - * *# if the attribute values are numerical.<br>* - * </font> - * | "attributes.key"; + * Textual facet keys: + * * brands + * * categories + * * genders + * * ageGroups + * * availability + * * colorFamilies + * * colors + * * sizes + * * materials + * * patterns + * * conditions + * * attributes.key + * * pickupInStore + * * shipToStore + * * sameDayDelivery + * * nextDayDelivery + * * customFulfillment1 + * * customFulfillment2 + * * customFulfillment3 + * * customFulfillment4 + * * customFulfillment5 + * Numeric facet keys: + * * price + * * discount + * * rating + * * ratingCount + * * attributes.key * * * string key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -7812,11 +6579,12 @@ public interface ConditionBoostSpecOrBuilder * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -7834,11 +6602,12 @@ public interface ConditionBoostSpecOrBuilder * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -7985,11 +6754,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -8018,11 +6788,12 @@ public java.lang.String getCondition() { * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -8438,11 +7209,12 @@ public Builder mergeFrom( * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -8470,11 +7242,12 @@ public java.lang.String getCondition() { * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -8502,11 +7275,12 @@ public com.google.protobuf.ByteString getConditionBytes() { * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -8533,11 +7307,12 @@ public Builder setCondition(java.lang.String value) { * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; @@ -8560,11 +7335,12 @@ public Builder clearCondition() { * detail syntax and limitations. * Examples: * * To boost products with product ID "product_1" or "product_2", and - * color - * "Red" or "Blue":<br> - * *(id: ANY("product_1", "product_2"))<br>* - * *AND<br>* - * *(colorFamilies: ANY("Red", "Blue"))<br>* + * color "Red" or "Blue": + * ``` + * (id: ANY("product_1", "product_2")) + * AND + * (colorFamilies: ANY("Red", "Blue")) + * ``` * * * string condition = 1; diff --git a/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchResponse.java b/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchResponse.java index bd7d674b..4b07a3a0 100644 --- a/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchResponse.java +++ b/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchResponse.java @@ -427,20 +427,21 @@ com.google.protobuf.FieldMask getMatchingVariantFieldsOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -464,20 +465,21 @@ com.google.protobuf.FieldMask getMatchingVariantFieldsOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -504,20 +506,21 @@ com.google.protobuf.FieldMask getMatchingVariantFieldsOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -541,20 +544,21 @@ com.google.protobuf.FieldMask getMatchingVariantFieldsOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -579,20 +583,21 @@ com.google.protobuf.Value getVariantRollupValuesOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -1105,20 +1110,21 @@ public int getVariantRollupValuesCount() { * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -1154,20 +1160,21 @@ public java.util.Map getVariantRoll * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -1194,20 +1201,21 @@ public java.util.Map getVariantRoll * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -1240,20 +1248,21 @@ public com.google.protobuf.Value getVariantRollupValuesOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2451,20 +2460,21 @@ public int getVariantRollupValuesCount() { * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2500,20 +2510,21 @@ public java.util.Map getVariantRoll * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2541,20 +2552,21 @@ public java.util.Map getVariantRoll * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2587,20 +2599,21 @@ public com.google.protobuf.Value getVariantRollupValuesOrDefault( * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2640,20 +2653,21 @@ public Builder clearVariantRollupValues() { * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2689,20 +2703,21 @@ public Builder removeVariantRollupValues(java.lang.String key) { * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; @@ -2735,20 +2750,21 @@ public Builder putVariantRollupValues(java.lang.String key, com.google.protobuf. * string or double values with type * [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if * there are two variants with colors "red" and "blue", the rollup values - * are { key: "colorFamilies" - * value { - * list_value { - * values { string_value: "red" } - * values { string_value: "blue" } - * } - * } - * } + * are + * { key: "colorFamilies" + * value { + * list_value { + * values { string_value: "red" } + * values { string_value: "blue" } + * } + * } + * } * For * [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], * the rollup values is a double value with type - * [google.protobuf.Value][google.protobuf.Value]. For example, {key: - * "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - * variants in this product are available in the store "store1". + * [google.protobuf.Value][google.protobuf.Value]. For example: + * `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + * are 10 variants in this product are available in the store "store1". * * * map<string, .google.protobuf.Value> variant_rollup_values = 5; diff --git a/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto b/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto index 402d91da..4522d546 100644 --- a/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto +++ b/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto @@ -74,172 +74,35 @@ message SearchRequest { // [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] // is not specified: // - // * textual_field =
- // - // *# The - // [Product.brands][google.cloud.retail.v2.Product.brands].
* - //
- // "brands"; - //
- // - // *# The - // [Product.categories][google.cloud.retail.v2.Product.categories].
* - //
- // "categories"; - //
- // - // *# The - // [Audience.genders][google.cloud.retail.v2.Audience.genders].
* - //
- // | "genders"; - //
- // - // *# The - // [Audience.age_groups][google.cloud.retail.v2.Audience.age_groups].
* - //
- // | "ageGroups"; - //
- // - // *# The - // [Product.availability][google.cloud.retail.v2.Product.availability]. - // Value is one of
* - // *# "IN_STOCK", "OUT_OF_STOCK", PREORDER", "BACKORDER".
* - //
- // | "availability"; - //
- // - // *# The - // [ColorInfo.color_families][google.cloud.retail.v2.ColorInfo.color_families].
* - //
- // | "colorFamilies"; - //
- // - // *# The - // [ColorInfo.colors][google.cloud.retail.v2.ColorInfo.colors].
* - //
- // | "colors"; - //
- // - // *# The [Product.sizes][google.cloud.retail.v2.Product.sizes].
* - //
- // | "sizes"; - //
- // - // *# The - // [Product.materials][google.cloud.retail.v2.Product.materials].
* - //
- // | "materials"; - //
- // - // *# The - // [Product.patterns][google.cloud.retail.v2.Product.patterns].
* - //
- // | "patterns"; - //
- // - // *# The - // [Product.conditions][google.cloud.retail.v2.Product.conditions].
* - //
- // | "conditions"; - //
- // - // *# The textual custom attribute in - // [Product][google.cloud.retail.v2.Product] object. Key can
* - // *# be any key in the - // [Product.attributes][google.cloud.retail.v2.Product.attributes] - // map
* - // *# if the attribute values are textual.
* - // *# map.
* - //
- // | "attributes.key"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.PICKUP_IN_STORE][].
* - //
- // | "pickupInStore"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.SHIP_TO_STORE][].
* - //
- // | "shipToStore"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.SAME_DAY_DELIVERY][].
* - //
- // | "sameDayDelivery"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.NEXT_DAY_DELIVERY][].
* - //
- // | "nextDayDelivery"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.CUSTOM_TYPE_1][].
* - //
- // | "customFulfillment1"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.CUSTOM_TYPE_2][].
* - //
- // | "customFulfillment2"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.CUSTOM_TYPE_3][].
* - //
- // | "customFulfillment3"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.CUSTOM_TYPE_4][].
* - //
- // | "customFulfillment4"; - //
- // - // *# The [FulfillmentInfo.ids][] for type - // *# [FulfillmentInfo.Type.CUSTOM_TYPE_5][].
* - //
- // | "customFulfillment5"; + // Textual facet keys: + // * brands + // * categories + // * genders + // * ageGroups + // * availability + // * colorFamilies + // * colors + // * sizes + // * materials + // * patterns + // * conditions + // * attributes.key + // * pickupInStore + // * shipToStore + // * sameDayDelivery + // * nextDayDelivery + // * customFulfillment1 + // * customFulfillment2 + // * customFulfillment3 + // * customFulfillment4 + // * customFulfillment5 // - // * numerical_field =
- // - // *# The - // [PriceInfo.price][google.cloud.retail.v2.PriceInfo.price].
* - //
- // "price"; - //
- // - // *# The discount. Computed by (original_price-price)/price
* - //
- // "discount"; - //
- // - // *# The - // [Rating.average_rating][google.cloud.retail.v2.Rating.average_rating].
* - //
- // "rating"; - //
- // - // *# The - // [Rating.rating_count][google.cloud.retail.v2.Rating.rating_count].
* - //
- // "ratingCount"; - //
- // - // *# The numerical custom attribute in - // [Product][google.cloud.retail.v2.Product] object. Key can
* - // *# be any key in the - // [Product.attributes][google.cloud.retail.v2.Product.attributes] - // map
* - // *# if the attribute values are numerical.
* - //
- // | "attributes.key"; + // Numeric facet keys: + // * price + // * discount + // * rating + // * ratingCount + // * attributes.key string key = 1 [(google.api.field_behavior) = REQUIRED]; // Set only if values should be bucketized into intervals. Must be set @@ -424,11 +287,12 @@ message SearchRequest { // Examples: // // * To boost products with product ID "product_1" or "product_2", and - // color - // "Red" or "Blue":
- // *(id: ANY("product_1", "product_2"))
* - // *AND
* - // *(colorFamilies: ANY("Red", "Blue"))
* + // color "Red" or "Blue": + // ``` + // (id: ANY("product_1", "product_2")) + // AND + // (colorFamilies: ANY("Red", "Blue")) + // ``` string condition = 1; // Strength of the condition boost, which should be in [-1, 1]. Negative @@ -708,21 +572,23 @@ message SearchResponse { // string or double values with type // [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if // there are two variants with colors "red" and "blue", the rollup values - // are { key: "colorFamilies" - // value { - // list_value { - // values { string_value: "red" } - // values { string_value: "blue" } - // } - // } - // } + // are + // + // { key: "colorFamilies" + // value { + // list_value { + // values { string_value: "red" } + // values { string_value: "blue" } + // } + // } + // } // // For // [Product.fulfillment_info][google.cloud.retail.v2.Product.fulfillment_info], // the rollup values is a double value with type - // [google.protobuf.Value][google.protobuf.Value]. For example, {key: - // "pickupInStore.store1" value { number_value: 10 }} means a there are 10 - // variants in this product are available in the store "store1". + // [google.protobuf.Value][google.protobuf.Value]. For example: + // `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there + // are 10 variants in this product are available in the store "store1". map variant_rollup_values = 5; } diff --git a/synth.metadata b/synth.metadata index f7688eba..1ed43756 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-retail.git", - "sha": "9c109d608c9a779c89bbce6ce1f243eaf383d93e" + "sha": "6e0ebca0b2516489090f548383b1bbaec7b0d1d5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dc9332352883cc59386cd080418e18a4010280f5", - "internalRef": "387857950" + "sha": "a47f0a4aa9ef834edf40d5b8269e9b6c277bb699", + "internalRef": "388769359" } }, {