@@ -806,6 +806,18 @@ class GoogleCloudRetailV2CatalogAttributeFacetConfig
806806 # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>]
807807 attr_accessor :merged_facet_values
808808
809+ # Options to rerank based on facet values engaged by the user for the current
810+ # key. That key needs to be a custom textual key and facetable. To use this
811+ # control, you also need to pass all the facet keys engaged by the user in the
812+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
813+ # pass the facet keys engaged that you want to rerank on, this control won't be
814+ # effective. Moreover, to obtain better results, the facet values that you want
815+ # to rerank on should be close to English (ideally made of words, underscores,
816+ # and spaces).
817+ # Corresponds to the JSON property `rerankConfig`
818+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig]
819+ attr_accessor :rerank_config
820+
809821 def initialize ( **args )
810822 update! ( **args )
811823 end
@@ -815,6 +827,7 @@ def update!(**args)
815827 @facet_intervals = args [ :facet_intervals ] if args . key? ( :facet_intervals )
816828 @ignored_facet_values = args [ :ignored_facet_values ] if args . key? ( :ignored_facet_values )
817829 @merged_facet_values = args [ :merged_facet_values ] if args . key? ( :merged_facet_values )
830+ @rerank_config = args [ :rerank_config ] if args . key? ( :rerank_config )
818831 end
819832 end
820833
@@ -887,6 +900,41 @@ def update!(**args)
887900 end
888901 end
889902
903+ # Options to rerank based on facet values engaged by the user for the current
904+ # key. That key needs to be a custom textual key and facetable. To use this
905+ # control, you also need to pass all the facet keys engaged by the user in the
906+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
907+ # pass the facet keys engaged that you want to rerank on, this control won't be
908+ # effective. Moreover, to obtain better results, the facet values that you want
909+ # to rerank on should be close to English (ideally made of words, underscores,
910+ # and spaces).
911+ class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
912+ include Google ::Apis ::Core ::Hashable
913+
914+ # If empty, rerank on all facet values for the current key. Otherwise, will
915+ # rerank on the facet values from this list only.
916+ # Corresponds to the JSON property `facetValues`
917+ # @return [Array<String>]
918+ attr_accessor :facet_values
919+
920+ # If set to true, then we also rerank the dynamic facets based on the facet
921+ # values engaged by the user for the current attribute key during serving.
922+ # Corresponds to the JSON property `rerankFacet`
923+ # @return [Boolean]
924+ attr_accessor :rerank_facet
925+ alias_method :rerank_facet? , :rerank_facet
926+
927+ def initialize ( **args )
928+ update! ( **args )
929+ end
930+
931+ # Update properties of this object
932+ def update! ( **args )
933+ @facet_values = args [ :facet_values ] if args . key? ( :facet_values )
934+ @rerank_facet = args [ :rerank_facet ] if args . key? ( :rerank_facet )
935+ end
936+ end
937+
890938 # The color information of a Product.
891939 class GoogleCloudRetailV2ColorInfo
892940 include Google ::Apis ::Core ::Hashable
@@ -7080,6 +7128,40 @@ def update!(**args)
70807128 end
70817129 end
70827130
7131+ # Response of the ExportAnalyticsMetricsRequest. If the long running operation
7132+ # was successful, then this message is returned by the google.longrunning.
7133+ # Operations.response field if the operation was successful.
7134+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
7135+ include Google ::Apis ::Core ::Hashable
7136+
7137+ # A sample of errors encountered while processing the request.
7138+ # Corresponds to the JSON property `errorSamples`
7139+ # @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
7140+ attr_accessor :error_samples
7141+
7142+ # Configuration of destination for Export related errors.
7143+ # Corresponds to the JSON property `errorsConfig`
7144+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig]
7145+ attr_accessor :errors_config
7146+
7147+ # Output result that stores the information about where the exported data is
7148+ # stored.
7149+ # Corresponds to the JSON property `outputResult`
7150+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult]
7151+ attr_accessor :output_result
7152+
7153+ def initialize ( **args )
7154+ update! ( **args )
7155+ end
7156+
7157+ # Update properties of this object
7158+ def update! ( **args )
7159+ @error_samples = args [ :error_samples ] if args . key? ( :error_samples )
7160+ @errors_config = args [ :errors_config ] if args . key? ( :errors_config )
7161+ @output_result = args [ :output_result ] if args . key? ( :output_result )
7162+ end
7163+ end
7164+
70837165 # Configuration of destination for Export related errors.
70847166 class GoogleCloudRetailV2betaExportErrorsConfig
70857167 include Google ::Apis ::Core ::Hashable
0 commit comments