retailpb

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CatalogAttribute_AttributeType_name = map[int32]string{
		0: "UNKNOWN",
		1: "TEXTUAL",
		2: "NUMERICAL",
	}
	CatalogAttribute_AttributeType_value = map[string]int32{
		"UNKNOWN":   0,
		"TEXTUAL":   1,
		"NUMERICAL": 2,
	}
)

Enum value maps for CatalogAttribute_AttributeType.

View Source
var (
	CatalogAttribute_IndexableOption_name = map[int32]string{
		0: "INDEXABLE_OPTION_UNSPECIFIED",
		1: "INDEXABLE_ENABLED",
		2: "INDEXABLE_DISABLED",
	}
	CatalogAttribute_IndexableOption_value = map[string]int32{
		"INDEXABLE_OPTION_UNSPECIFIED": 0,
		"INDEXABLE_ENABLED":            1,
		"INDEXABLE_DISABLED":           2,
	}
)

Enum value maps for CatalogAttribute_IndexableOption.

View Source
var (
	CatalogAttribute_DynamicFacetableOption_name = map[int32]string{
		0: "DYNAMIC_FACETABLE_OPTION_UNSPECIFIED",
		1: "DYNAMIC_FACETABLE_ENABLED",
		2: "DYNAMIC_FACETABLE_DISABLED",
	}
	CatalogAttribute_DynamicFacetableOption_value = map[string]int32{
		"DYNAMIC_FACETABLE_OPTION_UNSPECIFIED": 0,
		"DYNAMIC_FACETABLE_ENABLED":            1,
		"DYNAMIC_FACETABLE_DISABLED":           2,
	}
)

Enum value maps for CatalogAttribute_DynamicFacetableOption.

View Source
var (
	CatalogAttribute_SearchableOption_name = map[int32]string{
		0: "SEARCHABLE_OPTION_UNSPECIFIED",
		1: "SEARCHABLE_ENABLED",
		2: "SEARCHABLE_DISABLED",
	}
	CatalogAttribute_SearchableOption_value = map[string]int32{
		"SEARCHABLE_OPTION_UNSPECIFIED": 0,
		"SEARCHABLE_ENABLED":            1,
		"SEARCHABLE_DISABLED":           2,
	}
)

Enum value maps for CatalogAttribute_SearchableOption.

View Source
var (
	CatalogAttribute_ExactSearchableOption_name = map[int32]string{
		0: "EXACT_SEARCHABLE_OPTION_UNSPECIFIED",
		1: "EXACT_SEARCHABLE_ENABLED",
		2: "EXACT_SEARCHABLE_DISABLED",
	}
	CatalogAttribute_ExactSearchableOption_value = map[string]int32{
		"EXACT_SEARCHABLE_OPTION_UNSPECIFIED": 0,
		"EXACT_SEARCHABLE_ENABLED":            1,
		"EXACT_SEARCHABLE_DISABLED":           2,
	}
)

Enum value maps for CatalogAttribute_ExactSearchableOption.

View Source
var (
	CatalogAttribute_RetrievableOption_name = map[int32]string{
		0: "RETRIEVABLE_OPTION_UNSPECIFIED",
		1: "RETRIEVABLE_ENABLED",
		2: "RETRIEVABLE_DISABLED",
	}
	CatalogAttribute_RetrievableOption_value = map[string]int32{
		"RETRIEVABLE_OPTION_UNSPECIFIED": 0,
		"RETRIEVABLE_ENABLED":            1,
		"RETRIEVABLE_DISABLED":           2,
	}
)

Enum value maps for CatalogAttribute_RetrievableOption.

View Source
var (
	AttributeConfigLevel_name = map[int32]string{
		0: "ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED",
		1: "PRODUCT_LEVEL_ATTRIBUTE_CONFIG",
		2: "CATALOG_LEVEL_ATTRIBUTE_CONFIG",
	}
	AttributeConfigLevel_value = map[string]int32{
		"ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED": 0,
		"PRODUCT_LEVEL_ATTRIBUTE_CONFIG":     1,
		"CATALOG_LEVEL_ATTRIBUTE_CONFIG":     2,
	}
)

Enum value maps for AttributeConfigLevel.

View Source
var (
	SolutionType_name = map[int32]string{
		0: "SOLUTION_TYPE_UNSPECIFIED",
		1: "SOLUTION_TYPE_RECOMMENDATION",
		2: "SOLUTION_TYPE_SEARCH",
	}
	SolutionType_value = map[string]int32{
		"SOLUTION_TYPE_UNSPECIFIED":    0,
		"SOLUTION_TYPE_RECOMMENDATION": 1,
		"SOLUTION_TYPE_SEARCH":         2,
	}
)

Enum value maps for SolutionType.

View Source
var (
	RecommendationsFilteringOption_name = map[int32]string{
		0: "RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED",
		1: "RECOMMENDATIONS_FILTERING_DISABLED",
		3: "RECOMMENDATIONS_FILTERING_ENABLED",
	}
	RecommendationsFilteringOption_value = map[string]int32{
		"RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED": 0,
		"RECOMMENDATIONS_FILTERING_DISABLED":           1,
		"RECOMMENDATIONS_FILTERING_ENABLED":            3,
	}
)

Enum value maps for RecommendationsFilteringOption.

View Source
var (
	SearchSolutionUseCase_name = map[int32]string{
		0: "SEARCH_SOLUTION_USE_CASE_UNSPECIFIED",
		1: "SEARCH_SOLUTION_USE_CASE_SEARCH",
		2: "SEARCH_SOLUTION_USE_CASE_BROWSE",
	}
	SearchSolutionUseCase_value = map[string]int32{
		"SEARCH_SOLUTION_USE_CASE_UNSPECIFIED": 0,
		"SEARCH_SOLUTION_USE_CASE_SEARCH":      1,
		"SEARCH_SOLUTION_USE_CASE_BROWSE":      2,
	}
)

Enum value maps for SearchSolutionUseCase.

View Source
var (
	ImportProductsRequest_ReconciliationMode_name = map[int32]string{
		0: "RECONCILIATION_MODE_UNSPECIFIED",
		1: "INCREMENTAL",
		2: "FULL",
	}
	ImportProductsRequest_ReconciliationMode_value = map[string]int32{
		"RECONCILIATION_MODE_UNSPECIFIED": 0,
		"INCREMENTAL":                     1,
		"FULL":                            2,
	}
)

Enum value maps for ImportProductsRequest_ReconciliationMode.

View Source
var (
	MerchantCenterAccountLink_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "ACTIVE",
		3: "FAILED",
	}
	MerchantCenterAccountLink_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"ACTIVE":            2,
		"FAILED":            3,
	}
)

Enum value maps for MerchantCenterAccountLink_State.

View Source
var (
	Model_ServingState_name = map[int32]string{
		0: "SERVING_STATE_UNSPECIFIED",
		1: "INACTIVE",
		2: "ACTIVE",
		3: "TUNED",
	}
	Model_ServingState_value = map[string]int32{
		"SERVING_STATE_UNSPECIFIED": 0,
		"INACTIVE":                  1,
		"ACTIVE":                    2,
		"TUNED":                     3,
	}
)

Enum value maps for Model_ServingState.

View Source
var (
	Model_TrainingState_name = map[int32]string{
		0: "TRAINING_STATE_UNSPECIFIED",
		1: "PAUSED",
		2: "TRAINING",
	}
	Model_TrainingState_value = map[string]int32{
		"TRAINING_STATE_UNSPECIFIED": 0,
		"PAUSED":                     1,
		"TRAINING":                   2,
	}
)

Enum value maps for Model_TrainingState.

View Source
var (
	Model_PeriodicTuningState_name = map[int32]string{
		0: "PERIODIC_TUNING_STATE_UNSPECIFIED",
		1: "PERIODIC_TUNING_DISABLED",
		3: "ALL_TUNING_DISABLED",
		2: "PERIODIC_TUNING_ENABLED",
	}
	Model_PeriodicTuningState_value = map[string]int32{
		"PERIODIC_TUNING_STATE_UNSPECIFIED": 0,
		"PERIODIC_TUNING_DISABLED":          1,
		"ALL_TUNING_DISABLED":               3,
		"PERIODIC_TUNING_ENABLED":           2,
	}
)

Enum value maps for Model_PeriodicTuningState.

View Source
var (
	Model_DataState_name = map[int32]string{
		0: "DATA_STATE_UNSPECIFIED",
		1: "DATA_OK",
		2: "DATA_ERROR",
	}
	Model_DataState_value = map[string]int32{
		"DATA_STATE_UNSPECIFIED": 0,
		"DATA_OK":                1,
		"DATA_ERROR":             2,
	}
)

Enum value maps for Model_DataState.

View Source
var (
	Model_PageOptimizationConfig_Restriction_name = map[int32]string{
		0: "RESTRICTION_UNSPECIFIED",
		1: "NO_RESTRICTION",
		2: "UNIQUE_SERVING_CONFIG_RESTRICTION",
		3: "UNIQUE_MODEL_RESTRICTION",
		4: "UNIQUE_MODEL_TYPE_RESTRICTION",
	}
	Model_PageOptimizationConfig_Restriction_value = map[string]int32{
		"RESTRICTION_UNSPECIFIED":           0,
		"NO_RESTRICTION":                    1,
		"UNIQUE_SERVING_CONFIG_RESTRICTION": 2,
		"UNIQUE_MODEL_RESTRICTION":          3,
		"UNIQUE_MODEL_TYPE_RESTRICTION":     4,
	}
)

Enum value maps for Model_PageOptimizationConfig_Restriction.

View Source
var (
	Product_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "PRIMARY",
		2: "VARIANT",
		3: "COLLECTION",
	}
	Product_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"PRIMARY":          1,
		"VARIANT":          2,
		"COLLECTION":       3,
	}
)

Enum value maps for Product_Type.

View Source
var (
	Product_Availability_name = map[int32]string{
		0: "AVAILABILITY_UNSPECIFIED",
		1: "IN_STOCK",
		2: "OUT_OF_STOCK",
		3: "PREORDER",
		4: "BACKORDER",
	}
	Product_Availability_value = map[string]int32{
		"AVAILABILITY_UNSPECIFIED": 0,
		"IN_STOCK":                 1,
		"OUT_OF_STOCK":             2,
		"PREORDER":                 3,
		"BACKORDER":                4,
	}
)

Enum value maps for Product_Availability.

View Source
var (
	SearchRequest_RelevanceThreshold_name = map[int32]string{
		0: "RELEVANCE_THRESHOLD_UNSPECIFIED",
		1: "HIGH",
		2: "MEDIUM",
		3: "LOW",
		4: "LOWEST",
	}
	SearchRequest_RelevanceThreshold_value = map[string]int32{
		"RELEVANCE_THRESHOLD_UNSPECIFIED": 0,
		"HIGH":                            1,
		"MEDIUM":                          2,
		"LOW":                             3,
		"LOWEST":                          4,
	}
)

Enum value maps for SearchRequest_RelevanceThreshold.

View Source
var (
	SearchRequest_SearchMode_name = map[int32]string{
		0: "SEARCH_MODE_UNSPECIFIED",
		1: "PRODUCT_SEARCH_ONLY",
		2: "FACETED_SEARCH_ONLY",
	}
	SearchRequest_SearchMode_value = map[string]int32{
		"SEARCH_MODE_UNSPECIFIED": 0,
		"PRODUCT_SEARCH_ONLY":     1,
		"FACETED_SEARCH_ONLY":     2,
	}
)

Enum value maps for SearchRequest_SearchMode.

View Source
var (
	SearchRequest_DynamicFacetSpec_Mode_name = map[int32]string{
		0: "MODE_UNSPECIFIED",
		1: "DISABLED",
		2: "ENABLED",
	}
	SearchRequest_DynamicFacetSpec_Mode_value = map[string]int32{
		"MODE_UNSPECIFIED": 0,
		"DISABLED":         1,
		"ENABLED":          2,
	}
)

Enum value maps for SearchRequest_DynamicFacetSpec_Mode.

View Source
var (
	SearchRequest_QueryExpansionSpec_Condition_name = map[int32]string{
		0: "CONDITION_UNSPECIFIED",
		1: "DISABLED",
		3: "AUTO",
	}
	SearchRequest_QueryExpansionSpec_Condition_value = map[string]int32{
		"CONDITION_UNSPECIFIED": 0,
		"DISABLED":              1,
		"AUTO":                  3,
	}
)

Enum value maps for SearchRequest_QueryExpansionSpec_Condition.

View Source
var (
	SearchRequest_PersonalizationSpec_Mode_name = map[int32]string{
		0: "MODE_UNSPECIFIED",
		1: "AUTO",
		2: "DISABLED",
	}
	SearchRequest_PersonalizationSpec_Mode_value = map[string]int32{
		"MODE_UNSPECIFIED": 0,
		"AUTO":             1,
		"DISABLED":         2,
	}
)

Enum value maps for SearchRequest_PersonalizationSpec_Mode.

View Source
var (
	SearchRequest_SpellCorrectionSpec_Mode_name = map[int32]string{
		0: "MODE_UNSPECIFIED",
		1: "SUGGESTION_ONLY",
		2: "AUTO",
	}
	SearchRequest_SpellCorrectionSpec_Mode_value = map[string]int32{
		"MODE_UNSPECIFIED": 0,
		"SUGGESTION_ONLY":  1,
		"AUTO":             2,
	}
)

Enum value maps for SearchRequest_SpellCorrectionSpec_Mode.

View Source
var (
	ServingConfig_DiversityType_name = map[int32]string{
		0: "DIVERSITY_TYPE_UNSPECIFIED",
		2: "RULE_BASED_DIVERSITY",
		3: "DATA_DRIVEN_DIVERSITY",
	}
	ServingConfig_DiversityType_value = map[string]int32{
		"DIVERSITY_TYPE_UNSPECIFIED": 0,
		"RULE_BASED_DIVERSITY":       2,
		"DATA_DRIVEN_DIVERSITY":      3,
	}
)

Enum value maps for ServingConfig_DiversityType.

View Source
var (
	RejoinUserEventsRequest_UserEventRejoinScope_name = map[int32]string{
		0: "USER_EVENT_REJOIN_SCOPE_UNSPECIFIED",
		1: "JOINED_EVENTS",
		2: "UNJOINED_EVENTS",
	}
	RejoinUserEventsRequest_UserEventRejoinScope_value = map[string]int32{
		"USER_EVENT_REJOIN_SCOPE_UNSPECIFIED": 0,
		"JOINED_EVENTS":                       1,
		"UNJOINED_EVENTS":                     2,
	}
)

Enum value maps for RejoinUserEventsRequest_UserEventRejoinScope.

View Source
var File_google_cloud_retail_v2alpha_analytics_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_catalog_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_catalog_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_common_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_completion_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_control_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_control_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_export_config_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_import_config_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_merchant_center_account_link_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_merchant_center_account_link_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_model_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_model_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_prediction_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_product_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_product_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_promotion_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_purge_config_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_search_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_serving_config_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_serving_config_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_user_event_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_retail_v2alpha_user_event_service_proto protoreflect.FileDescriptor

Functions

func RegisterAnalyticsServiceServer added in v1.15.0

func RegisterAnalyticsServiceServer(s *grpc.Server, srv AnalyticsServiceServer)

func RegisterCatalogServiceServer

func RegisterCatalogServiceServer(s *grpc.Server, srv CatalogServiceServer)

func RegisterCompletionServiceServer

func RegisterCompletionServiceServer(s *grpc.Server, srv CompletionServiceServer)

func RegisterControlServiceServer

func RegisterControlServiceServer(s *grpc.Server, srv ControlServiceServer)

func RegisterMerchantCenterAccountLinkServiceServer added in v1.13.0

func RegisterMerchantCenterAccountLinkServiceServer(s *grpc.Server, srv MerchantCenterAccountLinkServiceServer)

func RegisterModelServiceServer

func RegisterModelServiceServer(s *grpc.Server, srv ModelServiceServer)

func RegisterPredictionServiceServer

func RegisterPredictionServiceServer(s *grpc.Server, srv PredictionServiceServer)

func RegisterProductServiceServer

func RegisterProductServiceServer(s *grpc.Server, srv ProductServiceServer)

func RegisterSearchServiceServer

func RegisterSearchServiceServer(s *grpc.Server, srv SearchServiceServer)

func RegisterServingConfigServiceServer

func RegisterServingConfigServiceServer(s *grpc.Server, srv ServingConfigServiceServer)

func RegisterUserEventServiceServer

func RegisterUserEventServiceServer(s *grpc.Server, srv UserEventServiceServer)

Types

type AddCatalogAttributeRequest

type AddCatalogAttributeRequest struct {

	// Required. Full AttributesConfig resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
	AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"`
	// Required. The
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to add.
	CatalogAttribute *CatalogAttribute `protobuf:"bytes,2,opt,name=catalog_attribute,json=catalogAttribute,proto3" json:"catalog_attribute,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.AddCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute] method.

func (*AddCatalogAttributeRequest) Descriptor deprecated

func (*AddCatalogAttributeRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddCatalogAttributeRequest.ProtoReflect.Descriptor instead.

func (*AddCatalogAttributeRequest) GetAttributesConfig

func (x *AddCatalogAttributeRequest) GetAttributesConfig() string

func (*AddCatalogAttributeRequest) GetCatalogAttribute

func (x *AddCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute

func (*AddCatalogAttributeRequest) ProtoMessage

func (*AddCatalogAttributeRequest) ProtoMessage()

func (*AddCatalogAttributeRequest) ProtoReflect

func (*AddCatalogAttributeRequest) Reset

func (x *AddCatalogAttributeRequest) Reset()

func (*AddCatalogAttributeRequest) String

func (x *AddCatalogAttributeRequest) String() string

type AddControlRequest

type AddControlRequest struct {

	// Required. The source ServingConfig resource name . Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
	ServingConfig string `protobuf:"bytes,1,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"`
	// Required. The id of the control to apply. Assumed to be in the same catalog
	// as the serving config - if id is not found a NOT_FOUND error is returned.
	ControlId string `protobuf:"bytes,2,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
	// contains filtered or unexported fields
}

Request for AddControl method.

func (*AddControlRequest) Descriptor deprecated

func (*AddControlRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddControlRequest.ProtoReflect.Descriptor instead.

func (*AddControlRequest) GetControlId

func (x *AddControlRequest) GetControlId() string

func (*AddControlRequest) GetServingConfig

func (x *AddControlRequest) GetServingConfig() string

func (*AddControlRequest) ProtoMessage

func (*AddControlRequest) ProtoMessage()

func (*AddControlRequest) ProtoReflect

func (x *AddControlRequest) ProtoReflect() protoreflect.Message

func (*AddControlRequest) Reset

func (x *AddControlRequest) Reset()

func (*AddControlRequest) String

func (x *AddControlRequest) String() string

type AddFulfillmentPlacesMetadata

type AddFulfillmentPlacesMetadata struct {
	// contains filtered or unexported fields
}

Metadata related to the progress of the AddFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method.

func (*AddFulfillmentPlacesMetadata) Descriptor deprecated

func (*AddFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use AddFulfillmentPlacesMetadata.ProtoReflect.Descriptor instead.

func (*AddFulfillmentPlacesMetadata) ProtoMessage

func (*AddFulfillmentPlacesMetadata) ProtoMessage()

func (*AddFulfillmentPlacesMetadata) ProtoReflect

func (*AddFulfillmentPlacesMetadata) Reset

func (x *AddFulfillmentPlacesMetadata) Reset()

func (*AddFulfillmentPlacesMetadata) String

type AddFulfillmentPlacesRequest

type AddFulfillmentPlacesRequest struct {

	// Required. Full resource name of
	// [Product][google.cloud.retail.v2alpha.Product], such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
	//
	// If the caller does not have permission to access the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	Product string `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// Required. The fulfillment type, including commonly used types (such as
	// pickup in store and same day delivery), and custom types.
	//
	// Supported values:
	//
	// * "pickup-in-store"
	// * "ship-to-store"
	// * "same-day-delivery"
	// * "next-day-delivery"
	// * "custom-type-1"
	// * "custom-type-2"
	// * "custom-type-3"
	// * "custom-type-4"
	// * "custom-type-5"
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	//
	// This field directly corresponds to
	// [Product.fulfillment_info.type][google.cloud.retail.v2alpha.FulfillmentInfo.type].
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Required. The IDs for this
	// [type][google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest.type], such
	// as the store IDs for "pickup-in-store" or the region IDs for
	// "same-day-delivery" to be added for this
	// [type][google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest.type].
	// Duplicate IDs will be automatically ignored.
	//
	// At least 1 value is required, and a maximum of 2000 values are allowed.
	// Each value must be a string with a length limit of 10 characters, matching
	// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// If the total number of place IDs exceeds 2000 for this
	// [type][google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest.type] after
	// adding, then the update will be rejected.
	PlaceIds []string `protobuf:"bytes,3,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"`
	// The time when the fulfillment updates are issued, used to prevent
	// out-of-order updates on fulfillment information. If not provided, the
	// internal system time will be used.
	AddTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=add_time,json=addTime,proto3" json:"add_time,omitempty"`
	// If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is
	// not found, the fulfillment information will still be processed and retained
	// for at most 1 day and processed once the
	// [Product][google.cloud.retail.v2alpha.Product] is created. If set to false,
	// a NOT_FOUND error is returned if the
	// [Product][google.cloud.retail.v2alpha.Product] is not found.
	AllowMissing bool `protobuf:"varint,5,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method.

func (*AddFulfillmentPlacesRequest) Descriptor deprecated

func (*AddFulfillmentPlacesRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFulfillmentPlacesRequest.ProtoReflect.Descriptor instead.

func (*AddFulfillmentPlacesRequest) GetAddTime

func (*AddFulfillmentPlacesRequest) GetAllowMissing

func (x *AddFulfillmentPlacesRequest) GetAllowMissing() bool

func (*AddFulfillmentPlacesRequest) GetPlaceIds

func (x *AddFulfillmentPlacesRequest) GetPlaceIds() []string

func (*AddFulfillmentPlacesRequest) GetProduct

func (x *AddFulfillmentPlacesRequest) GetProduct() string

func (*AddFulfillmentPlacesRequest) GetType

func (x *AddFulfillmentPlacesRequest) GetType() string

func (*AddFulfillmentPlacesRequest) ProtoMessage

func (*AddFulfillmentPlacesRequest) ProtoMessage()

func (*AddFulfillmentPlacesRequest) ProtoReflect

func (*AddFulfillmentPlacesRequest) Reset

func (x *AddFulfillmentPlacesRequest) Reset()

func (*AddFulfillmentPlacesRequest) String

func (x *AddFulfillmentPlacesRequest) String() string

type AddFulfillmentPlacesResponse

type AddFulfillmentPlacesResponse struct {
	// contains filtered or unexported fields
}

Response of the AddFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method.

func (*AddFulfillmentPlacesResponse) Descriptor deprecated

func (*AddFulfillmentPlacesResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddFulfillmentPlacesResponse.ProtoReflect.Descriptor instead.

func (*AddFulfillmentPlacesResponse) ProtoMessage

func (*AddFulfillmentPlacesResponse) ProtoMessage()

func (*AddFulfillmentPlacesResponse) ProtoReflect

func (*AddFulfillmentPlacesResponse) Reset

func (x *AddFulfillmentPlacesResponse) Reset()

func (*AddFulfillmentPlacesResponse) String

type AddLocalInventoriesMetadata

type AddLocalInventoriesMetadata struct {
	// contains filtered or unexported fields
}

Metadata related to the progress of the AddLocalInventories operation. Currently empty because there is no meaningful metadata populated from the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.

func (*AddLocalInventoriesMetadata) Descriptor deprecated

func (*AddLocalInventoriesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use AddLocalInventoriesMetadata.ProtoReflect.Descriptor instead.

func (*AddLocalInventoriesMetadata) ProtoMessage

func (*AddLocalInventoriesMetadata) ProtoMessage()

func (*AddLocalInventoriesMetadata) ProtoReflect

func (*AddLocalInventoriesMetadata) Reset

func (x *AddLocalInventoriesMetadata) Reset()

func (*AddLocalInventoriesMetadata) String

func (x *AddLocalInventoriesMetadata) String() string

type AddLocalInventoriesRequest

type AddLocalInventoriesRequest struct {

	// Required. Full resource name of
	// [Product][google.cloud.retail.v2alpha.Product], such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
	//
	// If the caller does not have permission to access the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	Product string `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// Required. A list of inventory information at difference places. Each place
	// is identified by its place ID. At most 3000 inventories are allowed per
	// request.
	LocalInventories []*LocalInventory `protobuf:"bytes,2,rep,name=local_inventories,json=localInventories,proto3" json:"local_inventories,omitempty"`
	// Indicates which inventory fields in the provided list of
	// [LocalInventory][google.cloud.retail.v2alpha.LocalInventory] to update. The
	// field is updated to the provided value.
	//
	// If a field is set while the place does not have a previous local inventory,
	// the local inventory at that store is created.
	//
	// If a field is set while the value of that field is not provided, the
	// original field value, if it exists, is deleted.
	//
	// If the mask is not set or set with empty paths, all inventory fields will
	// be updated.
	//
	// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
	// is returned and the entire update will be ignored.
	AddMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=add_mask,json=addMask,proto3" json:"add_mask,omitempty"`
	// The time when the inventory updates are issued. Used to prevent
	// out-of-order updates on local inventory fields. If not provided, the
	// internal system time will be used.
	AddTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=add_time,json=addTime,proto3" json:"add_time,omitempty"`
	// If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is
	// not found, the local inventory will still be processed and retained for at
	// most 1 day and processed once the
	// [Product][google.cloud.retail.v2alpha.Product] is created. If set to false,
	// a NOT_FOUND error is returned if the
	// [Product][google.cloud.retail.v2alpha.Product] is not found.
	AllowMissing bool `protobuf:"varint,6,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.

func (*AddLocalInventoriesRequest) Descriptor deprecated

func (*AddLocalInventoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddLocalInventoriesRequest.ProtoReflect.Descriptor instead.

func (*AddLocalInventoriesRequest) GetAddMask

func (*AddLocalInventoriesRequest) GetAddTime

func (*AddLocalInventoriesRequest) GetAllowMissing

func (x *AddLocalInventoriesRequest) GetAllowMissing() bool

func (*AddLocalInventoriesRequest) GetLocalInventories

func (x *AddLocalInventoriesRequest) GetLocalInventories() []*LocalInventory

func (*AddLocalInventoriesRequest) GetProduct

func (x *AddLocalInventoriesRequest) GetProduct() string

func (*AddLocalInventoriesRequest) ProtoMessage

func (*AddLocalInventoriesRequest) ProtoMessage()

func (*AddLocalInventoriesRequest) ProtoReflect

func (*AddLocalInventoriesRequest) Reset

func (x *AddLocalInventoriesRequest) Reset()

func (*AddLocalInventoriesRequest) String

func (x *AddLocalInventoriesRequest) String() string

type AddLocalInventoriesResponse

type AddLocalInventoriesResponse struct {
	// contains filtered or unexported fields
}

Response of the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] API. Currently empty because there is no meaningful response populated from the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.

func (*AddLocalInventoriesResponse) Descriptor deprecated

func (*AddLocalInventoriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddLocalInventoriesResponse.ProtoReflect.Descriptor instead.

func (*AddLocalInventoriesResponse) ProtoMessage

func (*AddLocalInventoriesResponse) ProtoMessage()

func (*AddLocalInventoriesResponse) ProtoReflect

func (*AddLocalInventoriesResponse) Reset

func (x *AddLocalInventoriesResponse) Reset()

func (*AddLocalInventoriesResponse) String

func (x *AddLocalInventoriesResponse) String() string

type AnalyticsServiceClient added in v1.15.0

type AnalyticsServiceClient interface {
	// Exports analytics metrics.
	//
	// `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
	// `Operation.metadata` is of type `ExportMetadata`.
	ExportAnalyticsMetrics(ctx context.Context, in *ExportAnalyticsMetricsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

AnalyticsServiceClient is the client API for AnalyticsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAnalyticsServiceClient added in v1.15.0

func NewAnalyticsServiceClient(cc grpc.ClientConnInterface) AnalyticsServiceClient

type AnalyticsServiceServer added in v1.15.0

type AnalyticsServiceServer interface {
	// Exports analytics metrics.
	//
	// `Operation.response` is of type `ExportAnalyticsMetricsResponse`.
	// `Operation.metadata` is of type `ExportMetadata`.
	ExportAnalyticsMetrics(context.Context, *ExportAnalyticsMetricsRequest) (*longrunningpb.Operation, error)
}

AnalyticsServiceServer is the server API for AnalyticsService service.

type AttributeConfigLevel

type AttributeConfigLevel int32

At which level we offer configuration for attributes.

const (
	// Value used when unset. In this case, server behavior defaults to
	// [CATALOG_LEVEL_ATTRIBUTE_CONFIG][google.cloud.retail.v2alpha.AttributeConfigLevel.CATALOG_LEVEL_ATTRIBUTE_CONFIG].
	AttributeConfigLevel_ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED AttributeConfigLevel = 0
	// At this level, we honor the attribute configurations set in
	// [Product.attributes][google.cloud.retail.v2alpha.Product.attributes].
	AttributeConfigLevel_PRODUCT_LEVEL_ATTRIBUTE_CONFIG AttributeConfigLevel = 1
	// At this level, we honor the attribute configurations set in
	// [CatalogConfig.attribute_configs][google.cloud.retail.v2alpha.CatalogConfig.attribute_configs].
	AttributeConfigLevel_CATALOG_LEVEL_ATTRIBUTE_CONFIG AttributeConfigLevel = 2
)

func (AttributeConfigLevel) Descriptor

func (AttributeConfigLevel) Enum

func (AttributeConfigLevel) EnumDescriptor deprecated

func (AttributeConfigLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use AttributeConfigLevel.Descriptor instead.

func (AttributeConfigLevel) Number

func (AttributeConfigLevel) String

func (x AttributeConfigLevel) String() string

func (AttributeConfigLevel) Type

type AttributesConfig

type AttributesConfig struct {

	// Required. Immutable. The fully qualified resource name of the attribute
	// config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Enable attribute(s) config at catalog level.
	// For example, indexable, dynamic_facetable, or searchable for each
	// attribute.
	//
	// The key is catalog attribute's name.
	// For example: `color`, `brands`, `attributes.custom_attribute`, such as
	// `attributes.xyz`.
	//
	// The maximum number of catalog attributes allowed in a request is 1000.
	CatalogAttributes map[string]*CatalogAttribute `` /* 200-byte string literal not displayed */
	// Output only. The
	// [AttributeConfigLevel][google.cloud.retail.v2alpha.AttributeConfigLevel]
	// used for this catalog.
	AttributeConfigLevel AttributeConfigLevel `` /* 178-byte string literal not displayed */
	// contains filtered or unexported fields
}

Catalog level attribute config.

func (*AttributesConfig) Descriptor deprecated

func (*AttributesConfig) Descriptor() ([]byte, []int)

Deprecated: Use AttributesConfig.ProtoReflect.Descriptor instead.

func (*AttributesConfig) GetAttributeConfigLevel

func (x *AttributesConfig) GetAttributeConfigLevel() AttributeConfigLevel

func (*AttributesConfig) GetCatalogAttributes

func (x *AttributesConfig) GetCatalogAttributes() map[string]*CatalogAttribute

func (*AttributesConfig) GetName

func (x *AttributesConfig) GetName() string

func (*AttributesConfig) ProtoMessage

func (*AttributesConfig) ProtoMessage()

func (*AttributesConfig) ProtoReflect

func (x *AttributesConfig) ProtoReflect() protoreflect.Message

func (*AttributesConfig) Reset

func (x *AttributesConfig) Reset()

func (*AttributesConfig) String

func (x *AttributesConfig) String() string

type Audience

type Audience struct {

	// The genders of the audience. Strongly encouraged to use the standard
	// values: "male", "female", "unisex".
	//
	// At most 5 values are allowed. Each value must be a UTF-8 encoded string
	// with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error
	// is returned.
	//
	// Google Merchant Center property
	// [gender](https://support.google.com/merchants/answer/6324479). Schema.org
	// property
	// [Product.audience.suggestedGender](https://schema.org/suggestedGender).
	Genders []string `protobuf:"bytes,1,rep,name=genders,proto3" json:"genders,omitempty"`
	// The age groups of the audience. Strongly encouraged to use the standard
	// values: "newborn" (up to 3 months old), "infant" (3–12 months old),
	// "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically
	// teens or older).
	//
	// At most 5 values are allowed. Each value must be a UTF-8 encoded string
	// with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error
	// is returned.
	//
	// Google Merchant Center property
	// [age_group](https://support.google.com/merchants/answer/6324463).
	// Schema.org property
	// [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and
	// [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).
	AgeGroups []string `protobuf:"bytes,2,rep,name=age_groups,json=ageGroups,proto3" json:"age_groups,omitempty"`
	// contains filtered or unexported fields
}

An intended audience of the Product[google.cloud.retail.v2alpha.Product] for whom it's sold.

func (*Audience) Descriptor deprecated

func (*Audience) Descriptor() ([]byte, []int)

Deprecated: Use Audience.ProtoReflect.Descriptor instead.

func (*Audience) GetAgeGroups

func (x *Audience) GetAgeGroups() []string

func (*Audience) GetGenders

func (x *Audience) GetGenders() []string

func (*Audience) ProtoMessage

func (*Audience) ProtoMessage()

func (*Audience) ProtoReflect

func (x *Audience) ProtoReflect() protoreflect.Message

func (*Audience) Reset

func (x *Audience) Reset()

func (*Audience) String

func (x *Audience) String() string

type BatchRemoveCatalogAttributesRequest added in v1.12.0

type BatchRemoveCatalogAttributesRequest struct {

	// Required. The attributes config resource shared by all catalog attributes
	// being deleted. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
	AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"`
	// Required. The attribute name keys of the
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]s to
	// delete. A maximum of 1000 catalog attributes can be deleted in a batch.
	AttributeKeys []string `protobuf:"bytes,2,rep,name=attribute_keys,json=attributeKeys,proto3" json:"attribute_keys,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributes] method.

func (*BatchRemoveCatalogAttributesRequest) Descriptor deprecated added in v1.12.0

func (*BatchRemoveCatalogAttributesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchRemoveCatalogAttributesRequest.ProtoReflect.Descriptor instead.

func (*BatchRemoveCatalogAttributesRequest) GetAttributeKeys added in v1.12.0

func (x *BatchRemoveCatalogAttributesRequest) GetAttributeKeys() []string

func (*BatchRemoveCatalogAttributesRequest) GetAttributesConfig added in v1.12.0

func (x *BatchRemoveCatalogAttributesRequest) GetAttributesConfig() string

func (*BatchRemoveCatalogAttributesRequest) ProtoMessage added in v1.12.0

func (*BatchRemoveCatalogAttributesRequest) ProtoMessage()

func (*BatchRemoveCatalogAttributesRequest) ProtoReflect added in v1.12.0

func (*BatchRemoveCatalogAttributesRequest) Reset added in v1.12.0

func (*BatchRemoveCatalogAttributesRequest) String added in v1.12.0

type BatchRemoveCatalogAttributesResponse added in v1.12.0

type BatchRemoveCatalogAttributesResponse struct {

	// Catalog attributes that were deleted. Only pre-loaded [catalog
	// attributes][google.cloud.retail.v2alpha.CatalogAttribute] that are
	// neither [in
	// use][google.cloud.retail.v2alpha.CatalogAttribute.in_use] by
	// products nor predefined can be deleted.
	DeletedCatalogAttributes []string `` /* 135-byte string literal not displayed */
	// Catalog attributes that were reset. [Catalog
	// attributes][google.cloud.retail.v2alpha.CatalogAttribute] that are either
	// [in use][google.cloud.retail.v2alpha.CatalogAttribute.in_use] by products
	// or are predefined attributes cannot be deleted; however, their
	// configuration properties will reset to default values upon removal request.
	ResetCatalogAttributes []string `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response of the [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributes].

func (*BatchRemoveCatalogAttributesResponse) Descriptor deprecated added in v1.12.0

func (*BatchRemoveCatalogAttributesResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchRemoveCatalogAttributesResponse.ProtoReflect.Descriptor instead.

func (*BatchRemoveCatalogAttributesResponse) GetDeletedCatalogAttributes added in v1.12.0

func (x *BatchRemoveCatalogAttributesResponse) GetDeletedCatalogAttributes() []string

func (*BatchRemoveCatalogAttributesResponse) GetResetCatalogAttributes added in v1.12.0

func (x *BatchRemoveCatalogAttributesResponse) GetResetCatalogAttributes() []string

func (*BatchRemoveCatalogAttributesResponse) ProtoMessage added in v1.12.0

func (*BatchRemoveCatalogAttributesResponse) ProtoMessage()

func (*BatchRemoveCatalogAttributesResponse) ProtoReflect added in v1.12.0

func (*BatchRemoveCatalogAttributesResponse) Reset added in v1.12.0

func (*BatchRemoveCatalogAttributesResponse) String added in v1.12.0

type BigQueryOutputResult

type BigQueryOutputResult struct {

	// The ID of a BigQuery Dataset.
	DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
	// The ID of a BigQuery Table.
	TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
	// contains filtered or unexported fields
}

A BigQuery output result.

func (*BigQueryOutputResult) Descriptor deprecated

func (*BigQueryOutputResult) Descriptor() ([]byte, []int)

Deprecated: Use BigQueryOutputResult.ProtoReflect.Descriptor instead.

func (*BigQueryOutputResult) GetDatasetId

func (x *BigQueryOutputResult) GetDatasetId() string

func (*BigQueryOutputResult) GetTableId

func (x *BigQueryOutputResult) GetTableId() string

func (*BigQueryOutputResult) ProtoMessage

func (*BigQueryOutputResult) ProtoMessage()

func (*BigQueryOutputResult) ProtoReflect

func (x *BigQueryOutputResult) ProtoReflect() protoreflect.Message

func (*BigQueryOutputResult) Reset

func (x *BigQueryOutputResult) Reset()

func (*BigQueryOutputResult) String

func (x *BigQueryOutputResult) String() string

type BigQuerySource

type BigQuerySource struct {

	// BigQuery table partition info. Leave this empty if the BigQuery table
	// is not partitioned.
	//
	// Types that are assignable to Partition:
	//
	//	*BigQuerySource_PartitionDate
	Partition isBigQuerySource_Partition `protobuf_oneof:"partition"`
	// The project ID (can be project # or ID) that the BigQuery source is in with
	// a length limit of 128 characters. If not specified, inherits the project
	// ID from the parent request.
	ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Required. The BigQuery data set to copy the data from with a length limit
	// of 1,024 characters.
	DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
	// Required. The BigQuery table to copy the data from with a length limit of
	// 1,024 characters.
	TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
	// Intermediate Cloud Storage directory used for the import with a length
	// limit of 2,000 characters. Can be specified if one wants to have the
	// BigQuery export to a specific Cloud Storage directory.
	GcsStagingDir string `protobuf:"bytes,3,opt,name=gcs_staging_dir,json=gcsStagingDir,proto3" json:"gcs_staging_dir,omitempty"`
	// The schema to use when parsing the data from the source.
	//
	// Supported values for product imports:
	//
	// * `product` (default): One JSON
	// [Product][google.cloud.retail.v2alpha.Product] per line. Each product must
	//
	//	have a valid [Product.id][google.cloud.retail.v2alpha.Product.id].
	//   - `product_merchant_center`: See [Importing catalog data from Merchant
	//     Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc).
	//
	// Supported values for user events imports:
	//
	// * `user_event` (default): One JSON
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent] per line.
	//   - `user_event_ga360`:
	//     The schema is available here:
	//     https://support.google.com/analytics/answer/3437719.
	//   - `user_event_ga4`:
	//     The schema is available here:
	//     https://support.google.com/analytics/answer/7029846.
	//
	// Supported values for autocomplete imports:
	//
	// * `suggestions` (default): One JSON completion suggestion per line.
	// * `denylist`:  One JSON deny suggestion per line.
	// * `allowlist`:  One JSON allow suggestion per line.
	DataSchema string `protobuf:"bytes,4,opt,name=data_schema,json=dataSchema,proto3" json:"data_schema,omitempty"`
	// contains filtered or unexported fields
}

BigQuery source import data from.

func (*BigQuerySource) Descriptor deprecated

func (*BigQuerySource) Descriptor() ([]byte, []int)

Deprecated: Use BigQuerySource.ProtoReflect.Descriptor instead.

func (*BigQuerySource) GetDataSchema

func (x *BigQuerySource) GetDataSchema() string

func (*BigQuerySource) GetDatasetId

func (x *BigQuerySource) GetDatasetId() string

func (*BigQuerySource) GetGcsStagingDir

func (x *BigQuerySource) GetGcsStagingDir() string

func (*BigQuerySource) GetPartition

func (m *BigQuerySource) GetPartition() isBigQuerySource_Partition

func (*BigQuerySource) GetPartitionDate

func (x *BigQuerySource) GetPartitionDate() *date.Date

func (*BigQuerySource) GetProjectId

func (x *BigQuerySource) GetProjectId() string

func (*BigQuerySource) GetTableId

func (x *BigQuerySource) GetTableId() string

func (*BigQuerySource) ProtoMessage

func (*BigQuerySource) ProtoMessage()

func (*BigQuerySource) ProtoReflect

func (x *BigQuerySource) ProtoReflect() protoreflect.Message

func (*BigQuerySource) Reset

func (x *BigQuerySource) Reset()

func (*BigQuerySource) String

func (x *BigQuerySource) String() string

type BigQuerySource_PartitionDate

type BigQuerySource_PartitionDate struct {
	// BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
	//
	// Only supported in
	// [ImportProductsRequest][google.cloud.retail.v2alpha.ImportProductsRequest].
	PartitionDate *date.Date `protobuf:"bytes,6,opt,name=partition_date,json=partitionDate,proto3,oneof"`
}

type Catalog

type Catalog struct {

	// Required. Immutable. The fully qualified resource name of the catalog.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Immutable. The catalog display name.
	//
	// This field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Required. The product level configuration.
	ProductLevelConfig *ProductLevelConfig `protobuf:"bytes,4,opt,name=product_level_config,json=productLevelConfig,proto3" json:"product_level_config,omitempty"`
	// The Merchant Center linking configuration.
	// Once a link is added, the data stream from Merchant Center to Cloud Retail
	// will be enabled automatically. The requester must have access to the
	// merchant center account in order to make changes to this field.
	MerchantCenterLinkingConfig *MerchantCenterLinkingConfig `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

The catalog configuration.

func (*Catalog) Descriptor deprecated

func (*Catalog) Descriptor() ([]byte, []int)

Deprecated: Use Catalog.ProtoReflect.Descriptor instead.

func (*Catalog) GetDisplayName

func (x *Catalog) GetDisplayName() string

func (*Catalog) GetMerchantCenterLinkingConfig

func (x *Catalog) GetMerchantCenterLinkingConfig() *MerchantCenterLinkingConfig

func (*Catalog) GetName

func (x *Catalog) GetName() string

func (*Catalog) GetProductLevelConfig

func (x *Catalog) GetProductLevelConfig() *ProductLevelConfig

func (*Catalog) ProtoMessage

func (*Catalog) ProtoMessage()

func (*Catalog) ProtoReflect

func (x *Catalog) ProtoReflect() protoreflect.Message

func (*Catalog) Reset

func (x *Catalog) Reset()

func (*Catalog) String

func (x *Catalog) String() string

type CatalogAttribute

type CatalogAttribute struct {

	// Required. Attribute name.
	// For example: `color`, `brands`, `attributes.custom_attribute`, such as
	// `attributes.xyz`.
	// To be indexable, the attribute name can contain only alpha-numeric
	// characters and underscores. For example, an attribute named
	// `attributes.abc_xyz` can be indexed, but an attribute named
	// `attributes.abc-xyz` cannot be indexed.
	//
	// If the attribute key starts with `attributes.`, then the attribute is a
	// custom attribute. Attributes such as `brands`, `patterns`, and `title` are
	// built-in and called system attributes.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Output only. Indicates whether this attribute has been used by any
	// products. `True` if at least one
	// [Product][google.cloud.retail.v2alpha.Product] is using this attribute in
	// [Product.attributes][google.cloud.retail.v2alpha.Product.attributes].
	// Otherwise, this field is `False`.
	//
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] can be
	// pre-loaded by using
	// [CatalogService.AddCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute],
	// [CatalogService.ImportCatalogAttributes][google.cloud.retail.v2alpha.CatalogService.ImportCatalogAttributes],
	// or
	// [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfig]
	// APIs. This field is `False` for pre-loaded
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]s.
	//
	// Only pre-loaded [catalog
	// attributes][google.cloud.retail.v2alpha.CatalogAttribute] that are neither
	// in use by products nor predefined can be deleted. [Catalog
	// attributes][google.cloud.retail.v2alpha.CatalogAttribute] that are
	// either in use by products or are predefined attributes cannot be deleted;
	// however, their configuration properties will reset to default values upon
	// removal request.
	//
	// After catalog changes, it takes about 10 minutes for this field to update.
	InUse bool `protobuf:"varint,9,opt,name=in_use,json=inUse,proto3" json:"in_use,omitempty"`
	// Output only. The type of this attribute. This is derived from the attribute
	// in [Product.attributes][google.cloud.retail.v2alpha.Product.attributes].
	Type CatalogAttribute_AttributeType `` /* 127-byte string literal not displayed */
	// When
	// [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level]
	// is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values
	// are indexed so that it can be filtered, faceted, or boosted in
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	//
	// Must be specified, otherwise throws INVALID_FORMAT error.
	IndexableOption CatalogAttribute_IndexableOption `` /* 173-byte string literal not displayed */
	// If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic
	// facet. Could only be DYNAMIC_FACETABLE_DISABLED if
	// [CatalogAttribute.indexable_option][google.cloud.retail.v2alpha.CatalogAttribute.indexable_option]
	// is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Must be specified, otherwise throws INVALID_FORMAT error.
	DynamicFacetableOption CatalogAttribute_DynamicFacetableOption `` /* 203-byte string literal not displayed */
	// When
	// [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level]
	// is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values
	// are searchable by text queries in
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	//
	// If SEARCHABLE_ENABLED but attribute type is numerical, attribute values
	// will not be searchable by text queries in
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search],
	// as there are no text values associated to numerical attributes.
	//
	// Must be specified, otherwise throws INVALID_FORMAT error.
	SearchableOption CatalogAttribute_SearchableOption `` /* 177-byte string literal not displayed */
	// When
	// [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level]
	// is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if RECOMMENDATIONS_FILTERING_ENABLED,
	// attribute values are filterable for recommendations.
	// This option works for categorical features only,
	// does not work for numerical features, inventory filtering.
	RecommendationsFilteringOption RecommendationsFilteringOption `` /* 218-byte string literal not displayed */
	// If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable.
	// This property only applies to textual custom attributes and requires
	// indexable set to enabled to enable exact-searchable. If unset, the server
	// behavior defaults to
	// [EXACT_SEARCHABLE_DISABLED][google.cloud.retail.v2alpha.CatalogAttribute.ExactSearchableOption.EXACT_SEARCHABLE_DISABLED].
	ExactSearchableOption CatalogAttribute_ExactSearchableOption `` /* 200-byte string literal not displayed */
	// If RETRIEVABLE_ENABLED, attribute values are retrievable in the search
	// results. If unset, the server behavior defaults to
	// [RETRIEVABLE_DISABLED][google.cloud.retail.v2alpha.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED].
	RetrievableOption CatalogAttribute_RetrievableOption `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*CatalogAttribute) Descriptor deprecated

func (*CatalogAttribute) Descriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute.ProtoReflect.Descriptor instead.

func (*CatalogAttribute) GetDynamicFacetableOption

func (x *CatalogAttribute) GetDynamicFacetableOption() CatalogAttribute_DynamicFacetableOption

func (*CatalogAttribute) GetExactSearchableOption added in v1.12.0

func (x *CatalogAttribute) GetExactSearchableOption() CatalogAttribute_ExactSearchableOption

func (*CatalogAttribute) GetInUse

func (x *CatalogAttribute) GetInUse() bool

func (*CatalogAttribute) GetIndexableOption

func (x *CatalogAttribute) GetIndexableOption() CatalogAttribute_IndexableOption

func (*CatalogAttribute) GetKey

func (x *CatalogAttribute) GetKey() string

func (*CatalogAttribute) GetRecommendationsFilteringOption

func (x *CatalogAttribute) GetRecommendationsFilteringOption() RecommendationsFilteringOption

func (*CatalogAttribute) GetRetrievableOption added in v1.12.0

func (x *CatalogAttribute) GetRetrievableOption() CatalogAttribute_RetrievableOption

func (*CatalogAttribute) GetSearchableOption

func (x *CatalogAttribute) GetSearchableOption() CatalogAttribute_SearchableOption

func (*CatalogAttribute) GetType

func (*CatalogAttribute) ProtoMessage

func (*CatalogAttribute) ProtoMessage()

func (*CatalogAttribute) ProtoReflect

func (x *CatalogAttribute) ProtoReflect() protoreflect.Message

func (*CatalogAttribute) Reset

func (x *CatalogAttribute) Reset()

func (*CatalogAttribute) String

func (x *CatalogAttribute) String() string

type CatalogAttribute_AttributeType

type CatalogAttribute_AttributeType int32

The type of an attribute.

const (
	// The type of the attribute is unknown.
	//
	// Used when type cannot be derived from attribute that is not
	// [in_use][google.cloud.retail.v2alpha.CatalogAttribute.in_use].
	CatalogAttribute_UNKNOWN CatalogAttribute_AttributeType = 0
	// Textual attribute.
	CatalogAttribute_TEXTUAL CatalogAttribute_AttributeType = 1
	// Numerical attribute.
	CatalogAttribute_NUMERICAL CatalogAttribute_AttributeType = 2
)

func (CatalogAttribute_AttributeType) Descriptor

func (CatalogAttribute_AttributeType) Enum

func (CatalogAttribute_AttributeType) EnumDescriptor deprecated

func (CatalogAttribute_AttributeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute_AttributeType.Descriptor instead.

func (CatalogAttribute_AttributeType) Number

func (CatalogAttribute_AttributeType) String

func (CatalogAttribute_AttributeType) Type

type CatalogAttribute_DynamicFacetableOption

type CatalogAttribute_DynamicFacetableOption int32

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

const (
	// Value used when unset.
	CatalogAttribute_DYNAMIC_FACETABLE_OPTION_UNSPECIFIED CatalogAttribute_DynamicFacetableOption = 0
	// Dynamic facetable option enabled for an attribute.
	CatalogAttribute_DYNAMIC_FACETABLE_ENABLED CatalogAttribute_DynamicFacetableOption = 1
	// Dynamic facetable option disabled for an attribute.
	CatalogAttribute_DYNAMIC_FACETABLE_DISABLED CatalogAttribute_DynamicFacetableOption = 2
)

func (CatalogAttribute_DynamicFacetableOption) Descriptor

func (CatalogAttribute_DynamicFacetableOption) Enum

func (CatalogAttribute_DynamicFacetableOption) EnumDescriptor deprecated

func (CatalogAttribute_DynamicFacetableOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute_DynamicFacetableOption.Descriptor instead.

func (CatalogAttribute_DynamicFacetableOption) Number

func (CatalogAttribute_DynamicFacetableOption) String

func (CatalogAttribute_DynamicFacetableOption) Type

type CatalogAttribute_ExactSearchableOption added in v1.12.0

type CatalogAttribute_ExactSearchableOption int32

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

const (
	// Value used when unset.
	CatalogAttribute_EXACT_SEARCHABLE_OPTION_UNSPECIFIED CatalogAttribute_ExactSearchableOption = 0
	// Exact searchable option enabled for an attribute.
	CatalogAttribute_EXACT_SEARCHABLE_ENABLED CatalogAttribute_ExactSearchableOption = 1
	// Exact searchable option disabled for an attribute.
	CatalogAttribute_EXACT_SEARCHABLE_DISABLED CatalogAttribute_ExactSearchableOption = 2
)

func (CatalogAttribute_ExactSearchableOption) Descriptor added in v1.12.0

func (CatalogAttribute_ExactSearchableOption) Enum added in v1.12.0

func (CatalogAttribute_ExactSearchableOption) EnumDescriptor deprecated added in v1.12.0

func (CatalogAttribute_ExactSearchableOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute_ExactSearchableOption.Descriptor instead.

func (CatalogAttribute_ExactSearchableOption) Number added in v1.12.0

func (CatalogAttribute_ExactSearchableOption) String added in v1.12.0

func (CatalogAttribute_ExactSearchableOption) Type added in v1.12.0

type CatalogAttribute_IndexableOption

type CatalogAttribute_IndexableOption int32

The status of the indexable option of a catalog attribute.

const (
	// Value used when unset.
	CatalogAttribute_INDEXABLE_OPTION_UNSPECIFIED CatalogAttribute_IndexableOption = 0
	// Indexable option enabled for an attribute.
	CatalogAttribute_INDEXABLE_ENABLED CatalogAttribute_IndexableOption = 1
	// Indexable option disabled for an attribute.
	CatalogAttribute_INDEXABLE_DISABLED CatalogAttribute_IndexableOption = 2
)

func (CatalogAttribute_IndexableOption) Descriptor

func (CatalogAttribute_IndexableOption) Enum

func (CatalogAttribute_IndexableOption) EnumDescriptor deprecated

func (CatalogAttribute_IndexableOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute_IndexableOption.Descriptor instead.

func (CatalogAttribute_IndexableOption) Number

func (CatalogAttribute_IndexableOption) String

func (CatalogAttribute_IndexableOption) Type

type CatalogAttribute_RetrievableOption added in v1.12.0

type CatalogAttribute_RetrievableOption int32

The status of the retrievable option of a catalog attribute.

const (
	// Value used when unset.
	CatalogAttribute_RETRIEVABLE_OPTION_UNSPECIFIED CatalogAttribute_RetrievableOption = 0
	// Retrievable option enabled for an attribute.
	CatalogAttribute_RETRIEVABLE_ENABLED CatalogAttribute_RetrievableOption = 1
	// Retrievable option disabled for an attribute.
	CatalogAttribute_RETRIEVABLE_DISABLED CatalogAttribute_RetrievableOption = 2
)

func (CatalogAttribute_RetrievableOption) Descriptor added in v1.12.0

func (CatalogAttribute_RetrievableOption) Enum added in v1.12.0

func (CatalogAttribute_RetrievableOption) EnumDescriptor deprecated added in v1.12.0

func (CatalogAttribute_RetrievableOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute_RetrievableOption.Descriptor instead.

func (CatalogAttribute_RetrievableOption) Number added in v1.12.0

func (CatalogAttribute_RetrievableOption) String added in v1.12.0

func (CatalogAttribute_RetrievableOption) Type added in v1.12.0

type CatalogAttribute_SearchableOption

type CatalogAttribute_SearchableOption int32

The status of the searchable option of a catalog attribute.

const (
	// Value used when unset.
	CatalogAttribute_SEARCHABLE_OPTION_UNSPECIFIED CatalogAttribute_SearchableOption = 0
	// Searchable option enabled for an attribute.
	CatalogAttribute_SEARCHABLE_ENABLED CatalogAttribute_SearchableOption = 1
	// Searchable option disabled for an attribute.
	CatalogAttribute_SEARCHABLE_DISABLED CatalogAttribute_SearchableOption = 2
)

func (CatalogAttribute_SearchableOption) Descriptor

func (CatalogAttribute_SearchableOption) Enum

func (CatalogAttribute_SearchableOption) EnumDescriptor deprecated

func (CatalogAttribute_SearchableOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use CatalogAttribute_SearchableOption.Descriptor instead.

func (CatalogAttribute_SearchableOption) Number

func (CatalogAttribute_SearchableOption) String

func (CatalogAttribute_SearchableOption) Type

type CatalogServiceClient

type CatalogServiceClient interface {
	// Lists all the [Catalog][google.cloud.retail.v2alpha.Catalog]s associated
	// with the project.
	ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error)
	// Updates the [Catalog][google.cloud.retail.v2alpha.Catalog]s.
	UpdateCatalog(ctx context.Context, in *UpdateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
	// Set a specified branch id as default branch. API methods such as
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search],
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct],
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]
	// will treat requests using "default_branch" to the actual branch id set as
	// default.
	//
	// For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as
	// default, setting
	// [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to
	// `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
	// to setting
	// [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to
	// `projects/*/locations/*/catalogs/*/branches/1`.
	//
	// Using multiple branches can be useful when developers would like
	// to have a staging branch to test and verify for future usage. When it
	// becomes ready, developers switch on the staging branch using this API while
	// keeping using `projects/*/locations/*/catalogs/*/branches/default_branch`
	// as [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch]
	// to route the traffic to this staging branch.
	//
	// CAUTION: If you have live predict/search traffic, switching the default
	// branch could potentially cause outages if the ID space of the new branch is
	// very different from the old one.
	//
	// More specifically:
	//
	//   - PredictionService will only return product IDs from branch {newBranch}.
	//   - SearchService will only return product IDs from branch {newBranch}
	//     (if branch is not explicitly set).
	//   - UserEventService will only join events with products from branch
	//     {newBranch}.
	SetDefaultBranch(ctx context.Context, in *SetDefaultBranchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get which branch is currently default branch set by
	// [CatalogService.SetDefaultBranch][google.cloud.retail.v2alpha.CatalogService.SetDefaultBranch]
	// method under a specified parent catalog.
	GetDefaultBranch(ctx context.Context, in *GetDefaultBranchRequest, opts ...grpc.CallOption) (*GetDefaultBranchResponse, error)
	// Gets a [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig].
	GetCompletionConfig(ctx context.Context, in *GetCompletionConfigRequest, opts ...grpc.CallOption) (*CompletionConfig, error)
	// Updates the
	// [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig]s.
	UpdateCompletionConfig(ctx context.Context, in *UpdateCompletionConfigRequest, opts ...grpc.CallOption) (*CompletionConfig, error)
	// Gets an [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	GetAttributesConfig(ctx context.Context, in *GetAttributesConfigRequest, opts ...grpc.CallOption) (*AttributesConfig, error)
	// Updates the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	//
	// The catalog attributes in the request will be updated in the catalog, or
	// inserted if they do not exist. Existing catalog attributes not included in
	// the request will remain unchanged. Attributes that are assigned to
	// products, but do not exist at the catalog level, are always included in the
	// response. The product attribute is assigned default values for missing
	// catalog attribute fields, e.g., searchable and dynamic facetable options.
	UpdateAttributesConfig(ctx context.Context, in *UpdateAttributesConfigRequest, opts ...grpc.CallOption) (*AttributesConfig, error)
	// Adds the specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	//
	// If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to
	// add already exists, an ALREADY_EXISTS error is returned.
	AddCatalogAttribute(ctx context.Context, in *AddCatalogAttributeRequest, opts ...grpc.CallOption) (*AttributesConfig, error)
	// Removes the specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] from the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	//
	// If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to
	// remove does not exist, a NOT_FOUND error is returned.
	RemoveCatalogAttribute(ctx context.Context, in *RemoveCatalogAttributeRequest, opts ...grpc.CallOption) (*AttributesConfig, error)
	// Removes all specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]s from the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	BatchRemoveCatalogAttributes(ctx context.Context, in *BatchRemoveCatalogAttributesRequest, opts ...grpc.CallOption) (*BatchRemoveCatalogAttributesResponse, error)
	// Replaces the specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] in the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig] by
	// updating the catalog attribute with the same
	// [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key].
	//
	// If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to
	// replace does not exist, a NOT_FOUND error is returned.
	ReplaceCatalogAttribute(ctx context.Context, in *ReplaceCatalogAttributeRequest, opts ...grpc.CallOption) (*AttributesConfig, error)
}

CatalogServiceClient is the client API for CatalogService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type CatalogServiceServer

type CatalogServiceServer interface {
	// Lists all the [Catalog][google.cloud.retail.v2alpha.Catalog]s associated
	// with the project.
	ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
	// Updates the [Catalog][google.cloud.retail.v2alpha.Catalog]s.
	UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error)
	// Set a specified branch id as default branch. API methods such as
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search],
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct],
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]
	// will treat requests using "default_branch" to the actual branch id set as
	// default.
	//
	// For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as
	// default, setting
	// [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to
	// `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
	// to setting
	// [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to
	// `projects/*/locations/*/catalogs/*/branches/1`.
	//
	// Using multiple branches can be useful when developers would like
	// to have a staging branch to test and verify for future usage. When it
	// becomes ready, developers switch on the staging branch using this API while
	// keeping using `projects/*/locations/*/catalogs/*/branches/default_branch`
	// as [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch]
	// to route the traffic to this staging branch.
	//
	// CAUTION: If you have live predict/search traffic, switching the default
	// branch could potentially cause outages if the ID space of the new branch is
	// very different from the old one.
	//
	// More specifically:
	//
	//   - PredictionService will only return product IDs from branch {newBranch}.
	//   - SearchService will only return product IDs from branch {newBranch}
	//     (if branch is not explicitly set).
	//   - UserEventService will only join events with products from branch
	//     {newBranch}.
	SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*emptypb.Empty, error)
	// Get which branch is currently default branch set by
	// [CatalogService.SetDefaultBranch][google.cloud.retail.v2alpha.CatalogService.SetDefaultBranch]
	// method under a specified parent catalog.
	GetDefaultBranch(context.Context, *GetDefaultBranchRequest) (*GetDefaultBranchResponse, error)
	// Gets a [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig].
	GetCompletionConfig(context.Context, *GetCompletionConfigRequest) (*CompletionConfig, error)
	// Updates the
	// [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig]s.
	UpdateCompletionConfig(context.Context, *UpdateCompletionConfigRequest) (*CompletionConfig, error)
	// Gets an [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	GetAttributesConfig(context.Context, *GetAttributesConfigRequest) (*AttributesConfig, error)
	// Updates the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	//
	// The catalog attributes in the request will be updated in the catalog, or
	// inserted if they do not exist. Existing catalog attributes not included in
	// the request will remain unchanged. Attributes that are assigned to
	// products, but do not exist at the catalog level, are always included in the
	// response. The product attribute is assigned default values for missing
	// catalog attribute fields, e.g., searchable and dynamic facetable options.
	UpdateAttributesConfig(context.Context, *UpdateAttributesConfigRequest) (*AttributesConfig, error)
	// Adds the specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	//
	// If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to
	// add already exists, an ALREADY_EXISTS error is returned.
	AddCatalogAttribute(context.Context, *AddCatalogAttributeRequest) (*AttributesConfig, error)
	// Removes the specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] from the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	//
	// If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to
	// remove does not exist, a NOT_FOUND error is returned.
	RemoveCatalogAttribute(context.Context, *RemoveCatalogAttributeRequest) (*AttributesConfig, error)
	// Removes all specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]s from the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].
	BatchRemoveCatalogAttributes(context.Context, *BatchRemoveCatalogAttributesRequest) (*BatchRemoveCatalogAttributesResponse, error)
	// Replaces the specified
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] in the
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig] by
	// updating the catalog attribute with the same
	// [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key].
	//
	// If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to
	// replace does not exist, a NOT_FOUND error is returned.
	ReplaceCatalogAttribute(context.Context, *ReplaceCatalogAttributeRequest) (*AttributesConfig, error)
}

CatalogServiceServer is the server API for CatalogService service.

type CollectUserEventRequest

type CollectUserEventRequest struct {

	// The rule that can convert the raw_json to a user event. It is needed
	// only when the raw_json is set.
	//
	// Types that are assignable to ConversionRule:
	//
	//	*CollectUserEventRequest_PrebuiltRule
	ConversionRule isCollectUserEventRequest_ConversionRule `protobuf_oneof:"conversion_rule"`
	// Required. The parent catalog name, such as
	// `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. URL encoded UserEvent proto with a length limit of 2,000,000
	// characters.
	UserEvent string `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
	// The URL including cgi-parameters but excluding the hash fragment with a
	// length limit of 5,000 characters. This is often more useful than the
	// referer URL, because many browsers only send the domain for 3rd party
	// requests.
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// The event timestamp in milliseconds. This prevents browser caching of
	// otherwise identical get requests. The name is abbreviated to reduce the
	// payload bytes.
	Ets int64 `protobuf:"varint,4,opt,name=ets,proto3" json:"ets,omitempty"`
	// An arbitrary serialized JSON string that contains necessary information
	// that can comprise a user event. When this field is specified, the
	// user_event field will be ignored. Note: line-delimited JSON is not
	// supported, a single JSON only.
	RawJson string `protobuf:"bytes,5,opt,name=raw_json,json=rawJson,proto3" json:"raw_json,omitempty"`
	// contains filtered or unexported fields
}

Request message for CollectUserEvent method.

func (*CollectUserEventRequest) Descriptor deprecated

func (*CollectUserEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use CollectUserEventRequest.ProtoReflect.Descriptor instead.

func (*CollectUserEventRequest) GetConversionRule added in v1.12.0

func (m *CollectUserEventRequest) GetConversionRule() isCollectUserEventRequest_ConversionRule

func (*CollectUserEventRequest) GetEts

func (x *CollectUserEventRequest) GetEts() int64

func (*CollectUserEventRequest) GetParent

func (x *CollectUserEventRequest) GetParent() string

func (*CollectUserEventRequest) GetPrebuiltRule added in v1.12.0

func (x *CollectUserEventRequest) GetPrebuiltRule() string

func (*CollectUserEventRequest) GetRawJson added in v1.12.0

func (x *CollectUserEventRequest) GetRawJson() string

func (*CollectUserEventRequest) GetUri

func (x *CollectUserEventRequest) GetUri() string

func (*CollectUserEventRequest) GetUserEvent

func (x *CollectUserEventRequest) GetUserEvent() string

func (*CollectUserEventRequest) ProtoMessage

func (*CollectUserEventRequest) ProtoMessage()

func (*CollectUserEventRequest) ProtoReflect

func (x *CollectUserEventRequest) ProtoReflect() protoreflect.Message

func (*CollectUserEventRequest) Reset

func (x *CollectUserEventRequest) Reset()

func (*CollectUserEventRequest) String

func (x *CollectUserEventRequest) String() string

type CollectUserEventRequest_PrebuiltRule added in v1.12.0

type CollectUserEventRequest_PrebuiltRule struct {
	// The prebuilt rule name that can convert a specific type of raw_json.
	// For example: "ga4_bq" rule for the GA4 user event schema.
	PrebuiltRule string `protobuf:"bytes,6,opt,name=prebuilt_rule,json=prebuiltRule,proto3,oneof"`
}

type ColorInfo

type ColorInfo struct {

	// The standard color families. Strongly recommended to use the following
	// standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple",
	// "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and
	// "Mixed". Normally it is expected to have only 1 color family. May consider
	// using single "Mixed" instead of multiple values.
	//
	// A maximum of 5 values are allowed. Each value must be a UTF-8 encoded
	// string with a length limit of 128 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Google Merchant Center property
	// [color](https://support.google.com/merchants/answer/6324487). Schema.org
	// property [Product.color](https://schema.org/color).
	ColorFamilies []string `protobuf:"bytes,1,rep,name=color_families,json=colorFamilies,proto3" json:"color_families,omitempty"`
	// The color display names, which may be different from standard color family
	// names, such as the color aliases used in the website frontend. Normally
	// it is expected to have only 1 color. May consider using single "Mixed"
	// instead of multiple values.
	//
	// A maximum of 75 colors are allowed. Each value must be a UTF-8 encoded
	// string with a length limit of 128 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Google Merchant Center property
	// [color](https://support.google.com/merchants/answer/6324487). Schema.org
	// property [Product.color](https://schema.org/color).
	Colors []string `protobuf:"bytes,2,rep,name=colors,proto3" json:"colors,omitempty"`
	// contains filtered or unexported fields
}

The color information of a Product[google.cloud.retail.v2alpha.Product].

func (*ColorInfo) Descriptor deprecated

func (*ColorInfo) Descriptor() ([]byte, []int)

Deprecated: Use ColorInfo.ProtoReflect.Descriptor instead.

func (*ColorInfo) GetColorFamilies

func (x *ColorInfo) GetColorFamilies() []string

func (*ColorInfo) GetColors

func (x *ColorInfo) GetColors() []string

func (*ColorInfo) ProtoMessage

func (*ColorInfo) ProtoMessage()

func (*ColorInfo) ProtoReflect

func (x *ColorInfo) ProtoReflect() protoreflect.Message

func (*ColorInfo) Reset

func (x *ColorInfo) Reset()

func (*ColorInfo) String

func (x *ColorInfo) String() string

type CompleteQueryRequest

type CompleteQueryRequest struct {

	// Required. Catalog for which the completion is performed.
	//
	// Full resource name of catalog, such as
	// `projects/*/locations/global/catalogs/default_catalog`.
	Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// Required. The query used to generate suggestions.
	//
	// The maximum number of allowed characters is 255.
	Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// Required field. A unique identifier for tracking visitors. For example,
	// this could be implemented with an HTTP cookie, which should be able to
	// uniquely identify a visitor on a single device. This unique identifier
	// should not change if the visitor logs in or out of the website.
	//
	// The field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	VisitorId string `protobuf:"bytes,7,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"`
	// Note that this field applies for `user-data` dataset only. For requests
	// with `cloud-retail` dataset, setting this field has no effect.
	//
	// The language filters applied to the output suggestions. If set, it should
	// contain the language of the query. If not set, suggestions are returned
	// without considering language restrictions. This is the BCP-47 language
	// code, such as "en-US" or "sr-Latn". For more information, see [Tags for
	// Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum
	// number of language codes is 3.
	LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
	// The device type context for completion suggestions. We recommend that you
	// leave this field empty.
	//
	// It can apply different suggestions on different device types, e.g.
	// `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
	// types.
	//
	// Supported formats:
	//
	// * `UNKNOWN_DEVICE_TYPE`
	//
	// * `DESKTOP`
	//
	// * `MOBILE`
	//
	// * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
	DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	// Determines which dataset to use for fetching completion. "user-data" will
	// use the imported dataset through
	// [CompletionService.ImportCompletionData][google.cloud.retail.v2alpha.CompletionService.ImportCompletionData].
	// "cloud-retail" will use the dataset generated by cloud retail based on user
	// events. If leave empty, it will use the "user-data".
	//
	// Current supported values:
	//
	// * user-data
	//
	//   - cloud-retail:
	//     This option requires enabling auto-learning function first. See
	//     [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
	Dataset string `protobuf:"bytes,6,opt,name=dataset,proto3" json:"dataset,omitempty"`
	// Completion max suggestions. If left unset or set to 0, then will fallback
	// to the configured value
	// [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions].
	//
	// The maximum allowed max suggestions is 20. If it is set higher, it will be
	// capped by 20.
	MaxSuggestions int32 `protobuf:"varint,5,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"`
	// If true, attribute suggestions are enabled and provided in response.
	//
	// This field is only available for "cloud-retail" dataset.
	EnableAttributeSuggestions bool `` /* 142-byte string literal not displayed */
	// The entity for customers that may run multiple different entities, domains,
	// sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
	// `google.com`, `youtube.com`, etc.
	// If this is set, it should be exactly matched with
	// [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
	// per-entity autocomplete results.
	Entity string `protobuf:"bytes,10,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

Autocomplete parameters.

func (*CompleteQueryRequest) Descriptor deprecated

func (*CompleteQueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use CompleteQueryRequest.ProtoReflect.Descriptor instead.

func (*CompleteQueryRequest) GetCatalog

func (x *CompleteQueryRequest) GetCatalog() string

func (*CompleteQueryRequest) GetDataset

func (x *CompleteQueryRequest) GetDataset() string

func (*CompleteQueryRequest) GetDeviceType

func (x *CompleteQueryRequest) GetDeviceType() string

func (*CompleteQueryRequest) GetEnableAttributeSuggestions added in v1.12.0

func (x *CompleteQueryRequest) GetEnableAttributeSuggestions() bool

func (*CompleteQueryRequest) GetEntity added in v1.13.0

func (x *CompleteQueryRequest) GetEntity() string

func (*CompleteQueryRequest) GetLanguageCodes

func (x *CompleteQueryRequest) GetLanguageCodes() []string

func (*CompleteQueryRequest) GetMaxSuggestions

func (x *CompleteQueryRequest) GetMaxSuggestions() int32

func (*CompleteQueryRequest) GetQuery

func (x *CompleteQueryRequest) GetQuery() string

func (*CompleteQueryRequest) GetVisitorId

func (x *CompleteQueryRequest) GetVisitorId() string

func (*CompleteQueryRequest) ProtoMessage

func (*CompleteQueryRequest) ProtoMessage()

func (*CompleteQueryRequest) ProtoReflect

func (x *CompleteQueryRequest) ProtoReflect() protoreflect.Message

func (*CompleteQueryRequest) Reset

func (x *CompleteQueryRequest) Reset()

func (*CompleteQueryRequest) String

func (x *CompleteQueryRequest) String() string

type CompleteQueryResponse

type CompleteQueryResponse struct {

	// Results of the matching suggestions. The result list is ordered and the
	// first result is top suggestion.
	CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"`
	// A unique complete token. This should be included in the
	// [UserEvent.completion_detail][google.cloud.retail.v2alpha.UserEvent.completion_detail]
	// for search events resulting from this completion, which enables accurate
	// attribution of complete model performance.
	AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"`
	// Matched recent searches of this user. The maximum number of recent searches
	// is 10. This field is a restricted feature. Contact Retail Search support
	// team if you are interested in enabling it.
	//
	// This feature is only available when
	// [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
	// field is set and [UserEvent][google.cloud.retail.v2alpha.UserEvent] is
	// imported. The recent searches satisfy the follow rules:
	//
	//   - They are ordered from latest to oldest.
	//
	//   - They are matched with
	//     [CompleteQueryRequest.query][google.cloud.retail.v2alpha.CompleteQueryRequest.query]
	//     case insensitively.
	//
	//   - They are transformed to lower case.
	//
	//   - They are UTF-8 safe.
	//
	// Recent searches are deduplicated. More recent searches will be reserved
	// when duplication happens.
	RecentSearchResults []*CompleteQueryResponse_RecentSearchResult `protobuf:"bytes,3,rep,name=recent_search_results,json=recentSearchResults,proto3" json:"recent_search_results,omitempty"`
	// A map of matched attribute suggestions. This field is only available for
	// "cloud-retail" dataset.
	//
	// Current supported keys:
	//
	// * `brands`
	//
	// * `categories`
	AttributeResults map[string]*CompleteQueryResponse_AttributeResult `` /* 197-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response of the autocomplete query.

func (*CompleteQueryResponse) Descriptor deprecated

func (*CompleteQueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use CompleteQueryResponse.ProtoReflect.Descriptor instead.

func (*CompleteQueryResponse) GetAttributeResults added in v1.12.0

func (*CompleteQueryResponse) GetAttributionToken

func (x *CompleteQueryResponse) GetAttributionToken() string

func (*CompleteQueryResponse) GetCompletionResults

func (*CompleteQueryResponse) GetRecentSearchResults

func (x *CompleteQueryResponse) GetRecentSearchResults() []*CompleteQueryResponse_RecentSearchResult

func (*CompleteQueryResponse) ProtoMessage

func (*CompleteQueryResponse) ProtoMessage()

func (*CompleteQueryResponse) ProtoReflect

func (x *CompleteQueryResponse) ProtoReflect() protoreflect.Message

func (*CompleteQueryResponse) Reset

func (x *CompleteQueryResponse) Reset()

func (*CompleteQueryResponse) String

func (x *CompleteQueryResponse) String() string

type CompleteQueryResponse_AttributeResult added in v1.12.0

type CompleteQueryResponse_AttributeResult struct {

	// The list of suggestions for the attribute.
	Suggestions []string `protobuf:"bytes,1,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents attribute results.

func (*CompleteQueryResponse_AttributeResult) Descriptor deprecated added in v1.12.0

func (*CompleteQueryResponse_AttributeResult) Descriptor() ([]byte, []int)

Deprecated: Use CompleteQueryResponse_AttributeResult.ProtoReflect.Descriptor instead.

func (*CompleteQueryResponse_AttributeResult) GetSuggestions added in v1.12.0

func (x *CompleteQueryResponse_AttributeResult) GetSuggestions() []string

func (*CompleteQueryResponse_AttributeResult) ProtoMessage added in v1.12.0

func (*CompleteQueryResponse_AttributeResult) ProtoMessage()

func (*CompleteQueryResponse_AttributeResult) ProtoReflect added in v1.12.0

func (*CompleteQueryResponse_AttributeResult) Reset added in v1.12.0

func (*CompleteQueryResponse_AttributeResult) String added in v1.12.0

type CompleteQueryResponse_CompletionResult

type CompleteQueryResponse_CompletionResult struct {

	// The suggestion for the query.
	Suggestion string `protobuf:"bytes,1,opt,name=suggestion,proto3" json:"suggestion,omitempty"`
	// Custom attributes for the suggestion term.
	//
	// * For "user-data", the attributes are additional custom attributes
	// ingested through BigQuery.
	//
	// * For "cloud-retail", the attributes are product attributes generated
	// by Cloud Retail. It requires
	// [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details]
	// is imported properly.
	Attributes map[string]*CustomAttribute `` /* 161-byte string literal not displayed */
	// Facet information for the suggestion term. Gives the number of items
	// resulting from a search with this suggestion term for each facet.
	//
	// This is an experimental feature for limited customers. Please reach out
	// to the support team if you would like to receive this information.
	Facets []*SearchResponse_Facet `protobuf:"bytes,3,rep,name=facets,proto3" json:"facets,omitempty"`
	// Total number of products associated with a search with this suggestion.
	//
	// This is an experimental feature for limited customers. Please reach out
	// to the support team if you would like to receive this information.
	TotalProductCount int32 `protobuf:"varint,4,opt,name=total_product_count,json=totalProductCount,proto3" json:"total_product_count,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents completion results.

func (*CompleteQueryResponse_CompletionResult) Descriptor deprecated

func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int)

Deprecated: Use CompleteQueryResponse_CompletionResult.ProtoReflect.Descriptor instead.

func (*CompleteQueryResponse_CompletionResult) GetAttributes

func (*CompleteQueryResponse_CompletionResult) GetFacets added in v1.13.0

func (*CompleteQueryResponse_CompletionResult) GetSuggestion

func (*CompleteQueryResponse_CompletionResult) GetTotalProductCount added in v1.13.0

func (x *CompleteQueryResponse_CompletionResult) GetTotalProductCount() int32

func (*CompleteQueryResponse_CompletionResult) ProtoMessage

func (*CompleteQueryResponse_CompletionResult) ProtoReflect

func (*CompleteQueryResponse_CompletionResult) Reset

func (*CompleteQueryResponse_CompletionResult) String

type CompleteQueryResponse_RecentSearchResult

type CompleteQueryResponse_RecentSearchResult struct {

	// The recent search query.
	RecentSearch string `protobuf:"bytes,1,opt,name=recent_search,json=recentSearch,proto3" json:"recent_search,omitempty"`
	// contains filtered or unexported fields
}

Recent search of this user.

func (*CompleteQueryResponse_RecentSearchResult) Descriptor deprecated

func (*CompleteQueryResponse_RecentSearchResult) Descriptor() ([]byte, []int)

Deprecated: Use CompleteQueryResponse_RecentSearchResult.ProtoReflect.Descriptor instead.

func (*CompleteQueryResponse_RecentSearchResult) GetRecentSearch

func (x *CompleteQueryResponse_RecentSearchResult) GetRecentSearch() string

func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage

func (*CompleteQueryResponse_RecentSearchResult) ProtoReflect

func (*CompleteQueryResponse_RecentSearchResult) Reset

func (*CompleteQueryResponse_RecentSearchResult) String

type CompletionConfig

type CompletionConfig struct {

	// Required. Immutable. Fully qualified name
	// `projects/*/locations/*/catalogs/*/completionConfig`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Specifies the matching order for autocomplete suggestions, e.g., a query
	// consisting of 'sh' with 'out-of-order' specified would suggest "women's
	// shoes", whereas a query of 'red s' with 'exact-prefix' specified would
	// suggest "red shoes". Currently supported values:
	//
	// * 'out-of-order'
	// * 'exact-prefix'
	//
	// Default value: 'exact-prefix'.
	MatchingOrder string `protobuf:"bytes,2,opt,name=matching_order,json=matchingOrder,proto3" json:"matching_order,omitempty"`
	// The maximum number of autocomplete suggestions returned per term. Default
	// value is 20. If left unset or set to 0, then will fallback to default
	// value.
	//
	// Value range is 1 to 20.
	MaxSuggestions int32 `protobuf:"varint,3,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"`
	// The minimum number of characters needed to be typed in order to get
	// suggestions. Default value is 2. If left unset or set to 0, then will
	// fallback to default value.
	//
	// Value range is 1 to 20.
	MinPrefixLength int32 `protobuf:"varint,4,opt,name=min_prefix_length,json=minPrefixLength,proto3" json:"min_prefix_length,omitempty"`
	// If set to true, the auto learning function is enabled. Auto learning uses
	// user data to generate suggestions using ML techniques. Default value is
	// false. Only after enabling auto learning can users use `cloud-retail`
	// data in
	// [CompleteQueryRequest][google.cloud.retail.v2alpha.CompleteQueryRequest].
	AutoLearning bool `protobuf:"varint,11,opt,name=auto_learning,json=autoLearning,proto3" json:"auto_learning,omitempty"`
	// Output only. The source data for the latest import of the autocomplete
	// suggestion phrases.
	SuggestionsInputConfig *CompletionDataInputConfig `` /* 129-byte string literal not displayed */
	// Output only. Name of the LRO corresponding to the latest suggestion terms
	// list import.
	//
	// Can use [GetOperation][google.longrunning.Operations.GetOperation] API to
	// retrieve the latest state of the Long Running Operation.
	LastSuggestionsImportOperation string `` /* 155-byte string literal not displayed */
	// Output only. The source data for the latest import of the autocomplete
	// denylist phrases.
	DenylistInputConfig *CompletionDataInputConfig `protobuf:"bytes,7,opt,name=denylist_input_config,json=denylistInputConfig,proto3" json:"denylist_input_config,omitempty"`
	// Output only. Name of the LRO corresponding to the latest denylist import.
	//
	// Can use [GetOperation][google.longrunning.Operations.GetOperation] API to
	// retrieve the latest state of the Long Running Operation.
	LastDenylistImportOperation string `` /* 146-byte string literal not displayed */
	// Output only. The source data for the latest import of the autocomplete
	// allowlist phrases.
	AllowlistInputConfig *CompletionDataInputConfig `protobuf:"bytes,9,opt,name=allowlist_input_config,json=allowlistInputConfig,proto3" json:"allowlist_input_config,omitempty"`
	// Output only. Name of the LRO corresponding to the latest allowlist import.
	//
	// Can use [GetOperation][google.longrunning.Operations.GetOperation] API to
	// retrieve the latest state of the Long Running Operation.
	LastAllowlistImportOperation string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*CompletionConfig) Descriptor deprecated

func (*CompletionConfig) Descriptor() ([]byte, []int)

Deprecated: Use CompletionConfig.ProtoReflect.Descriptor instead.

func (*CompletionConfig) GetAllowlistInputConfig

func (x *CompletionConfig) GetAllowlistInputConfig() *CompletionDataInputConfig

func (*CompletionConfig) GetAutoLearning

func (x *CompletionConfig) GetAutoLearning() bool

func (*CompletionConfig) GetDenylistInputConfig

func (x *CompletionConfig) GetDenylistInputConfig() *CompletionDataInputConfig

func (*CompletionConfig) GetLastAllowlistImportOperation

func (x *CompletionConfig) GetLastAllowlistImportOperation() string

func (*CompletionConfig) GetLastDenylistImportOperation

func (x *CompletionConfig) GetLastDenylistImportOperation() string

func (*CompletionConfig) GetLastSuggestionsImportOperation

func (x *CompletionConfig) GetLastSuggestionsImportOperation() string

func (*CompletionConfig) GetMatchingOrder

func (x *CompletionConfig) GetMatchingOrder() string

func (*CompletionConfig) GetMaxSuggestions

func (x *CompletionConfig) GetMaxSuggestions() int32

func (*CompletionConfig) GetMinPrefixLength

func (x *CompletionConfig) GetMinPrefixLength() int32

func (*CompletionConfig) GetName

func (x *CompletionConfig) GetName() string

func (*CompletionConfig) GetSuggestionsInputConfig

func (x *CompletionConfig) GetSuggestionsInputConfig() *CompletionDataInputConfig

func (*CompletionConfig) ProtoMessage

func (*CompletionConfig) ProtoMessage()

func (*CompletionConfig) ProtoReflect

func (x *CompletionConfig) ProtoReflect() protoreflect.Message

func (*CompletionConfig) Reset

func (x *CompletionConfig) Reset()

func (*CompletionConfig) String

func (x *CompletionConfig) String() string

type CompletionDataInputConfig

type CompletionDataInputConfig struct {

	// The source of the input.
	//
	// Supported
	// [BigQuerySource.data_schema][google.cloud.retail.v2alpha.BigQuerySource.data_schema]
	// values for suggestions imports:
	//
	// * `suggestions` (default): One JSON completion suggestion per line.
	// * `denylist`:  One JSON deny suggestion per line.
	// * `allowlist`:  One JSON allow suggestion per line.
	//
	// Types that are assignable to Source:
	//
	//	*CompletionDataInputConfig_BigQuerySource
	Source isCompletionDataInputConfig_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The input config source for completion data.

func (*CompletionDataInputConfig) Descriptor deprecated

func (*CompletionDataInputConfig) Descriptor() ([]byte, []int)

Deprecated: Use CompletionDataInputConfig.ProtoReflect.Descriptor instead.

func (*CompletionDataInputConfig) GetBigQuerySource

func (x *CompletionDataInputConfig) GetBigQuerySource() *BigQuerySource

func (*CompletionDataInputConfig) GetSource

func (m *CompletionDataInputConfig) GetSource() isCompletionDataInputConfig_Source

func (*CompletionDataInputConfig) ProtoMessage

func (*CompletionDataInputConfig) ProtoMessage()

func (*CompletionDataInputConfig) ProtoReflect

func (*CompletionDataInputConfig) Reset

func (x *CompletionDataInputConfig) Reset()

func (*CompletionDataInputConfig) String

func (x *CompletionDataInputConfig) String() string

type CompletionDataInputConfig_BigQuerySource

type CompletionDataInputConfig_BigQuerySource struct {
	// Required. BigQuery input source.
	//
	// Add the IAM permission "BigQuery Data Viewer" for
	// cloud-retail-customer-data-access@system.gserviceaccount.com before
	// using this feature otherwise an error is thrown.
	BigQuerySource *BigQuerySource `protobuf:"bytes,1,opt,name=big_query_source,json=bigQuerySource,proto3,oneof"`
}

type CompletionDetail

type CompletionDetail struct {

	// Completion attribution token in
	// [CompleteQueryResponse.attribution_token][google.cloud.retail.v2alpha.CompleteQueryResponse.attribution_token].
	CompletionAttributionToken string `` /* 141-byte string literal not displayed */
	// End user selected
	// [CompleteQueryResponse.CompletionResult.suggestion][google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult.suggestion].
	SelectedSuggestion string `protobuf:"bytes,2,opt,name=selected_suggestion,json=selectedSuggestion,proto3" json:"selected_suggestion,omitempty"`
	// End user selected
	// [CompleteQueryResponse.CompletionResult.suggestion][google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult.suggestion]
	// position, starting from 0.
	SelectedPosition int32 `protobuf:"varint,3,opt,name=selected_position,json=selectedPosition,proto3" json:"selected_position,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CompletionDetail) Descriptor deprecated

func (*CompletionDetail) Descriptor() ([]byte, []int)

Deprecated: Use CompletionDetail.ProtoReflect.Descriptor instead.

func (*CompletionDetail) GetCompletionAttributionToken

func (x *CompletionDetail) GetCompletionAttributionToken() string

func (*CompletionDetail) GetSelectedPosition

func (x *CompletionDetail) GetSelectedPosition() int32

func (*CompletionDetail) GetSelectedSuggestion

func (x *CompletionDetail) GetSelectedSuggestion() string

func (*CompletionDetail) ProtoMessage

func (*CompletionDetail) ProtoMessage()

func (*CompletionDetail) ProtoReflect

func (x *CompletionDetail) ProtoReflect() protoreflect.Message

func (*CompletionDetail) Reset

func (x *CompletionDetail) Reset()

func (*CompletionDetail) String

func (x *CompletionDetail) String() string

type CompletionServiceClient

type CompletionServiceClient interface {
	// Completes the specified prefix with keyword suggestions.
	//
	// This feature is only available for users who have Retail Search enabled.
	// Enable Retail Search on Cloud Console before using this feature.
	CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error)
	// Bulk import of processed completion dataset.
	//
	// Request processing is asynchronous. Partial updating is not supported.
	//
	// The operation is successfully finished only after the imported suggestions
	// are indexed successfully and ready for serving. The process takes hours.
	//
	// This feature is only available for users who have Retail Search enabled.
	// Enable Retail Search on Cloud Console before using this feature.
	ImportCompletionData(ctx context.Context, in *ImportCompletionDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

CompletionServiceClient is the client API for CompletionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type CompletionServiceServer

type CompletionServiceServer interface {
	// Completes the specified prefix with keyword suggestions.
	//
	// This feature is only available for users who have Retail Search enabled.
	// Enable Retail Search on Cloud Console before using this feature.
	CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error)
	// Bulk import of processed completion dataset.
	//
	// Request processing is asynchronous. Partial updating is not supported.
	//
	// The operation is successfully finished only after the imported suggestions
	// are indexed successfully and ready for serving. The process takes hours.
	//
	// This feature is only available for users who have Retail Search enabled.
	// Enable Retail Search on Cloud Console before using this feature.
	ImportCompletionData(context.Context, *ImportCompletionDataRequest) (*longrunningpb.Operation, error)
}

CompletionServiceServer is the server API for CompletionService service.

type Condition

type Condition struct {

	// A list (up to 10 entries) of terms to match the query on. If not
	// specified, match all queries.
	// If many query terms are specified, the condition
	// is matched if any of the terms is a match (i.e. using the OR operator).
	QueryTerms []*Condition_QueryTerm `protobuf:"bytes,1,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"`
	// Range of time(s) specifying when Condition is active.
	// Condition true if any time range matches.
	ActiveTimeRange []*Condition_TimeRange `protobuf:"bytes,3,rep,name=active_time_range,json=activeTimeRange,proto3" json:"active_time_range,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Condition) Descriptor deprecated

func (*Condition) Descriptor() ([]byte, []int)

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetActiveTimeRange

func (x *Condition) GetActiveTimeRange() []*Condition_TimeRange

func (*Condition) GetQueryTerms

func (x *Condition) GetQueryTerms() []*Condition_QueryTerm

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect

func (x *Condition) ProtoReflect() protoreflect.Message

func (*Condition) Reset

func (x *Condition) Reset()

func (*Condition) String

func (x *Condition) String() string

type Condition_QueryTerm

type Condition_QueryTerm struct {

	// The value of the term to match on.
	// Value cannot be empty.
	// Value can have at most 3 terms if specified as a partial match. Each
	// space separated string is considered as one term.
	// For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms
	// and not allowed for a partial match.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Whether this is supposed to be a full or partial match.
	FullMatch bool `protobuf:"varint,2,opt,name=full_match,json=fullMatch,proto3" json:"full_match,omitempty"`
	// contains filtered or unexported fields
}

Query terms that we want to match on.

func (*Condition_QueryTerm) Descriptor deprecated

func (*Condition_QueryTerm) Descriptor() ([]byte, []int)

Deprecated: Use Condition_QueryTerm.ProtoReflect.Descriptor instead.

func (*Condition_QueryTerm) GetFullMatch

func (x *Condition_QueryTerm) GetFullMatch() bool

func (*Condition_QueryTerm) GetValue

func (x *Condition_QueryTerm) GetValue() string

func (*Condition_QueryTerm) ProtoMessage

func (*Condition_QueryTerm) ProtoMessage()

func (*Condition_QueryTerm) ProtoReflect

func (x *Condition_QueryTerm) ProtoReflect() protoreflect.Message

func (*Condition_QueryTerm) Reset

func (x *Condition_QueryTerm) Reset()

func (*Condition_QueryTerm) String

func (x *Condition_QueryTerm) String() string

type Condition_TimeRange

type Condition_TimeRange struct {

	// Start of time range. Range is inclusive.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End of time range. Range is inclusive.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Condition_TimeRange) Descriptor deprecated

func (*Condition_TimeRange) Descriptor() ([]byte, []int)

Deprecated: Use Condition_TimeRange.ProtoReflect.Descriptor instead.

func (*Condition_TimeRange) GetEndTime

func (x *Condition_TimeRange) GetEndTime() *timestamppb.Timestamp

func (*Condition_TimeRange) GetStartTime

func (x *Condition_TimeRange) GetStartTime() *timestamppb.Timestamp

func (*Condition_TimeRange) ProtoMessage

func (*Condition_TimeRange) ProtoMessage()

func (*Condition_TimeRange) ProtoReflect

func (x *Condition_TimeRange) ProtoReflect() protoreflect.Message

func (*Condition_TimeRange) Reset

func (x *Condition_TimeRange) Reset()

func (*Condition_TimeRange) String

func (x *Condition_TimeRange) String() string

type Control

type Control struct {

	// The behavior/type of the control
	//
	// A behavior/type must be specified on creation. Type cannot be changed once
	// specified (e.g. A Rule control will always be a Rule control.). An
	// INVALID_ARGUMENT will be returned if either condition is violated.
	//
	// Types that are assignable to Control:
	//
	//	*Control_FacetSpec
	//	*Control_Rule
	Control isControl_Control `protobuf_oneof:"control"`
	// Immutable. Fully qualified name
	// `projects/*/locations/global/catalogs/*/controls/*`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The human readable control display name. Used in Retail UI.
	//
	// This field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is thrown.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Output only. List of [serving
	// config][google.cloud.retail.v2alpha.ServingConfig] ids that are associated
	// with this control in the same
	// [Catalog][google.cloud.retail.v2alpha.Catalog].
	//
	// Note the association is managed via the
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig], this is an
	// output only denormalized view.
	AssociatedServingConfigIds []string `` /* 143-byte string literal not displayed */
	// Required. Immutable. The solution types that the control is used for.
	// Currently we support setting only one type of solution at creation time.
	//
	// Only `SOLUTION_TYPE_SEARCH` value is supported at the moment.
	// If no solution type is provided at creation time, will default to
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].
	SolutionTypes []SolutionType `` /* 154-byte string literal not displayed */
	// Specifies the use case for the control.
	// Affects what condition fields can be set.
	// Only settable by search controls.
	// Will default to
	// [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH]
	// if not specified. Currently only allow one search_solution_use_case per
	// control.
	SearchSolutionUseCase []SearchSolutionUseCase `` /* 191-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configures dynamic metadata that can be linked to a ServingConfig[google.cloud.retail.v2alpha.ServingConfig] and affect search or recommendation results at serving time.

func (*Control) Descriptor deprecated

func (*Control) Descriptor() ([]byte, []int)

Deprecated: Use Control.ProtoReflect.Descriptor instead.

func (*Control) GetAssociatedServingConfigIds

func (x *Control) GetAssociatedServingConfigIds() []string

func (*Control) GetControl

func (m *Control) GetControl() isControl_Control

func (*Control) GetDisplayName

func (x *Control) GetDisplayName() string

func (*Control) GetFacetSpec deprecated

func (x *Control) GetFacetSpec() *SearchRequest_FacetSpec

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/control.proto.

func (*Control) GetName

func (x *Control) GetName() string

func (*Control) GetRule

func (x *Control) GetRule() *Rule

func (*Control) GetSearchSolutionUseCase

func (x *Control) GetSearchSolutionUseCase() []SearchSolutionUseCase

func (*Control) GetSolutionTypes

func (x *Control) GetSolutionTypes() []SolutionType

func (*Control) ProtoMessage

func (*Control) ProtoMessage()

func (*Control) ProtoReflect

func (x *Control) ProtoReflect() protoreflect.Message

func (*Control) Reset

func (x *Control) Reset()

func (*Control) String

func (x *Control) String() string

type ControlServiceClient

type ControlServiceClient interface {
	// Creates a Control.
	//
	// If the [Control][google.cloud.retail.v2alpha.Control] to create already
	// exists, an ALREADY_EXISTS error is returned.
	CreateControl(ctx context.Context, in *CreateControlRequest, opts ...grpc.CallOption) (*Control, error)
	// Deletes a Control.
	//
	// If the [Control][google.cloud.retail.v2alpha.Control] to delete does not
	// exist, a NOT_FOUND error is returned.
	DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Updates a Control.
	//
	// [Control][google.cloud.retail.v2alpha.Control] cannot be set to a different
	// oneof field, if so an INVALID_ARGUMENT is returned. If the
	// [Control][google.cloud.retail.v2alpha.Control] to update does not exist, a
	// NOT_FOUND error is returned.
	UpdateControl(ctx context.Context, in *UpdateControlRequest, opts ...grpc.CallOption) (*Control, error)
	// Gets a Control.
	GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error)
	// Lists all Controls by their parent
	// [Catalog][google.cloud.retail.v2alpha.Catalog].
	ListControls(ctx context.Context, in *ListControlsRequest, opts ...grpc.CallOption) (*ListControlsResponse, error)
}

ControlServiceClient is the client API for ControlService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ControlServiceServer

type ControlServiceServer interface {
	// Creates a Control.
	//
	// If the [Control][google.cloud.retail.v2alpha.Control] to create already
	// exists, an ALREADY_EXISTS error is returned.
	CreateControl(context.Context, *CreateControlRequest) (*Control, error)
	// Deletes a Control.
	//
	// If the [Control][google.cloud.retail.v2alpha.Control] to delete does not
	// exist, a NOT_FOUND error is returned.
	DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error)
	// Updates a Control.
	//
	// [Control][google.cloud.retail.v2alpha.Control] cannot be set to a different
	// oneof field, if so an INVALID_ARGUMENT is returned. If the
	// [Control][google.cloud.retail.v2alpha.Control] to update does not exist, a
	// NOT_FOUND error is returned.
	UpdateControl(context.Context, *UpdateControlRequest) (*Control, error)
	// Gets a Control.
	GetControl(context.Context, *GetControlRequest) (*Control, error)
	// Lists all Controls by their parent
	// [Catalog][google.cloud.retail.v2alpha.Catalog].
	ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error)
}

ControlServiceServer is the server API for ControlService service.

type Control_FacetSpec

type Control_FacetSpec struct {
	// A facet specification to perform faceted search.
	//
	// Note that this field is deprecated and will throw NOT_IMPLEMENTED if
	// used for creating a control.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/control.proto.
	FacetSpec *SearchRequest_FacetSpec `protobuf:"bytes,3,opt,name=facet_spec,json=facetSpec,proto3,oneof"`
}

type Control_Rule

type Control_Rule struct {
	// A rule control - a condition-action pair.
	// Enacts a set action when the condition is triggered.
	// For example: Boost "gShoe" when query full matches "Running Shoes".
	Rule *Rule `protobuf:"bytes,4,opt,name=rule,proto3,oneof"`
}

type CreateControlRequest

type CreateControlRequest struct {

	// Required. Full resource name of parent catalog. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The Control to create.
	Control *Control `protobuf:"bytes,2,opt,name=control,proto3" json:"control,omitempty"`
	// Required. The ID to use for the Control, which will become the final
	// component of the Control's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-_/.
	ControlId string `protobuf:"bytes,3,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
	// contains filtered or unexported fields
}

Request for CreateControl method.

func (*CreateControlRequest) Descriptor deprecated

func (*CreateControlRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateControlRequest.ProtoReflect.Descriptor instead.

func (*CreateControlRequest) GetControl

func (x *CreateControlRequest) GetControl() *Control

func (*CreateControlRequest) GetControlId

func (x *CreateControlRequest) GetControlId() string

func (*CreateControlRequest) GetParent

func (x *CreateControlRequest) GetParent() string

func (*CreateControlRequest) ProtoMessage

func (*CreateControlRequest) ProtoMessage()

func (*CreateControlRequest) ProtoReflect

func (x *CreateControlRequest) ProtoReflect() protoreflect.Message

func (*CreateControlRequest) Reset

func (x *CreateControlRequest) Reset()

func (*CreateControlRequest) String

func (x *CreateControlRequest) String() string

type CreateMerchantCenterAccountLinkMetadata added in v1.13.0

type CreateMerchantCenterAccountLinkMetadata struct {

	// Operation create time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Operation last update time. If the operation is done, this is also the
	// finish time.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Common metadata related to the progress of the operations.

func (*CreateMerchantCenterAccountLinkMetadata) Descriptor deprecated added in v1.13.0

func (*CreateMerchantCenterAccountLinkMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateMerchantCenterAccountLinkMetadata.ProtoReflect.Descriptor instead.

func (*CreateMerchantCenterAccountLinkMetadata) GetCreateTime added in v1.13.0

func (*CreateMerchantCenterAccountLinkMetadata) GetUpdateTime added in v1.13.0

func (*CreateMerchantCenterAccountLinkMetadata) ProtoMessage added in v1.13.0

func (*CreateMerchantCenterAccountLinkMetadata) ProtoReflect added in v1.13.0

func (*CreateMerchantCenterAccountLinkMetadata) Reset added in v1.13.0

func (*CreateMerchantCenterAccountLinkMetadata) String added in v1.13.0

type CreateMerchantCenterAccountLinkRequest added in v1.13.0

type CreateMerchantCenterAccountLinkRequest struct {

	// Required. The branch resource where this MerchantCenterAccountLink will be
	// created. Format:
	// projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
	// to create.
	//
	// If the caller does not have permission to create the
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink],
	// regardless of whether or not it exists, a PERMISSION_DENIED error is
	// returned.
	MerchantCenterAccountLink *MerchantCenterAccountLink `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request for [MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink] method.

func (*CreateMerchantCenterAccountLinkRequest) Descriptor deprecated added in v1.13.0

func (*CreateMerchantCenterAccountLinkRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMerchantCenterAccountLinkRequest.ProtoReflect.Descriptor instead.

func (x *CreateMerchantCenterAccountLinkRequest) GetMerchantCenterAccountLink() *MerchantCenterAccountLink

func (*CreateMerchantCenterAccountLinkRequest) GetParent added in v1.13.0

func (*CreateMerchantCenterAccountLinkRequest) ProtoMessage added in v1.13.0

func (*CreateMerchantCenterAccountLinkRequest) ProtoReflect added in v1.13.0

func (*CreateMerchantCenterAccountLinkRequest) Reset added in v1.13.0

func (*CreateMerchantCenterAccountLinkRequest) String added in v1.13.0

type CreateModelMetadata

type CreateModelMetadata struct {

	// The resource name of the model that this create applies to.
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

Metadata associated with a create operation.

func (*CreateModelMetadata) Descriptor deprecated

func (*CreateModelMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateModelMetadata.ProtoReflect.Descriptor instead.

func (*CreateModelMetadata) GetModel

func (x *CreateModelMetadata) GetModel() string

func (*CreateModelMetadata) ProtoMessage

func (*CreateModelMetadata) ProtoMessage()

func (*CreateModelMetadata) ProtoReflect

func (x *CreateModelMetadata) ProtoReflect() protoreflect.Message

func (*CreateModelMetadata) Reset

func (x *CreateModelMetadata) Reset()

func (*CreateModelMetadata) String

func (x *CreateModelMetadata) String() string

type CreateModelRequest

type CreateModelRequest struct {

	// Required. The parent resource under which to create the model. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The payload of the [Model][google.cloud.retail.v2alpha.Model]  to
	// create.
	Model *Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	// Optional. Whether to run a dry run to validate the request (without
	// actually creating the model).
	DryRun bool `protobuf:"varint,3,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	// contains filtered or unexported fields
}

Request for creating a model.

func (*CreateModelRequest) Descriptor deprecated

func (*CreateModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead.

func (*CreateModelRequest) GetDryRun

func (x *CreateModelRequest) GetDryRun() bool

func (*CreateModelRequest) GetModel

func (x *CreateModelRequest) GetModel() *Model

func (*CreateModelRequest) GetParent

func (x *CreateModelRequest) GetParent() string

func (*CreateModelRequest) ProtoMessage

func (*CreateModelRequest) ProtoMessage()

func (*CreateModelRequest) ProtoReflect

func (x *CreateModelRequest) ProtoReflect() protoreflect.Message

func (*CreateModelRequest) Reset

func (x *CreateModelRequest) Reset()

func (*CreateModelRequest) String

func (x *CreateModelRequest) String() string

type CreateProductRequest

type CreateProductRequest struct {

	// Required. The parent catalog resource name, such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The [Product][google.cloud.retail.v2alpha.Product] to create.
	Product *Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"`
	// Required. The ID to use for the
	// [Product][google.cloud.retail.v2alpha.Product], which will become the final
	// component of the [Product.name][google.cloud.retail.v2alpha.Product.name].
	//
	// If the caller does not have permission to create the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	//
	// This field must be unique among all
	// [Product][google.cloud.retail.v2alpha.Product]s with the same
	// [parent][google.cloud.retail.v2alpha.CreateProductRequest.parent].
	// Otherwise, an ALREADY_EXISTS error is returned.
	//
	// This field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] method.

func (*CreateProductRequest) Descriptor deprecated

func (*CreateProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateProductRequest.ProtoReflect.Descriptor instead.

func (*CreateProductRequest) GetParent

func (x *CreateProductRequest) GetParent() string

func (*CreateProductRequest) GetProduct

func (x *CreateProductRequest) GetProduct() *Product

func (*CreateProductRequest) GetProductId

func (x *CreateProductRequest) GetProductId() string

func (*CreateProductRequest) ProtoMessage

func (*CreateProductRequest) ProtoMessage()

func (*CreateProductRequest) ProtoReflect

func (x *CreateProductRequest) ProtoReflect() protoreflect.Message

func (*CreateProductRequest) Reset

func (x *CreateProductRequest) Reset()

func (*CreateProductRequest) String

func (x *CreateProductRequest) String() string

type CreateServingConfigRequest

type CreateServingConfigRequest struct {

	// Required. Full resource name of parent. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The ServingConfig to create.
	ServingConfig *ServingConfig `protobuf:"bytes,2,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"`
	// Required. The ID to use for the ServingConfig, which will become the final
	// component of the ServingConfig's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-_/.
	ServingConfigId string `protobuf:"bytes,3,opt,name=serving_config_id,json=servingConfigId,proto3" json:"serving_config_id,omitempty"`
	// contains filtered or unexported fields
}

Request for CreateServingConfig method.

func (*CreateServingConfigRequest) Descriptor deprecated

func (*CreateServingConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateServingConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateServingConfigRequest) GetParent

func (x *CreateServingConfigRequest) GetParent() string

func (*CreateServingConfigRequest) GetServingConfig

func (x *CreateServingConfigRequest) GetServingConfig() *ServingConfig

func (*CreateServingConfigRequest) GetServingConfigId

func (x *CreateServingConfigRequest) GetServingConfigId() string

func (*CreateServingConfigRequest) ProtoMessage

func (*CreateServingConfigRequest) ProtoMessage()

func (*CreateServingConfigRequest) ProtoReflect

func (*CreateServingConfigRequest) Reset

func (x *CreateServingConfigRequest) Reset()

func (*CreateServingConfigRequest) String

func (x *CreateServingConfigRequest) String() string

type CustomAttribute

type CustomAttribute struct {

	// The textual values of this custom attribute. For example, `["yellow",
	// "green"]` when the key is "color".
	//
	// Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	//
	// Exactly one of [text][google.cloud.retail.v2alpha.CustomAttribute.text] or
	// [numbers][google.cloud.retail.v2alpha.CustomAttribute.numbers] should be
	// set. Otherwise, an INVALID_ARGUMENT error is returned.
	Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"`
	// The numerical values of this custom attribute. For example, `[2.3, 15.4]`
	// when the key is "lengths_cm".
	//
	// Exactly one of [text][google.cloud.retail.v2alpha.CustomAttribute.text] or
	// [numbers][google.cloud.retail.v2alpha.CustomAttribute.numbers] should be
	// set. Otherwise, an INVALID_ARGUMENT error is returned.
	Numbers []float64 `protobuf:"fixed64,2,rep,packed,name=numbers,proto3" json:"numbers,omitempty"`
	// This field is normally ignored unless
	// [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level]
	// of the [Catalog][google.cloud.retail.v2alpha.Catalog] is set to the
	// deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about
	// product-level attribute configuration, see [Configuration
	// modes](https://cloud.google.com/retail/docs/attribute-config#config-modes).
	// If true, custom attribute values are searchable by text queries in
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	//
	// This field is ignored in a
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent].
	//
	// Only set if type [text][google.cloud.retail.v2alpha.CustomAttribute.text]
	// is set. Otherwise, a INVALID_ARGUMENT error is returned.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/common.proto.
	Searchable *bool `protobuf:"varint,3,opt,name=searchable,proto3,oneof" json:"searchable,omitempty"`
	// This field is normally ignored unless
	// [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level]
	// of the [Catalog][google.cloud.retail.v2alpha.Catalog] is set to the
	// deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about
	// product-level attribute configuration, see [Configuration
	// modes](https://cloud.google.com/retail/docs/attribute-config#config-modes).
	// If true, custom attribute values are indexed, so that they can be filtered,
	// faceted or boosted in
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	//
	// This field is ignored in a
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent].
	//
	// See
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter],
	// [SearchRequest.facet_specs][google.cloud.retail.v2alpha.SearchRequest.facet_specs]
	// and
	// [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec]
	// for more details.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/common.proto.
	Indexable *bool `protobuf:"varint,4,opt,name=indexable,proto3,oneof" json:"indexable,omitempty"`
	// contains filtered or unexported fields
}

A custom attribute that is not explicitly modeled in Product[google.cloud.retail.v2alpha.Product].

func (*CustomAttribute) Descriptor deprecated

func (*CustomAttribute) Descriptor() ([]byte, []int)

Deprecated: Use CustomAttribute.ProtoReflect.Descriptor instead.

func (*CustomAttribute) GetIndexable deprecated

func (x *CustomAttribute) GetIndexable() bool

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/common.proto.

func (*CustomAttribute) GetNumbers

func (x *CustomAttribute) GetNumbers() []float64

func (*CustomAttribute) GetSearchable deprecated

func (x *CustomAttribute) GetSearchable() bool

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/common.proto.

func (*CustomAttribute) GetText

func (x *CustomAttribute) GetText() []string

func (*CustomAttribute) ProtoMessage

func (*CustomAttribute) ProtoMessage()

func (*CustomAttribute) ProtoReflect

func (x *CustomAttribute) ProtoReflect() protoreflect.Message

func (*CustomAttribute) Reset

func (x *CustomAttribute) Reset()

func (*CustomAttribute) String

func (x *CustomAttribute) String() string

type DeleteControlRequest

type DeleteControlRequest struct {

	// Required. The resource name of the Control to delete. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for DeleteControl method.

func (*DeleteControlRequest) Descriptor deprecated

func (*DeleteControlRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteControlRequest.ProtoReflect.Descriptor instead.

func (*DeleteControlRequest) GetName

func (x *DeleteControlRequest) GetName() string

func (*DeleteControlRequest) ProtoMessage

func (*DeleteControlRequest) ProtoMessage()

func (*DeleteControlRequest) ProtoReflect

func (x *DeleteControlRequest) ProtoReflect() protoreflect.Message

func (*DeleteControlRequest) Reset

func (x *DeleteControlRequest) Reset()

func (*DeleteControlRequest) String

func (x *DeleteControlRequest) String() string

type DeleteMerchantCenterAccountLinkRequest added in v1.13.0

type DeleteMerchantCenterAccountLinkRequest struct {

	// Required. Full resource name. Format:
	// projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for [MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLink] method.

func (*DeleteMerchantCenterAccountLinkRequest) Descriptor deprecated added in v1.13.0

func (*DeleteMerchantCenterAccountLinkRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMerchantCenterAccountLinkRequest.ProtoReflect.Descriptor instead.

func (*DeleteMerchantCenterAccountLinkRequest) GetName added in v1.13.0

func (*DeleteMerchantCenterAccountLinkRequest) ProtoMessage added in v1.13.0

func (*DeleteMerchantCenterAccountLinkRequest) ProtoReflect added in v1.13.0

func (*DeleteMerchantCenterAccountLinkRequest) Reset added in v1.13.0

func (*DeleteMerchantCenterAccountLinkRequest) String added in v1.13.0

type DeleteModelRequest

type DeleteModelRequest struct {

	// Required. The resource name of the
	// [Model][google.cloud.retail.v2alpha.Model] to delete. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for deleting a model.

func (*DeleteModelRequest) Descriptor deprecated

func (*DeleteModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.

func (*DeleteModelRequest) GetName

func (x *DeleteModelRequest) GetName() string

func (*DeleteModelRequest) ProtoMessage

func (*DeleteModelRequest) ProtoMessage()

func (*DeleteModelRequest) ProtoReflect

func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message

func (*DeleteModelRequest) Reset

func (x *DeleteModelRequest) Reset()

func (*DeleteModelRequest) String

func (x *DeleteModelRequest) String() string

type DeleteProductRequest

type DeleteProductRequest struct {

	// Required. Full resource name of
	// [Product][google.cloud.retail.v2alpha.Product], such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
	//
	// If the caller does not have permission to delete the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	//
	// If the [Product][google.cloud.retail.v2alpha.Product] to delete does not
	// exist, a NOT_FOUND error is returned.
	//
	// The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be
	// a
	// [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
	// [Product][google.cloud.retail.v2alpha.Product] member nor a
	// [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product] with more than one
	// [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// All inventory information for the named
	// [Product][google.cloud.retail.v2alpha.Product] will be deleted.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// This value only applies to the case when the target product is of type
	// PRIMARY.
	// When deleting a product of VARIANT/COLLECTION type, this value
	// will be ignored.
	// When set to true, the subsequent variant products will be
	// deleted.
	// When set to false, if the primary product has active variant products, an
	// error will be returned.
	Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.DeleteProduct][google.cloud.retail.v2alpha.ProductService.DeleteProduct] method.

func (*DeleteProductRequest) Descriptor deprecated

func (*DeleteProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.

func (*DeleteProductRequest) GetForce added in v1.13.0

func (x *DeleteProductRequest) GetForce() bool

func (*DeleteProductRequest) GetName

func (x *DeleteProductRequest) GetName() string

func (*DeleteProductRequest) ProtoMessage

func (*DeleteProductRequest) ProtoMessage()

func (*DeleteProductRequest) ProtoReflect

func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message

func (*DeleteProductRequest) Reset

func (x *DeleteProductRequest) Reset()

func (*DeleteProductRequest) String

func (x *DeleteProductRequest) String() string

type DeleteServingConfigRequest

type DeleteServingConfigRequest struct {

	// Required. The resource name of the ServingConfig to delete. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for DeleteServingConfig method.

func (*DeleteServingConfigRequest) Descriptor deprecated

func (*DeleteServingConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteServingConfigRequest.ProtoReflect.Descriptor instead.

func (*DeleteServingConfigRequest) GetName

func (x *DeleteServingConfigRequest) GetName() string

func (*DeleteServingConfigRequest) ProtoMessage

func (*DeleteServingConfigRequest) ProtoMessage()

func (*DeleteServingConfigRequest) ProtoReflect

func (*DeleteServingConfigRequest) Reset

func (x *DeleteServingConfigRequest) Reset()

func (*DeleteServingConfigRequest) String

func (x *DeleteServingConfigRequest) String() string

type ExperimentInfo added in v1.13.0

type ExperimentInfo struct {

	// Information associated with the specific experiment entity being recorded.
	//
	// Types that are assignable to ExperimentMetadata:
	//
	//	*ExperimentInfo_ServingConfigExperiment_
	ExperimentMetadata isExperimentInfo_ExperimentMetadata `protobuf_oneof:"experiment_metadata"`
	// The fully qualified resource name of the experiment that provides the
	// serving config under test, should an active experiment exist. For example:
	// `projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id`
	Experiment string `protobuf:"bytes,1,opt,name=experiment,proto3" json:"experiment,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ExperimentInfo) Descriptor deprecated added in v1.13.0

func (*ExperimentInfo) Descriptor() ([]byte, []int)

Deprecated: Use ExperimentInfo.ProtoReflect.Descriptor instead.

func (*ExperimentInfo) GetExperiment added in v1.13.0

func (x *ExperimentInfo) GetExperiment() string

func (*ExperimentInfo) GetExperimentMetadata added in v1.13.0

func (m *ExperimentInfo) GetExperimentMetadata() isExperimentInfo_ExperimentMetadata

func (*ExperimentInfo) GetServingConfigExperiment added in v1.13.0

func (x *ExperimentInfo) GetServingConfigExperiment() *ExperimentInfo_ServingConfigExperiment

func (*ExperimentInfo) ProtoMessage added in v1.13.0

func (*ExperimentInfo) ProtoMessage()

func (*ExperimentInfo) ProtoReflect added in v1.13.0

func (x *ExperimentInfo) ProtoReflect() protoreflect.Message

func (*ExperimentInfo) Reset added in v1.13.0

func (x *ExperimentInfo) Reset()

func (*ExperimentInfo) String added in v1.13.0

func (x *ExperimentInfo) String() string

type ExperimentInfo_ServingConfigExperiment added in v1.13.0

type ExperimentInfo_ServingConfigExperiment struct {

	// The fully qualified resource name of the original
	// [SearchRequest.placement][google.cloud.retail.v2alpha.SearchRequest.placement]
	// in the search request prior to reassignment by experiment API. For
	// example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.
	OriginalServingConfig string `` /* 126-byte string literal not displayed */
	// The fully qualified resource name of the serving config
	// [VariantArm.serving_config_id][] responsible for generating the search
	// response. For example:
	// `projects/*/locations/*/catalogs/*/servingConfigs/*`.
	ExperimentServingConfig string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Metadata for active serving config A/B tests.

func (*ExperimentInfo_ServingConfigExperiment) Descriptor deprecated added in v1.13.0

func (*ExperimentInfo_ServingConfigExperiment) Descriptor() ([]byte, []int)

Deprecated: Use ExperimentInfo_ServingConfigExperiment.ProtoReflect.Descriptor instead.

func (*ExperimentInfo_ServingConfigExperiment) GetExperimentServingConfig added in v1.13.0

func (x *ExperimentInfo_ServingConfigExperiment) GetExperimentServingConfig() string

func (*ExperimentInfo_ServingConfigExperiment) GetOriginalServingConfig added in v1.13.0

func (x *ExperimentInfo_ServingConfigExperiment) GetOriginalServingConfig() string

func (*ExperimentInfo_ServingConfigExperiment) ProtoMessage added in v1.13.0

func (*ExperimentInfo_ServingConfigExperiment) ProtoReflect added in v1.13.0

func (*ExperimentInfo_ServingConfigExperiment) Reset added in v1.13.0

func (*ExperimentInfo_ServingConfigExperiment) String added in v1.13.0

type ExperimentInfo_ServingConfigExperiment_ added in v1.13.0

type ExperimentInfo_ServingConfigExperiment_ struct {
	// A/B test between existing Cloud Retail Search
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]s.
	ServingConfigExperiment *ExperimentInfo_ServingConfigExperiment `protobuf:"bytes,2,opt,name=serving_config_experiment,json=servingConfigExperiment,proto3,oneof"`
}

type ExportAnalyticsMetricsRequest added in v1.15.0

type ExportAnalyticsMetricsRequest struct {

	// Required. Full resource name of the parent catalog.
	// Expected format: `projects/*/locations/*/catalogs/*`
	Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// Required. The output location of the data.
	OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// A filtering expression to specify restrictions on returned metrics.
	// The expression is a sequence of terms. Each term applies a restriction to
	// the returned metrics. Use this expression to restrict results to a
	// specific time range.
	//
	//	Currently we expect only one types of fields:
	//
	//	 * `timestamp`: This can be specified twice, once with a
	//	   less than operator and once with a greater than operator. The
	//	   `timestamp` restriction should result in one, contiguous, valid,
	//	   `timestamp` range.
	//
	//	Some examples of valid filters expressions:
	//
	//	* Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
	//	          timestamp < "2012-04-23T18:30:43.511Z"`
	//	* Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Request message for the `ExportAnalyticsMetrics` method.

func (*ExportAnalyticsMetricsRequest) Descriptor deprecated added in v1.15.0

func (*ExportAnalyticsMetricsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportAnalyticsMetricsRequest.ProtoReflect.Descriptor instead.

func (*ExportAnalyticsMetricsRequest) GetCatalog added in v1.15.0

func (x *ExportAnalyticsMetricsRequest) GetCatalog() string

func (*ExportAnalyticsMetricsRequest) GetFilter added in v1.15.0

func (x *ExportAnalyticsMetricsRequest) GetFilter() string

func (*ExportAnalyticsMetricsRequest) GetOutputConfig added in v1.15.0

func (x *ExportAnalyticsMetricsRequest) GetOutputConfig() *OutputConfig

func (*ExportAnalyticsMetricsRequest) ProtoMessage added in v1.15.0

func (*ExportAnalyticsMetricsRequest) ProtoMessage()

func (*ExportAnalyticsMetricsRequest) ProtoReflect added in v1.15.0

func (*ExportAnalyticsMetricsRequest) Reset added in v1.15.0

func (x *ExportAnalyticsMetricsRequest) Reset()

func (*ExportAnalyticsMetricsRequest) String added in v1.15.0

type ExportAnalyticsMetricsResponse added in v1.15.0

type ExportAnalyticsMetricsResponse struct {

	// A sample of errors encountered while processing the request.
	ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"`
	// This field is never set.
	ErrorsConfig *ExportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// Output result indicating where the data were exported to.
	OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ExportAnalyticsMetricsResponse) Descriptor deprecated added in v1.15.0

func (*ExportAnalyticsMetricsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportAnalyticsMetricsResponse.ProtoReflect.Descriptor instead.

func (*ExportAnalyticsMetricsResponse) GetErrorSamples added in v1.15.0

func (x *ExportAnalyticsMetricsResponse) GetErrorSamples() []*status.Status

func (*ExportAnalyticsMetricsResponse) GetErrorsConfig added in v1.15.0

func (x *ExportAnalyticsMetricsResponse) GetErrorsConfig() *ExportErrorsConfig

func (*ExportAnalyticsMetricsResponse) GetOutputResult added in v1.15.0

func (x *ExportAnalyticsMetricsResponse) GetOutputResult() *OutputResult

func (*ExportAnalyticsMetricsResponse) ProtoMessage added in v1.15.0

func (*ExportAnalyticsMetricsResponse) ProtoMessage()

func (*ExportAnalyticsMetricsResponse) ProtoReflect added in v1.15.0

func (*ExportAnalyticsMetricsResponse) Reset added in v1.15.0

func (x *ExportAnalyticsMetricsResponse) Reset()

func (*ExportAnalyticsMetricsResponse) String added in v1.15.0

type ExportErrorsConfig

type ExportErrorsConfig struct {

	// Required. Errors destination.
	//
	// Types that are assignable to Destination:
	//
	//	*ExportErrorsConfig_GcsPrefix
	Destination isExportErrorsConfig_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

Configuration of destination for Export related errors.

func (*ExportErrorsConfig) Descriptor deprecated

func (*ExportErrorsConfig) Descriptor() ([]byte, []int)

Deprecated: Use ExportErrorsConfig.ProtoReflect.Descriptor instead.

func (*ExportErrorsConfig) GetDestination

func (m *ExportErrorsConfig) GetDestination() isExportErrorsConfig_Destination

func (*ExportErrorsConfig) GetGcsPrefix

func (x *ExportErrorsConfig) GetGcsPrefix() string

func (*ExportErrorsConfig) ProtoMessage

func (*ExportErrorsConfig) ProtoMessage()

func (*ExportErrorsConfig) ProtoReflect

func (x *ExportErrorsConfig) ProtoReflect() protoreflect.Message

func (*ExportErrorsConfig) Reset

func (x *ExportErrorsConfig) Reset()

func (*ExportErrorsConfig) String

func (x *ExportErrorsConfig) String() string

type ExportErrorsConfig_GcsPrefix

type ExportErrorsConfig_GcsPrefix struct {
	// Google Cloud Storage path for import errors. This must be an empty,
	// existing Cloud Storage bucket. Export errors will be written to a file in
	// this bucket, one per line, as a JSON-encoded
	// `google.rpc.Status` message.
	GcsPrefix string `protobuf:"bytes,1,opt,name=gcs_prefix,json=gcsPrefix,proto3,oneof"`
}

type ExportMetadata

type ExportMetadata struct {

	// Operation create time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Operation last update time. If the operation is done, this is also the
	// finish time.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ExportMetadata) Descriptor deprecated

func (*ExportMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ExportMetadata.ProtoReflect.Descriptor instead.

func (*ExportMetadata) GetCreateTime

func (x *ExportMetadata) GetCreateTime() *timestamppb.Timestamp

func (*ExportMetadata) GetUpdateTime

func (x *ExportMetadata) GetUpdateTime() *timestamppb.Timestamp

func (*ExportMetadata) ProtoMessage

func (*ExportMetadata) ProtoMessage()

func (*ExportMetadata) ProtoReflect

func (x *ExportMetadata) ProtoReflect() protoreflect.Message

func (*ExportMetadata) Reset

func (x *ExportMetadata) Reset()

func (*ExportMetadata) String

func (x *ExportMetadata) String() string

type ExportProductsResponse

type ExportProductsResponse struct {

	// A sample of errors encountered while processing the request.
	ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"`
	// This field is never set.
	ErrorsConfig *ExportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// Output result indicating where the data were exported to.
	OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ExportProductsResponse) Descriptor deprecated

func (*ExportProductsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportProductsResponse.ProtoReflect.Descriptor instead.

func (*ExportProductsResponse) GetErrorSamples

func (x *ExportProductsResponse) GetErrorSamples() []*status.Status

func (*ExportProductsResponse) GetErrorsConfig

func (x *ExportProductsResponse) GetErrorsConfig() *ExportErrorsConfig

func (*ExportProductsResponse) GetOutputResult

func (x *ExportProductsResponse) GetOutputResult() *OutputResult

func (*ExportProductsResponse) ProtoMessage

func (*ExportProductsResponse) ProtoMessage()

func (*ExportProductsResponse) ProtoReflect

func (x *ExportProductsResponse) ProtoReflect() protoreflect.Message

func (*ExportProductsResponse) Reset

func (x *ExportProductsResponse) Reset()

func (*ExportProductsResponse) String

func (x *ExportProductsResponse) String() string

type ExportUserEventsResponse

type ExportUserEventsResponse struct {

	// A sample of errors encountered while processing the request.
	ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"`
	// This field is never set.
	ErrorsConfig *ExportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// Output result indicating where the data were exported to.
	OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ExportUserEventsResponse) Descriptor deprecated

func (*ExportUserEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportUserEventsResponse.ProtoReflect.Descriptor instead.

func (*ExportUserEventsResponse) GetErrorSamples

func (x *ExportUserEventsResponse) GetErrorSamples() []*status.Status

func (*ExportUserEventsResponse) GetErrorsConfig

func (x *ExportUserEventsResponse) GetErrorsConfig() *ExportErrorsConfig

func (*ExportUserEventsResponse) GetOutputResult

func (x *ExportUserEventsResponse) GetOutputResult() *OutputResult

func (*ExportUserEventsResponse) ProtoMessage

func (*ExportUserEventsResponse) ProtoMessage()

func (*ExportUserEventsResponse) ProtoReflect

func (x *ExportUserEventsResponse) ProtoReflect() protoreflect.Message

func (*ExportUserEventsResponse) Reset

func (x *ExportUserEventsResponse) Reset()

func (*ExportUserEventsResponse) String

func (x *ExportUserEventsResponse) String() string

type FulfillmentInfo

type FulfillmentInfo struct {

	// The fulfillment type, including commonly used types (such as pickup in
	// store and same day delivery), and custom types. Customers have to map
	// custom types to their display names before rendering UI.
	//
	// Supported values:
	//
	// * "pickup-in-store"
	// * "ship-to-store"
	// * "same-day-delivery"
	// * "next-day-delivery"
	// * "custom-type-1"
	// * "custom-type-2"
	// * "custom-type-3"
	// * "custom-type-4"
	// * "custom-type-5"
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
	// such as the store IDs for
	// [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	// or the region IDs for
	// [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
	//
	// A maximum of 3000 values are allowed. Each value must be a string with a
	// length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
	// as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
	// returned.
	PlaceIds []string `protobuf:"bytes,2,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"`
	// contains filtered or unexported fields
}

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

func (*FulfillmentInfo) Descriptor deprecated

func (*FulfillmentInfo) Descriptor() ([]byte, []int)

Deprecated: Use FulfillmentInfo.ProtoReflect.Descriptor instead.

func (*FulfillmentInfo) GetPlaceIds

func (x *FulfillmentInfo) GetPlaceIds() []string

func (*FulfillmentInfo) GetType

func (x *FulfillmentInfo) GetType() string

func (*FulfillmentInfo) ProtoMessage

func (*FulfillmentInfo) ProtoMessage()

func (*FulfillmentInfo) ProtoReflect

func (x *FulfillmentInfo) ProtoReflect() protoreflect.Message

func (*FulfillmentInfo) Reset

func (x *FulfillmentInfo) Reset()

func (*FulfillmentInfo) String

func (x *FulfillmentInfo) String() string

type GcsOutputResult added in v1.12.0

type GcsOutputResult struct {

	// The uri of Gcs output
	OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
	// contains filtered or unexported fields
}

A Gcs output result.

func (*GcsOutputResult) Descriptor deprecated added in v1.12.0

func (*GcsOutputResult) Descriptor() ([]byte, []int)

Deprecated: Use GcsOutputResult.ProtoReflect.Descriptor instead.

func (*GcsOutputResult) GetOutputUri added in v1.12.0

func (x *GcsOutputResult) GetOutputUri() string

func (*GcsOutputResult) ProtoMessage added in v1.12.0

func (*GcsOutputResult) ProtoMessage()

func (*GcsOutputResult) ProtoReflect added in v1.12.0

func (x *GcsOutputResult) ProtoReflect() protoreflect.Message

func (*GcsOutputResult) Reset added in v1.12.0

func (x *GcsOutputResult) Reset()

func (*GcsOutputResult) String added in v1.12.0

func (x *GcsOutputResult) String() string

type GcsSource

type GcsSource struct {

	// Required. Google Cloud Storage URIs to input files. URI can be up to
	// 2000 characters long. URIs can match the full object path (for example,
	// `gs://bucket/directory/object.json`) or a pattern matching one or more
	// files, such as `gs://bucket/directory/*.json`. A request can
	// contain at most 100 files, and each file can be up to 2 GB. See
	// [Importing product
	// information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog)
	// for the expected file format and setup instructions.
	InputUris []string `protobuf:"bytes,1,rep,name=input_uris,json=inputUris,proto3" json:"input_uris,omitempty"`
	// The schema to use when parsing the data from the source.
	//
	// Supported values for product imports:
	//
	// * `product` (default): One JSON
	// [Product][google.cloud.retail.v2alpha.Product] per line. Each product must
	//
	//	have a valid [Product.id][google.cloud.retail.v2alpha.Product.id].
	//   - `product_merchant_center`: See [Importing catalog data from Merchant
	//     Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc).
	//
	// Supported values for user events imports:
	//
	// * `user_event` (default): One JSON
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent] per line.
	//   - `user_event_ga360`: Using
	//     https://support.google.com/analytics/answer/3437719.
	//
	// Supported values for control imports:
	//
	// * `control` (default): One JSON
	// [Control][google.cloud.retail.v2alpha.Control] per line.
	//
	// Supported values for catalog attribute imports:
	//
	// * `catalog_attribute` (default): One CSV
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] per line.
	DataSchema string `protobuf:"bytes,2,opt,name=data_schema,json=dataSchema,proto3" json:"data_schema,omitempty"`
	// contains filtered or unexported fields
}

Google Cloud Storage location for input content.

func (*GcsSource) Descriptor deprecated

func (*GcsSource) Descriptor() ([]byte, []int)

Deprecated: Use GcsSource.ProtoReflect.Descriptor instead.

func (*GcsSource) GetDataSchema

func (x *GcsSource) GetDataSchema() string

func (*GcsSource) GetInputUris

func (x *GcsSource) GetInputUris() []string

func (*GcsSource) ProtoMessage

func (*GcsSource) ProtoMessage()

func (*GcsSource) ProtoReflect

func (x *GcsSource) ProtoReflect() protoreflect.Message

func (*GcsSource) Reset

func (x *GcsSource) Reset()

func (*GcsSource) String

func (x *GcsSource) String() string

type GetAttributesConfigRequest

type GetAttributesConfigRequest struct {

	// Required. Full AttributesConfig resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.GetAttributesConfig][google.cloud.retail.v2alpha.CatalogService.GetAttributesConfig] method.

func (*GetAttributesConfigRequest) Descriptor deprecated

func (*GetAttributesConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAttributesConfigRequest.ProtoReflect.Descriptor instead.

func (*GetAttributesConfigRequest) GetName

func (x *GetAttributesConfigRequest) GetName() string

func (*GetAttributesConfigRequest) ProtoMessage

func (*GetAttributesConfigRequest) ProtoMessage()

func (*GetAttributesConfigRequest) ProtoReflect

func (*GetAttributesConfigRequest) Reset

func (x *GetAttributesConfigRequest) Reset()

func (*GetAttributesConfigRequest) String

func (x *GetAttributesConfigRequest) String() string

type GetCompletionConfigRequest

type GetCompletionConfigRequest struct {

	// Required. Full CompletionConfig resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.GetCompletionConfig][google.cloud.retail.v2alpha.CatalogService.GetCompletionConfig] method.

func (*GetCompletionConfigRequest) Descriptor deprecated

func (*GetCompletionConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCompletionConfigRequest.ProtoReflect.Descriptor instead.

func (*GetCompletionConfigRequest) GetName

func (x *GetCompletionConfigRequest) GetName() string

func (*GetCompletionConfigRequest) ProtoMessage

func (*GetCompletionConfigRequest) ProtoMessage()

func (*GetCompletionConfigRequest) ProtoReflect

func (*GetCompletionConfigRequest) Reset

func (x *GetCompletionConfigRequest) Reset()

func (*GetCompletionConfigRequest) String

func (x *GetCompletionConfigRequest) String() string

type GetControlRequest

type GetControlRequest struct {

	// Required. The resource name of the Control to get. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for GetControl method.

func (*GetControlRequest) Descriptor deprecated

func (*GetControlRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetControlRequest.ProtoReflect.Descriptor instead.

func (*GetControlRequest) GetName

func (x *GetControlRequest) GetName() string

func (*GetControlRequest) ProtoMessage

func (*GetControlRequest) ProtoMessage()

func (*GetControlRequest) ProtoReflect

func (x *GetControlRequest) ProtoReflect() protoreflect.Message

func (*GetControlRequest) Reset

func (x *GetControlRequest) Reset()

func (*GetControlRequest) String

func (x *GetControlRequest) String() string

type GetDefaultBranchRequest

type GetDefaultBranchRequest struct {

	// The parent catalog resource name, such as
	// `projects/*/locations/global/catalogs/default_catalog`.
	Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetDefaultBranchRequest) Descriptor deprecated

func (*GetDefaultBranchRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDefaultBranchRequest.ProtoReflect.Descriptor instead.

func (*GetDefaultBranchRequest) GetCatalog

func (x *GetDefaultBranchRequest) GetCatalog() string

func (*GetDefaultBranchRequest) ProtoMessage

func (*GetDefaultBranchRequest) ProtoMessage()

func (*GetDefaultBranchRequest) ProtoReflect

func (x *GetDefaultBranchRequest) ProtoReflect() protoreflect.Message

func (*GetDefaultBranchRequest) Reset

func (x *GetDefaultBranchRequest) Reset()

func (*GetDefaultBranchRequest) String

func (x *GetDefaultBranchRequest) String() string

type GetDefaultBranchResponse

type GetDefaultBranchResponse struct {

	// Full resource name of the branch id currently set as default branch.
	Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
	// The time when this branch is set to default.
	SetTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"`
	// This corresponds to
	// [SetDefaultBranchRequest.note][google.cloud.retail.v2alpha.SetDefaultBranchRequest.note]
	// field, when this branch was set as default.
	Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

Response message of [CatalogService.GetDefaultBranch][google.cloud.retail.v2alpha.CatalogService.GetDefaultBranch].

func (*GetDefaultBranchResponse) Descriptor deprecated

func (*GetDefaultBranchResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDefaultBranchResponse.ProtoReflect.Descriptor instead.

func (*GetDefaultBranchResponse) GetBranch

func (x *GetDefaultBranchResponse) GetBranch() string

func (*GetDefaultBranchResponse) GetNote

func (x *GetDefaultBranchResponse) GetNote() string

func (*GetDefaultBranchResponse) GetSetTime

func (*GetDefaultBranchResponse) ProtoMessage

func (*GetDefaultBranchResponse) ProtoMessage()

func (*GetDefaultBranchResponse) ProtoReflect

func (x *GetDefaultBranchResponse) ProtoReflect() protoreflect.Message

func (*GetDefaultBranchResponse) Reset

func (x *GetDefaultBranchResponse) Reset()

func (*GetDefaultBranchResponse) String

func (x *GetDefaultBranchResponse) String() string

type GetModelRequest added in v1.13.0

type GetModelRequest struct {

	// Required. The resource name of the
	// [Model][google.cloud.retail.v2alpha.Model] to get. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for getting a model.

func (*GetModelRequest) Descriptor deprecated added in v1.13.0

func (*GetModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.

func (*GetModelRequest) GetName added in v1.13.0

func (x *GetModelRequest) GetName() string

func (*GetModelRequest) ProtoMessage added in v1.13.0

func (*GetModelRequest) ProtoMessage()

func (*GetModelRequest) ProtoReflect added in v1.13.0

func (x *GetModelRequest) ProtoReflect() protoreflect.Message

func (*GetModelRequest) Reset added in v1.13.0

func (x *GetModelRequest) Reset()

func (*GetModelRequest) String added in v1.13.0

func (x *GetModelRequest) String() string

type GetProductRequest

type GetProductRequest struct {

	// Required. Full resource name of
	// [Product][google.cloud.retail.v2alpha.Product], such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
	//
	// If the caller does not have permission to access the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	//
	// If the requested [Product][google.cloud.retail.v2alpha.Product] does not
	// exist, a NOT_FOUND error is returned.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] method.

func (*GetProductRequest) Descriptor deprecated

func (*GetProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.

func (*GetProductRequest) GetName

func (x *GetProductRequest) GetName() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect

func (x *GetProductRequest) ProtoReflect() protoreflect.Message

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

type GetServingConfigRequest

type GetServingConfigRequest struct {

	// Required. The resource name of the ServingConfig to get. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for GetServingConfig method.

func (*GetServingConfigRequest) Descriptor deprecated

func (*GetServingConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetServingConfigRequest.ProtoReflect.Descriptor instead.

func (*GetServingConfigRequest) GetName

func (x *GetServingConfigRequest) GetName() string

func (*GetServingConfigRequest) ProtoMessage

func (*GetServingConfigRequest) ProtoMessage()

func (*GetServingConfigRequest) ProtoReflect

func (x *GetServingConfigRequest) ProtoReflect() protoreflect.Message

func (*GetServingConfigRequest) Reset

func (x *GetServingConfigRequest) Reset()

func (*GetServingConfigRequest) String

func (x *GetServingConfigRequest) String() string

type Image

type Image struct {

	// Required. URI of the image.
	//
	// This field must be a valid UTF-8 encoded URI with a length limit of 5,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Google Merchant Center property
	// [image_link](https://support.google.com/merchants/answer/6324350).
	// Schema.org property [Product.image](https://schema.org/image).
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// Height of the image in number of pixels.
	//
	// This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// Width of the image in number of pixels.
	//
	// This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Image) Descriptor deprecated

func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetHeight

func (x *Image) GetHeight() int32

func (*Image) GetUri

func (x *Image) GetUri() string

func (*Image) GetWidth

func (x *Image) GetWidth() int32

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type ImportCompletionDataRequest

type ImportCompletionDataRequest struct {

	// Required. The catalog which the suggestions dataset belongs to.
	//
	// Format: `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The desired input location of the data.
	InputConfig *CompletionDataInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	// Pub/Sub topic for receiving notification. If this field is set,
	// when the import is finished, a notification is sent to
	// specified Pub/Sub topic. The message data is JSON string of a
	// [Operation][google.longrunning.Operation].
	// Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
	NotificationPubsubTopic string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for ImportCompletionData methods.

func (*ImportCompletionDataRequest) Descriptor deprecated

func (*ImportCompletionDataRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportCompletionDataRequest.ProtoReflect.Descriptor instead.

func (*ImportCompletionDataRequest) GetInputConfig

func (*ImportCompletionDataRequest) GetNotificationPubsubTopic

func (x *ImportCompletionDataRequest) GetNotificationPubsubTopic() string

func (*ImportCompletionDataRequest) GetParent

func (x *ImportCompletionDataRequest) GetParent() string

func (*ImportCompletionDataRequest) ProtoMessage

func (*ImportCompletionDataRequest) ProtoMessage()

func (*ImportCompletionDataRequest) ProtoReflect

func (*ImportCompletionDataRequest) Reset

func (x *ImportCompletionDataRequest) Reset()

func (*ImportCompletionDataRequest) String

func (x *ImportCompletionDataRequest) String() string

type ImportCompletionDataResponse

type ImportCompletionDataResponse struct {

	// A sample of errors encountered while processing the request.
	ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ImportCompletionDataResponse) Descriptor deprecated

func (*ImportCompletionDataResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImportCompletionDataResponse.ProtoReflect.Descriptor instead.

func (*ImportCompletionDataResponse) GetErrorSamples

func (x *ImportCompletionDataResponse) GetErrorSamples() []*status.Status

func (*ImportCompletionDataResponse) ProtoMessage

func (*ImportCompletionDataResponse) ProtoMessage()

func (*ImportCompletionDataResponse) ProtoReflect

func (*ImportCompletionDataResponse) Reset

func (x *ImportCompletionDataResponse) Reset()

func (*ImportCompletionDataResponse) String

type ImportErrorsConfig

type ImportErrorsConfig struct {

	// Required. Errors destination.
	//
	// Types that are assignable to Destination:
	//
	//	*ImportErrorsConfig_GcsPrefix
	Destination isImportErrorsConfig_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

Configuration of destination for Import related errors.

func (*ImportErrorsConfig) Descriptor deprecated

func (*ImportErrorsConfig) Descriptor() ([]byte, []int)

Deprecated: Use ImportErrorsConfig.ProtoReflect.Descriptor instead.

func (*ImportErrorsConfig) GetDestination

func (m *ImportErrorsConfig) GetDestination() isImportErrorsConfig_Destination

func (*ImportErrorsConfig) GetGcsPrefix

func (x *ImportErrorsConfig) GetGcsPrefix() string

func (*ImportErrorsConfig) ProtoMessage

func (*ImportErrorsConfig) ProtoMessage()

func (*ImportErrorsConfig) ProtoReflect

func (x *ImportErrorsConfig) ProtoReflect() protoreflect.Message

func (*ImportErrorsConfig) Reset

func (x *ImportErrorsConfig) Reset()

func (*ImportErrorsConfig) String

func (x *ImportErrorsConfig) String() string

type ImportErrorsConfig_GcsPrefix

type ImportErrorsConfig_GcsPrefix struct {
	// Google Cloud Storage prefix for import errors. This must be an empty,
	// existing Cloud Storage directory. Import errors are written to
	// sharded files in this directory, one per line, as a JSON-encoded
	// `google.rpc.Status` message.
	GcsPrefix string `protobuf:"bytes,1,opt,name=gcs_prefix,json=gcsPrefix,proto3,oneof"`
}

type ImportMetadata

type ImportMetadata struct {

	// Operation create time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Operation last update time. If the operation is done, this is also the
	// finish time.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Count of entries that were processed successfully.
	SuccessCount int64 `protobuf:"varint,3,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
	// Count of entries that encountered errors while processing.
	FailureCount int64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"`
	// Deprecated. This field is never set.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/import_config.proto.
	RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Pub/Sub topic for receiving notification. If this field is set,
	// when the import is finished, a notification is sent to
	// specified Pub/Sub topic. The message data is JSON string of a
	// [Operation][google.longrunning.Operation].
	// Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
	NotificationPubsubTopic string `` /* 132-byte string literal not displayed */
	// Metadata related to transform user events.
	TransformedUserEventsMetadata *TransformedUserEventsMetadata `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*ImportMetadata) Descriptor deprecated

func (*ImportMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ImportMetadata.ProtoReflect.Descriptor instead.

func (*ImportMetadata) GetCreateTime

func (x *ImportMetadata) GetCreateTime() *timestamppb.Timestamp

func (*ImportMetadata) GetFailureCount

func (x *ImportMetadata) GetFailureCount() int64

func (*ImportMetadata) GetNotificationPubsubTopic

func (x *ImportMetadata) GetNotificationPubsubTopic() string

func (*ImportMetadata) GetRequestId deprecated

func (x *ImportMetadata) GetRequestId() string

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/import_config.proto.

func (*ImportMetadata) GetSuccessCount

func (x *ImportMetadata) GetSuccessCount() int64

func (*ImportMetadata) GetTransformedUserEventsMetadata added in v1.12.0

func (x *ImportMetadata) GetTransformedUserEventsMetadata() *TransformedUserEventsMetadata

func (*ImportMetadata) GetUpdateTime

func (x *ImportMetadata) GetUpdateTime() *timestamppb.Timestamp

func (*ImportMetadata) ProtoMessage

func (*ImportMetadata) ProtoMessage()

func (*ImportMetadata) ProtoReflect

func (x *ImportMetadata) ProtoReflect() protoreflect.Message

func (*ImportMetadata) Reset

func (x *ImportMetadata) Reset()

func (*ImportMetadata) String

func (x *ImportMetadata) String() string

type ImportProductsRequest

type ImportProductsRequest struct {

	// Required.
	// `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
	//
	// If no updateMask is specified, requires products.create permission.
	// If updateMask is specified, requires products.update permission.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Deprecated. This field has no effect.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/import_config.proto.
	RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Required. The desired input location of the data.
	InputConfig *ProductInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	// The desired location of errors incurred during the Import.
	ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,3,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// Indicates which fields in the provided imported `products` to update. If
	// not set, all fields are updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// The mode of reconciliation between existing products and the products to be
	// imported. Defaults to
	// [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
	ReconciliationMode ImportProductsRequest_ReconciliationMode `` /* 190-byte string literal not displayed */
	// Full Pub/Sub topic name for receiving notification. If this field is set,
	// when the import is finished, a notification is sent to
	// specified Pub/Sub topic. The message data is JSON string of a
	// [Operation][google.longrunning.Operation].
	//
	// Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has
	// to be within the same project as
	// [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent].
	// Make sure that `service-<project
	// number>@gcp-sa-retail.iam.gserviceaccount.com` has the
	// `pubsub.topics.publish` IAM permission on the topic.
	NotificationPubsubTopic string `` /* 132-byte string literal not displayed */
	// If true, this performs the FULL import even if it would delete a large
	// proportion of the products in the default branch, which could potentially
	// cause outages if you have live predict/search traffic.
	//
	// Only supported when
	// [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode]
	// is set to `FULL`.
	SkipDefaultBranchProtection bool `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for Import methods.

func (*ImportProductsRequest) Descriptor deprecated

func (*ImportProductsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportProductsRequest.ProtoReflect.Descriptor instead.

func (*ImportProductsRequest) GetErrorsConfig

func (x *ImportProductsRequest) GetErrorsConfig() *ImportErrorsConfig

func (*ImportProductsRequest) GetInputConfig

func (x *ImportProductsRequest) GetInputConfig() *ProductInputConfig

func (*ImportProductsRequest) GetNotificationPubsubTopic

func (x *ImportProductsRequest) GetNotificationPubsubTopic() string

func (*ImportProductsRequest) GetParent

func (x *ImportProductsRequest) GetParent() string

func (*ImportProductsRequest) GetReconciliationMode

func (*ImportProductsRequest) GetRequestId deprecated

func (x *ImportProductsRequest) GetRequestId() string

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/import_config.proto.

func (*ImportProductsRequest) GetSkipDefaultBranchProtection

func (x *ImportProductsRequest) GetSkipDefaultBranchProtection() bool

func (*ImportProductsRequest) GetUpdateMask

func (x *ImportProductsRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*ImportProductsRequest) ProtoMessage

func (*ImportProductsRequest) ProtoMessage()

func (*ImportProductsRequest) ProtoReflect

func (x *ImportProductsRequest) ProtoReflect() protoreflect.Message

func (*ImportProductsRequest) Reset

func (x *ImportProductsRequest) Reset()

func (*ImportProductsRequest) String

func (x *ImportProductsRequest) String() string

type ImportProductsRequest_ReconciliationMode

type ImportProductsRequest_ReconciliationMode int32

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

const (
	// Defaults to INCREMENTAL.
	ImportProductsRequest_RECONCILIATION_MODE_UNSPECIFIED ImportProductsRequest_ReconciliationMode = 0
	// Inserts new products or updates existing products.
	ImportProductsRequest_INCREMENTAL ImportProductsRequest_ReconciliationMode = 1
	// Calculates diff and replaces the entire product dataset. Existing
	// products may be deleted if they are not present in the source location.
	ImportProductsRequest_FULL ImportProductsRequest_ReconciliationMode = 2
)

func (ImportProductsRequest_ReconciliationMode) Descriptor

func (ImportProductsRequest_ReconciliationMode) Enum

func (ImportProductsRequest_ReconciliationMode) EnumDescriptor deprecated

func (ImportProductsRequest_ReconciliationMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ImportProductsRequest_ReconciliationMode.Descriptor instead.

func (ImportProductsRequest_ReconciliationMode) Number

func (ImportProductsRequest_ReconciliationMode) String

func (ImportProductsRequest_ReconciliationMode) Type

type ImportProductsResponse

type ImportProductsResponse struct {

	// A sample of errors encountered while processing the request.
	ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"`
	// Echoes the destination for the complete errors in the request if set.
	ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ImportProductsResponse) Descriptor deprecated

func (*ImportProductsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImportProductsResponse.ProtoReflect.Descriptor instead.

func (*ImportProductsResponse) GetErrorSamples

func (x *ImportProductsResponse) GetErrorSamples() []*status.Status

func (*ImportProductsResponse) GetErrorsConfig

func (x *ImportProductsResponse) GetErrorsConfig() *ImportErrorsConfig

func (*ImportProductsResponse) ProtoMessage

func (*ImportProductsResponse) ProtoMessage()

func (*ImportProductsResponse) ProtoReflect

func (x *ImportProductsResponse) ProtoReflect() protoreflect.Message

func (*ImportProductsResponse) Reset

func (x *ImportProductsResponse) Reset()

func (*ImportProductsResponse) String

func (x *ImportProductsResponse) String() string

type ImportUserEventsRequest

type ImportUserEventsRequest struct {

	// Required. `projects/1234/locations/global/catalogs/default_catalog`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The desired input location of the data.
	InputConfig *UserEventInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	// The desired location of errors incurred during the Import. Cannot be set
	// for inline user event imports.
	ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,3,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ImportUserEvents request.

func (*ImportUserEventsRequest) Descriptor deprecated

func (*ImportUserEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportUserEventsRequest.ProtoReflect.Descriptor instead.

func (*ImportUserEventsRequest) GetErrorsConfig

func (x *ImportUserEventsRequest) GetErrorsConfig() *ImportErrorsConfig

func (*ImportUserEventsRequest) GetInputConfig

func (x *ImportUserEventsRequest) GetInputConfig() *UserEventInputConfig

func (*ImportUserEventsRequest) GetParent

func (x *ImportUserEventsRequest) GetParent() string

func (*ImportUserEventsRequest) ProtoMessage

func (*ImportUserEventsRequest) ProtoMessage()

func (*ImportUserEventsRequest) ProtoReflect

func (x *ImportUserEventsRequest) ProtoReflect() protoreflect.Message

func (*ImportUserEventsRequest) Reset

func (x *ImportUserEventsRequest) Reset()

func (*ImportUserEventsRequest) String

func (x *ImportUserEventsRequest) String() string

type ImportUserEventsResponse

type ImportUserEventsResponse struct {

	// A sample of errors encountered while processing the request.
	ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"`
	// Echoes the destination for the complete errors if this field was set in
	// the request.
	ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"`
	// Aggregated statistics of user event import status.
	ImportSummary *UserEventImportSummary `protobuf:"bytes,3,opt,name=import_summary,json=importSummary,proto3" json:"import_summary,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ImportUserEventsResponse) Descriptor deprecated

func (*ImportUserEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImportUserEventsResponse.ProtoReflect.Descriptor instead.

func (*ImportUserEventsResponse) GetErrorSamples

func (x *ImportUserEventsResponse) GetErrorSamples() []*status.Status

func (*ImportUserEventsResponse) GetErrorsConfig

func (x *ImportUserEventsResponse) GetErrorsConfig() *ImportErrorsConfig

func (*ImportUserEventsResponse) GetImportSummary

func (x *ImportUserEventsResponse) GetImportSummary() *UserEventImportSummary

func (*ImportUserEventsResponse) ProtoMessage

func (*ImportUserEventsResponse) ProtoMessage()

func (*ImportUserEventsResponse) ProtoReflect

func (x *ImportUserEventsResponse) ProtoReflect() protoreflect.Message

func (*ImportUserEventsResponse) Reset

func (x *ImportUserEventsResponse) Reset()

func (*ImportUserEventsResponse) String

func (x *ImportUserEventsResponse) String() string

type Interval

type Interval struct {

	// The lower bound of the interval. If neither of the min fields are set, then
	// the lower bound is negative infinity.
	//
	// This field must not be larger than max.
	// Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Types that are assignable to Min:
	//
	//	*Interval_Minimum
	//	*Interval_ExclusiveMinimum
	Min isInterval_Min `protobuf_oneof:"min"`
	// The upper bound of the interval. If neither of the max fields are set, then
	// the upper bound is positive infinity.
	//
	// This field must be not smaller than min.
	// Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Types that are assignable to Max:
	//
	//	*Interval_Maximum
	//	*Interval_ExclusiveMaximum
	Max isInterval_Max `protobuf_oneof:"max"`
	// contains filtered or unexported fields
}

A floating point interval.

func (*Interval) Descriptor deprecated

func (*Interval) Descriptor() ([]byte, []int)

Deprecated: Use Interval.ProtoReflect.Descriptor instead.

func (*Interval) GetExclusiveMaximum

func (x *Interval) GetExclusiveMaximum() float64

func (*Interval) GetExclusiveMinimum

func (x *Interval) GetExclusiveMinimum() float64

func (*Interval) GetMax

func (m *Interval) GetMax() isInterval_Max

func (*Interval) GetMaximum

func (x *Interval) GetMaximum() float64

func (*Interval) GetMin

func (m *Interval) GetMin() isInterval_Min

func (*Interval) GetMinimum

func (x *Interval) GetMinimum() float64

func (*Interval) ProtoMessage

func (*Interval) ProtoMessage()

func (*Interval) ProtoReflect

func (x *Interval) ProtoReflect() protoreflect.Message

func (*Interval) Reset

func (x *Interval) Reset()

func (*Interval) String

func (x *Interval) String() string

type Interval_ExclusiveMaximum

type Interval_ExclusiveMaximum struct {
	// Exclusive upper bound.
	ExclusiveMaximum float64 `protobuf:"fixed64,4,opt,name=exclusive_maximum,json=exclusiveMaximum,proto3,oneof"`
}

type Interval_ExclusiveMinimum

type Interval_ExclusiveMinimum struct {
	// Exclusive lower bound.
	ExclusiveMinimum float64 `protobuf:"fixed64,2,opt,name=exclusive_minimum,json=exclusiveMinimum,proto3,oneof"`
}

type Interval_Maximum

type Interval_Maximum struct {
	// Inclusive upper bound.
	Maximum float64 `protobuf:"fixed64,3,opt,name=maximum,proto3,oneof"`
}

type Interval_Minimum

type Interval_Minimum struct {
	// Inclusive lower bound.
	Minimum float64 `protobuf:"fixed64,1,opt,name=minimum,proto3,oneof"`
}

type ListCatalogsRequest

type ListCatalogsRequest struct {

	// Required. The account resource name with an associated location.
	//
	// If the caller does not have permission to list
	// [Catalog][google.cloud.retail.v2alpha.Catalog]s under this location,
	// regardless of whether or not this location exists, a PERMISSION_DENIED
	// error is returned.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Maximum number of [Catalog][google.cloud.retail.v2alpha.Catalog]s to
	// return. If unspecified, defaults to 50. The maximum allowed value is 1000.
	// Values above 1000 will be coerced to 1000.
	//
	// If this field is negative, an INVALID_ARGUMENT is returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token
	// [ListCatalogsResponse.next_page_token][google.cloud.retail.v2alpha.ListCatalogsResponse.next_page_token],
	// received from a previous
	// [CatalogService.ListCatalogs][google.cloud.retail.v2alpha.CatalogService.ListCatalogs]
	// call. Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to
	// [CatalogService.ListCatalogs][google.cloud.retail.v2alpha.CatalogService.ListCatalogs]
	// must match the call that provided the page token. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.ListCatalogs][google.cloud.retail.v2alpha.CatalogService.ListCatalogs] method.

func (*ListCatalogsRequest) Descriptor deprecated

func (*ListCatalogsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCatalogsRequest.ProtoReflect.Descriptor instead.

func (*ListCatalogsRequest) GetPageSize

func (x *ListCatalogsRequest) GetPageSize() int32

func (*ListCatalogsRequest) GetPageToken

func (x *ListCatalogsRequest) GetPageToken() string

func (*ListCatalogsRequest) GetParent

func (x *ListCatalogsRequest) GetParent() string

func (*ListCatalogsRequest) ProtoMessage

func (*ListCatalogsRequest) ProtoMessage()

func (*ListCatalogsRequest) ProtoReflect

func (x *ListCatalogsRequest) ProtoReflect() protoreflect.Message

func (*ListCatalogsRequest) Reset

func (x *ListCatalogsRequest) Reset()

func (*ListCatalogsRequest) String

func (x *ListCatalogsRequest) String() string

type ListCatalogsResponse

type ListCatalogsResponse struct {

	// All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
	Catalogs []*Catalog `protobuf:"bytes,1,rep,name=catalogs,proto3" json:"catalogs,omitempty"`
	// A token that can be sent as
	// [ListCatalogsRequest.page_token][google.cloud.retail.v2alpha.ListCatalogsRequest.page_token]
	// to retrieve the next page. If this field is omitted, there are no
	// subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for [CatalogService.ListCatalogs][google.cloud.retail.v2alpha.CatalogService.ListCatalogs] method.

func (*ListCatalogsResponse) Descriptor deprecated

func (*ListCatalogsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCatalogsResponse.ProtoReflect.Descriptor instead.

func (*ListCatalogsResponse) GetCatalogs

func (x *ListCatalogsResponse) GetCatalogs() []*Catalog

func (*ListCatalogsResponse) GetNextPageToken

func (x *ListCatalogsResponse) GetNextPageToken() string

func (*ListCatalogsResponse) ProtoMessage

func (*ListCatalogsResponse) ProtoMessage()

func (*ListCatalogsResponse) ProtoReflect

func (x *ListCatalogsResponse) ProtoReflect() protoreflect.Message

func (*ListCatalogsResponse) Reset

func (x *ListCatalogsResponse) Reset()

func (*ListCatalogsResponse) String

func (x *ListCatalogsResponse) String() string

type ListControlsRequest

type ListControlsRequest struct {

	// Required. The catalog resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Maximum number of results to return. If unspecified, defaults
	// to 50. Max allowed value is 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListControls` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. A filter to apply on the list results. Supported features:
	//
	// * List all the products under the parent branch if
	// [filter][google.cloud.retail.v2alpha.ListControlsRequest.filter] is unset.
	//   - List controls that are used in a single ServingConfig:
	//     'serving_config = "boosted_home_page_cvr"'
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Request for ListControls method.

func (*ListControlsRequest) Descriptor deprecated

func (*ListControlsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListControlsRequest.ProtoReflect.Descriptor instead.

func (*ListControlsRequest) GetFilter

func (x *ListControlsRequest) GetFilter() string

func (*ListControlsRequest) GetPageSize

func (x *ListControlsRequest) GetPageSize() int32

func (*ListControlsRequest) GetPageToken

func (x *ListControlsRequest) GetPageToken() string

func (*ListControlsRequest) GetParent

func (x *ListControlsRequest) GetParent() string

func (*ListControlsRequest) ProtoMessage

func (*ListControlsRequest) ProtoMessage()

func (*ListControlsRequest) ProtoReflect

func (x *ListControlsRequest) ProtoReflect() protoreflect.Message

func (*ListControlsRequest) Reset

func (x *ListControlsRequest) Reset()

func (*ListControlsRequest) String

func (x *ListControlsRequest) String() string

type ListControlsResponse

type ListControlsResponse struct {

	// All the Controls for a given catalog.
	Controls []*Control `protobuf:"bytes,1,rep,name=controls,proto3" json:"controls,omitempty"`
	// Pagination token, if not returned indicates the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for ListControls method.

func (*ListControlsResponse) Descriptor deprecated

func (*ListControlsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListControlsResponse.ProtoReflect.Descriptor instead.

func (*ListControlsResponse) GetControls

func (x *ListControlsResponse) GetControls() []*Control

func (*ListControlsResponse) GetNextPageToken

func (x *ListControlsResponse) GetNextPageToken() string

func (*ListControlsResponse) ProtoMessage

func (*ListControlsResponse) ProtoMessage()

func (*ListControlsResponse) ProtoReflect

func (x *ListControlsResponse) ProtoReflect() protoreflect.Message

func (*ListControlsResponse) Reset

func (x *ListControlsResponse) Reset()

func (*ListControlsResponse) String

func (x *ListControlsResponse) String() string

type ListMerchantCenterAccountLinksRequest added in v1.13.0

type ListMerchantCenterAccountLinksRequest struct {

	// Required. The parent Catalog of the resource.
	// It must match this format:
	// projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

Request for [MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks][google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks] method.

func (*ListMerchantCenterAccountLinksRequest) Descriptor deprecated added in v1.13.0

func (*ListMerchantCenterAccountLinksRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMerchantCenterAccountLinksRequest.ProtoReflect.Descriptor instead.

func (*ListMerchantCenterAccountLinksRequest) GetParent added in v1.13.0

func (*ListMerchantCenterAccountLinksRequest) ProtoMessage added in v1.13.0

func (*ListMerchantCenterAccountLinksRequest) ProtoMessage()

func (*ListMerchantCenterAccountLinksRequest) ProtoReflect added in v1.13.0

func (*ListMerchantCenterAccountLinksRequest) Reset added in v1.13.0

func (*ListMerchantCenterAccountLinksRequest) String added in v1.13.0

type ListMerchantCenterAccountLinksResponse added in v1.13.0

type ListMerchantCenterAccountLinksResponse struct {

	// The links.
	MerchantCenterAccountLinks []*MerchantCenterAccountLink `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response for [MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks][google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks] method.

func (*ListMerchantCenterAccountLinksResponse) Descriptor deprecated added in v1.13.0

func (*ListMerchantCenterAccountLinksResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMerchantCenterAccountLinksResponse.ProtoReflect.Descriptor instead.

func (x *ListMerchantCenterAccountLinksResponse) GetMerchantCenterAccountLinks() []*MerchantCenterAccountLink

func (*ListMerchantCenterAccountLinksResponse) ProtoMessage added in v1.13.0

func (*ListMerchantCenterAccountLinksResponse) ProtoReflect added in v1.13.0

func (*ListMerchantCenterAccountLinksResponse) Reset added in v1.13.0

func (*ListMerchantCenterAccountLinksResponse) String added in v1.13.0

type ListModelsRequest

type ListModelsRequest struct {

	// Required. The parent for which to list models.
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Maximum number of results to return. If unspecified, defaults
	// to 50. Max allowed value is 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListModels`
	// call. Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for listing models associated with a resource.

func (*ListModelsRequest) Descriptor deprecated

func (*ListModelsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.

func (*ListModelsRequest) GetPageSize

func (x *ListModelsRequest) GetPageSize() int32

func (*ListModelsRequest) GetPageToken

func (x *ListModelsRequest) GetPageToken() string

func (*ListModelsRequest) GetParent

func (x *ListModelsRequest) GetParent() string

func (*ListModelsRequest) ProtoMessage

func (*ListModelsRequest) ProtoMessage()

func (*ListModelsRequest) ProtoReflect

func (x *ListModelsRequest) ProtoReflect() protoreflect.Message

func (*ListModelsRequest) Reset

func (x *ListModelsRequest) Reset()

func (*ListModelsRequest) String

func (x *ListModelsRequest) String() string

type ListModelsResponse

type ListModelsResponse struct {

	// List of Models.
	Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
	// Pagination token, if not returned indicates the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response to a ListModelRequest.

func (*ListModelsResponse) Descriptor deprecated

func (*ListModelsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.

func (*ListModelsResponse) GetModels

func (x *ListModelsResponse) GetModels() []*Model

func (*ListModelsResponse) GetNextPageToken

func (x *ListModelsResponse) GetNextPageToken() string

func (*ListModelsResponse) ProtoMessage

func (*ListModelsResponse) ProtoMessage()

func (*ListModelsResponse) ProtoReflect

func (x *ListModelsResponse) ProtoReflect() protoreflect.Message

func (*ListModelsResponse) Reset

func (x *ListModelsResponse) Reset()

func (*ListModelsResponse) String

func (x *ListModelsResponse) String() string

type ListProductsRequest

type ListProductsRequest struct {

	// Required. The parent branch resource name, such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use
	// `default_branch` as the branch ID, to list products under the default
	// branch.
	//
	// If the caller does not have permission to list
	// [Product][google.cloud.retail.v2alpha.Product]s under this branch,
	// regardless of whether or not this branch exists, a PERMISSION_DENIED error
	// is returned.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Maximum number of [Product][google.cloud.retail.v2alpha.Product]s to
	// return. If unspecified, defaults to 100. The maximum allowed value is 1000.
	// Values above 1000 will be coerced to 1000.
	//
	// If this field is negative, an INVALID_ARGUMENT error is returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token
	// [ListProductsResponse.next_page_token][google.cloud.retail.v2alpha.ListProductsResponse.next_page_token],
	// received from a previous
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]
	// call. Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]
	// must match the call that provided the page token. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A filter to apply on the list results. Supported features:
	//
	// * List all the products under the parent branch if
	// [filter][google.cloud.retail.v2alpha.ListProductsRequest.filter] is unset.
	// * List
	// [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s sharing the same
	//
	//	[Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	//	[Product][google.cloud.retail.v2alpha.Product]. For example:
	//	  `primary_product_id = "some_product_id"`
	//
	// * List [Product][google.cloud.retail.v2alpha.Product]s bundled in a
	// [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
	// [Product][google.cloud.retail.v2alpha.Product].
	//
	//	For example:
	//	  `collection_product_id = "some_product_id"`
	//
	// * List [Product][google.cloud.retail.v2alpha.Product]s with a partibular
	// type. For example:
	//
	//	`type = "PRIMARY"`
	//	`type = "VARIANT"`
	//	`type = "COLLECTION"`
	//
	// If the field is unrecognizable, an INVALID_ARGUMENT error is returned.
	//
	// If the specified
	// [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product] or
	// [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
	// [Product][google.cloud.retail.v2alpha.Product] does not exist, a NOT_FOUND
	// error is returned.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// The fields of [Product][google.cloud.retail.v2alpha.Product] to return in
	// the responses. If not set or empty, the following fields are returned:
	//
	// * [Product.name][google.cloud.retail.v2alpha.Product.name]
	// * [Product.id][google.cloud.retail.v2alpha.Product.id]
	// * [Product.title][google.cloud.retail.v2alpha.Product.title]
	// * [Product.uri][google.cloud.retail.v2alpha.Product.uri]
	// * [Product.images][google.cloud.retail.v2alpha.Product.images]
	// * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info]
	// * [Product.brands][google.cloud.retail.v2alpha.Product.brands]
	//
	// If "*" is provided, all fields are returned.
	// [Product.name][google.cloud.retail.v2alpha.Product.name] is always returned
	// no matter what mask is set.
	//
	// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
	// is returned.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// If true and
	// [page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token] is
	// empty,
	// [ListProductsResponse.total_size][google.cloud.retail.v2alpha.ListProductsResponse.total_size]
	// is set to the total count of matched items irrespective of pagination.
	//
	// Notice that setting this field to true affects the performance.
	RequireTotalSize bool `protobuf:"varint,6,opt,name=require_total_size,json=requireTotalSize,proto3" json:"require_total_size,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] method.

func (*ListProductsRequest) Descriptor deprecated

func (*ListProductsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.

func (*ListProductsRequest) GetFilter

func (x *ListProductsRequest) GetFilter() string

func (*ListProductsRequest) GetPageSize

func (x *ListProductsRequest) GetPageSize() int32

func (*ListProductsRequest) GetPageToken

func (x *ListProductsRequest) GetPageToken() string

func (*ListProductsRequest) GetParent

func (x *ListProductsRequest) GetParent() string

func (*ListProductsRequest) GetReadMask

func (x *ListProductsRequest) GetReadMask() *fieldmaskpb.FieldMask

func (*ListProductsRequest) GetRequireTotalSize

func (x *ListProductsRequest) GetRequireTotalSize() bool

func (*ListProductsRequest) ProtoMessage

func (*ListProductsRequest) ProtoMessage()

func (*ListProductsRequest) ProtoReflect

func (x *ListProductsRequest) ProtoReflect() protoreflect.Message

func (*ListProductsRequest) Reset

func (x *ListProductsRequest) Reset()

func (*ListProductsRequest) String

func (x *ListProductsRequest) String() string

type ListProductsResponse

type ListProductsResponse struct {

	// The [Product][google.cloud.retail.v2alpha.Product]s.
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// A token that can be sent as
	// [ListProductsRequest.page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token]
	// to retrieve the next page. If this field is omitted, there are no
	// subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total count of matched [Product][google.cloud.retail.v2alpha.Product]s
	// irrespective of pagination. The total number of
	// [Product][google.cloud.retail.v2alpha.Product]s returned by pagination may
	// be less than the
	// [total_size][google.cloud.retail.v2alpha.ListProductsResponse.total_size]
	// that matches.
	//
	// This field is ignored if
	// [ListProductsRequest.require_total_size][google.cloud.retail.v2alpha.ListProductsRequest.require_total_size]
	// is not set or
	// [ListProductsRequest.page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token]
	// is not empty.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

Response message for [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] method.

func (*ListProductsResponse) Descriptor deprecated

func (*ListProductsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead.

func (*ListProductsResponse) GetNextPageToken

func (x *ListProductsResponse) GetNextPageToken() string

func (*ListProductsResponse) GetProducts

func (x *ListProductsResponse) GetProducts() []*Product

func (*ListProductsResponse) GetTotalSize

func (x *ListProductsResponse) GetTotalSize() int32

func (*ListProductsResponse) ProtoMessage

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) ProtoReflect

func (x *ListProductsResponse) ProtoReflect() protoreflect.Message

func (*ListProductsResponse) Reset

func (x *ListProductsResponse) Reset()

func (*ListProductsResponse) String

func (x *ListProductsResponse) String() string

type ListServingConfigsRequest

type ListServingConfigsRequest struct {

	// Required. The catalog resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Maximum number of results to return. If unspecified, defaults
	// to 100. If a value greater than 100 is provided, at most 100 results are
	// returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListServingConfigs` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for ListServingConfigs method.

func (*ListServingConfigsRequest) Descriptor deprecated

func (*ListServingConfigsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListServingConfigsRequest.ProtoReflect.Descriptor instead.

func (*ListServingConfigsRequest) GetPageSize

func (x *ListServingConfigsRequest) GetPageSize() int32

func (*ListServingConfigsRequest) GetPageToken

func (x *ListServingConfigsRequest) GetPageToken() string

func (*ListServingConfigsRequest) GetParent

func (x *ListServingConfigsRequest) GetParent() string

func (*ListServingConfigsRequest) ProtoMessage

func (*ListServingConfigsRequest) ProtoMessage()

func (*ListServingConfigsRequest) ProtoReflect

func (*ListServingConfigsRequest) Reset

func (x *ListServingConfigsRequest) Reset()

func (*ListServingConfigsRequest) String

func (x *ListServingConfigsRequest) String() string

type ListServingConfigsResponse

type ListServingConfigsResponse struct {

	// All the ServingConfigs for a given catalog.
	ServingConfigs []*ServingConfig `protobuf:"bytes,1,rep,name=serving_configs,json=servingConfigs,proto3" json:"serving_configs,omitempty"`
	// Pagination token, if not returned indicates the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for ListServingConfigs method.

func (*ListServingConfigsResponse) Descriptor deprecated

func (*ListServingConfigsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListServingConfigsResponse.ProtoReflect.Descriptor instead.

func (*ListServingConfigsResponse) GetNextPageToken

func (x *ListServingConfigsResponse) GetNextPageToken() string

func (*ListServingConfigsResponse) GetServingConfigs

func (x *ListServingConfigsResponse) GetServingConfigs() []*ServingConfig

func (*ListServingConfigsResponse) ProtoMessage

func (*ListServingConfigsResponse) ProtoMessage()

func (*ListServingConfigsResponse) ProtoReflect

func (*ListServingConfigsResponse) Reset

func (x *ListServingConfigsResponse) Reset()

func (*ListServingConfigsResponse) String

func (x *ListServingConfigsResponse) String() string

type LocalInventory

type LocalInventory struct {

	// The place ID for the current set of inventory information.
	PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
	// Product price and cost information.
	//
	// Google Merchant Center property
	// [price](https://support.google.com/merchants/answer/6324371).
	PriceInfo *PriceInfo `protobuf:"bytes,2,opt,name=price_info,json=priceInfo,proto3" json:"price_info,omitempty"`
	// Additional local inventory attributes, for example, store name, promotion
	// tags, etc.
	//
	// This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT
	// error is returned:
	//
	//   - At most 30 attributes are allowed.
	//   - The key must be a UTF-8 encoded string with a length limit of 32
	//     characters.
	//   - The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example,
	//     key0LikeThis or KEY_1_LIKE_THIS.
	//   - The attribute values must be of the same type (text or number).
	//   - Only 1 value is allowed for each attribute.
	//   - For text values, the length limit is 256 UTF-8 characters.
	//   - The attribute does not support search. The `searchable` field should be
	//     unset or set to false.
	//   - The max summed total bytes of custom attribute keys and values per
	//     product is 5MiB.
	Attributes map[string]*CustomAttribute `` /* 161-byte string literal not displayed */
	// Input only. Supported fulfillment types. Valid fulfillment type values
	// include commonly used types (such as pickup in store and same day
	// delivery), and custom types. Customers have to map custom types to their
	// display names before rendering UI.
	//
	// Supported values:
	//
	// * "pickup-in-store"
	// * "ship-to-store"
	// * "same-day-delivery"
	// * "next-day-delivery"
	// * "custom-type-1"
	// * "custom-type-2"
	// * "custom-type-3"
	// * "custom-type-4"
	// * "custom-type-5"
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	//
	// All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	FulfillmentTypes []string `protobuf:"bytes,4,rep,name=fulfillment_types,json=fulfillmentTypes,proto3" json:"fulfillment_types,omitempty"`
	// contains filtered or unexported fields
}

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

func (*LocalInventory) Descriptor deprecated

func (*LocalInventory) Descriptor() ([]byte, []int)

Deprecated: Use LocalInventory.ProtoReflect.Descriptor instead.

func (*LocalInventory) GetAttributes

func (x *LocalInventory) GetAttributes() map[string]*CustomAttribute

func (*LocalInventory) GetFulfillmentTypes

func (x *LocalInventory) GetFulfillmentTypes() []string

func (*LocalInventory) GetPlaceId

func (x *LocalInventory) GetPlaceId() string

func (*LocalInventory) GetPriceInfo

func (x *LocalInventory) GetPriceInfo() *PriceInfo

func (*LocalInventory) ProtoMessage

func (*LocalInventory) ProtoMessage()

func (*LocalInventory) ProtoReflect

func (x *LocalInventory) ProtoReflect() protoreflect.Message

func (*LocalInventory) Reset

func (x *LocalInventory) Reset()

func (*LocalInventory) String

func (x *LocalInventory) String() string
type MerchantCenterAccountLink struct {

	// Output only. Immutable. Full resource name of the Merchant Center Account
	// Link, such as
	// `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. Immutable.
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
	// identifier, which is the final component of
	// [name][google.cloud.retail.v2alpha.MerchantCenterAccountLink.name]. This
	// field is auto generated and follows the convention:
	// `BranchId_MerchantCenterAccountId`.
	// `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
	Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
	// Required. The linked [Merchant center account
	// id](https://developers.google.com/shopping-content/guides/accountstatuses).
	// The account must be a standalone account or a sub-account of a MCA.
	MerchantCenterAccountId int64 `` /* 135-byte string literal not displayed */
	// Required. The branch id (e.g. 0/1/2) within the catalog that products from
	// merchant_center_account_id are streamed to. When updating this field, an
	// empty value will use the currently configured default branch. However,
	// changing the default branch later on won't change the linked branch here.
	//
	// A single branch id can only have one linked merchant center account id.
	BranchId string `protobuf:"bytes,3,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	// The FeedLabel used to perform filtering.
	// Note: this replaces
	// [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label).
	//
	// Example value: `US`.
	// Example value: `FeedLabel1`.
	FeedLabel string `protobuf:"bytes,4,opt,name=feed_label,json=feedLabel,proto3" json:"feed_label,omitempty"`
	// Language of the title/description and other string attributes. Use language
	// tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
	// ISO 639-1.
	//
	// This specifies the language of offers in Merchant Center that will be
	// accepted. If empty, no language filtering will be performed.
	//
	// Example value: `en`.
	LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Criteria for the Merchant Center feeds to be ingested via the link.
	// All offers will be ingested if the list is empty.
	// Otherwise the offers will be ingested from selected feeds.
	FeedFilters []*MerchantCenterAccountLink_MerchantCenterFeedFilter `protobuf:"bytes,6,rep,name=feed_filters,json=feedFilters,proto3" json:"feed_filters,omitempty"`
	// Output only. Represents the state of the link.
	State MerchantCenterAccountLink_State `` /* 129-byte string literal not displayed */
	// Output only. GCP project ID.
	ProjectId string `protobuf:"bytes,9,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MerchantCenterAccountLink) Descriptor deprecated added in v1.13.0

func (*MerchantCenterAccountLink) Descriptor() ([]byte, []int)

Deprecated: Use MerchantCenterAccountLink.ProtoReflect.Descriptor instead.

func (*MerchantCenterAccountLink) GetBranchId added in v1.13.0

func (x *MerchantCenterAccountLink) GetBranchId() string

func (*MerchantCenterAccountLink) GetFeedFilters added in v1.13.0

func (*MerchantCenterAccountLink) GetFeedLabel added in v1.13.0

func (x *MerchantCenterAccountLink) GetFeedLabel() string

func (*MerchantCenterAccountLink) GetId added in v1.13.0

func (x *MerchantCenterAccountLink) GetId() string

func (*MerchantCenterAccountLink) GetLanguageCode added in v1.13.0

func (x *MerchantCenterAccountLink) GetLanguageCode() string

func (*MerchantCenterAccountLink) GetMerchantCenterAccountId added in v1.13.0

func (x *MerchantCenterAccountLink) GetMerchantCenterAccountId() int64

func (*MerchantCenterAccountLink) GetName added in v1.13.0

func (x *MerchantCenterAccountLink) GetName() string

func (*MerchantCenterAccountLink) GetProjectId added in v1.13.0

func (x *MerchantCenterAccountLink) GetProjectId() string

func (*MerchantCenterAccountLink) GetState added in v1.13.0

func (*MerchantCenterAccountLink) ProtoMessage added in v1.13.0

func (*MerchantCenterAccountLink) ProtoMessage()

func (*MerchantCenterAccountLink) ProtoReflect added in v1.13.0

func (*MerchantCenterAccountLink) Reset added in v1.13.0

func (x *MerchantCenterAccountLink) Reset()

func (*MerchantCenterAccountLink) String added in v1.13.0

func (x *MerchantCenterAccountLink) String() string

type MerchantCenterAccountLinkServiceClient added in v1.13.0

type MerchantCenterAccountLinkServiceClient interface {
	// Lists all
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]s
	// under the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].
	ListMerchantCenterAccountLinks(ctx context.Context, in *ListMerchantCenterAccountLinksRequest, opts ...grpc.CallOption) (*ListMerchantCenterAccountLinksResponse, error)
	// Creates a
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink].
	CreateMerchantCenterAccountLink(ctx context.Context, in *CreateMerchantCenterAccountLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes a
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink].
	// If the
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
	// to delete does not exist, a NOT_FOUND error is returned.
	DeleteMerchantCenterAccountLink(ctx context.Context, in *DeleteMerchantCenterAccountLinkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

MerchantCenterAccountLinkServiceClient is the client API for MerchantCenterAccountLinkService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMerchantCenterAccountLinkServiceClient added in v1.13.0

func NewMerchantCenterAccountLinkServiceClient(cc grpc.ClientConnInterface) MerchantCenterAccountLinkServiceClient

type MerchantCenterAccountLinkServiceServer added in v1.13.0

type MerchantCenterAccountLinkServiceServer interface {
	// Lists all
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]s
	// under the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].
	ListMerchantCenterAccountLinks(context.Context, *ListMerchantCenterAccountLinksRequest) (*ListMerchantCenterAccountLinksResponse, error)
	// Creates a
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink].
	CreateMerchantCenterAccountLink(context.Context, *CreateMerchantCenterAccountLinkRequest) (*longrunningpb.Operation, error)
	// Deletes a
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink].
	// If the
	// [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
	// to delete does not exist, a NOT_FOUND error is returned.
	DeleteMerchantCenterAccountLink(context.Context, *DeleteMerchantCenterAccountLinkRequest) (*emptypb.Empty, error)
}

MerchantCenterAccountLinkServiceServer is the server API for MerchantCenterAccountLinkService service.

type MerchantCenterAccountLink_MerchantCenterFeedFilter struct {

	// Merchant Center primary feed ID.
	PrimaryFeedId int64 `protobuf:"varint,1,opt,name=primary_feed_id,json=primaryFeedId,proto3" json:"primary_feed_id,omitempty"`
	// Merchant Center primary feed name. The name is used for the display
	// purposes only.
	PrimaryFeedName string `protobuf:"bytes,2,opt,name=primary_feed_name,json=primaryFeedName,proto3" json:"primary_feed_name,omitempty"`
	// contains filtered or unexported fields
}

Merchant Center Feed filter criterion.

Deprecated: Use MerchantCenterAccountLink_MerchantCenterFeedFilter.ProtoReflect.Descriptor instead.

type MerchantCenterAccountLink_State int32

The state of the link.

const (
	// Default value.
	MerchantCenterAccountLink_STATE_UNSPECIFIED MerchantCenterAccountLink_State = 0
	// Link is created and LRO is not complete.
	MerchantCenterAccountLink_PENDING MerchantCenterAccountLink_State = 1
	// Link is active.
	MerchantCenterAccountLink_ACTIVE MerchantCenterAccountLink_State = 2
	// Link creation failed.
	MerchantCenterAccountLink_FAILED MerchantCenterAccountLink_State = 3
)
func (MerchantCenterAccountLink_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use MerchantCenterAccountLink_State.Descriptor instead.

type MerchantCenterFeedFilter added in v1.12.0

type MerchantCenterFeedFilter struct {

	// Merchant Center primary feed ID.
	PrimaryFeedId int64 `protobuf:"varint,1,opt,name=primary_feed_id,json=primaryFeedId,proto3" json:"primary_feed_id,omitempty"`
	// Merchant Center primary feed name. The name is used for the display
	// purposes only.
	PrimaryFeedName string `protobuf:"bytes,2,opt,name=primary_feed_name,json=primaryFeedName,proto3" json:"primary_feed_name,omitempty"`
	// contains filtered or unexported fields
}

Merchant Center Feed filter criterion.

func (*MerchantCenterFeedFilter) Descriptor deprecated added in v1.12.0

func (*MerchantCenterFeedFilter) Descriptor() ([]byte, []int)

Deprecated: Use MerchantCenterFeedFilter.ProtoReflect.Descriptor instead.

func (*MerchantCenterFeedFilter) GetPrimaryFeedId added in v1.12.0

func (x *MerchantCenterFeedFilter) GetPrimaryFeedId() int64

func (*MerchantCenterFeedFilter) GetPrimaryFeedName added in v1.12.0

func (x *MerchantCenterFeedFilter) GetPrimaryFeedName() string

func (*MerchantCenterFeedFilter) ProtoMessage added in v1.12.0

func (*MerchantCenterFeedFilter) ProtoMessage()

func (*MerchantCenterFeedFilter) ProtoReflect added in v1.12.0

func (x *MerchantCenterFeedFilter) ProtoReflect() protoreflect.Message

func (*MerchantCenterFeedFilter) Reset added in v1.12.0

func (x *MerchantCenterFeedFilter) Reset()

func (*MerchantCenterFeedFilter) String added in v1.12.0

func (x *MerchantCenterFeedFilter) String() string
type MerchantCenterLink struct {

	// Required. The linked [Merchant center account
	// ID](https://developers.google.com/shopping-content/guides/accountstatuses).
	// The account must be a standalone account or a sub-account of a MCA.
	MerchantCenterAccountId int64 `` /* 135-byte string literal not displayed */
	// The branch ID (e.g. 0/1/2) within this catalog that products from
	// merchant_center_account_id are streamed to. When updating this field, an
	// empty value will use the currently configured default branch. However,
	// changing the default branch later on won't change the linked branch here.
	//
	// A single branch ID can only have one linked merchant center account ID.
	BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	// String representing the destination to import for, all if left empty.
	// List of possible values is given in [Included
	// destination](https://support.google.com/merchants/answer/7501026).
	// List of allowed string values:
	// "Shopping_ads", "Buy_on_google_listings", "Display_ads", "Local_inventory
	// _ads", "Free_listings", "Free_local_listings"
	// NOTE: The string values are case sensitive.
	Destinations []string `protobuf:"bytes,3,rep,name=destinations,proto3" json:"destinations,omitempty"`
	// Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2
	// code. List of values can be found
	// [here](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)
	// under the `region` tag. If left blank no region filtering will be
	// performed.
	//
	// Example value: `US`.
	RegionCode string `protobuf:"bytes,4,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// Language of the title/description and other string attributes. Use language
	// tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
	// ISO 639-1.
	//
	// This specifies the language of offers in Merchant Center that will be
	// accepted. If  empty no language filtering will be performed.
	//
	// Example value: `en`.
	LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Criteria for the Merchant Center feeds to be ingested via the link.
	// All offers will be ingested if the list is empty.
	// Otherwise the offers will be ingested from selected feeds.
	Feeds []*MerchantCenterFeedFilter `protobuf:"bytes,6,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MerchantCenterLink) Descriptor deprecated

func (*MerchantCenterLink) Descriptor() ([]byte, []int)

Deprecated: Use MerchantCenterLink.ProtoReflect.Descriptor instead.

func (*MerchantCenterLink) GetBranchId

func (x *MerchantCenterLink) GetBranchId() string

func (*MerchantCenterLink) GetDestinations

func (x *MerchantCenterLink) GetDestinations() []string

func (*MerchantCenterLink) GetFeeds added in v1.12.0

func (*MerchantCenterLink) GetLanguageCode

func (x *MerchantCenterLink) GetLanguageCode() string

func (*MerchantCenterLink) GetMerchantCenterAccountId

func (x *MerchantCenterLink) GetMerchantCenterAccountId() int64

func (*MerchantCenterLink) GetRegionCode

func (x *MerchantCenterLink) GetRegionCode() string

func (*MerchantCenterLink) ProtoMessage

func (*MerchantCenterLink) ProtoMessage()

func (*MerchantCenterLink) ProtoReflect

func (x *MerchantCenterLink) ProtoReflect() protoreflect.Message

func (*MerchantCenterLink) Reset

func (x *MerchantCenterLink) Reset()

func (*MerchantCenterLink) String

func (x *MerchantCenterLink) String() string

type MerchantCenterLinkingConfig

type MerchantCenterLinkingConfig struct {

	// Links between Merchant Center accounts and branches.
	Links []*MerchantCenterLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MerchantCenterLinkingConfig) Descriptor deprecated

func (*MerchantCenterLinkingConfig) Descriptor() ([]byte, []int)

Deprecated: Use MerchantCenterLinkingConfig.ProtoReflect.Descriptor instead.

func (*MerchantCenterLinkingConfig) ProtoMessage

func (*MerchantCenterLinkingConfig) ProtoMessage()

func (*MerchantCenterLinkingConfig) ProtoReflect

func (*MerchantCenterLinkingConfig) Reset

func (x *MerchantCenterLinkingConfig) Reset()

func (*MerchantCenterLinkingConfig) String

func (x *MerchantCenterLinkingConfig) String() string

type Model

type Model struct {

	// Training configuration specific to a
	// [Model.type][google.cloud.retail.v2alpha.Model.type] - currently, only for
	// page optimization.
	//
	// Types that are assignable to TrainingConfig:
	//
	//	*Model_PageOptimizationConfig_
	TrainingConfig isModel_TrainingConfig `protobuf_oneof:"training_config"`
	// Required. The fully qualified resource name of the model.
	//
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	// catalog_id has char limit of 50.
	// recommendation_model_id has char limit of 40.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The display name of the model.
	//
	// Should be human readable, used to display Recommendation Models in the
	// Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024
	// characters.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional. The training state that the model is in (e.g.
	// `TRAINING` or `PAUSED`).
	//
	// Since part of the cost of running the service
	// is frequency of training - this can be used to determine when to train
	// model in order to control cost. If not specified: the default value for
	// `CreateModel` method is `TRAINING`. The default value for
	// `UpdateModel` method is to keep the state the same as before.
	TrainingState Model_TrainingState `` /* 154-byte string literal not displayed */
	// Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
	ServingState Model_ServingState `` /* 150-byte string literal not displayed */
	// Output only. Timestamp the Recommendation Model was created at.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp the Recommendation Model was last updated. E.g.
	// if a Recommendation Model was paused - this would be the time the pause was
	// initiated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Required. The type of model e.g. `home-page`.
	//
	// Currently supported values: `recommended-for-you`, `others-you-may-like`,
	// `frequently-bought-together`, `page-optimization`, `similar-items`,
	// `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value).
	//
	// This field together with
	// [optimization_objective][google.cloud.retail.v2alpha.Model.optimization_objective]
	// describe model metadata to use to control model training and serving.
	// See https://cloud.google.com/retail/docs/models
	// for more details on what the model metadata control and which combination
	// of parameters are valid. For invalid combinations of parameters (e.g. type
	// = `frequently-bought-together` and optimization_objective = `ctr`), you
	// receive an error 400 if you try to create/update a recommendation with
	// this set of knobs.
	Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
	// Optional. The optimization objective e.g. `cvr`.
	//
	// Currently supported
	// values: `ctr`, `cvr`, `revenue-per-order`.
	//
	//	If not specified, we choose default based on model type.
	//
	// Default depends on type of recommendation:
	//
	// `recommended-for-you` => `ctr`
	//
	// `others-you-may-like` => `ctr`
	//
	// `frequently-bought-together` => `revenue_per_order`
	//
	// This field together with
	// [optimization_objective][google.cloud.retail.v2alpha.Model.type]
	// describe model metadata to use to control model training and serving.
	// See https://cloud.google.com/retail/docs/models
	// for more details on what the model metadata control and which combination
	// of parameters are valid. For invalid combinations of parameters (e.g. type
	// = `frequently-bought-together` and optimization_objective = `ctr`), you
	// receive an error 400 if you try to create/update a recommendation with
	// this set of knobs.
	OptimizationObjective string `protobuf:"bytes,8,opt,name=optimization_objective,json=optimizationObjective,proto3" json:"optimization_objective,omitempty"`
	// Optional. The state of periodic tuning.
	//
	// The period we use is 3 months - to do a
	// one-off tune earlier use the `TuneModel` method. Default value
	// is `PERIODIC_TUNING_ENABLED`.
	PeriodicTuningState Model_PeriodicTuningState `` /* 181-byte string literal not displayed */
	// Output only. The timestamp when the latest successful tune finished.
	LastTuneTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_tune_time,json=lastTuneTime,proto3" json:"last_tune_time,omitempty"`
	// Output only. The tune operation associated with the model.
	//
	// Can be used to determine if there is an ongoing tune for this
	// recommendation. Empty field implies no tune is goig on.
	TuningOperation string `protobuf:"bytes,15,opt,name=tuning_operation,json=tuningOperation,proto3" json:"tuning_operation,omitempty"`
	// Output only. The state of data requirements for this model: `DATA_OK` and
	// `DATA_ERROR`.
	//
	// Recommendation model cannot be trained if the data is in
	// `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even
	// if serving state is `ACTIVE`: models were trained successfully before, but
	// cannot be refreshed because model no longer has sufficient
	// data for training.
	DataState Model_DataState `` /* 139-byte string literal not displayed */
	// Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering
	// by attributes is enabled for the model.
	FilteringOption RecommendationsFilteringOption `` /* 172-byte string literal not displayed */
	// Output only. The list of valid serving configs associated with the
	// PageOptimizationConfig.
	ServingConfigLists []*Model_ServingConfigList `protobuf:"bytes,19,rep,name=serving_config_lists,json=servingConfigLists,proto3" json:"serving_config_lists,omitempty"`
	// contains filtered or unexported fields
}

Metadata that describes the training and serving parameters of a Model[google.cloud.retail.v2alpha.Model]. A Model[google.cloud.retail.v2alpha.Model] can be associated with a ServingConfig[google.cloud.retail.v2alpha.ServingConfig] and then queried through the Predict API.

func (*Model) Descriptor deprecated

func (*Model) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetCreateTime

func (x *Model) GetCreateTime() *timestamppb.Timestamp

func (*Model) GetDataState

func (x *Model) GetDataState() Model_DataState

func (*Model) GetDisplayName

func (x *Model) GetDisplayName() string

func (*Model) GetFilteringOption

func (x *Model) GetFilteringOption() RecommendationsFilteringOption

func (*Model) GetLastTuneTime

func (x *Model) GetLastTuneTime() *timestamppb.Timestamp

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) GetOptimizationObjective

func (x *Model) GetOptimizationObjective() string

func (*Model) GetPageOptimizationConfig

func (x *Model) GetPageOptimizationConfig() *Model_PageOptimizationConfig

func (*Model) GetPeriodicTuningState

func (x *Model) GetPeriodicTuningState() Model_PeriodicTuningState

func (*Model) GetServingConfigLists

func (x *Model) GetServingConfigLists() []*Model_ServingConfigList

func (*Model) GetServingState

func (x *Model) GetServingState() Model_ServingState

func (*Model) GetTrainingConfig

func (m *Model) GetTrainingConfig() isModel_TrainingConfig

func (*Model) GetTrainingState

func (x *Model) GetTrainingState() Model_TrainingState

func (*Model) GetTuningOperation

func (x *Model) GetTuningOperation() string

func (*Model) GetType

func (x *Model) GetType() string

func (*Model) GetUpdateTime

func (x *Model) GetUpdateTime() *timestamppb.Timestamp

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type ModelServiceClient

type ModelServiceClient interface {
	// Creates a new model.
	CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Gets a model.
	GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error)
	// Pauses the training of an existing model.
	PauseModel(ctx context.Context, in *PauseModelRequest, opts ...grpc.CallOption) (*Model, error)
	// Resumes the training of an existing model.
	ResumeModel(ctx context.Context, in *ResumeModelRequest, opts ...grpc.CallOption) (*Model, error)
	// Deletes an existing model.
	DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Lists all the models linked to this event store.
	ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
	// Update of model metadata. Only fields that
	// currently can be updated are: `filtering_option` and
	// `periodic_tuning_state`.
	// If other values are provided, this API method ignores them.
	UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*Model, error)
	// Tunes an existing model.
	TuneModel(ctx context.Context, in *TuneModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

ModelServiceClient is the client API for ModelService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ModelServiceServer

type ModelServiceServer interface {
	// Creates a new model.
	CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error)
	// Gets a model.
	GetModel(context.Context, *GetModelRequest) (*Model, error)
	// Pauses the training of an existing model.
	PauseModel(context.Context, *PauseModelRequest) (*Model, error)
	// Resumes the training of an existing model.
	ResumeModel(context.Context, *ResumeModelRequest) (*Model, error)
	// Deletes an existing model.
	DeleteModel(context.Context, *DeleteModelRequest) (*emptypb.Empty, error)
	// Lists all the models linked to this event store.
	ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
	// Update of model metadata. Only fields that
	// currently can be updated are: `filtering_option` and
	// `periodic_tuning_state`.
	// If other values are provided, this API method ignores them.
	UpdateModel(context.Context, *UpdateModelRequest) (*Model, error)
	// Tunes an existing model.
	TuneModel(context.Context, *TuneModelRequest) (*longrunningpb.Operation, error)
}

ModelServiceServer is the server API for ModelService service.

type Model_DataState

type Model_DataState int32

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

const (
	// Unspecified default value, should never be explicitly set.
	Model_DATA_STATE_UNSPECIFIED Model_DataState = 0
	// The model has sufficient training data.
	Model_DATA_OK Model_DataState = 1
	// The model does not have sufficient training data. Error
	// messages can be queried via Stackdriver.
	Model_DATA_ERROR Model_DataState = 2
)

func (Model_DataState) Descriptor

func (Model_DataState) Enum

func (x Model_DataState) Enum() *Model_DataState

func (Model_DataState) EnumDescriptor deprecated

func (Model_DataState) EnumDescriptor() ([]byte, []int)

Deprecated: Use Model_DataState.Descriptor instead.

func (Model_DataState) Number

func (Model_DataState) String

func (x Model_DataState) String() string

func (Model_DataState) Type

type Model_PageOptimizationConfig

type Model_PageOptimizationConfig struct {

	// Required. The type of [UserEvent][google.cloud.retail.v2alpha.UserEvent]
	// this page optimization is shown for.
	//
	// Each page has an associated event type - this will be the
	// corresponding event type for the page that the page optimization
	// model is used on.
	//
	// Supported types:
	//
	// * `add-to-cart`: Products being added to cart.
	// * `detail-page-view`: Products detail page viewed.
	// * `home-page-view`: Homepage viewed
	// * `category-page-view`: Homepage viewed
	// * `shopping-cart-page-view`: User viewing a shopping cart.
	//
	// `home-page-view` only allows models with type `recommended-for-you`.
	// All other page_optimization_event_type allow all
	// [Model.types][google.cloud.retail.v2alpha.Model.type].
	PageOptimizationEventType string `` /* 140-byte string literal not displayed */
	// Required. A list of panel configurations.
	//
	// Limit = 5.
	Panels []*Model_PageOptimizationConfig_Panel `protobuf:"bytes,2,rep,name=panels,proto3" json:"panels,omitempty"`
	// Optional. How to restrict results across panels e.g. can the same
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] be shown on
	// multiple panels at once.
	//
	// If unspecified, default to `UNIQUE_MODEL_RESTRICTION`.
	Restriction Model_PageOptimizationConfig_Restriction `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

The PageOptimizationConfig for model training.

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

func (*Model_PageOptimizationConfig) Descriptor deprecated

func (*Model_PageOptimizationConfig) Descriptor() ([]byte, []int)

Deprecated: Use Model_PageOptimizationConfig.ProtoReflect.Descriptor instead.

func (*Model_PageOptimizationConfig) GetPageOptimizationEventType

func (x *Model_PageOptimizationConfig) GetPageOptimizationEventType() string

func (*Model_PageOptimizationConfig) GetPanels

func (*Model_PageOptimizationConfig) GetRestriction

func (*Model_PageOptimizationConfig) ProtoMessage

func (*Model_PageOptimizationConfig) ProtoMessage()

func (*Model_PageOptimizationConfig) ProtoReflect

func (*Model_PageOptimizationConfig) Reset

func (x *Model_PageOptimizationConfig) Reset()

func (*Model_PageOptimizationConfig) String

type Model_PageOptimizationConfig_

type Model_PageOptimizationConfig_ struct {
	// Optional. The page optimization config.
	PageOptimizationConfig *Model_PageOptimizationConfig `protobuf:"bytes,17,opt,name=page_optimization_config,json=pageOptimizationConfig,proto3,oneof"`
}

type Model_PageOptimizationConfig_Candidate

type Model_PageOptimizationConfig_Candidate struct {

	// Types that are assignable to Candidate:
	//
	//	*Model_PageOptimizationConfig_Candidate_ServingConfigId
	Candidate isModel_PageOptimizationConfig_Candidate_Candidate `protobuf_oneof:"candidate"`
	// contains filtered or unexported fields
}

A candidate to consider for a given panel. Currently only ServingConfig[google.cloud.retail.v2alpha.ServingConfig] are valid candidates.

func (*Model_PageOptimizationConfig_Candidate) Descriptor deprecated

func (*Model_PageOptimizationConfig_Candidate) Descriptor() ([]byte, []int)

Deprecated: Use Model_PageOptimizationConfig_Candidate.ProtoReflect.Descriptor instead.

func (*Model_PageOptimizationConfig_Candidate) GetCandidate

func (m *Model_PageOptimizationConfig_Candidate) GetCandidate() isModel_PageOptimizationConfig_Candidate_Candidate

func (*Model_PageOptimizationConfig_Candidate) GetServingConfigId

func (x *Model_PageOptimizationConfig_Candidate) GetServingConfigId() string

func (*Model_PageOptimizationConfig_Candidate) ProtoMessage

func (*Model_PageOptimizationConfig_Candidate) ProtoReflect

func (*Model_PageOptimizationConfig_Candidate) Reset

func (*Model_PageOptimizationConfig_Candidate) String

type Model_PageOptimizationConfig_Candidate_ServingConfigId

type Model_PageOptimizationConfig_Candidate_ServingConfigId struct {
	// This has to be a valid
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]
	// identifier. For example, for a ServingConfig with full name:
	// `projects/*/locations/global/catalogs/default_catalog/servingConfigs/my_candidate_config`,
	// this would be `my_candidate_config`.
	ServingConfigId string `protobuf:"bytes,1,opt,name=serving_config_id,json=servingConfigId,proto3,oneof"`
}

type Model_PageOptimizationConfig_Panel

type Model_PageOptimizationConfig_Panel struct {

	// Optional. The name to display for the panel.
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Required. The candidates to consider on the panel.
	Candidates []*Model_PageOptimizationConfig_Candidate `protobuf:"bytes,2,rep,name=candidates,proto3" json:"candidates,omitempty"`
	// Required. The default candidate. If the model fails at serving time,
	// we fall back to the default.
	DefaultCandidate *Model_PageOptimizationConfig_Candidate `protobuf:"bytes,3,opt,name=default_candidate,json=defaultCandidate,proto3" json:"default_candidate,omitempty"`
	// contains filtered or unexported fields
}

An individual panel with a list of [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] to consider for it.

func (*Model_PageOptimizationConfig_Panel) Descriptor deprecated

func (*Model_PageOptimizationConfig_Panel) Descriptor() ([]byte, []int)

Deprecated: Use Model_PageOptimizationConfig_Panel.ProtoReflect.Descriptor instead.

func (*Model_PageOptimizationConfig_Panel) GetCandidates

func (*Model_PageOptimizationConfig_Panel) GetDefaultCandidate

func (*Model_PageOptimizationConfig_Panel) GetDisplayName

func (x *Model_PageOptimizationConfig_Panel) GetDisplayName() string

func (*Model_PageOptimizationConfig_Panel) ProtoMessage

func (*Model_PageOptimizationConfig_Panel) ProtoMessage()

func (*Model_PageOptimizationConfig_Panel) ProtoReflect

func (*Model_PageOptimizationConfig_Panel) Reset

func (*Model_PageOptimizationConfig_Panel) String

type Model_PageOptimizationConfig_Restriction

type Model_PageOptimizationConfig_Restriction int32

Restrictions of expected returned results.

const (
	// Unspecified value for restriction.
	Model_PageOptimizationConfig_RESTRICTION_UNSPECIFIED Model_PageOptimizationConfig_Restriction = 0
	// Allow any [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to
	// be show on any number of panels.
	//
	// Example:
	//
	// `Panel1 candidates`: pdp_ctr, pdp_cvr, home_page_ctr_no_diversity
	//
	// `Panel2 candidates`: home_page_ctr_no_diversity,
	// home_page_ctr_diversity,
	//
	//	pdp_cvr_no_diversity
	//
	// `Restriction` = NO_RESTRICTION
	//
	// `Valid combinations`:
	//
	//   - <i> (pdp_ctr, home_page_ctr_no_diversity)
	//   - (pdp_ctr, home_page_ctr_diversity)
	//   - (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_cvr, home_page_ctr_no_diversity)
	//   - (pdp_cvr, home_page_ctr_diversity)
	//   - (pdp_cvr, pdp_cvr_no_diversity)
	//   - (home_page_ctr_no_diversity, home_page_ctr_no_diversity)
	//   - (home_page_ctr_no_diversity, home_page_ctr_diversity)
	//   - (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i>
	//
	// `Invalid combinations`: []
	Model_PageOptimizationConfig_NO_RESTRICTION Model_PageOptimizationConfig_Restriction = 1
	// Do not allow the same
	// [ServingConfig.name][google.cloud.retail.v2alpha.ServingConfig.name] to
	// be shown on multiple panels.
	//
	// Example:
	//
	// `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity
	// </i>
	//
	// `Panel2 candidates`: <i> home_page_ctr_no_diversity,
	// home_page_ctr_diversity_low,
	//
	//	pdp_cvr_no_diversity </i>
	//
	// `Restriction` = `UNIQUE_SERVING_CONFIG_RESTRICTION`
	//
	// `Valid combinations`:
	//
	//   - <i> (pdp_ctr, home_page_ctr_no_diversity)
	//   - (pdp_ctr, home_page_ctr_diversity_low)
	//   - (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_cvr, home_page_ctr_no_diversity)
	//   - (pdp_cvr, home_page_ctr_diversity_low)
	//   - (pdp_cvr, pdp_cvr_no_diversity)
	//   - (home_page_ctr_no_diversity, home_page_ctr_diversity_low)
	//   - (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i>
	//
	// `Invalid combinations`:
	//
	//   - <i> (home_page_ctr_no_diversity, home_page_ctr_no_diversity) </i>
	Model_PageOptimizationConfig_UNIQUE_SERVING_CONFIG_RESTRICTION Model_PageOptimizationConfig_Restriction = 2
	// Do not allow multiple
	// [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same
	// [Model.name][google.cloud.retail.v2alpha.Model.name] to be show on on
	// different panels.
	//
	// Example:
	//
	// `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity
	// </i>
	//
	// `Panel2 candidates`: <i> home_page_ctr_no_diversity,
	// home_page_ctr_diversity_low,
	//
	//	pdp_cvr_no_diversity </i>
	//
	// `Restriction` = `UNIQUE_MODEL_RESTRICTION`
	//
	// `Valid combinations`:
	//
	//   - <i> (pdp_ctr, home_page_ctr_no_diversity)
	//   - (pdp_ctr, home_page_ctr_diversity)
	//   - (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_cvr, home_page_ctr_no_diversity)
	//   - (pdp_cvr, home_page_ctr_diversity_low)
	//   - (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i>
	//
	// `Invalid combinations`:
	//
	//   - <i> (home_page_ctr_no_diversity, home_page_ctr_no_diversity)
	//   - (pdp_cvr, pdp_cvr_no_diversity) </i>
	Model_PageOptimizationConfig_UNIQUE_MODEL_RESTRICTION Model_PageOptimizationConfig_Restriction = 3
	// Do not allow multiple
	// [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same
	// [Model.type][google.cloud.retail.v2alpha.Model.type] to be shown on
	// different panels.
	//
	// Example:
	//
	// `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity
	// </i>
	//
	// `Panel2 candidates`: <i> home_page_ctr_no_diversity,
	// home_page_ctr_diversity_low,
	//
	//	pdp_cvr_no_diversity </i>
	//
	// `Restriction` = `UNIQUE_MODEL_RESTRICTION`
	//
	// `Valid combinations`:
	//
	// * <i> (pdp_ctr, home_page_ctr_no_diversity)
	// * (pdp_ctr, home_page_ctr_diversity)
	// * (pdp_cvr, home_page_ctr_no_diversity)
	// *   (pdp_cvr, home_page_ctr_diversity_low)
	// * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i>
	//
	// `Invalid combinations`:
	//
	//   - <i> (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_ctr, pdp_cvr_no_diversity)
	//   - (pdp_cvr, pdp_cvr_no_diversity)
	//   - (home_page_ctr_no_diversity, home_page_ctr_no_diversity)
	//   - (home_page_ctr_no_diversity, home_page_ctr_diversity) </i>
	Model_PageOptimizationConfig_UNIQUE_MODEL_TYPE_RESTRICTION Model_PageOptimizationConfig_Restriction = 4
)

func (Model_PageOptimizationConfig_Restriction) Descriptor

func (Model_PageOptimizationConfig_Restriction) Enum

func (Model_PageOptimizationConfig_Restriction) EnumDescriptor deprecated

func (Model_PageOptimizationConfig_Restriction) EnumDescriptor() ([]byte, []int)

Deprecated: Use Model_PageOptimizationConfig_Restriction.Descriptor instead.

func (Model_PageOptimizationConfig_Restriction) Number

func (Model_PageOptimizationConfig_Restriction) String

func (Model_PageOptimizationConfig_Restriction) Type

type Model_PeriodicTuningState

type Model_PeriodicTuningState int32

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

const (
	// Unspecified default value, should never be explicitly set.
	Model_PERIODIC_TUNING_STATE_UNSPECIFIED Model_PeriodicTuningState = 0
	// The model has periodic tuning disabled. Tuning
	// can be reenabled by calling the `EnableModelPeriodicTuning`
	// method or by calling the `TuneModel` method.
	Model_PERIODIC_TUNING_DISABLED Model_PeriodicTuningState = 1
	// The model cannot be tuned with periodic tuning OR the
	// `TuneModel` method. Hide the options in customer UI and
	// reject any requests through the backend self serve API.
	Model_ALL_TUNING_DISABLED Model_PeriodicTuningState = 3
	// The model has periodic tuning enabled. Tuning
	// can be disabled by calling the `DisableModelPeriodicTuning`
	// method.
	Model_PERIODIC_TUNING_ENABLED Model_PeriodicTuningState = 2
)

func (Model_PeriodicTuningState) Descriptor

func (Model_PeriodicTuningState) Enum

func (Model_PeriodicTuningState) EnumDescriptor deprecated

func (Model_PeriodicTuningState) EnumDescriptor() ([]byte, []int)

Deprecated: Use Model_PeriodicTuningState.Descriptor instead.

func (Model_PeriodicTuningState) Number

func (Model_PeriodicTuningState) String

func (x Model_PeriodicTuningState) String() string

func (Model_PeriodicTuningState) Type

type Model_ServingConfigList

type Model_ServingConfigList struct {

	// Optional. A set of valid serving configs that may be used for
	// `PAGE_OPTIMIZATION`.
	ServingConfigIds []string `protobuf:"bytes,1,rep,name=serving_config_ids,json=servingConfigIds,proto3" json:"serving_config_ids,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Model_ServingConfigList) Descriptor deprecated

func (*Model_ServingConfigList) Descriptor() ([]byte, []int)

Deprecated: Use Model_ServingConfigList.ProtoReflect.Descriptor instead.

func (*Model_ServingConfigList) GetServingConfigIds

func (x *Model_ServingConfigList) GetServingConfigIds() []string

func (*Model_ServingConfigList) ProtoMessage

func (*Model_ServingConfigList) ProtoMessage()

func (*Model_ServingConfigList) ProtoReflect

func (x *Model_ServingConfigList) ProtoReflect() protoreflect.Message

func (*Model_ServingConfigList) Reset

func (x *Model_ServingConfigList) Reset()

func (*Model_ServingConfigList) String

func (x *Model_ServingConfigList) String() string

type Model_ServingState

type Model_ServingState int32

The serving state of the model.

const (
	// Unspecified serving state.
	Model_SERVING_STATE_UNSPECIFIED Model_ServingState = 0
	// The model is not serving.
	Model_INACTIVE Model_ServingState = 1
	// The model is serving and can be queried.
	Model_ACTIVE Model_ServingState = 2
	// The model is trained on tuned hyperparameters and can be
	// queried.
	Model_TUNED Model_ServingState = 3
)

func (Model_ServingState) Descriptor

func (Model_ServingState) Enum

func (Model_ServingState) EnumDescriptor deprecated

func (Model_ServingState) EnumDescriptor() ([]byte, []int)

Deprecated: Use Model_ServingState.Descriptor instead.

func (Model_ServingState) Number

func (Model_ServingState) String

func (x Model_ServingState) String() string

func (Model_ServingState) Type

type Model_TrainingState

type Model_TrainingState int32

The training state of the model.

const (
	// Unspecified training state.
	Model_TRAINING_STATE_UNSPECIFIED Model_TrainingState = 0
	// The model training is paused.
	Model_PAUSED Model_TrainingState = 1
	// The model is training.
	Model_TRAINING Model_TrainingState = 2
)

func (Model_TrainingState) Descriptor

func (Model_TrainingState) Enum

func (Model_TrainingState) EnumDescriptor deprecated

func (Model_TrainingState) EnumDescriptor() ([]byte, []int)

Deprecated: Use Model_TrainingState.Descriptor instead.

func (Model_TrainingState) Number

func (Model_TrainingState) String

func (x Model_TrainingState) String() string

func (Model_TrainingState) Type

type OutputConfig added in v1.15.0

type OutputConfig struct {

	// The configuration of destination for holding output data.
	//
	// Types that are assignable to Destination:
	//
	//	*OutputConfig_GcsDestination_
	//	*OutputConfig_BigqueryDestination
	Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

The output configuration setting.

func (*OutputConfig) Descriptor deprecated added in v1.15.0

func (*OutputConfig) Descriptor() ([]byte, []int)

Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.

func (*OutputConfig) GetBigqueryDestination added in v1.15.0

func (x *OutputConfig) GetBigqueryDestination() *OutputConfig_BigQueryDestination

func (*OutputConfig) GetDestination added in v1.15.0

func (m *OutputConfig) GetDestination() isOutputConfig_Destination

func (*OutputConfig) GetGcsDestination added in v1.15.0

func (x *OutputConfig) GetGcsDestination() *OutputConfig_GcsDestination

func (*OutputConfig) ProtoMessage added in v1.15.0

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) ProtoReflect added in v1.15.0

func (x *OutputConfig) ProtoReflect() protoreflect.Message

func (*OutputConfig) Reset added in v1.15.0

func (x *OutputConfig) Reset()

func (*OutputConfig) String added in v1.15.0

func (x *OutputConfig) String() string

type OutputConfig_BigQueryDestination added in v1.15.0

type OutputConfig_BigQueryDestination struct {

	// Required. The ID of a BigQuery Dataset.
	DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
	// Required. The prefix of exported BigQuery tables.
	TableIdPrefix string `protobuf:"bytes,2,opt,name=table_id_prefix,json=tableIdPrefix,proto3" json:"table_id_prefix,omitempty"`
	// Required. Describes the table type. The following values are supported:
	//
	// * `table`: A BigQuery native table.
	// * `view`: A virtual table defined by a SQL query.
	TableType string `protobuf:"bytes,3,opt,name=table_type,json=tableType,proto3" json:"table_type,omitempty"`
	// contains filtered or unexported fields
}

The BigQuery output destination configuration.

func (*OutputConfig_BigQueryDestination) Descriptor deprecated added in v1.15.0

func (*OutputConfig_BigQueryDestination) Descriptor() ([]byte, []int)

Deprecated: Use OutputConfig_BigQueryDestination.ProtoReflect.Descriptor instead.

func (*OutputConfig_BigQueryDestination) GetDatasetId added in v1.15.0

func (x *OutputConfig_BigQueryDestination) GetDatasetId() string

func (*OutputConfig_BigQueryDestination) GetTableIdPrefix added in v1.15.0

func (x *OutputConfig_BigQueryDestination) GetTableIdPrefix() string

func (*OutputConfig_BigQueryDestination) GetTableType added in v1.15.0

func (x *OutputConfig_BigQueryDestination) GetTableType() string

func (*OutputConfig_BigQueryDestination) ProtoMessage added in v1.15.0

func (*OutputConfig_BigQueryDestination) ProtoMessage()

func (*OutputConfig_BigQueryDestination) ProtoReflect added in v1.15.0

func (*OutputConfig_BigQueryDestination) Reset added in v1.15.0

func (*OutputConfig_BigQueryDestination) String added in v1.15.0

type OutputConfig_BigqueryDestination added in v1.15.0

type OutputConfig_BigqueryDestination struct {
	// The BigQuery location where the output is to be written to.
	BigqueryDestination *OutputConfig_BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"`
}

type OutputConfig_GcsDestination added in v1.15.0

type OutputConfig_GcsDestination struct {

	// Required. The output uri prefix for saving output data to json files.
	// Some mapping examples are as follows:
	// output_uri_prefix         sample output(assuming the object is foo.json)
	// ========================  =============================================
	// gs://bucket/              gs://bucket/foo.json
	// gs://bucket/folder/       gs://bucket/folder/foo.json
	// gs://bucket/folder/item_  gs://bucket/folder/item_foo.json
	OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
	// contains filtered or unexported fields
}

The Google Cloud Storage output destination configuration.

func (*OutputConfig_GcsDestination) Descriptor deprecated added in v1.15.0

func (*OutputConfig_GcsDestination) Descriptor() ([]byte, []int)

Deprecated: Use OutputConfig_GcsDestination.ProtoReflect.Descriptor instead.

func (*OutputConfig_GcsDestination) GetOutputUriPrefix added in v1.15.0

func (x *OutputConfig_GcsDestination) GetOutputUriPrefix() string

func (*OutputConfig_GcsDestination) ProtoMessage added in v1.15.0

func (*OutputConfig_GcsDestination) ProtoMessage()

func (*OutputConfig_GcsDestination) ProtoReflect added in v1.15.0

func (*OutputConfig_GcsDestination) Reset added in v1.15.0

func (x *OutputConfig_GcsDestination) Reset()

func (*OutputConfig_GcsDestination) String added in v1.15.0

func (x *OutputConfig_GcsDestination) String() string

type OutputConfig_GcsDestination_ added in v1.15.0

type OutputConfig_GcsDestination_ struct {
	// The Google Cloud Storage location where the output is to be written to.
	GcsDestination *OutputConfig_GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}

type OutputResult

type OutputResult struct {

	// The BigQuery location where the result is stored.
	BigqueryResult []*BigQueryOutputResult `protobuf:"bytes,1,rep,name=bigquery_result,json=bigqueryResult,proto3" json:"bigquery_result,omitempty"`
	// The Google Cloud Storage location where the result is stored.
	GcsResult []*GcsOutputResult `protobuf:"bytes,2,rep,name=gcs_result,json=gcsResult,proto3" json:"gcs_result,omitempty"`
	// contains filtered or unexported fields
}

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

func (*OutputResult) Descriptor deprecated

func (*OutputResult) Descriptor() ([]byte, []int)

Deprecated: Use OutputResult.ProtoReflect.Descriptor instead.

func (*OutputResult) GetBigqueryResult

func (x *OutputResult) GetBigqueryResult() []*BigQueryOutputResult

func (*OutputResult) GetGcsResult added in v1.12.0

func (x *OutputResult) GetGcsResult() []*GcsOutputResult

func (*OutputResult) ProtoMessage

func (*OutputResult) ProtoMessage()

func (*OutputResult) ProtoReflect

func (x *OutputResult) ProtoReflect() protoreflect.Message

func (*OutputResult) Reset

func (x *OutputResult) Reset()

func (*OutputResult) String

func (x *OutputResult) String() string

type PauseModelRequest

type PauseModelRequest struct {

	// Required. The name of the model to pause.
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for pausing training of a model.

func (*PauseModelRequest) Descriptor deprecated

func (*PauseModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use PauseModelRequest.ProtoReflect.Descriptor instead.

func (*PauseModelRequest) GetName

func (x *PauseModelRequest) GetName() string

func (*PauseModelRequest) ProtoMessage

func (*PauseModelRequest) ProtoMessage()

func (*PauseModelRequest) ProtoReflect

func (x *PauseModelRequest) ProtoReflect() protoreflect.Message

func (*PauseModelRequest) Reset

func (x *PauseModelRequest) Reset()

func (*PauseModelRequest) String

func (x *PauseModelRequest) String() string

type PredictRequest

type PredictRequest struct {

	// Required. Full resource name of the format:
	// `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}`
	// or
	// `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`.
	// We recommend using the `servingConfigs` resource. `placements` is a legacy
	// resource.
	// The ID of the Recommendations AI serving config or placement.
	// Before you can request predictions from your model, you must create at
	// least one serving config or placement for it. For more information, see
	// [Manage serving configs]
	// (https://cloud.google.com/retail/docs/manage-configs).
	//
	// The full list of available serving configs can be seen at
	// https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs
	Placement string `protobuf:"bytes,1,opt,name=placement,proto3" json:"placement,omitempty"`
	// Required. Context about the user, what they are looking at and what action
	// they took to trigger the predict request. Note that this user event detail
	// won't be ingested to userEvent logs. Thus, a separate userEvent write
	// request is required for event logging.
	//
	// Don't set
	// [UserEvent.visitor_id][google.cloud.retail.v2alpha.UserEvent.visitor_id] or
	// [UserInfo.user_id][google.cloud.retail.v2alpha.UserInfo.user_id] to the
	// same fixed ID for different users. If you are trying to receive
	// non-personalized recommendations (not recommended; this can negatively
	// impact model performance), instead set
	// [UserEvent.visitor_id][google.cloud.retail.v2alpha.UserEvent.visitor_id] to
	// a random unique ID and leave
	// [UserInfo.user_id][google.cloud.retail.v2alpha.UserInfo.user_id] unset.
	UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
	// Maximum number of results to return. Set this property to the number of
	// prediction results needed. If zero, the service will choose a reasonable
	// default. The maximum allowed value is 100. Values above 100 will be coerced
	// to 100.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// This field is not used; leave it unset.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/prediction_service.proto.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Filter for restricting prediction results with a length limit of 5,000
	// characters. Accepts values for tags and the `filterOutOfStockItems` flag.
	//
	//   - Tag expressions. Restricts predictions to products that match all of the
	//     specified tags. Boolean operators `OR` and `NOT` are supported if the
	//     expression is enclosed in parentheses, and must be separated from the
	//     tag values by a space. `-"tagA"` is also supported and is equivalent to
	//     `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded strings
	//     with a size limit of 1,000 characters.
	//
	//     Note: "Recently viewed" models don't support tag filtering at the
	//     moment.
	//
	//   - filterOutOfStockItems. Restricts predictions to products that do not
	//     have a
	//     stockState value of OUT_OF_STOCK.
	//
	// Examples:
	//
	//   - tag=("Red" OR "Blue") tag="New-Arrival" tag=(NOT "promotional")
	//   - filterOutOfStockItems  tag=(-"promotional")
	//   - filterOutOfStockItems
	//
	// If your filter blocks all prediction results, the API will return *no*
	// results. If instead you want empty result sets to return generic
	// (unfiltered) popular products, set `strictFiltering` to False in
	// `PredictRequest.params`. Note that the API will never return items with
	// storageStatus of "EXPIRED" or "DELETED" regardless of filter choices.
	//
	// If `filterSyntaxV2` is set to true under the `params` field, then
	// attribute-based expressions are expected instead of the above described
	// tag-based syntax. Examples:
	//
	//   - (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones"))
	//   - (availability: ANY("IN_STOCK")) AND
	//     (colors: ANY("Red") OR categories: ANY("Phones"))
	//
	// For more information, see
	// [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).
	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// Use validate only mode for this prediction query. If set to true, a
	// dummy model will be used that returns arbitrary products.
	// Note that the validate only mode should only be used for testing the API,
	// or if the model is not ready.
	ValidateOnly bool `protobuf:"varint,6,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// Additional domain specific parameters for the predictions.
	//
	// Allowed values:
	//
	//   - `returnProduct`: Boolean. If set to true, the associated product
	//     object will be returned in the `results.metadata` field in the
	//     prediction response.
	//   - `returnScore`: Boolean. If set to true, the prediction 'score'
	//     corresponding to each returned product will be set in the
	//     `results.metadata` field in the prediction response. The given
	//     'score' indicates the probability of a product being clicked/purchased
	//     given the user's context and history.
	//   - `strictFiltering`: Boolean. True by default. If set to false, the service
	//     will return generic (unfiltered) popular products instead of empty if
	//     your filter blocks all prediction results.
	//   - `priceRerankLevel`: String. Default empty. If set to be non-empty, then
	//     it needs to be one of {'no-price-reranking', 'low-price-reranking',
	//     'medium-price-reranking', 'high-price-reranking'}. This gives
	//     request-level control and adjusts prediction results based on product
	//     price.
	//   - `diversityLevel`: String. Default empty. If set to be non-empty, then
	//     it needs to be one of {'no-diversity', 'low-diversity',
	//     'medium-diversity', 'high-diversity', 'auto-diversity'}. This gives
	//     request-level control and adjusts prediction results based on product
	//     category.
	//   - `filterSyntaxV2`: Boolean. False by default. If set to true, the `filter`
	//     field is interpreteted according to the new, attribute-based syntax.
	Params map[string]*structpb.Value `` /* 153-byte string literal not displayed */
	// The labels applied to a resource must meet the following requirements:
	//
	//   - Each resource can have multiple labels, up to a maximum of 64.
	//   - Each label must be a key-value pair.
	//   - Keys have a minimum length of 1 character and a maximum length of 63
	//     characters and cannot be empty. Values can be empty and have a maximum
	//     length of 63 characters.
	//   - Keys and values can contain only lowercase letters, numeric characters,
	//     underscores, and dashes. All characters must use UTF-8 encoding, and
	//     international characters are allowed.
	//   - The key portion of a label must be unique. However, you can use the same
	//     key with multiple resources.
	//   - Keys must start with a lowercase letter or international character.
	//
	// See [Google Cloud
	// Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
	// for more details.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for Predict method.

func (*PredictRequest) Descriptor deprecated

func (*PredictRequest) Descriptor() ([]byte, []int)

Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.

func (*PredictRequest) GetFilter

func (x *PredictRequest) GetFilter() string

func (*PredictRequest) GetLabels

func (x *PredictRequest) GetLabels() map[string]string

func (*PredictRequest) GetPageSize

func (x *PredictRequest) GetPageSize() int32

func (*PredictRequest) GetPageToken deprecated

func (x *PredictRequest) GetPageToken() string

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/prediction_service.proto.

func (*PredictRequest) GetParams

func (x *PredictRequest) GetParams() map[string]*structpb.Value

func (*PredictRequest) GetPlacement

func (x *PredictRequest) GetPlacement() string

func (*PredictRequest) GetUserEvent

func (x *PredictRequest) GetUserEvent() *UserEvent

func (*PredictRequest) GetValidateOnly

func (x *PredictRequest) GetValidateOnly() bool

func (*PredictRequest) ProtoMessage

func (*PredictRequest) ProtoMessage()

func (*PredictRequest) ProtoReflect

func (x *PredictRequest) ProtoReflect() protoreflect.Message

func (*PredictRequest) Reset

func (x *PredictRequest) Reset()

func (*PredictRequest) String

func (x *PredictRequest) String() string

type PredictResponse

type PredictResponse struct {

	// A list of recommended products. The order represents the ranking (from the
	// most relevant product to the least).
	Results []*PredictResponse_PredictionResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// A unique attribution token. This should be included in the
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent] logs resulting from this
	// recommendation, which enables accurate attribution of recommendation model
	// performance.
	AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"`
	// IDs of products in the request that were missing from the inventory.
	MissingIds []string `protobuf:"bytes,3,rep,name=missing_ids,json=missingIds,proto3" json:"missing_ids,omitempty"`
	// True if the validateOnly property was set in the request.
	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

Response message for predict method.

func (*PredictResponse) Descriptor deprecated

func (*PredictResponse) Descriptor() ([]byte, []int)

Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.

func (*PredictResponse) GetAttributionToken

func (x *PredictResponse) GetAttributionToken() string

func (*PredictResponse) GetMissingIds

func (x *PredictResponse) GetMissingIds() []string

func (*PredictResponse) GetResults

func (*PredictResponse) GetValidateOnly

func (x *PredictResponse) GetValidateOnly() bool

func (*PredictResponse) ProtoMessage

func (*PredictResponse) ProtoMessage()

func (*PredictResponse) ProtoReflect

func (x *PredictResponse) ProtoReflect() protoreflect.Message

func (*PredictResponse) Reset

func (x *PredictResponse) Reset()

func (*PredictResponse) String

func (x *PredictResponse) String() string

type PredictResponse_PredictionResult

type PredictResponse_PredictionResult struct {

	// ID of the recommended product
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Additional product metadata / annotations.
	//
	// Possible values:
	//
	//   - `product`: JSON representation of the product. Is set if
	//     `returnProduct` is set to true in `PredictRequest.params`.
	//   - `score`: Prediction score in double value. Is set if
	//     `returnScore` is set to true in `PredictRequest.params`.
	Metadata map[string]*structpb.Value `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

PredictionResult represents the recommendation prediction results.

func (*PredictResponse_PredictionResult) Descriptor deprecated

func (*PredictResponse_PredictionResult) Descriptor() ([]byte, []int)

Deprecated: Use PredictResponse_PredictionResult.ProtoReflect.Descriptor instead.

func (*PredictResponse_PredictionResult) GetId

func (*PredictResponse_PredictionResult) GetMetadata

func (x *PredictResponse_PredictionResult) GetMetadata() map[string]*structpb.Value

func (*PredictResponse_PredictionResult) ProtoMessage

func (*PredictResponse_PredictionResult) ProtoMessage()

func (*PredictResponse_PredictionResult) ProtoReflect

func (*PredictResponse_PredictionResult) Reset

func (*PredictResponse_PredictionResult) String

type PredictionServiceClient

type PredictionServiceClient interface {
	// Makes a recommendation prediction.
	Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error)
}

PredictionServiceClient is the client API for PredictionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PredictionServiceServer

type PredictionServiceServer interface {
	// Makes a recommendation prediction.
	Predict(context.Context, *PredictRequest) (*PredictResponse, error)
}

PredictionServiceServer is the server API for PredictionService service.

type PriceInfo

type PriceInfo struct {

	// The 3-letter currency code defined in [ISO
	// 4217](https://www.iso.org/iso-4217-currency-codes.html).
	//
	// If this field is an unrecognizable currency code, an INVALID_ARGUMENT
	// error is returned.
	//
	// The
	// [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s with the same
	// [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id]
	// must share the same
	// [currency_code][google.cloud.retail.v2alpha.PriceInfo.currency_code].
	// Otherwise, a FAILED_PRECONDITION error is returned.
	CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// Price of the product.
	//
	// Google Merchant Center property
	// [price](https://support.google.com/merchants/answer/6324371). Schema.org
	// property [Offer.price](https://schema.org/price).
	Price float32 `protobuf:"fixed32,2,opt,name=price,proto3" json:"price,omitempty"`
	// Price of the product without any discount. If zero, by default set to be
	// the [price][google.cloud.retail.v2alpha.PriceInfo.price]. If set,
	// [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price]
	// should be greater than or equal to
	// [price][google.cloud.retail.v2alpha.PriceInfo.price], otherwise an
	// INVALID_ARGUMENT error is thrown.
	OriginalPrice float32 `protobuf:"fixed32,3,opt,name=original_price,json=originalPrice,proto3" json:"original_price,omitempty"`
	// The costs associated with the sale of a particular product. Used for gross
	// profit reporting.
	//
	// * Profit = [price][google.cloud.retail.v2alpha.PriceInfo.price] -
	// [cost][google.cloud.retail.v2alpha.PriceInfo.cost]
	//
	// Google Merchant Center property
	// [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895).
	Cost float32 `protobuf:"fixed32,4,opt,name=cost,proto3" json:"cost,omitempty"`
	// The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price]
	// starts to be effective. This can be set as a future timestamp, and the
	// [price][google.cloud.retail.v2alpha.PriceInfo.price] is only used for
	// search after
	// [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time].
	// If so, the
	// [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must
	// be set and
	// [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is
	// used before
	// [price_effective_time][google.cloud.retail.v2alpha.PriceInfo.price_effective_time].
	//
	// Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is
	// always effective because it will cause additional latency during search.
	PriceEffectiveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=price_effective_time,json=priceEffectiveTime,proto3" json:"price_effective_time,omitempty"`
	// The timestamp when the [price][google.cloud.retail.v2alpha.PriceInfo.price]
	// stops to be effective. The
	// [price][google.cloud.retail.v2alpha.PriceInfo.price] is used for search
	// before
	// [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time].
	// If this field is set, the
	// [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] must
	// be set and
	// [original_price][google.cloud.retail.v2alpha.PriceInfo.original_price] is
	// used after
	// [price_expire_time][google.cloud.retail.v2alpha.PriceInfo.price_expire_time].
	//
	// Do not set if [price][google.cloud.retail.v2alpha.PriceInfo.price] is
	// always effective because it will cause additional latency during search.
	PriceExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=price_expire_time,json=priceExpireTime,proto3" json:"price_expire_time,omitempty"`
	// Output only. The price range of all the child
	// [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s grouped together on the
	// [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]. Only populated for
	// [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]s.
	//
	// Note: This field is OUTPUT_ONLY for
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct].
	// Do not set this field in API requests.
	PriceRange *PriceInfo_PriceRange `protobuf:"bytes,7,opt,name=price_range,json=priceRange,proto3" json:"price_range,omitempty"`
	// contains filtered or unexported fields
}

The price information of a Product[google.cloud.retail.v2alpha.Product].

func (*PriceInfo) Descriptor deprecated

func (*PriceInfo) Descriptor() ([]byte, []int)

Deprecated: Use PriceInfo.ProtoReflect.Descriptor instead.

func (*PriceInfo) GetCost

func (x *PriceInfo) GetCost() float32

func (*PriceInfo) GetCurrencyCode

func (x *PriceInfo) GetCurrencyCode() string

func (*PriceInfo) GetOriginalPrice

func (x *PriceInfo) GetOriginalPrice() float32

func (*PriceInfo) GetPrice

func (x *PriceInfo) GetPrice() float32

func (*PriceInfo) GetPriceEffectiveTime

func (x *PriceInfo) GetPriceEffectiveTime() *timestamppb.Timestamp

func (*PriceInfo) GetPriceExpireTime

func (x *PriceInfo) GetPriceExpireTime() *timestamppb.Timestamp

func (*PriceInfo) GetPriceRange

func (x *PriceInfo) GetPriceRange() *PriceInfo_PriceRange

func (*PriceInfo) ProtoMessage

func (*PriceInfo) ProtoMessage()

func (*PriceInfo) ProtoReflect

func (x *PriceInfo) ProtoReflect() protoreflect.Message

func (*PriceInfo) Reset

func (x *PriceInfo) Reset()

func (*PriceInfo) String

func (x *PriceInfo) String() string

type PriceInfo_PriceRange

type PriceInfo_PriceRange struct {

	// The inclusive
	// [Product.pricing_info.price][google.cloud.retail.v2alpha.PriceInfo.price]
	// interval of all
	// [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product] having the same
	// [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id].
	Price *Interval `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// The inclusive
	// [Product.pricing_info.original_price][google.cloud.retail.v2alpha.PriceInfo.original_price]
	// internal of all
	// [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product] having the same
	// [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id].
	OriginalPrice *Interval `protobuf:"bytes,2,opt,name=original_price,json=originalPrice,proto3" json:"original_price,omitempty"`
	// contains filtered or unexported fields
}

The price range of all [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] Product[google.cloud.retail.v2alpha.Product] having the same [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id].

func (*PriceInfo_PriceRange) Descriptor deprecated

func (*PriceInfo_PriceRange) Descriptor() ([]byte, []int)

Deprecated: Use PriceInfo_PriceRange.ProtoReflect.Descriptor instead.

func (*PriceInfo_PriceRange) GetOriginalPrice

func (x *PriceInfo_PriceRange) GetOriginalPrice() *Interval

func (*PriceInfo_PriceRange) GetPrice

func (x *PriceInfo_PriceRange) GetPrice() *Interval

func (*PriceInfo_PriceRange) ProtoMessage

func (*PriceInfo_PriceRange) ProtoMessage()

func (*PriceInfo_PriceRange) ProtoReflect

func (x *PriceInfo_PriceRange) ProtoReflect() protoreflect.Message

func (*PriceInfo_PriceRange) Reset

func (x *PriceInfo_PriceRange) Reset()

func (*PriceInfo_PriceRange) String

func (x *PriceInfo_PriceRange) String() string

type Product

type Product struct {

	// Types that are assignable to Expiration:
	//
	//	*Product_ExpireTime
	//	*Product_Ttl
	Expiration isProduct_Expiration `protobuf_oneof:"expiration"`
	// Immutable. Full resource name of the product, such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Immutable. [Product][google.cloud.retail.v2alpha.Product] identifier, which
	// is the final component of [name][google.cloud.retail.v2alpha.Product.name].
	// For example, this field is "id_1", if
	// [name][google.cloud.retail.v2alpha.Product.name] is
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`.
	//
	// This field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [id](https://support.google.com/merchants/answer/6324405). Schema.org
	// property [Product.sku](https://schema.org/sku).
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Immutable. The type of the product. Default to
	// [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type]
	// if unset.
	Type Product_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.retail.v2alpha.Product_Type" json:"type,omitempty"`
	// Variant group identifier. Must be an
	// [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch
	// with this product. Otherwise, an error is thrown.
	//
	// For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]s, this field can only be
	// empty or set to the same value as
	// [id][google.cloud.retail.v2alpha.Product.id].
	//
	// For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field
	// cannot be empty. A maximum of 2,000 products are allowed to share the same
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [item_group_id](https://support.google.com/merchants/answer/6324507).
	// Schema.org property
	// [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
	PrimaryProductId string `protobuf:"bytes,4,opt,name=primary_product_id,json=primaryProductId,proto3" json:"primary_product_id,omitempty"`
	// The [id][google.cloud.retail.v2alpha.Product.id] of the collection members
	// when [type][google.cloud.retail.v2alpha.Product.type] is
	// [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION].
	//
	// Non-existent product ids are allowed.
	// The [type][google.cloud.retail.v2alpha.Product.type] of the members must be
	// either [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] or
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] otherwise
	// an INVALID_ARGUMENT error is thrown. Should not set it for other types. A
	// maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is
	// return.
	CollectionMemberIds []string `protobuf:"bytes,5,rep,name=collection_member_ids,json=collectionMemberIds,proto3" json:"collection_member_ids,omitempty"`
	// The Global Trade Item Number (GTIN) of the product.
	//
	// This field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [gtin](https://support.google.com/merchants/answer/6324461).
	// Schema.org property
	// [Product.isbn](https://schema.org/isbn),
	// [Product.gtin8](https://schema.org/gtin8),
	// [Product.gtin12](https://schema.org/gtin12),
	// [Product.gtin13](https://schema.org/gtin13), or
	// [Product.gtin14](https://schema.org/gtin14).
	//
	// If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
	Gtin string `protobuf:"bytes,6,opt,name=gtin,proto3" json:"gtin,omitempty"`
	// Product categories. This field is repeated for supporting one product
	// belonging to several parallel categories. Strongly recommended using the
	// full path for better search / recommendation quality.
	//
	// To represent full path of category, use '>' sign to separate different
	// hierarchies. If '>' is part of the category name, replace it with
	// other character(s).
	//
	// For example, if a shoes product belongs to both
	// ["Shoes & Accessories" -> "Shoes"] and
	// ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be
	// represented as:
	//
	//	"categories": [
	//	  "Shoes & Accessories > Shoes",
	//	  "Sports & Fitness > Athletic Clothing > Shoes"
	//	]
	//
	// Must be set for
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product] otherwise an
	// INVALID_ARGUMENT error is returned.
	//
	// At most 250 values are allowed per
	// [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
	// allowed. Each value must be a UTF-8 encoded string with a length limit of
	// 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [google_product_category][mc_google_product_category]. Schema.org property
	// [Product.category] (https://schema.org/category).
	//
	// [mc_google_product_category]:
	// https://support.google.com/merchants/answer/6324436
	Categories []string `protobuf:"bytes,7,rep,name=categories,proto3" json:"categories,omitempty"`
	// Required. Product title.
	//
	// This field must be a UTF-8 encoded string with a length limit of 1,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [title](https://support.google.com/merchants/answer/6324415). Schema.org
	// property [Product.name](https://schema.org/name).
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// The brands of the product.
	//
	// A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
	// string with a length limit of 1,000 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [brand](https://support.google.com/merchants/answer/6324351). Schema.org
	// property [Product.brand](https://schema.org/brand).
	Brands []string `protobuf:"bytes,9,rep,name=brands,proto3" json:"brands,omitempty"`
	// Product description.
	//
	// This field must be a UTF-8 encoded string with a length limit of 5,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [description](https://support.google.com/merchants/answer/6324468).
	// Schema.org property [Product.description](https://schema.org/description).
	Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
	// Language of the title/description and other string attributes. Use language
	// tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
	//
	// For product prediction, this field is ignored and the model automatically
	// detects the text language. The
	// [Product][google.cloud.retail.v2alpha.Product] can include text in
	// different languages, but duplicating
	// [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple
	// languages can result in degraded model performance.
	//
	// For product search this field is in use. It defaults to "en-US" if unset.
	LanguageCode string `protobuf:"bytes,11,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Highly encouraged. Extra product attributes to be included. For example,
	// for products, this could include the store name, vendor, style, color, etc.
	// These are very strong signals for recommendation model, thus we highly
	// recommend providing the attributes here.
	//
	// Features that can take on one of a limited number of possible values. Two
	// types of features can be set are:
	//
	// Textual features. some examples would be the brand/maker of a product, or
	// country of a customer. Numerical features. Some examples would be the
	// height/weight of a product, or age of a customer.
	//
	// For example: `{ "vendor": {"text": ["vendor123", "vendor456"]},
	// "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]}
	// }`.
	//
	// This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT
	// error is returned:
	//
	//   - Max entries count: 200.
	//   - The key must be a UTF-8 encoded string with a length limit of 128
	//     characters.
	//   - For indexable attribute, the key must match the pattern:
	//     `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or
	//     `KEY_1_LIKE_THIS`.
	//   - For text attributes, at most 400 values are allowed. Empty values are not
	//     allowed. Each value must be a non-empty UTF-8 encoded string with a
	//     length limit of 256 characters.
	//   - For number attributes, at most 400 values are allowed.
	Attributes map[string]*CustomAttribute `` /* 162-byte string literal not displayed */
	// Custom tags associated with the product.
	//
	// At most 250 values are allowed per
	// [Product][google.cloud.retail.v2alpha.Product]. This value must be a UTF-8
	// encoded string with a length limit of 1,000 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// This tag can be used for filtering recommendation results by passing the
	// tag as part of the
	// [PredictRequest.filter][google.cloud.retail.v2alpha.PredictRequest.filter].
	//
	// Corresponding properties: Google Merchant Center property
	// [custom_label_0–4](https://support.google.com/merchants/answer/6324473).
	Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"`
	// Product price and cost information.
	//
	// Corresponding properties: Google Merchant Center property
	// [price](https://support.google.com/merchants/answer/6324371).
	PriceInfo *PriceInfo `protobuf:"bytes,14,opt,name=price_info,json=priceInfo,proto3" json:"price_info,omitempty"`
	// The rating of this product.
	Rating *Rating `protobuf:"bytes,15,opt,name=rating,proto3" json:"rating,omitempty"`
	// The timestamp when this [Product][google.cloud.retail.v2alpha.Product]
	// becomes available for
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	// Note that this is only applicable to
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
	// [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], and
	// ignored for
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT].
	AvailableTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=available_time,json=availableTime,proto3" json:"available_time,omitempty"`
	// The online availability of the
	// [Product][google.cloud.retail.v2alpha.Product]. Default to
	// [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK].
	//
	// Corresponding properties: Google Merchant Center property
	// [availability](https://support.google.com/merchants/answer/6324448).
	// Schema.org property [Offer.availability](https://schema.org/availability).
	Availability Product_Availability `` /* 133-byte string literal not displayed */
	// The available quantity of the item.
	AvailableQuantity *wrapperspb.Int32Value `protobuf:"bytes,20,opt,name=available_quantity,json=availableQuantity,proto3" json:"available_quantity,omitempty"`
	// Fulfillment information, such as the store IDs for in-store pickup or
	// region IDs for different shipping methods.
	//
	// All the elements must have distinct
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type].
	// Otherwise, an INVALID_ARGUMENT error is returned.
	FulfillmentInfo []*FulfillmentInfo `protobuf:"bytes,21,rep,name=fulfillment_info,json=fulfillmentInfo,proto3" json:"fulfillment_info,omitempty"`
	// Canonical URL directly linking to the product detail page.
	//
	// It is strongly recommended to provide a valid uri for the product,
	// otherwise the service performance could be significantly degraded.
	//
	// This field must be a UTF-8 encoded string with a length limit of 5,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [link](https://support.google.com/merchants/answer/6324416). Schema.org
	// property [Offer.url](https://schema.org/url).
	Uri string `protobuf:"bytes,22,opt,name=uri,proto3" json:"uri,omitempty"`
	// Product images for the product. We highly recommend putting the main
	// image first.
	//
	// A maximum of 300 images are allowed.
	//
	// Corresponding properties: Google Merchant Center property
	// [image_link](https://support.google.com/merchants/answer/6324350).
	// Schema.org property [Product.image](https://schema.org/image).
	Images []*Image `protobuf:"bytes,23,rep,name=images,proto3" json:"images,omitempty"`
	// The target group associated with a given audience (e.g. male, veterans,
	// car owners, musicians, etc.) of the product.
	Audience *Audience `protobuf:"bytes,24,opt,name=audience,proto3" json:"audience,omitempty"`
	// The color of the product.
	//
	// Corresponding properties: Google Merchant Center property
	// [color](https://support.google.com/merchants/answer/6324487). Schema.org
	// property [Product.color](https://schema.org/color).
	ColorInfo *ColorInfo `protobuf:"bytes,25,opt,name=color_info,json=colorInfo,proto3" json:"color_info,omitempty"`
	// The size of the product. To represent different size systems or size types,
	// consider using this format: [[[size_system:]size_type:]size_value].
	//
	// For example, in "US:MENS:M", "US" represents size system; "MENS" represents
	// size type; "M" represents size value. In "GIRLS:27", size system is empty;
	// "GIRLS" represents size type; "27" represents size value. In "32 inches",
	// both size system and size type are empty, while size value is "32 inches".
	//
	// A maximum of 20 values are allowed per
	// [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8
	// encoded string with a length limit of 128 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [size](https://support.google.com/merchants/answer/6324492),
	// [size_type](https://support.google.com/merchants/answer/6324497), and
	// [size_system](https://support.google.com/merchants/answer/6324502).
	// Schema.org property [Product.size](https://schema.org/size).
	Sizes []string `protobuf:"bytes,26,rep,name=sizes,proto3" json:"sizes,omitempty"`
	// The material of the product. For example, "leather", "wooden".
	//
	// A maximum of 20 values are allowed. Each value must be a UTF-8 encoded
	// string with a length limit of 200 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [material](https://support.google.com/merchants/answer/6324410). Schema.org
	// property [Product.material](https://schema.org/material).
	Materials []string `protobuf:"bytes,27,rep,name=materials,proto3" json:"materials,omitempty"`
	// The pattern or graphic print of the product. For example, "striped", "polka
	// dot", "paisley".
	//
	// A maximum of 20 values are allowed per
	// [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8
	// encoded string with a length limit of 128 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [pattern](https://support.google.com/merchants/answer/6324483). Schema.org
	// property [Product.pattern](https://schema.org/pattern).
	Patterns []string `protobuf:"bytes,28,rep,name=patterns,proto3" json:"patterns,omitempty"`
	// The condition of the product. Strongly encouraged to use the standard
	// values: "new", "refurbished", "used".
	//
	// A maximum of 1 value is allowed per
	// [Product][google.cloud.retail.v2alpha.Product]. Each value must be a UTF-8
	// encoded string with a length limit of 128 characters. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// Corresponding properties: Google Merchant Center property
	// [condition](https://support.google.com/merchants/answer/6324469).
	// Schema.org property
	// [Offer.itemCondition](https://schema.org/itemCondition).
	Conditions []string `protobuf:"bytes,29,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// The promotions applied to the product. A maximum of 10 values are allowed
	// per [Product][google.cloud.retail.v2alpha.Product]. Only
	// [Promotion.promotion_id][google.cloud.retail.v2alpha.Promotion.promotion_id]
	// will be used, other fields will be ignored if set.
	Promotions []*Promotion `protobuf:"bytes,34,rep,name=promotions,proto3" json:"promotions,omitempty"`
	// The timestamp when the product is published by the retailer for the first
	// time, which indicates the freshness of the products. Note that this field
	// is different from
	// [available_time][google.cloud.retail.v2alpha.Product.available_time], given
	// it purely describes product freshness regardless of when it is available on
	// search and recommendation.
	PublishTime *timestamppb.Timestamp `protobuf:"bytes,33,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"`
	// Indicates which fields in the
	// [Product][google.cloud.retail.v2alpha.Product]s are returned in
	// [SearchResponse][google.cloud.retail.v2alpha.SearchResponse].
	//
	// Supported fields for all [type][google.cloud.retail.v2alpha.Product.type]s:
	//
	// * [audience][google.cloud.retail.v2alpha.Product.audience]
	// * [availability][google.cloud.retail.v2alpha.Product.availability]
	// * [brands][google.cloud.retail.v2alpha.Product.brands]
	// * [color_info][google.cloud.retail.v2alpha.Product.color_info]
	// * [conditions][google.cloud.retail.v2alpha.Product.conditions]
	// * [gtin][google.cloud.retail.v2alpha.Product.gtin]
	// * [materials][google.cloud.retail.v2alpha.Product.materials]
	// * [name][google.cloud.retail.v2alpha.Product.name]
	// * [patterns][google.cloud.retail.v2alpha.Product.patterns]
	// * [price_info][google.cloud.retail.v2alpha.Product.price_info]
	// * [rating][google.cloud.retail.v2alpha.Product.rating]
	// * [sizes][google.cloud.retail.v2alpha.Product.sizes]
	// * [title][google.cloud.retail.v2alpha.Product.title]
	// * [uri][google.cloud.retail.v2alpha.Product.uri]
	//
	// Supported fields only for
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
	// [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]:
	//
	// * [categories][google.cloud.retail.v2alpha.Product.categories]
	// * [description][google.cloud.retail.v2alpha.Product.description]
	// * [images][google.cloud.retail.v2alpha.Product.images]
	//
	// Supported fields only for
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]:
	//
	// * Only the first image in
	// [images][google.cloud.retail.v2alpha.Product.images]
	//
	// To mark [attributes][google.cloud.retail.v2alpha.Product.attributes] as
	// retrievable, include paths of the form "attributes.key" where "key" is the
	// key of a custom attribute, as specified in
	// [attributes][google.cloud.retail.v2alpha.Product.attributes].
	//
	// For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
	// [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], the
	// following fields are always returned in
	// [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] by default:
	//
	// * [name][google.cloud.retail.v2alpha.Product.name]
	//
	// For [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT], the
	// following fields are always returned in by default:
	//
	// * [name][google.cloud.retail.v2alpha.Product.name]
	// * [color_info][google.cloud.retail.v2alpha.Product.color_info]
	//
	// The maximum number of paths is 30. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	//
	// Note: Returning more fields in
	// [SearchResponse][google.cloud.retail.v2alpha.SearchResponse] can increase
	// response payload size and serving latency.
	//
	// This field is deprecated. Use the retrievable site-wide control instead.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/product.proto.
	RetrievableFields *fieldmaskpb.FieldMask `protobuf:"bytes,30,opt,name=retrievable_fields,json=retrievableFields,proto3" json:"retrievable_fields,omitempty"`
	// Output only. Product variants grouped together on primary product which
	// share similar product attributes. It's automatically grouped by
	// [primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id]
	// for all the product variants. Only populated for
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]s.
	//
	// Note: This field is OUTPUT_ONLY for
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct].
	// Do not set this field in API requests.
	Variants []*Product `protobuf:"bytes,31,rep,name=variants,proto3" json:"variants,omitempty"`
	// Output only. A list of local inventories specific to different places.
	//
	// This field can be managed by
	// [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
	// and
	// [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
	// APIs if fine-grained, high-volume updates are necessary.
	LocalInventories []*LocalInventory `protobuf:"bytes,35,rep,name=local_inventories,json=localInventories,proto3" json:"local_inventories,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Product) Descriptor deprecated

func (*Product) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetAttributes

func (x *Product) GetAttributes() map[string]*CustomAttribute

func (*Product) GetAudience

func (x *Product) GetAudience() *Audience

func (*Product) GetAvailability

func (x *Product) GetAvailability() Product_Availability

func (*Product) GetAvailableQuantity

func (x *Product) GetAvailableQuantity() *wrapperspb.Int32Value

func (*Product) GetAvailableTime

func (x *Product) GetAvailableTime() *timestamppb.Timestamp

func (*Product) GetBrands

func (x *Product) GetBrands() []string

func (*Product) GetCategories

func (x *Product) GetCategories() []string

func (*Product) GetCollectionMemberIds

func (x *Product) GetCollectionMemberIds() []string

func (*Product) GetColorInfo

func (x *Product) GetColorInfo() *ColorInfo

func (*Product) GetConditions

func (x *Product) GetConditions() []string

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetExpiration

func (m *Product) GetExpiration() isProduct_Expiration

func (*Product) GetExpireTime

func (x *Product) GetExpireTime() *timestamppb.Timestamp

func (*Product) GetFulfillmentInfo

func (x *Product) GetFulfillmentInfo() []*FulfillmentInfo

func (*Product) GetGtin

func (x *Product) GetGtin() string

func (*Product) GetId

func (x *Product) GetId() string

func (*Product) GetImages

func (x *Product) GetImages() []*Image

func (*Product) GetLanguageCode

func (x *Product) GetLanguageCode() string

func (*Product) GetLocalInventories added in v1.12.0

func (x *Product) GetLocalInventories() []*LocalInventory

func (*Product) GetMaterials

func (x *Product) GetMaterials() []string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPatterns

func (x *Product) GetPatterns() []string

func (*Product) GetPriceInfo

func (x *Product) GetPriceInfo() *PriceInfo

func (*Product) GetPrimaryProductId

func (x *Product) GetPrimaryProductId() string

func (*Product) GetPromotions

func (x *Product) GetPromotions() []*Promotion

func (*Product) GetPublishTime

func (x *Product) GetPublishTime() *timestamppb.Timestamp

func (*Product) GetRating

func (x *Product) GetRating() *Rating

func (*Product) GetRetrievableFields deprecated

func (x *Product) GetRetrievableFields() *fieldmaskpb.FieldMask

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/product.proto.

func (*Product) GetSizes

func (x *Product) GetSizes() []string

func (*Product) GetTags

func (x *Product) GetTags() []string

func (*Product) GetTitle

func (x *Product) GetTitle() string

func (*Product) GetTtl

func (x *Product) GetTtl() *durationpb.Duration

func (*Product) GetType

func (x *Product) GetType() Product_Type

func (*Product) GetUri

func (x *Product) GetUri() string

func (*Product) GetVariants

func (x *Product) GetVariants() []*Product

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

func (x *Product) ProtoReflect() protoreflect.Message

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

type ProductDetail

type ProductDetail struct {

	// Required. [Product][google.cloud.retail.v2alpha.Product] information.
	//
	// Required field(s):
	//
	// * [Product.id][google.cloud.retail.v2alpha.Product.id]
	//
	// Optional override field(s):
	//
	// * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info]
	//
	// If any supported optional fields are provided, we will treat them as a full
	// override when looking up product information from the catalog. Thus, it is
	// important to ensure that the overriding fields are accurate and
	// complete.
	//
	// All other product fields are ignored and instead populated via catalog
	// lookup after event ingestion.
	Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// Quantity of the product associated with the user event.
	//
	// For example, this field will be 2 if two products are added to the shopping
	// cart for `purchase-complete` event. Required for `add-to-cart` and
	// `purchase-complete` event types.
	Quantity *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

Detailed product information associated with a user event.

func (*ProductDetail) Descriptor deprecated

func (*ProductDetail) Descriptor() ([]byte, []int)

Deprecated: Use ProductDetail.ProtoReflect.Descriptor instead.

func (*ProductDetail) GetProduct

func (x *ProductDetail) GetProduct() *Product

func (*ProductDetail) GetQuantity

func (x *ProductDetail) GetQuantity() *wrapperspb.Int32Value

func (*ProductDetail) ProtoMessage

func (*ProductDetail) ProtoMessage()

func (*ProductDetail) ProtoReflect

func (x *ProductDetail) ProtoReflect() protoreflect.Message

func (*ProductDetail) Reset

func (x *ProductDetail) Reset()

func (*ProductDetail) String

func (x *ProductDetail) String() string

type ProductInlineSource

type ProductInlineSource struct {

	// Required. A list of products to update/create. Each product must have a
	// valid [Product.id][google.cloud.retail.v2alpha.Product.id]. Recommended max
	// of 100 items.
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

The inline source for the input config for ImportProducts method.

func (*ProductInlineSource) Descriptor deprecated

func (*ProductInlineSource) Descriptor() ([]byte, []int)

Deprecated: Use ProductInlineSource.ProtoReflect.Descriptor instead.

func (*ProductInlineSource) GetProducts

func (x *ProductInlineSource) GetProducts() []*Product

func (*ProductInlineSource) ProtoMessage

func (*ProductInlineSource) ProtoMessage()

func (*ProductInlineSource) ProtoReflect

func (x *ProductInlineSource) ProtoReflect() protoreflect.Message

func (*ProductInlineSource) Reset

func (x *ProductInlineSource) Reset()

func (*ProductInlineSource) String

func (x *ProductInlineSource) String() string

type ProductInputConfig

type ProductInputConfig struct {

	// Required. The source of the input.
	//
	// Types that are assignable to Source:
	//
	//	*ProductInputConfig_ProductInlineSource
	//	*ProductInputConfig_GcsSource
	//	*ProductInputConfig_BigQuerySource
	Source isProductInputConfig_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The input config source for products.

func (*ProductInputConfig) Descriptor deprecated

func (*ProductInputConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProductInputConfig.ProtoReflect.Descriptor instead.

func (*ProductInputConfig) GetBigQuerySource

func (x *ProductInputConfig) GetBigQuerySource() *BigQuerySource

func (*ProductInputConfig) GetGcsSource

func (x *ProductInputConfig) GetGcsSource() *GcsSource

func (*ProductInputConfig) GetProductInlineSource

func (x *ProductInputConfig) GetProductInlineSource() *ProductInlineSource

func (*ProductInputConfig) GetSource

func (m *ProductInputConfig) GetSource() isProductInputConfig_Source

func (*ProductInputConfig) ProtoMessage

func (*ProductInputConfig) ProtoMessage()

func (*ProductInputConfig) ProtoReflect

func (x *ProductInputConfig) ProtoReflect() protoreflect.Message

func (*ProductInputConfig) Reset

func (x *ProductInputConfig) Reset()

func (*ProductInputConfig) String

func (x *ProductInputConfig) String() string

type ProductInputConfig_BigQuerySource

type ProductInputConfig_BigQuerySource struct {
	// BigQuery input source.
	BigQuerySource *BigQuerySource `protobuf:"bytes,3,opt,name=big_query_source,json=bigQuerySource,proto3,oneof"`
}

type ProductInputConfig_GcsSource

type ProductInputConfig_GcsSource struct {
	// Google Cloud Storage location for the input content.
	GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}

type ProductInputConfig_ProductInlineSource

type ProductInputConfig_ProductInlineSource struct {
	// The Inline source for the input content for products.
	ProductInlineSource *ProductInlineSource `protobuf:"bytes,1,opt,name=product_inline_source,json=productInlineSource,proto3,oneof"`
}

type ProductLevelConfig

type ProductLevelConfig struct {

	// The type of [Product][google.cloud.retail.v2alpha.Product]s allowed to be
	// ingested into the catalog. Acceptable values are:
	//
	// * `primary` (default): You can ingest
	// [Product][google.cloud.retail.v2alpha.Product]s of all types. When
	//
	//	ingesting a [Product][google.cloud.retail.v2alpha.Product], its type will
	//	default to
	//	[Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	//	if unset.
	//   - `variant` (incompatible with Retail Search): You can only
	//     ingest
	//     [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	//     [Product][google.cloud.retail.v2alpha.Product]s. This means
	//     [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id]
	//     cannot be empty.
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	//
	// If this field is `variant` and
	// [merchant_center_product_id_field][google.cloud.retail.v2alpha.ProductLevelConfig.merchant_center_product_id_field]
	// is `itemGroupId`, an INVALID_ARGUMENT error is returned.
	//
	// See [Product
	// levels](https://cloud.google.com/retail/docs/catalog#product-levels)
	// for more details.
	IngestionProductType string `protobuf:"bytes,1,opt,name=ingestion_product_type,json=ingestionProductType,proto3" json:"ingestion_product_type,omitempty"`
	// Which field of [Merchant Center
	// Product](/bigquery-transfer/docs/merchant-center-products-schema) should be
	// imported as [Product.id][google.cloud.retail.v2alpha.Product.id].
	// Acceptable values are:
	//
	//   - `offerId` (default): Import `offerId` as the product ID.
	//   - `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail
	//     API will choose one item from the ones with the same `itemGroupId`, and
	//     use it to represent the item group.
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	//
	// If this field is `itemGroupId` and
	// [ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type]
	// is `variant`, an INVALID_ARGUMENT error is returned.
	//
	// See [Product
	// levels](https://cloud.google.com/retail/docs/catalog#product-levels)
	// for more details.
	MerchantCenterProductIdField string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*ProductLevelConfig) Descriptor deprecated

func (*ProductLevelConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProductLevelConfig.ProtoReflect.Descriptor instead.

func (*ProductLevelConfig) GetIngestionProductType

func (x *ProductLevelConfig) GetIngestionProductType() string

func (*ProductLevelConfig) GetMerchantCenterProductIdField

func (x *ProductLevelConfig) GetMerchantCenterProductIdField() string

func (*ProductLevelConfig) ProtoMessage

func (*ProductLevelConfig) ProtoMessage()

func (*ProductLevelConfig) ProtoReflect

func (x *ProductLevelConfig) ProtoReflect() protoreflect.Message

func (*ProductLevelConfig) Reset

func (x *ProductLevelConfig) Reset()

func (*ProductLevelConfig) String

func (x *ProductLevelConfig) String() string

type ProductServiceClient

type ProductServiceClient interface {
	// Creates a [Product][google.cloud.retail.v2alpha.Product].
	CreateProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*Product, error)
	// Gets a [Product][google.cloud.retail.v2alpha.Product].
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error)
	// Gets a list of [Product][google.cloud.retail.v2alpha.Product]s.
	ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error)
	// Updates a [Product][google.cloud.retail.v2alpha.Product].
	UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*Product, error)
	// Deletes a [Product][google.cloud.retail.v2alpha.Product].
	DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Permanently deletes all selected
	// [Product][google.cloud.retail.v2alpha.Product]s under a branch.
	//
	// This process is asynchronous. If the request is valid, the removal will be
	// enqueued and processed offline. Depending on the number of
	// [Product][google.cloud.retail.v2alpha.Product]s, this operation could take
	// hours to complete. Before the operation completes, some
	// [Product][google.cloud.retail.v2alpha.Product]s may still be returned by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s,
	// this operation could take hours to complete. To get a sample of
	// [Product][google.cloud.retail.v2alpha.Product]s that would be deleted, set
	// [PurgeProductsRequest.force][google.cloud.retail.v2alpha.PurgeProductsRequest.force]
	// to false.
	PurgeProducts(ctx context.Context, in *PurgeProductsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Bulk import of multiple [Product][google.cloud.retail.v2alpha.Product]s.
	//
	// Request processing may be synchronous.
	// Non-existing items are created.
	//
	// Note that it is possible for a subset of the
	// [Product][google.cloud.retail.v2alpha.Product]s to be successfully updated.
	ImportProducts(ctx context.Context, in *ImportProductsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Updates inventory information for a
	// [Product][google.cloud.retail.v2alpha.Product] while respecting the last
	// update timestamps of each inventory field.
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// fulfillment information. If the request is valid, the update is enqueued
	// and processed downstream. As a consequence, when a response is returned,
	// updates are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// When inventory is updated with
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// and
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct],
	// the specified inventory field value(s) overwrite any existing value(s)
	// while ignoring the last update time for this field. Furthermore, the last
	// update times for the specified inventory fields are overwritten by the
	// times of the
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// or
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// request.
	//
	// If no inventory fields are set in
	// [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product],
	// then any pre-existing inventory information for this product is used.
	//
	// If no inventory fields are set in
	// [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask],
	// then any existing inventory information is preserved.
	//
	// Pre-existing inventory information can only be updated with
	// [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
	// [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces],
	// and
	// [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
	//
	// The returned [Operation][google.longrunning.Operation]s is obsolete after
	// one day, and the [GetOperation][google.longrunning.Operations.GetOperation]
	// API returns `NOT_FOUND` afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates are not marked as [done][google.longrunning.Operation.done] until
	// they are obsolete.
	SetInventory(ctx context.Context, in *SetInventoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// It is recommended to use the
	// [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
	// method instead of
	// [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces].
	// [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
	// achieves the same results but provides more fine-grained control over
	// ingesting local inventory data.
	//
	// Incrementally adds place IDs to
	// [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids].
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// fulfillment information. If the request is valid, the update will be
	// enqueued and processed downstream. As a consequence, when a response is
	// returned, the added place IDs are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	AddFulfillmentPlaces(ctx context.Context, in *AddFulfillmentPlacesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// It is recommended to use the
	// [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
	// method instead of
	// [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
	// [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
	// achieves the same results but provides more fine-grained control over
	// ingesting local inventory data.
	//
	// Incrementally removes place IDs from a
	// [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids].
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// fulfillment information. If the request is valid, the update will be
	// enqueued and processed downstream. As a consequence, when a response is
	// returned, the removed place IDs are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	RemoveFulfillmentPlaces(ctx context.Context, in *RemoveFulfillmentPlacesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Updates local inventory information for a
	// [Product][google.cloud.retail.v2alpha.Product] at a list of places, while
	// respecting the last update timestamps of each inventory field.
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// inventory information. If the request is valid, the update will be enqueued
	// and processed downstream. As a consequence, when a response is returned,
	// updates are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// Local inventory information can only be modified using this method.
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// and
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// has no effect on local inventories.
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	AddLocalInventories(ctx context.Context, in *AddLocalInventoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Remove local inventory information for a
	// [Product][google.cloud.retail.v2alpha.Product] at a list of places at a
	// removal timestamp.
	//
	// This process is asynchronous. If the request is valid, the removal will be
	// enqueued and processed downstream. As a consequence, when a response is
	// returned, removals are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// Local inventory information can only be removed using this method.
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// and
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// has no effect on local inventories.
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	RemoveLocalInventories(ctx context.Context, in *RemoveLocalInventoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

ProductServiceClient is the client API for ProductService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ProductServiceServer

type ProductServiceServer interface {
	// Creates a [Product][google.cloud.retail.v2alpha.Product].
	CreateProduct(context.Context, *CreateProductRequest) (*Product, error)
	// Gets a [Product][google.cloud.retail.v2alpha.Product].
	GetProduct(context.Context, *GetProductRequest) (*Product, error)
	// Gets a list of [Product][google.cloud.retail.v2alpha.Product]s.
	ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error)
	// Updates a [Product][google.cloud.retail.v2alpha.Product].
	UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error)
	// Deletes a [Product][google.cloud.retail.v2alpha.Product].
	DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error)
	// Permanently deletes all selected
	// [Product][google.cloud.retail.v2alpha.Product]s under a branch.
	//
	// This process is asynchronous. If the request is valid, the removal will be
	// enqueued and processed offline. Depending on the number of
	// [Product][google.cloud.retail.v2alpha.Product]s, this operation could take
	// hours to complete. Before the operation completes, some
	// [Product][google.cloud.retail.v2alpha.Product]s may still be returned by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s,
	// this operation could take hours to complete. To get a sample of
	// [Product][google.cloud.retail.v2alpha.Product]s that would be deleted, set
	// [PurgeProductsRequest.force][google.cloud.retail.v2alpha.PurgeProductsRequest.force]
	// to false.
	PurgeProducts(context.Context, *PurgeProductsRequest) (*longrunningpb.Operation, error)
	// Bulk import of multiple [Product][google.cloud.retail.v2alpha.Product]s.
	//
	// Request processing may be synchronous.
	// Non-existing items are created.
	//
	// Note that it is possible for a subset of the
	// [Product][google.cloud.retail.v2alpha.Product]s to be successfully updated.
	ImportProducts(context.Context, *ImportProductsRequest) (*longrunningpb.Operation, error)
	// Updates inventory information for a
	// [Product][google.cloud.retail.v2alpha.Product] while respecting the last
	// update timestamps of each inventory field.
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// fulfillment information. If the request is valid, the update is enqueued
	// and processed downstream. As a consequence, when a response is returned,
	// updates are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// When inventory is updated with
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// and
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct],
	// the specified inventory field value(s) overwrite any existing value(s)
	// while ignoring the last update time for this field. Furthermore, the last
	// update times for the specified inventory fields are overwritten by the
	// times of the
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// or
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// request.
	//
	// If no inventory fields are set in
	// [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product],
	// then any pre-existing inventory information for this product is used.
	//
	// If no inventory fields are set in
	// [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask],
	// then any existing inventory information is preserved.
	//
	// Pre-existing inventory information can only be updated with
	// [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
	// [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces],
	// and
	// [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
	//
	// The returned [Operation][google.longrunning.Operation]s is obsolete after
	// one day, and the [GetOperation][google.longrunning.Operations.GetOperation]
	// API returns `NOT_FOUND` afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates are not marked as [done][google.longrunning.Operation.done] until
	// they are obsolete.
	SetInventory(context.Context, *SetInventoryRequest) (*longrunningpb.Operation, error)
	// It is recommended to use the
	// [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
	// method instead of
	// [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces].
	// [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
	// achieves the same results but provides more fine-grained control over
	// ingesting local inventory data.
	//
	// Incrementally adds place IDs to
	// [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids].
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// fulfillment information. If the request is valid, the update will be
	// enqueued and processed downstream. As a consequence, when a response is
	// returned, the added place IDs are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	AddFulfillmentPlaces(context.Context, *AddFulfillmentPlacesRequest) (*longrunningpb.Operation, error)
	// It is recommended to use the
	// [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
	// method instead of
	// [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
	// [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
	// achieves the same results but provides more fine-grained control over
	// ingesting local inventory data.
	//
	// Incrementally removes place IDs from a
	// [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids].
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// fulfillment information. If the request is valid, the update will be
	// enqueued and processed downstream. As a consequence, when a response is
	// returned, the removed place IDs are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	RemoveFulfillmentPlaces(context.Context, *RemoveFulfillmentPlacesRequest) (*longrunningpb.Operation, error)
	// Updates local inventory information for a
	// [Product][google.cloud.retail.v2alpha.Product] at a list of places, while
	// respecting the last update timestamps of each inventory field.
	//
	// This process is asynchronous and does not require the
	// [Product][google.cloud.retail.v2alpha.Product] to exist before updating
	// inventory information. If the request is valid, the update will be enqueued
	// and processed downstream. As a consequence, when a response is returned,
	// updates are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// Local inventory information can only be modified using this method.
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// and
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// has no effect on local inventories.
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	AddLocalInventories(context.Context, *AddLocalInventoriesRequest) (*longrunningpb.Operation, error)
	// Remove local inventory information for a
	// [Product][google.cloud.retail.v2alpha.Product] at a list of places at a
	// removal timestamp.
	//
	// This process is asynchronous. If the request is valid, the removal will be
	// enqueued and processed downstream. As a consequence, when a response is
	// returned, removals are not immediately manifested in the
	// [Product][google.cloud.retail.v2alpha.Product] queried by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// or
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// Local inventory information can only be removed using this method.
	// [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct]
	// and
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// has no effect on local inventories.
	//
	// The returned [Operation][google.longrunning.Operation]s will be obsolete
	// after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation]
	// API will return NOT_FOUND afterwards.
	//
	// If conflicting updates are issued, the
	// [Operation][google.longrunning.Operation]s associated with the stale
	// updates will not be marked as [done][google.longrunning.Operation.done]
	// until being obsolete.
	RemoveLocalInventories(context.Context, *RemoveLocalInventoriesRequest) (*longrunningpb.Operation, error)
}

ProductServiceServer is the server API for ProductService service.

type Product_Availability

type Product_Availability int32

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

const (
	// Default product availability. Default to
	// [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
	// if unset.
	Product_AVAILABILITY_UNSPECIFIED Product_Availability = 0
	// Product in stock.
	Product_IN_STOCK Product_Availability = 1
	// Product out of stock.
	Product_OUT_OF_STOCK Product_Availability = 2
	// Product that is in pre-order state.
	Product_PREORDER Product_Availability = 3
	// Product that is back-ordered (i.e. temporarily out of stock).
	Product_BACKORDER Product_Availability = 4
)

func (Product_Availability) Descriptor

func (Product_Availability) Enum

func (Product_Availability) EnumDescriptor deprecated

func (Product_Availability) EnumDescriptor() ([]byte, []int)

Deprecated: Use Product_Availability.Descriptor instead.

func (Product_Availability) Number

func (Product_Availability) String

func (x Product_Availability) String() string

func (Product_Availability) Type

type Product_ExpireTime

type Product_ExpireTime struct {
	// The timestamp when this product becomes unavailable for
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	// Note that this is only applicable to
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
	// [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
	// and ignored for
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
	// general, we suggest the users to delete the stale products explicitly,
	// instead of using this field to determine staleness.
	//
	// If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
	// available for
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
	// after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
	// However, the product can still be retrieved by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// and
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	//
	// [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
	// later than
	// [available_time][google.cloud.retail.v2alpha.Product.available_time] and
	// [publish_time][google.cloud.retail.v2alpha.Product.publish_time],
	// otherwise an INVALID_ARGUMENT error is thrown.
	//
	// Corresponding properties: Google Merchant Center property
	// [expiration_date](https://support.google.com/merchants/answer/6324499).
	ExpireTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3,oneof"`
}

type Product_Ttl

type Product_Ttl struct {
	// Input only. The TTL (time to live) of the product. Note that this is only
	// applicable to
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
	// [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
	// and ignored for
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
	// general, we suggest the users to delete the stale products explicitly,
	// instead of using this field to determine staleness.
	//
	// If it is set, it must be a non-negative value, and
	// [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is set as
	// current timestamp plus [ttl][google.cloud.retail.v2alpha.Product.ttl].
	// The derived
	// [expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
	// returned in the output and [ttl][google.cloud.retail.v2alpha.Product.ttl]
	// is left blank when retrieving the
	// [Product][google.cloud.retail.v2alpha.Product].
	//
	// If it is set, the product is not available for
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
	// after current timestamp plus
	// [ttl][google.cloud.retail.v2alpha.Product.ttl]. However, the product can
	// still be retrieved by
	// [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
	// and
	// [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
	Ttl *durationpb.Duration `protobuf:"bytes,17,opt,name=ttl,proto3,oneof"`
}

type Product_Type

type Product_Type int32

The type of this product.

const (
	// Default value. Default to
	// [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type]
	// if unset.
	Product_TYPE_UNSPECIFIED Product_Type = 0
	// The primary type.
	//
	// As the primary unit for predicting, indexing and search serving, a
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product] is grouped with multiple
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s.
	Product_PRIMARY Product_Type = 1
	// The variant type.
	//
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s usually share some common
	// attributes on the same
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]s, but they have variant
	// attributes like different colors, sizes and prices, etc.
	Product_VARIANT Product_Type = 2
	// The collection type. Collection products are bundled
	// [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
	// [Product][google.cloud.retail.v2alpha.Product]s or
	// [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s that are sold together,
	// such as a jewelry set with necklaces, earrings and rings, etc.
	Product_COLLECTION Product_Type = 3
)

func (Product_Type) Descriptor

func (Product_Type) Enum

func (x Product_Type) Enum() *Product_Type

func (Product_Type) EnumDescriptor deprecated

func (Product_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Product_Type.Descriptor instead.

func (Product_Type) Number

func (Product_Type) String

func (x Product_Type) String() string

func (Product_Type) Type

type Promotion

type Promotion struct {

	// ID of the promotion. For example, "free gift".
	//
	// The value must be a UTF-8 encoded string with a length limit of 128
	// characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
	// id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	//
	// Google Merchant Center property
	// [promotion](https://support.google.com/merchants/answer/7050148).
	PromotionId string `protobuf:"bytes,1,opt,name=promotion_id,json=promotionId,proto3" json:"promotion_id,omitempty"`
	// contains filtered or unexported fields
}

Promotion information.

func (*Promotion) Descriptor deprecated

func (*Promotion) Descriptor() ([]byte, []int)

Deprecated: Use Promotion.ProtoReflect.Descriptor instead.

func (*Promotion) GetPromotionId

func (x *Promotion) GetPromotionId() string

func (*Promotion) ProtoMessage

func (*Promotion) ProtoMessage()

func (*Promotion) ProtoReflect

func (x *Promotion) ProtoReflect() protoreflect.Message

func (*Promotion) Reset

func (x *Promotion) Reset()

func (*Promotion) String

func (x *Promotion) String() string

type PurchaseTransaction

type PurchaseTransaction struct {

	// The transaction ID with a length limit of 128 characters.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Required. Total non-zero revenue or grand total associated with the
	// transaction. This value include shipping, tax, or other adjustments to
	// total revenue that you want to include as part of your revenue
	// calculations.
	Revenue float32 `protobuf:"fixed32,2,opt,name=revenue,proto3" json:"revenue,omitempty"`
	// All the taxes associated with the transaction.
	Tax float32 `protobuf:"fixed32,3,opt,name=tax,proto3" json:"tax,omitempty"`
	// All the costs associated with the products. These can be manufacturing
	// costs, shipping expenses not borne by the end user, or any other costs,
	// such that:
	//
	// * Profit =
	// [revenue][google.cloud.retail.v2alpha.PurchaseTransaction.revenue] -
	// [tax][google.cloud.retail.v2alpha.PurchaseTransaction.tax] -
	// [cost][google.cloud.retail.v2alpha.PurchaseTransaction.cost]
	Cost float32 `protobuf:"fixed32,4,opt,name=cost,proto3" json:"cost,omitempty"`
	// Required. Currency code. Use three-character ISO-4217 code.
	CurrencyCode string `protobuf:"bytes,5,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// contains filtered or unexported fields
}

A transaction represents the entire purchase transaction.

func (*PurchaseTransaction) Descriptor deprecated

func (*PurchaseTransaction) Descriptor() ([]byte, []int)

Deprecated: Use PurchaseTransaction.ProtoReflect.Descriptor instead.

func (*PurchaseTransaction) GetCost

func (x *PurchaseTransaction) GetCost() float32

func (*PurchaseTransaction) GetCurrencyCode

func (x *PurchaseTransaction) GetCurrencyCode() string

func (*PurchaseTransaction) GetId

func (x *PurchaseTransaction) GetId() string

func (*PurchaseTransaction) GetRevenue

func (x *PurchaseTransaction) GetRevenue() float32

func (*PurchaseTransaction) GetTax

func (x *PurchaseTransaction) GetTax() float32

func (*PurchaseTransaction) ProtoMessage

func (*PurchaseTransaction) ProtoMessage()

func (*PurchaseTransaction) ProtoReflect

func (x *PurchaseTransaction) ProtoReflect() protoreflect.Message

func (*PurchaseTransaction) Reset

func (x *PurchaseTransaction) Reset()

func (*PurchaseTransaction) String

func (x *PurchaseTransaction) String() string

type PurgeMetadata

type PurgeMetadata struct {
	// contains filtered or unexported fields
}

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

func (*PurgeMetadata) Descriptor deprecated

func (*PurgeMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PurgeMetadata.ProtoReflect.Descriptor instead.

func (*PurgeMetadata) ProtoMessage

func (*PurgeMetadata) ProtoMessage()

func (*PurgeMetadata) ProtoReflect

func (x *PurgeMetadata) ProtoReflect() protoreflect.Message

func (*PurgeMetadata) Reset

func (x *PurgeMetadata) Reset()

func (*PurgeMetadata) String

func (x *PurgeMetadata) String() string

type PurgeProductsMetadata

type PurgeProductsMetadata struct {

	// Operation create time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Operation last update time. If the operation is done, this is also the
	// finish time.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Count of entries that were deleted successfully.
	SuccessCount int64 `protobuf:"varint,3,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
	// Count of entries that encountered errors while processing.
	FailureCount int64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"`
	// contains filtered or unexported fields
}

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

func (*PurgeProductsMetadata) Descriptor deprecated

func (*PurgeProductsMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PurgeProductsMetadata.ProtoReflect.Descriptor instead.

func (*PurgeProductsMetadata) GetCreateTime

func (x *PurgeProductsMetadata) GetCreateTime() *timestamppb.Timestamp

func (*PurgeProductsMetadata) GetFailureCount

func (x *PurgeProductsMetadata) GetFailureCount() int64

func (*PurgeProductsMetadata) GetSuccessCount

func (x *PurgeProductsMetadata) GetSuccessCount() int64

func (*PurgeProductsMetadata) GetUpdateTime

func (x *PurgeProductsMetadata) GetUpdateTime() *timestamppb.Timestamp

func (*PurgeProductsMetadata) ProtoMessage

func (*PurgeProductsMetadata) ProtoMessage()

func (*PurgeProductsMetadata) ProtoReflect

func (x *PurgeProductsMetadata) ProtoReflect() protoreflect.Message

func (*PurgeProductsMetadata) Reset

func (x *PurgeProductsMetadata) Reset()

func (*PurgeProductsMetadata) String

func (x *PurgeProductsMetadata) String() string

type PurgeProductsRequest

type PurgeProductsRequest struct {

	// Required. The resource name of the branch under which the products are
	// created. The format is
	// `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The filter string to specify the products to be deleted with a
	// length limit of 5,000 characters.
	//
	// Empty string filter is not allowed. "*" implies delete all items in a
	// branch.
	//
	// The eligible fields for filtering are:
	//
	// * `availability`: Double quoted
	// [Product.availability][google.cloud.retail.v2alpha.Product.availability]
	// string.
	// * `create_time` : in ISO 8601 "zulu" format.
	//
	// Supported syntax:
	//
	//   - Comparators (">", "<", ">=", "<=", "=").
	//     Examples:
	//   - create_time <= "2015-02-13T17:05:46Z"
	//   - availability = "IN_STOCK"
	//
	//   - Conjunctions ("AND")
	//     Examples:
	//   - create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
	//
	//   - Disjunctions ("OR")
	//     Examples:
	//   - create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
	//
	//   - Can support nested queries.
	//     Examples:
	//   - (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
	//     OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
	//
	// * Filter Limits:
	//   - Filter should not contain more than 6 conditions.
	//   - Max nesting depth should not exceed 2 levels.
	//
	// Examples queries:
	//   - Delete back order products created before a timestamp.
	//     create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Actually perform the purge.
	// If `force` is set to false, the method will return the expected purge count
	// without deleting any products.
	Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

Request message for PurgeProducts method.

func (*PurgeProductsRequest) Descriptor deprecated

func (*PurgeProductsRequest) Descriptor() ([]byte, []int)

Deprecated: Use PurgeProductsRequest.ProtoReflect.Descriptor instead.

func (*PurgeProductsRequest) GetFilter

func (x *PurgeProductsRequest) GetFilter() string

func (*PurgeProductsRequest) GetForce

func (x *PurgeProductsRequest) GetForce() bool

func (*PurgeProductsRequest) GetParent

func (x *PurgeProductsRequest) GetParent() string

func (*PurgeProductsRequest) ProtoMessage

func (*PurgeProductsRequest) ProtoMessage()

func (*PurgeProductsRequest) ProtoReflect

func (x *PurgeProductsRequest) ProtoReflect() protoreflect.Message

func (*PurgeProductsRequest) Reset

func (x *PurgeProductsRequest) Reset()

func (*PurgeProductsRequest) String

func (x *PurgeProductsRequest) String() string

type PurgeProductsResponse

type PurgeProductsResponse struct {

	// The total count of products purged as a result of the operation.
	PurgeCount int64 `protobuf:"varint,1,opt,name=purge_count,json=purgeCount,proto3" json:"purge_count,omitempty"`
	// A sample of the product names that will be deleted.
	// Only populated if `force` is set to false. A max of 100 names will be
	// returned and the names are chosen at random.
	PurgeSample []string `protobuf:"bytes,2,rep,name=purge_sample,json=purgeSample,proto3" json:"purge_sample,omitempty"`
	// contains filtered or unexported fields
}

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

func (*PurgeProductsResponse) Descriptor deprecated

func (*PurgeProductsResponse) Descriptor() ([]byte, []int)

Deprecated: Use PurgeProductsResponse.ProtoReflect.Descriptor instead.

func (*PurgeProductsResponse) GetPurgeCount

func (x *PurgeProductsResponse) GetPurgeCount() int64

func (*PurgeProductsResponse) GetPurgeSample

func (x *PurgeProductsResponse) GetPurgeSample() []string

func (*PurgeProductsResponse) ProtoMessage

func (*PurgeProductsResponse) ProtoMessage()

func (*PurgeProductsResponse) ProtoReflect

func (x *PurgeProductsResponse) ProtoReflect() protoreflect.Message

func (*PurgeProductsResponse) Reset

func (x *PurgeProductsResponse) Reset()

func (*PurgeProductsResponse) String

func (x *PurgeProductsResponse) String() string

type PurgeUserEventsRequest

type PurgeUserEventsRequest struct {

	// Required. The resource name of the catalog under which the events are
	// created. The format is
	// `projects/${projectId}/locations/global/catalogs/${catalogId}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The filter string to specify the events to be deleted with a
	// length limit of 5,000 characters. Empty string filter is not allowed. The
	// eligible fields for filtering are:
	//
	// * `eventType`: Double quoted
	// [UserEvent.event_type][google.cloud.retail.v2alpha.UserEvent.event_type]
	// string.
	//   - `eventTime`: in ISO 8601 "zulu" format.
	//   - `visitorId`: Double quoted string. Specifying this will delete all
	//     events associated with a visitor.
	//   - `userId`: Double quoted string. Specifying this will delete all events
	//     associated with a user.
	//
	// Examples:
	//
	//   - Deleting all events in a time range:
	//     `eventTime > "2012-04-23T18:25:43.511Z"
	//     eventTime < "2012-04-23T18:30:43.511Z"`
	//   - Deleting specific eventType in time range:
	//     `eventTime > "2012-04-23T18:25:43.511Z" eventType = "detail-page-view"`
	//   - Deleting all events for a specific visitor:
	//     `visitorId = "visitor1024"`
	//
	// The filtering fields are assumed to have an implicit AND.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Actually perform the purge.
	// If `force` is set to false, the method will return the expected purge count
	// without deleting any user events.
	Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

Request message for PurgeUserEvents method.

func (*PurgeUserEventsRequest) Descriptor deprecated

func (*PurgeUserEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use PurgeUserEventsRequest.ProtoReflect.Descriptor instead.

func (*PurgeUserEventsRequest) GetFilter

func (x *PurgeUserEventsRequest) GetFilter() string

func (*PurgeUserEventsRequest) GetForce

func (x *PurgeUserEventsRequest) GetForce() bool

func (*PurgeUserEventsRequest) GetParent

func (x *PurgeUserEventsRequest) GetParent() string

func (*PurgeUserEventsRequest) ProtoMessage

func (*PurgeUserEventsRequest) ProtoMessage()

func (*PurgeUserEventsRequest) ProtoReflect

func (x *PurgeUserEventsRequest) ProtoReflect() protoreflect.Message

func (*PurgeUserEventsRequest) Reset

func (x *PurgeUserEventsRequest) Reset()

func (*PurgeUserEventsRequest) String

func (x *PurgeUserEventsRequest) String() string

type PurgeUserEventsResponse

type PurgeUserEventsResponse struct {

	// The total count of events purged as a result of the operation.
	PurgedEventsCount int64 `protobuf:"varint,1,opt,name=purged_events_count,json=purgedEventsCount,proto3" json:"purged_events_count,omitempty"`
	// contains filtered or unexported fields
}

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

func (*PurgeUserEventsResponse) Descriptor deprecated

func (*PurgeUserEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use PurgeUserEventsResponse.ProtoReflect.Descriptor instead.

func (*PurgeUserEventsResponse) GetPurgedEventsCount

func (x *PurgeUserEventsResponse) GetPurgedEventsCount() int64

func (*PurgeUserEventsResponse) ProtoMessage

func (*PurgeUserEventsResponse) ProtoMessage()

func (*PurgeUserEventsResponse) ProtoReflect

func (x *PurgeUserEventsResponse) ProtoReflect() protoreflect.Message

func (*PurgeUserEventsResponse) Reset

func (x *PurgeUserEventsResponse) Reset()

func (*PurgeUserEventsResponse) String

func (x *PurgeUserEventsResponse) String() string

type Rating

type Rating struct {

	// The total number of ratings. This value is independent of the value of
	// [rating_histogram][google.cloud.retail.v2alpha.Rating.rating_histogram].
	//
	// This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	RatingCount int32 `protobuf:"varint,1,opt,name=rating_count,json=ratingCount,proto3" json:"rating_count,omitempty"`
	// The average rating of the [Product][google.cloud.retail.v2alpha.Product].
	//
	// The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is
	// returned.
	AverageRating float32 `protobuf:"fixed32,2,opt,name=average_rating,json=averageRating,proto3" json:"average_rating,omitempty"`
	// List of rating counts per rating value (index = rating - 1). The list is
	// empty if there is no rating. If the list is non-empty, its size is
	// always 5. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// For example, [41, 14, 13, 47, 303]. It means that the
	// [Product][google.cloud.retail.v2alpha.Product] got 41 ratings with 1 star,
	// 14 ratings with 2 star, and so on.
	RatingHistogram []int32 `protobuf:"varint,3,rep,packed,name=rating_histogram,json=ratingHistogram,proto3" json:"rating_histogram,omitempty"`
	// contains filtered or unexported fields
}

The rating of a Product[google.cloud.retail.v2alpha.Product].

func (*Rating) Descriptor deprecated

func (*Rating) Descriptor() ([]byte, []int)

Deprecated: Use Rating.ProtoReflect.Descriptor instead.

func (*Rating) GetAverageRating

func (x *Rating) GetAverageRating() float32

func (*Rating) GetRatingCount

func (x *Rating) GetRatingCount() int32

func (*Rating) GetRatingHistogram

func (x *Rating) GetRatingHistogram() []int32

func (*Rating) ProtoMessage

func (*Rating) ProtoMessage()

func (*Rating) ProtoReflect

func (x *Rating) ProtoReflect() protoreflect.Message

func (*Rating) Reset

func (x *Rating) Reset()

func (*Rating) String

func (x *Rating) String() string

type RecommendationsFilteringOption

type RecommendationsFilteringOption int32

If filtering for recommendations is enabled.

const (
	// Value used when unset.
	// In this case, server behavior defaults to
	// [RECOMMENDATIONS_FILTERING_DISABLED][google.cloud.retail.v2alpha.RecommendationsFilteringOption.RECOMMENDATIONS_FILTERING_DISABLED].
	RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED RecommendationsFilteringOption = 0
	// Recommendation filtering is disabled.
	RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_DISABLED RecommendationsFilteringOption = 1
	// Recommendation filtering is enabled.
	RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_ENABLED RecommendationsFilteringOption = 3
)

func (RecommendationsFilteringOption) Descriptor

func (RecommendationsFilteringOption) Enum

func (RecommendationsFilteringOption) EnumDescriptor deprecated

func (RecommendationsFilteringOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecommendationsFilteringOption.Descriptor instead.

func (RecommendationsFilteringOption) Number

func (RecommendationsFilteringOption) String

func (RecommendationsFilteringOption) Type

type RejoinUserEventsMetadata

type RejoinUserEventsMetadata struct {
	// contains filtered or unexported fields
}

Metadata for `RejoinUserEvents` method.

func (*RejoinUserEventsMetadata) Descriptor deprecated

func (*RejoinUserEventsMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RejoinUserEventsMetadata.ProtoReflect.Descriptor instead.

func (*RejoinUserEventsMetadata) ProtoMessage

func (*RejoinUserEventsMetadata) ProtoMessage()

func (*RejoinUserEventsMetadata) ProtoReflect

func (x *RejoinUserEventsMetadata) ProtoReflect() protoreflect.Message

func (*RejoinUserEventsMetadata) Reset

func (x *RejoinUserEventsMetadata) Reset()

func (*RejoinUserEventsMetadata) String

func (x *RejoinUserEventsMetadata) String() string

type RejoinUserEventsRequest

type RejoinUserEventsRequest struct {

	// Required. The parent catalog resource name, such as
	// `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The type of the user event rejoin to define the scope and range of the user
	// events to be rejoined with the latest product catalog. Defaults to
	// `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to
	// an invalid integer value.
	UserEventRejoinScope RejoinUserEventsRequest_UserEventRejoinScope `` /* 204-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for RejoinUserEvents method.

func (*RejoinUserEventsRequest) Descriptor deprecated

func (*RejoinUserEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use RejoinUserEventsRequest.ProtoReflect.Descriptor instead.

func (*RejoinUserEventsRequest) GetParent

func (x *RejoinUserEventsRequest) GetParent() string

func (*RejoinUserEventsRequest) GetUserEventRejoinScope

func (*RejoinUserEventsRequest) ProtoMessage

func (*RejoinUserEventsRequest) ProtoMessage()

func (*RejoinUserEventsRequest) ProtoReflect

func (x *RejoinUserEventsRequest) ProtoReflect() protoreflect.Message

func (*RejoinUserEventsRequest) Reset

func (x *RejoinUserEventsRequest) Reset()

func (*RejoinUserEventsRequest) String

func (x *RejoinUserEventsRequest) String() string

type RejoinUserEventsRequest_UserEventRejoinScope

type RejoinUserEventsRequest_UserEventRejoinScope int32

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

const (
	// Rejoin all events with the latest product catalog, including both joined
	// events and unjoined events.
	RejoinUserEventsRequest_USER_EVENT_REJOIN_SCOPE_UNSPECIFIED RejoinUserEventsRequest_UserEventRejoinScope = 0
	// Only rejoin joined events with the latest product catalog.
	RejoinUserEventsRequest_JOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 1
	// Only rejoin unjoined events with the latest product catalog.
	RejoinUserEventsRequest_UNJOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 2
)

func (RejoinUserEventsRequest_UserEventRejoinScope) Descriptor

func (RejoinUserEventsRequest_UserEventRejoinScope) Enum

func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor deprecated

func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use RejoinUserEventsRequest_UserEventRejoinScope.Descriptor instead.

func (RejoinUserEventsRequest_UserEventRejoinScope) Number

func (RejoinUserEventsRequest_UserEventRejoinScope) String

func (RejoinUserEventsRequest_UserEventRejoinScope) Type

type RejoinUserEventsResponse

type RejoinUserEventsResponse struct {

	// Number of user events that were joined with latest product catalog.
	RejoinedUserEventsCount int64 `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for `RejoinUserEvents` method.

func (*RejoinUserEventsResponse) Descriptor deprecated

func (*RejoinUserEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use RejoinUserEventsResponse.ProtoReflect.Descriptor instead.

func (*RejoinUserEventsResponse) GetRejoinedUserEventsCount

func (x *RejoinUserEventsResponse) GetRejoinedUserEventsCount() int64

func (*RejoinUserEventsResponse) ProtoMessage

func (*RejoinUserEventsResponse) ProtoMessage()

func (*RejoinUserEventsResponse) ProtoReflect

func (x *RejoinUserEventsResponse) ProtoReflect() protoreflect.Message

func (*RejoinUserEventsResponse) Reset

func (x *RejoinUserEventsResponse) Reset()

func (*RejoinUserEventsResponse) String

func (x *RejoinUserEventsResponse) String() string

type RemoveCatalogAttributeRequest

type RemoveCatalogAttributeRequest struct {

	// Required. Full AttributesConfig resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
	AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"`
	// Required. The attribute name key of the
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to remove.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.RemoveCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.RemoveCatalogAttribute] method.

func (*RemoveCatalogAttributeRequest) Descriptor deprecated

func (*RemoveCatalogAttributeRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveCatalogAttributeRequest.ProtoReflect.Descriptor instead.

func (*RemoveCatalogAttributeRequest) GetAttributesConfig

func (x *RemoveCatalogAttributeRequest) GetAttributesConfig() string

func (*RemoveCatalogAttributeRequest) GetKey

func (*RemoveCatalogAttributeRequest) ProtoMessage

func (*RemoveCatalogAttributeRequest) ProtoMessage()

func (*RemoveCatalogAttributeRequest) ProtoReflect

func (*RemoveCatalogAttributeRequest) Reset

func (x *RemoveCatalogAttributeRequest) Reset()

func (*RemoveCatalogAttributeRequest) String

type RemoveControlRequest

type RemoveControlRequest struct {

	// Required. The source ServingConfig resource name . Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
	ServingConfig string `protobuf:"bytes,1,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"`
	// Required. The id of the control to apply. Assumed to be in the same catalog
	// as the serving config.
	ControlId string `protobuf:"bytes,2,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
	// contains filtered or unexported fields
}

Request for RemoveControl method.

func (*RemoveControlRequest) Descriptor deprecated

func (*RemoveControlRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveControlRequest.ProtoReflect.Descriptor instead.

func (*RemoveControlRequest) GetControlId

func (x *RemoveControlRequest) GetControlId() string

func (*RemoveControlRequest) GetServingConfig

func (x *RemoveControlRequest) GetServingConfig() string

func (*RemoveControlRequest) ProtoMessage

func (*RemoveControlRequest) ProtoMessage()

func (*RemoveControlRequest) ProtoReflect

func (x *RemoveControlRequest) ProtoReflect() protoreflect.Message

func (*RemoveControlRequest) Reset

func (x *RemoveControlRequest) Reset()

func (*RemoveControlRequest) String

func (x *RemoveControlRequest) String() string

type RemoveFulfillmentPlacesMetadata

type RemoveFulfillmentPlacesMetadata struct {
	// contains filtered or unexported fields
}

Metadata related to the progress of the RemoveFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method.

func (*RemoveFulfillmentPlacesMetadata) Descriptor deprecated

func (*RemoveFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFulfillmentPlacesMetadata.ProtoReflect.Descriptor instead.

func (*RemoveFulfillmentPlacesMetadata) ProtoMessage

func (*RemoveFulfillmentPlacesMetadata) ProtoMessage()

func (*RemoveFulfillmentPlacesMetadata) ProtoReflect

func (*RemoveFulfillmentPlacesMetadata) Reset

func (*RemoveFulfillmentPlacesMetadata) String

type RemoveFulfillmentPlacesRequest

type RemoveFulfillmentPlacesRequest struct {

	// Required. Full resource name of
	// [Product][google.cloud.retail.v2alpha.Product], such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
	//
	// If the caller does not have permission to access the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	Product string `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// Required. The fulfillment type, including commonly used types (such as
	// pickup in store and same day delivery), and custom types.
	//
	// Supported values:
	//
	// * "pickup-in-store"
	// * "ship-to-store"
	// * "same-day-delivery"
	// * "next-day-delivery"
	// * "custom-type-1"
	// * "custom-type-2"
	// * "custom-type-3"
	// * "custom-type-4"
	// * "custom-type-5"
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	//
	// This field directly corresponds to
	// [Product.fulfillment_info.type][google.cloud.retail.v2alpha.FulfillmentInfo.type].
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Required. The IDs for this
	// [type][google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest.type],
	// such as the store IDs for "pickup-in-store" or the region IDs for
	// "same-day-delivery", to be removed for this
	// [type][google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest.type].
	//
	// At least 1 value is required, and a maximum of 2000 values are allowed.
	// Each value must be a string with a length limit of 10 characters, matching
	// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
	// INVALID_ARGUMENT error is returned.
	PlaceIds []string `protobuf:"bytes,3,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"`
	// The time when the fulfillment updates are issued, used to prevent
	// out-of-order updates on fulfillment information. If not provided, the
	// internal system time will be used.
	RemoveTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"`
	// If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is
	// not found, the fulfillment information will still be processed and retained
	// for at most 1 day and processed once the
	// [Product][google.cloud.retail.v2alpha.Product] is created. If set to false,
	// a NOT_FOUND error is returned if the
	// [Product][google.cloud.retail.v2alpha.Product] is not found.
	AllowMissing bool `protobuf:"varint,5,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method.

func (*RemoveFulfillmentPlacesRequest) Descriptor deprecated

func (*RemoveFulfillmentPlacesRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFulfillmentPlacesRequest.ProtoReflect.Descriptor instead.

func (*RemoveFulfillmentPlacesRequest) GetAllowMissing

func (x *RemoveFulfillmentPlacesRequest) GetAllowMissing() bool

func (*RemoveFulfillmentPlacesRequest) GetPlaceIds

func (x *RemoveFulfillmentPlacesRequest) GetPlaceIds() []string

func (*RemoveFulfillmentPlacesRequest) GetProduct

func (x *RemoveFulfillmentPlacesRequest) GetProduct() string

func (*RemoveFulfillmentPlacesRequest) GetRemoveTime

func (*RemoveFulfillmentPlacesRequest) GetType

func (*RemoveFulfillmentPlacesRequest) ProtoMessage

func (*RemoveFulfillmentPlacesRequest) ProtoMessage()

func (*RemoveFulfillmentPlacesRequest) ProtoReflect

func (*RemoveFulfillmentPlacesRequest) Reset

func (x *RemoveFulfillmentPlacesRequest) Reset()

func (*RemoveFulfillmentPlacesRequest) String

type RemoveFulfillmentPlacesResponse

type RemoveFulfillmentPlacesResponse struct {
	// contains filtered or unexported fields
}

Response of the RemoveFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method.

func (*RemoveFulfillmentPlacesResponse) Descriptor deprecated

func (*RemoveFulfillmentPlacesResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveFulfillmentPlacesResponse.ProtoReflect.Descriptor instead.

func (*RemoveFulfillmentPlacesResponse) ProtoMessage

func (*RemoveFulfillmentPlacesResponse) ProtoMessage()

func (*RemoveFulfillmentPlacesResponse) ProtoReflect

func (*RemoveFulfillmentPlacesResponse) Reset

func (*RemoveFulfillmentPlacesResponse) String

type RemoveLocalInventoriesMetadata

type RemoveLocalInventoriesMetadata struct {
	// contains filtered or unexported fields
}

Metadata related to the progress of the RemoveLocalInventories operation. Currently empty because there is no meaningful metadata populated from the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method.

func (*RemoveLocalInventoriesMetadata) Descriptor deprecated

func (*RemoveLocalInventoriesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RemoveLocalInventoriesMetadata.ProtoReflect.Descriptor instead.

func (*RemoveLocalInventoriesMetadata) ProtoMessage

func (*RemoveLocalInventoriesMetadata) ProtoMessage()

func (*RemoveLocalInventoriesMetadata) ProtoReflect

func (*RemoveLocalInventoriesMetadata) Reset

func (x *RemoveLocalInventoriesMetadata) Reset()

func (*RemoveLocalInventoriesMetadata) String

type RemoveLocalInventoriesRequest

type RemoveLocalInventoriesRequest struct {

	// Required. Full resource name of
	// [Product][google.cloud.retail.v2alpha.Product], such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
	//
	// If the caller does not have permission to access the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	Product string `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// Required. A list of place IDs to have their inventory deleted.
	// At most 3000 place IDs are allowed per request.
	PlaceIds []string `protobuf:"bytes,2,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"`
	// The time when the inventory deletions are issued. Used to prevent
	// out-of-order updates and deletions on local inventory fields. If not
	// provided, the internal system time will be used.
	RemoveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"`
	// If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is
	// not found, the local inventory removal request will still be processed and
	// retained for at most 1 day and processed once the
	// [Product][google.cloud.retail.v2alpha.Product] is created. If set to false,
	// a NOT_FOUND error is returned if the
	// [Product][google.cloud.retail.v2alpha.Product] is not found.
	AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method.

func (*RemoveLocalInventoriesRequest) Descriptor deprecated

func (*RemoveLocalInventoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveLocalInventoriesRequest.ProtoReflect.Descriptor instead.

func (*RemoveLocalInventoriesRequest) GetAllowMissing

func (x *RemoveLocalInventoriesRequest) GetAllowMissing() bool

func (*RemoveLocalInventoriesRequest) GetPlaceIds

func (x *RemoveLocalInventoriesRequest) GetPlaceIds() []string

func (*RemoveLocalInventoriesRequest) GetProduct

func (x *RemoveLocalInventoriesRequest) GetProduct() string

func (*RemoveLocalInventoriesRequest) GetRemoveTime

func (*RemoveLocalInventoriesRequest) ProtoMessage

func (*RemoveLocalInventoriesRequest) ProtoMessage()

func (*RemoveLocalInventoriesRequest) ProtoReflect

func (*RemoveLocalInventoriesRequest) Reset

func (x *RemoveLocalInventoriesRequest) Reset()

func (*RemoveLocalInventoriesRequest) String

type RemoveLocalInventoriesResponse

type RemoveLocalInventoriesResponse struct {
	// contains filtered or unexported fields
}

Response of the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] API. Currently empty because there is no meaningful response populated from the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method.

func (*RemoveLocalInventoriesResponse) Descriptor deprecated

func (*RemoveLocalInventoriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveLocalInventoriesResponse.ProtoReflect.Descriptor instead.

func (*RemoveLocalInventoriesResponse) ProtoMessage

func (*RemoveLocalInventoriesResponse) ProtoMessage()

func (*RemoveLocalInventoriesResponse) ProtoReflect

func (*RemoveLocalInventoriesResponse) Reset

func (x *RemoveLocalInventoriesResponse) Reset()

func (*RemoveLocalInventoriesResponse) String

type ReplaceCatalogAttributeRequest

type ReplaceCatalogAttributeRequest struct {

	// Required. Full AttributesConfig resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
	AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"`
	// Required. The updated
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
	CatalogAttribute *CatalogAttribute `protobuf:"bytes,2,opt,name=catalog_attribute,json=catalogAttribute,proto3" json:"catalog_attribute,omitempty"`
	// Indicates which fields in the provided
	// [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
	// The following are NOT supported:
	//
	// * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
	//
	// If not set, all supported fields are updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.ReplaceCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.ReplaceCatalogAttribute] method.

func (*ReplaceCatalogAttributeRequest) Descriptor deprecated

func (*ReplaceCatalogAttributeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReplaceCatalogAttributeRequest.ProtoReflect.Descriptor instead.

func (*ReplaceCatalogAttributeRequest) GetAttributesConfig

func (x *ReplaceCatalogAttributeRequest) GetAttributesConfig() string

func (*ReplaceCatalogAttributeRequest) GetCatalogAttribute

func (x *ReplaceCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute

func (*ReplaceCatalogAttributeRequest) GetUpdateMask

func (*ReplaceCatalogAttributeRequest) ProtoMessage

func (*ReplaceCatalogAttributeRequest) ProtoMessage()

func (*ReplaceCatalogAttributeRequest) ProtoReflect

func (*ReplaceCatalogAttributeRequest) Reset

func (x *ReplaceCatalogAttributeRequest) Reset()

func (*ReplaceCatalogAttributeRequest) String

type ResumeModelRequest

type ResumeModelRequest struct {

	// Required. The name of the model to resume.
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for resuming training of a model.

func (*ResumeModelRequest) Descriptor deprecated

func (*ResumeModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResumeModelRequest.ProtoReflect.Descriptor instead.

func (*ResumeModelRequest) GetName

func (x *ResumeModelRequest) GetName() string

func (*ResumeModelRequest) ProtoMessage

func (*ResumeModelRequest) ProtoMessage()

func (*ResumeModelRequest) ProtoReflect

func (x *ResumeModelRequest) ProtoReflect() protoreflect.Message

func (*ResumeModelRequest) Reset

func (x *ResumeModelRequest) Reset()

func (*ResumeModelRequest) String

func (x *ResumeModelRequest) String() string

type Rule

type Rule struct {

	// An action must be provided.
	//
	// Types that are assignable to Action:
	//
	//	*Rule_BoostAction_
	//	*Rule_RedirectAction_
	//	*Rule_OnewaySynonymsAction_
	//	*Rule_DoNotAssociateAction_
	//	*Rule_ReplacementAction_
	//	*Rule_IgnoreAction_
	//	*Rule_FilterAction_
	//	*Rule_TwowaySynonymsAction_
	Action isRule_Action `protobuf_oneof:"action"`
	// Required. The condition that triggers the rule.
	// If the condition is empty, the rule will always apply.
	Condition *Condition `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"`
	// contains filtered or unexported fields
}

A rule is a condition-action pair

* A condition defines when a rule is to be triggered. * An action specifies what occurs on that trigger. Currently rules only work for [controls][google.cloud.retail.v2alpha.Control] with [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].

func (*Rule) Descriptor deprecated

func (*Rule) Descriptor() ([]byte, []int)

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetAction

func (m *Rule) GetAction() isRule_Action

func (*Rule) GetBoostAction

func (x *Rule) GetBoostAction() *Rule_BoostAction

func (*Rule) GetCondition

func (x *Rule) GetCondition() *Condition

func (*Rule) GetDoNotAssociateAction

func (x *Rule) GetDoNotAssociateAction() *Rule_DoNotAssociateAction

func (*Rule) GetFilterAction

func (x *Rule) GetFilterAction() *Rule_FilterAction

func (*Rule) GetIgnoreAction

func (x *Rule) GetIgnoreAction() *Rule_IgnoreAction

func (*Rule) GetOnewaySynonymsAction

func (x *Rule) GetOnewaySynonymsAction() *Rule_OnewaySynonymsAction

func (*Rule) GetRedirectAction

func (x *Rule) GetRedirectAction() *Rule_RedirectAction

func (*Rule) GetReplacementAction

func (x *Rule) GetReplacementAction() *Rule_ReplacementAction

func (*Rule) GetTwowaySynonymsAction

func (x *Rule) GetTwowaySynonymsAction() *Rule_TwowaySynonymsAction

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

func (x *Rule) ProtoReflect() protoreflect.Message

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

type Rule_BoostAction

type Rule_BoostAction struct {

	// Strength of the condition boost, which must be in [-1, 1]. Negative
	// boost means demotion. Default is 0.0.
	//
	// Setting to 1.0 gives the item a big promotion. However, it does not
	// necessarily mean that the boosted item will be the top result at all
	// times, nor that other items will be excluded. Results could still be
	// shown even when none of them matches the condition. And results that
	// are significantly more relevant to the search query can still trump
	// your heavily favored but irrelevant items.
	//
	// Setting to -1.0 gives the item a big demotion. However, results that
	// are deeply relevant might still be shown. The item will have an
	// upstream battle to get a fairly high ranking, but it is not blocked out
	// completely.
	//
	// Setting to 0.0 means no boost applied. The boosting condition is
	// ignored.
	Boost float32 `protobuf:"fixed32,1,opt,name=boost,proto3" json:"boost,omitempty"`
	// The filter can have a max size of 5000 characters.
	// An expression which specifies which products to apply an action to.
	// The syntax and supported fields are the same as a filter expression. See
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
	// for 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>*
	ProductsFilter string `protobuf:"bytes,2,opt,name=products_filter,json=productsFilter,proto3" json:"products_filter,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Rule_BoostAction) Descriptor deprecated

func (*Rule_BoostAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_BoostAction.ProtoReflect.Descriptor instead.

func (*Rule_BoostAction) GetBoost

func (x *Rule_BoostAction) GetBoost() float32

func (*Rule_BoostAction) GetProductsFilter

func (x *Rule_BoostAction) GetProductsFilter() string

func (*Rule_BoostAction) ProtoMessage

func (*Rule_BoostAction) ProtoMessage()

func (*Rule_BoostAction) ProtoReflect

func (x *Rule_BoostAction) ProtoReflect() protoreflect.Message

func (*Rule_BoostAction) Reset

func (x *Rule_BoostAction) Reset()

func (*Rule_BoostAction) String

func (x *Rule_BoostAction) String() string

type Rule_BoostAction_

type Rule_BoostAction_ struct {
	// A boost action.
	BoostAction *Rule_BoostAction `protobuf:"bytes,2,opt,name=boost_action,json=boostAction,proto3,oneof"`
}

type Rule_DoNotAssociateAction

type Rule_DoNotAssociateAction struct {

	// Terms from the search query.
	// Will not consider do_not_associate_terms for search if in search query.
	// Can specify up to 100 terms.
	QueryTerms []string `protobuf:"bytes,2,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"`
	// Cannot contain duplicates or the query term.
	// Can specify up to 100 terms.
	DoNotAssociateTerms []string `protobuf:"bytes,3,rep,name=do_not_associate_terms,json=doNotAssociateTerms,proto3" json:"do_not_associate_terms,omitempty"`
	// Will be [deprecated = true] post migration;
	Terms []string `protobuf:"bytes,1,rep,name=terms,proto3" json:"terms,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Rule_DoNotAssociateAction) Descriptor deprecated

func (*Rule_DoNotAssociateAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_DoNotAssociateAction.ProtoReflect.Descriptor instead.

func (*Rule_DoNotAssociateAction) GetDoNotAssociateTerms

func (x *Rule_DoNotAssociateAction) GetDoNotAssociateTerms() []string

func (*Rule_DoNotAssociateAction) GetQueryTerms

func (x *Rule_DoNotAssociateAction) GetQueryTerms() []string

func (*Rule_DoNotAssociateAction) GetTerms

func (x *Rule_DoNotAssociateAction) GetTerms() []string

func (*Rule_DoNotAssociateAction) ProtoMessage

func (*Rule_DoNotAssociateAction) ProtoMessage()

func (*Rule_DoNotAssociateAction) ProtoReflect

func (*Rule_DoNotAssociateAction) Reset

func (x *Rule_DoNotAssociateAction) Reset()

func (*Rule_DoNotAssociateAction) String

func (x *Rule_DoNotAssociateAction) String() string

type Rule_DoNotAssociateAction_

type Rule_DoNotAssociateAction_ struct {
	// Prevents term from being associated with other terms.
	DoNotAssociateAction *Rule_DoNotAssociateAction `protobuf:"bytes,7,opt,name=do_not_associate_action,json=doNotAssociateAction,proto3,oneof"`
}

type Rule_FilterAction

type Rule_FilterAction struct {

	// A filter to apply on the matching condition results. Supported features:
	//
	// * [filter][google.cloud.retail.v2alpha.Rule.FilterAction.filter] must be
	// set.
	// * Filter syntax is identical to
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
	// See more
	//
	//	details at the Retail Search
	//	[user guide](/retail/search/docs/filter-and-order#filter).
	//
	// * To filter 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>*
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

* Rule Condition:

  • No [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] provided is a global match.
  • 1 or more [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] provided are combined with OR operator.

* Action Input: The request query and filter that are applied to the retrieved products, in addition to any filters already provided with the SearchRequest. The AND operator is used to combine the query's existing filters with the filter rule(s). NOTE: May result in 0 results when filters conflict. * Action Result: Filters the returned objects to be ONLY those that passed the filter.

func (*Rule_FilterAction) Descriptor deprecated

func (*Rule_FilterAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_FilterAction.ProtoReflect.Descriptor instead.

func (*Rule_FilterAction) GetFilter

func (x *Rule_FilterAction) GetFilter() string

func (*Rule_FilterAction) ProtoMessage

func (*Rule_FilterAction) ProtoMessage()

func (*Rule_FilterAction) ProtoReflect

func (x *Rule_FilterAction) ProtoReflect() protoreflect.Message

func (*Rule_FilterAction) Reset

func (x *Rule_FilterAction) Reset()

func (*Rule_FilterAction) String

func (x *Rule_FilterAction) String() string

type Rule_FilterAction_

type Rule_FilterAction_ struct {
	// Filters results.
	FilterAction *Rule_FilterAction `protobuf:"bytes,10,opt,name=filter_action,json=filterAction,proto3,oneof"`
}

type Rule_IgnoreAction

type Rule_IgnoreAction struct {

	// Terms to ignore in the search query.
	IgnoreTerms []string `protobuf:"bytes,1,rep,name=ignore_terms,json=ignoreTerms,proto3" json:"ignore_terms,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Rule_IgnoreAction) Descriptor deprecated

func (*Rule_IgnoreAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_IgnoreAction.ProtoReflect.Descriptor instead.

func (*Rule_IgnoreAction) GetIgnoreTerms

func (x *Rule_IgnoreAction) GetIgnoreTerms() []string

func (*Rule_IgnoreAction) ProtoMessage

func (*Rule_IgnoreAction) ProtoMessage()

func (*Rule_IgnoreAction) ProtoReflect

func (x *Rule_IgnoreAction) ProtoReflect() protoreflect.Message

func (*Rule_IgnoreAction) Reset

func (x *Rule_IgnoreAction) Reset()

func (*Rule_IgnoreAction) String

func (x *Rule_IgnoreAction) String() string

type Rule_IgnoreAction_

type Rule_IgnoreAction_ struct {
	// Ignores specific terms from query during search.
	IgnoreAction *Rule_IgnoreAction `protobuf:"bytes,9,opt,name=ignore_action,json=ignoreAction,proto3,oneof"`
}

type Rule_OnewaySynonymsAction

type Rule_OnewaySynonymsAction struct {

	// Terms from the search query.
	// Will treat synonyms as their synonyms.
	// Not themselves synonyms of the synonyms.
	// Can specify up to 100 terms.
	QueryTerms []string `protobuf:"bytes,3,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"`
	// Defines a set of synonyms.
	// Cannot contain duplicates.
	// Can specify up to 100 synonyms.
	Synonyms []string `protobuf:"bytes,4,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
	// Will be [deprecated = true] post migration;
	OnewayTerms []string `protobuf:"bytes,2,rep,name=oneway_terms,json=onewayTerms,proto3" json:"oneway_terms,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Rule_OnewaySynonymsAction) Descriptor deprecated

func (*Rule_OnewaySynonymsAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_OnewaySynonymsAction.ProtoReflect.Descriptor instead.

func (*Rule_OnewaySynonymsAction) GetOnewayTerms

func (x *Rule_OnewaySynonymsAction) GetOnewayTerms() []string

func (*Rule_OnewaySynonymsAction) GetQueryTerms

func (x *Rule_OnewaySynonymsAction) GetQueryTerms() []string

func (*Rule_OnewaySynonymsAction) GetSynonyms

func (x *Rule_OnewaySynonymsAction) GetSynonyms() []string

func (*Rule_OnewaySynonymsAction) ProtoMessage

func (*Rule_OnewaySynonymsAction) ProtoMessage()

func (*Rule_OnewaySynonymsAction) ProtoReflect

func (*Rule_OnewaySynonymsAction) Reset

func (x *Rule_OnewaySynonymsAction) Reset()

func (*Rule_OnewaySynonymsAction) String

func (x *Rule_OnewaySynonymsAction) String() string

type Rule_OnewaySynonymsAction_

type Rule_OnewaySynonymsAction_ struct {
	// Treats specific term as a synonym with a group of terms.
	// Group of terms will not be treated as synonyms with the specific term.
	OnewaySynonymsAction *Rule_OnewaySynonymsAction `protobuf:"bytes,6,opt,name=oneway_synonyms_action,json=onewaySynonymsAction,proto3,oneof"`
}

type Rule_RedirectAction

type Rule_RedirectAction struct {

	// URL must have length equal or less than 2000 characters.
	RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// contains filtered or unexported fields
}

Redirects a shopper to a specific page.

* Rule Condition:

  • Must specify [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms].

* Action Input: Request Query * Action Result: Redirects shopper to provided uri.

func (*Rule_RedirectAction) Descriptor deprecated

func (*Rule_RedirectAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_RedirectAction.ProtoReflect.Descriptor instead.

func (*Rule_RedirectAction) GetRedirectUri

func (x *Rule_RedirectAction) GetRedirectUri() string

func (*Rule_RedirectAction) ProtoMessage

func (*Rule_RedirectAction) ProtoMessage()

func (*Rule_RedirectAction) ProtoReflect

func (x *Rule_RedirectAction) ProtoReflect() protoreflect.Message

func (*Rule_RedirectAction) Reset

func (x *Rule_RedirectAction) Reset()

func (*Rule_RedirectAction) String

func (x *Rule_RedirectAction) String() string

type Rule_RedirectAction_

type Rule_RedirectAction_ struct {
	// Redirects a shopper to a specific page.
	RedirectAction *Rule_RedirectAction `protobuf:"bytes,3,opt,name=redirect_action,json=redirectAction,proto3,oneof"`
}

type Rule_ReplacementAction

type Rule_ReplacementAction struct {

	// Terms from the search query.
	// Will be replaced by replacement term.
	// Can specify up to 100 terms.
	QueryTerms []string `protobuf:"bytes,2,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"`
	// Term that will be used for replacement.
	ReplacementTerm string `protobuf:"bytes,3,opt,name=replacement_term,json=replacementTerm,proto3" json:"replacement_term,omitempty"`
	// Will be [deprecated = true] post migration;
	Term string `protobuf:"bytes,1,opt,name=term,proto3" json:"term,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Rule_ReplacementAction) Descriptor deprecated

func (*Rule_ReplacementAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_ReplacementAction.ProtoReflect.Descriptor instead.

func (*Rule_ReplacementAction) GetQueryTerms

func (x *Rule_ReplacementAction) GetQueryTerms() []string

func (*Rule_ReplacementAction) GetReplacementTerm

func (x *Rule_ReplacementAction) GetReplacementTerm() string

func (*Rule_ReplacementAction) GetTerm

func (x *Rule_ReplacementAction) GetTerm() string

func (*Rule_ReplacementAction) ProtoMessage

func (*Rule_ReplacementAction) ProtoMessage()

func (*Rule_ReplacementAction) ProtoReflect

func (x *Rule_ReplacementAction) ProtoReflect() protoreflect.Message

func (*Rule_ReplacementAction) Reset

func (x *Rule_ReplacementAction) Reset()

func (*Rule_ReplacementAction) String

func (x *Rule_ReplacementAction) String() string

type Rule_ReplacementAction_

type Rule_ReplacementAction_ struct {
	// Replaces specific terms in the query.
	ReplacementAction *Rule_ReplacementAction `protobuf:"bytes,8,opt,name=replacement_action,json=replacementAction,proto3,oneof"`
}

type Rule_TwowaySynonymsAction

type Rule_TwowaySynonymsAction struct {

	// Defines a set of synonyms.
	// Can specify up to 100 synonyms.
	// Must specify at least 2 synonyms.
	Synonyms []string `protobuf:"bytes,1,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
	// contains filtered or unexported fields
}

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

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

func (*Rule_TwowaySynonymsAction) Descriptor deprecated

func (*Rule_TwowaySynonymsAction) Descriptor() ([]byte, []int)

Deprecated: Use Rule_TwowaySynonymsAction.ProtoReflect.Descriptor instead.

func (*Rule_TwowaySynonymsAction) GetSynonyms

func (x *Rule_TwowaySynonymsAction) GetSynonyms() []string

func (*Rule_TwowaySynonymsAction) ProtoMessage

func (*Rule_TwowaySynonymsAction) ProtoMessage()

func (*Rule_TwowaySynonymsAction) ProtoReflect

func (*Rule_TwowaySynonymsAction) Reset

func (x *Rule_TwowaySynonymsAction) Reset()

func (*Rule_TwowaySynonymsAction) String

func (x *Rule_TwowaySynonymsAction) String() string

type Rule_TwowaySynonymsAction_

type Rule_TwowaySynonymsAction_ struct {
	// Treats a set of terms as synonyms of one another.
	TwowaySynonymsAction *Rule_TwowaySynonymsAction `protobuf:"bytes,11,opt,name=twoway_synonyms_action,json=twowaySynonymsAction,proto3,oneof"`
}

type SearchRequest

type SearchRequest struct {

	// Required. The resource name of the Retail Search serving config, such as
	// `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
	// or the name of the legacy placement resource, such as
	// `projects/*/locations/global/catalogs/default_catalog/placements/default_search`.
	// This field is used to identify the serving config name and the set
	// of models that will be used to make the search.
	Placement string `protobuf:"bytes,1,opt,name=placement,proto3" json:"placement,omitempty"`
	// The branch resource name, such as
	// `projects/*/locations/global/catalogs/default_catalog/branches/0`.
	//
	// Use "default_branch" as the branch ID or leave this field empty, to search
	// products under the default branch.
	Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	// Raw search query.
	//
	// If this field is empty, the request is considered a category browsing
	// request and returned results are based on
	// [filter][google.cloud.retail.v2alpha.SearchRequest.filter] and
	// [page_categories][google.cloud.retail.v2alpha.SearchRequest.page_categories].
	Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	// Required. A unique identifier for tracking visitors. For example, this
	// could be implemented with an HTTP cookie, which should be able to uniquely
	// identify a visitor on a single device. This unique identifier should not
	// change if the visitor logs in or out of the website.
	//
	// This should be the same identifier as
	// [UserEvent.visitor_id][google.cloud.retail.v2alpha.UserEvent.visitor_id].
	//
	// The field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	VisitorId string `protobuf:"bytes,4,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"`
	// User information.
	UserInfo *UserInfo `protobuf:"bytes,5,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// Maximum number of [Product][google.cloud.retail.v2alpha.Product]s to
	// return. If unspecified, defaults to a reasonable value. The maximum allowed
	// value is 120. Values above 120 will be coerced to 120.
	//
	// If this field is negative, an INVALID_ARGUMENT is returned.
	PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token
	// [SearchResponse.next_page_token][google.cloud.retail.v2alpha.SearchResponse.next_page_token],
	// received from a previous
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
	// call. Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
	// must match the call that provided the page token. Otherwise, an
	// INVALID_ARGUMENT error is returned.
	PageToken string `protobuf:"bytes,8,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A 0-indexed integer that specifies the current offset (that is, starting
	// result location, amongst the
	// [Product][google.cloud.retail.v2alpha.Product]s deemed by the API as
	// relevant) in search results. This field is only considered if
	// [page_token][google.cloud.retail.v2alpha.SearchRequest.page_token] is
	// unset.
	//
	// If this field is negative, an INVALID_ARGUMENT is returned.
	Offset int32 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"`
	// The filter syntax consists of an expression language for constructing a
	// predicate from one or more fields of the products being filtered. Filter
	// expression is case-sensitive. See more details at this [user
	// guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
	//
	// If this field is unrecognizable, an INVALID_ARGUMENT is returned.
	Filter string `protobuf:"bytes,10,opt,name=filter,proto3" json:"filter,omitempty"`
	// The default filter that is applied when a user performs a search without
	// checking any filters on the search page.
	//
	// The filter applied to every search request when quality improvement such as
	// query expansion is needed. For example, if a query does not have enough
	// results, an expanded query with
	// [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter]
	// will be returned as a supplement of the original query. This field is
	// strongly recommended to achieve high search quality.
	//
	// See
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
	// for more details about filter syntax.
	CanonicalFilter string `protobuf:"bytes,28,opt,name=canonical_filter,json=canonicalFilter,proto3" json:"canonical_filter,omitempty"`
	// The order in which products are returned. Products can be ordered by
	// a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
	// it unset if ordered by relevance. OrderBy expression is case-sensitive. See
	// more details at this [user
	// guide](https://cloud.google.com/retail/docs/filter-and-order#order).
	//
	// If this field is unrecognizable, an INVALID_ARGUMENT is returned.
	OrderBy string `protobuf:"bytes,11,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Facet specifications for faceted search. If empty, no facets are returned.
	//
	// A maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error
	// is returned.
	FacetSpecs []*SearchRequest_FacetSpec `protobuf:"bytes,12,rep,name=facet_specs,json=facetSpecs,proto3" json:"facet_specs,omitempty"`
	// Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic
	// to enable dynamic facets. Do not set this field.
	//
	// The specification for dynamically generated facets. Notice that only
	// textual facets can be dynamically generated.
	//
	// Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/search_service.proto.
	DynamicFacetSpec *SearchRequest_DynamicFacetSpec `protobuf:"bytes,21,opt,name=dynamic_facet_spec,json=dynamicFacetSpec,proto3" json:"dynamic_facet_spec,omitempty"`
	// Boost specification to boost certain products. See more details at this
	// [user guide](https://cloud.google.com/retail/docs/boosting).
	//
	// Notice that if both
	// [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
	// and
	// [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec]
	// are set, the boost conditions from both places are evaluated. If a search
	// request matches multiple boost conditions, the final boost score is equal
	// to the sum of the boost scores from all matched boost conditions.
	BoostSpec *SearchRequest_BoostSpec `protobuf:"bytes,13,opt,name=boost_spec,json=boostSpec,proto3" json:"boost_spec,omitempty"`
	// The query expansion specification that specifies the conditions under which
	// query expansion will occur. See more details at this [user
	// guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
	QueryExpansionSpec *SearchRequest_QueryExpansionSpec `protobuf:"bytes,14,opt,name=query_expansion_spec,json=queryExpansionSpec,proto3" json:"query_expansion_spec,omitempty"`
	// The relevance threshold of the search results.
	//
	// Defaults to
	// [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH],
	// which means only the most relevant results are shown, and the least number
	// of results are returned. See more details at this [user
	// guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding).
	RelevanceThreshold SearchRequest_RelevanceThreshold `` /* 183-byte string literal not displayed */
	// The keys to fetch and rollup the matching
	// [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s attributes,
	// [FulfillmentInfo][google.cloud.retail.v2alpha.FulfillmentInfo] or
	// [LocalInventory][google.cloud.retail.v2alpha.LocalInventory]s attributes.
	// The attributes from all the matching
	// [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s or
	// [LocalInventory][google.cloud.retail.v2alpha.LocalInventory]s are merged
	// and de-duplicated. Notice that rollup attributes will lead to extra query
	// latency. Maximum number of keys is 30.
	//
	// For [FulfillmentInfo][google.cloud.retail.v2alpha.FulfillmentInfo], a
	// fulfillment type and a fulfillment ID must be provided in the format of
	// "fulfillmentType.fulfillmentId". E.g., in "pickupInStore.store123",
	// "pickupInStore" is fulfillment type and "store123" is the store ID.
	//
	// Supported keys are:
	//
	//   - colorFamilies
	//   - price
	//   - originalPrice
	//   - discount
	//   - variantId
	//   - inventory(place_id,price)
	//   - inventory(place_id,original_price)
	//   - inventory(place_id,attributes.key), where key is any key in the
	//     [Product.local_inventories.attributes][google.cloud.retail.v2alpha.LocalInventory.attributes]
	//     map.
	//   - attributes.key, where key is any key in the
	//     [Product.attributes][google.cloud.retail.v2alpha.Product.attributes] map.
	//   - pickupInStore.id, where id is any
	//
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"pickup-in-store".
	//
	// * shipToStore.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"ship-to-store".
	//
	// * sameDayDelivery.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"same-day-delivery".
	//
	// * nextDayDelivery.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"next-day-delivery".
	//
	// * customFulfillment1.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"custom-type-1".
	//
	// * customFulfillment2.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"custom-type-2".
	//
	// * customFulfillment3.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"custom-type-3".
	//
	// * customFulfillment4.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"custom-type-4".
	//
	// * customFulfillment5.id, where id is any
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// for
	// [FulfillmentInfo.type][google.cloud.retail.v2alpha.FulfillmentInfo.type]
	//
	//	"custom-type-5".
	//
	// If this field is set to an invalid value other than these, an
	// INVALID_ARGUMENT error is returned.
	VariantRollupKeys []string `protobuf:"bytes,17,rep,name=variant_rollup_keys,json=variantRollupKeys,proto3" json:"variant_rollup_keys,omitempty"`
	// The categories associated with a category page. Must be set for category
	// navigation queries to achieve good search quality. The format should be
	// the same as
	// [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
	//
	// To represent full path of category, use '>' sign to separate different
	// hierarchies. If '>' is part of the category name, replace it with
	// other character(s).
	//
	// Category pages include special pages such as sales or promotions. For
	// instance, a special sale page may have the category hierarchy:
	// "pageCategories" : ["Sales > 2017 Black Friday Deals"].
	PageCategories []string `protobuf:"bytes,23,rep,name=page_categories,json=pageCategories,proto3" json:"page_categories,omitempty"`
	// The search mode of the search request. If not specified, a single search
	// request triggers both product search and faceted search.
	SearchMode SearchRequest_SearchMode `` /* 151-byte string literal not displayed */
	// The specification for personalization.
	//
	// Notice that if both
	// [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec]
	// and
	// [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec]
	// are set.
	// [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec]
	// will override
	// [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
	PersonalizationSpec *SearchRequest_PersonalizationSpec `protobuf:"bytes,32,opt,name=personalization_spec,json=personalizationSpec,proto3" json:"personalization_spec,omitempty"`
	// The labels applied to a resource must meet the following requirements:
	//
	//   - Each resource can have multiple labels, up to a maximum of 64.
	//   - Each label must be a key-value pair.
	//   - Keys have a minimum length of 1 character and a maximum length of 63
	//     characters and cannot be empty. Values can be empty and have a maximum
	//     length of 63 characters.
	//   - Keys and values can contain only lowercase letters, numeric characters,
	//     underscores, and dashes. All characters must use UTF-8 encoding, and
	//     international characters are allowed.
	//   - The key portion of a label must be unique. However, you can use the same
	//     key with multiple resources.
	//   - Keys must start with a lowercase letter or international character.
	//
	// See [Google Cloud
	// Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
	// for more details.
	Labels map[string]string `` /* 154-byte string literal not displayed */
	// The spell correction specification that specifies the mode under
	// which spell correction will take effect.
	SpellCorrectionSpec *SearchRequest_SpellCorrectionSpec `` /* 127-byte string literal not displayed */
	// The entity for customers that may run multiple different entities, domains,
	// sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
	// `google.com`, `youtube.com`, etc.
	// If this is set, it should be exactly matched with
	// [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
	// search results boosted by entity.
	Entity string `protobuf:"bytes,38,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

Request message for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] method.

func (*SearchRequest) Descriptor deprecated

func (*SearchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetBoostSpec

func (x *SearchRequest) GetBoostSpec() *SearchRequest_BoostSpec

func (*SearchRequest) GetBranch

func (x *SearchRequest) GetBranch() string

func (*SearchRequest) GetCanonicalFilter

func (x *SearchRequest) GetCanonicalFilter() string

func (*SearchRequest) GetDynamicFacetSpec deprecated

func (x *SearchRequest) GetDynamicFacetSpec() *SearchRequest_DynamicFacetSpec

Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/search_service.proto.

func (*SearchRequest) GetEntity added in v1.13.0

func (x *SearchRequest) GetEntity() string

func (*SearchRequest) GetFacetSpecs

func (x *SearchRequest) GetFacetSpecs() []*SearchRequest_FacetSpec

func (*SearchRequest) GetFilter

func (x *SearchRequest) GetFilter() string

func (*SearchRequest) GetLabels

func (x *SearchRequest) GetLabels() map[string]string

func (*SearchRequest) GetOffset

func (x *SearchRequest) GetOffset() int32

func (*SearchRequest) GetOrderBy

func (x *SearchRequest) GetOrderBy() string

func (*SearchRequest) GetPageCategories

func (x *SearchRequest) GetPageCategories() []string

func (*SearchRequest) GetPageSize

func (x *SearchRequest) GetPageSize() int32

func (*SearchRequest) GetPageToken

func (x *SearchRequest) GetPageToken() string

func (*SearchRequest) GetPersonalizationSpec

func (x *SearchRequest) GetPersonalizationSpec() *SearchRequest_PersonalizationSpec

func (*SearchRequest) GetPlacement

func (x *SearchRequest) GetPlacement() string

func (*SearchRequest) GetQuery

func (x *SearchRequest) GetQuery() string

func (*SearchRequest) GetQueryExpansionSpec

func (x *SearchRequest) GetQueryExpansionSpec() *SearchRequest_QueryExpansionSpec

func (*SearchRequest) GetRelevanceThreshold

func (x *SearchRequest) GetRelevanceThreshold() SearchRequest_RelevanceThreshold

func (*SearchRequest) GetSearchMode

func (x *SearchRequest) GetSearchMode() SearchRequest_SearchMode

func (*SearchRequest) GetSpellCorrectionSpec

func (x *SearchRequest) GetSpellCorrectionSpec() *SearchRequest_SpellCorrectionSpec

func (*SearchRequest) GetUserInfo

func (x *SearchRequest) GetUserInfo() *UserInfo

func (*SearchRequest) GetVariantRollupKeys

func (x *SearchRequest) GetVariantRollupKeys() []string

func (*SearchRequest) GetVisitorId

func (x *SearchRequest) GetVisitorId() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchRequest_BoostSpec

type SearchRequest_BoostSpec struct {

	// Condition boost specifications. If a product matches multiple conditions
	// in the specifictions, boost scores from these specifications are all
	// applied and combined in a non-linear way. Maximum number of
	// specifications is 20.
	ConditionBoostSpecs []*SearchRequest_BoostSpec_ConditionBoostSpec `protobuf:"bytes,1,rep,name=condition_boost_specs,json=conditionBoostSpecs,proto3" json:"condition_boost_specs,omitempty"`
	// Whether to skip boostspec validation. If this field is set to true,
	// invalid
	// [BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs]
	// will be ignored and valid
	// [BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs]
	// will still be applied.
	SkipBoostSpecValidation *bool `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

Boost specification to boost certain items.

func (*SearchRequest_BoostSpec) Descriptor deprecated

func (*SearchRequest_BoostSpec) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_BoostSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_BoostSpec) GetConditionBoostSpecs

func (*SearchRequest_BoostSpec) GetSkipBoostSpecValidation

func (x *SearchRequest_BoostSpec) GetSkipBoostSpecValidation() bool

func (*SearchRequest_BoostSpec) ProtoMessage

func (*SearchRequest_BoostSpec) ProtoMessage()

func (*SearchRequest_BoostSpec) ProtoReflect

func (x *SearchRequest_BoostSpec) ProtoReflect() protoreflect.Message

func (*SearchRequest_BoostSpec) Reset

func (x *SearchRequest_BoostSpec) Reset()

func (*SearchRequest_BoostSpec) String

func (x *SearchRequest_BoostSpec) String() string

type SearchRequest_BoostSpec_ConditionBoostSpec

type SearchRequest_BoostSpec_ConditionBoostSpec struct {

	// An expression which specifies a boost condition. The syntax and
	// supported fields are the same as a filter expression. See
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
	// for detail syntax and limitations.
	//
	// 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"))
	Condition string `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"`
	// Strength of the condition boost, which should be in [-1, 1]. Negative
	// boost means demotion. Default is 0.0.
	//
	// Setting to 1.0 gives the item a big promotion. However, it does not
	// necessarily mean that the boosted item will be the top result at all
	// times, nor that other items will be excluded. Results could still be
	// shown even when none of them matches the condition. And results that
	// are significantly more relevant to the search query can still trump
	// your heavily favored but irrelevant items.
	//
	// Setting to -1.0 gives the item a big demotion. However, results that
	// are deeply relevant might still be shown. The item will have an
	// upstream battle to get a fairly high ranking, but it is not blocked out
	// completely.
	//
	// Setting to 0.0 means no boost applied. The boosting condition is
	// ignored.
	Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"`
	// contains filtered or unexported fields
}

Boost applies to products which match a condition.

func (*SearchRequest_BoostSpec_ConditionBoostSpec) Descriptor deprecated

Deprecated: Use SearchRequest_BoostSpec_ConditionBoostSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_BoostSpec_ConditionBoostSpec) GetBoost

func (*SearchRequest_BoostSpec_ConditionBoostSpec) GetCondition

func (*SearchRequest_BoostSpec_ConditionBoostSpec) ProtoMessage

func (*SearchRequest_BoostSpec_ConditionBoostSpec) ProtoReflect

func (*SearchRequest_BoostSpec_ConditionBoostSpec) Reset

func (*SearchRequest_BoostSpec_ConditionBoostSpec) String

type SearchRequest_DynamicFacetSpec

type SearchRequest_DynamicFacetSpec struct {

	// Mode of the DynamicFacet feature.
	// Defaults to
	// [Mode.DISABLED][google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec.Mode.DISABLED]
	// if it's unset.
	Mode SearchRequest_DynamicFacetSpec_Mode `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

The specifications of dynamically generated facets.

func (*SearchRequest_DynamicFacetSpec) Descriptor deprecated

func (*SearchRequest_DynamicFacetSpec) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_DynamicFacetSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_DynamicFacetSpec) GetMode

func (*SearchRequest_DynamicFacetSpec) ProtoMessage

func (*SearchRequest_DynamicFacetSpec) ProtoMessage()

func (*SearchRequest_DynamicFacetSpec) ProtoReflect

func (*SearchRequest_DynamicFacetSpec) Reset

func (x *SearchRequest_DynamicFacetSpec) Reset()

func (*SearchRequest_DynamicFacetSpec) String

type SearchRequest_DynamicFacetSpec_Mode

type SearchRequest_DynamicFacetSpec_Mode int32

Enum to control DynamicFacet mode

const (
	// Default value.
	SearchRequest_DynamicFacetSpec_MODE_UNSPECIFIED SearchRequest_DynamicFacetSpec_Mode = 0
	// Disable Dynamic Facet.
	SearchRequest_DynamicFacetSpec_DISABLED SearchRequest_DynamicFacetSpec_Mode = 1
	// Automatic mode built by Google Retail Search.
	SearchRequest_DynamicFacetSpec_ENABLED SearchRequest_DynamicFacetSpec_Mode = 2
)

func (SearchRequest_DynamicFacetSpec_Mode) Descriptor

func (SearchRequest_DynamicFacetSpec_Mode) Enum

func (SearchRequest_DynamicFacetSpec_Mode) EnumDescriptor deprecated

func (SearchRequest_DynamicFacetSpec_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_DynamicFacetSpec_Mode.Descriptor instead.

func (SearchRequest_DynamicFacetSpec_Mode) Number

func (SearchRequest_DynamicFacetSpec_Mode) String

func (SearchRequest_DynamicFacetSpec_Mode) Type

type SearchRequest_FacetSpec

type SearchRequest_FacetSpec struct {

	// Required. The facet key specification.
	FacetKey *SearchRequest_FacetSpec_FacetKey `protobuf:"bytes,1,opt,name=facet_key,json=facetKey,proto3" json:"facet_key,omitempty"`
	// Maximum of facet values that should be returned for this facet. If
	// unspecified, defaults to 50. The maximum allowed value is 300. Values
	// above 300 will be coerced to 300.
	//
	// If this field is negative, an INVALID_ARGUMENT is returned.
	Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// List of keys to exclude when faceting.
	//
	// By default,
	// [FacetKey.key][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.key]
	// is not excluded from the filter unless it is listed in this field.
	//
	// Listing a facet key in this field allows its values to appear as facet
	// results, even when they are filtered out of search results. Using this
	// field does not affect what search results are returned.
	//
	// For example, suppose there are 100 products with the color facet "Red"
	// and 200 products with the color facet "Blue". A query containing the
	// filter "colorFamilies:ANY("Red")" and having "colorFamilies" as
	// [FacetKey.key][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.key]
	// would by default return only "Red" products in the search results, and
	// also return "Red" with count 100 as the only color facet. Although there
	// are also blue products available, "Blue" would not be shown as an
	// available facet value.
	//
	// If "colorFamilies" is listed in "excludedFilterKeys", then the query
	// returns the facet values "Red" with count 100 and "Blue" with count
	// 200, because the "colorFamilies" key is now excluded from the filter.
	// Because this field doesn't affect search results, the search results
	// are still correctly filtered to return only "Red" products.
	//
	// A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error
	// is returned.
	ExcludedFilterKeys []string `protobuf:"bytes,3,rep,name=excluded_filter_keys,json=excludedFilterKeys,proto3" json:"excluded_filter_keys,omitempty"`
	// Enables dynamic position for this facet. If set to true, the position of
	// this facet among all facets in the response is determined by Google
	// Retail Search. It will be ordered together with dynamic facets if dynamic
	// facets is enabled. If set to false, the position of this facet in the
	// response will be the same as in the request, and it will be ranked before
	// the facets with dynamic position enable and all dynamic facets.
	//
	// For example, you may always want to have rating facet returned in
	// the response, but it's not necessarily to always display the rating facet
	// at the top. In that case, you can set enable_dynamic_position to true so
	// that the position of rating facet in response will be determined by
	// Google Retail Search.
	//
	// Another example, assuming you have the following facets in the request:
	//
	// * "rating", enable_dynamic_position = true
	//
	// * "price", enable_dynamic_position = false
	//
	// * "brands", enable_dynamic_position = false
	//
	// And also you have a dynamic facets enable, which will generate a facet
	// 'gender'. Then the final order of the facets in the response can be
	// ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
	// "rating") depends on how Google Retail Search orders "gender" and
	// "rating" facets. However, notice that "price" and "brands" will always be
	// ranked at 1st and 2nd position since their enable_dynamic_position are
	// false.
	EnableDynamicPosition bool `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

A facet specification to perform faceted search.

func (*SearchRequest_FacetSpec) Descriptor deprecated

func (*SearchRequest_FacetSpec) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_FacetSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_FacetSpec) GetEnableDynamicPosition

func (x *SearchRequest_FacetSpec) GetEnableDynamicPosition() bool

func (*SearchRequest_FacetSpec) GetExcludedFilterKeys

func (x *SearchRequest_FacetSpec) GetExcludedFilterKeys() []string

func (*SearchRequest_FacetSpec) GetFacetKey

func (*SearchRequest_FacetSpec) GetLimit

func (x *SearchRequest_FacetSpec) GetLimit() int32

func (*SearchRequest_FacetSpec) ProtoMessage

func (*SearchRequest_FacetSpec) ProtoMessage()

func (*SearchRequest_FacetSpec) ProtoReflect

func (x *SearchRequest_FacetSpec) ProtoReflect() protoreflect.Message

func (*SearchRequest_FacetSpec) Reset

func (x *SearchRequest_FacetSpec) Reset()

func (*SearchRequest_FacetSpec) String

func (x *SearchRequest_FacetSpec) String() string

type SearchRequest_FacetSpec_FacetKey

type SearchRequest_FacetSpec_FacetKey struct {

	// Required. Supported textual and numerical facet keys in
	// [Product][google.cloud.retail.v2alpha.Product] object, over which the
	// facet values are computed. Facet key is case-sensitive.
	//
	// Allowed facet keys when
	// [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
	// is not specified:
	//
	// * textual_field =
	//   - "brands"
	//   - "categories"
	//   - "genders"
	//   - "ageGroups"
	//   - "availability"
	//   - "colorFamilies"
	//   - "colors"
	//   - "sizes"
	//   - "materials"
	//   - "patterns"
	//   - "conditions"
	//   - "attributes.key"
	//   - "pickupInStore"
	//   - "shipToStore"
	//   - "sameDayDelivery"
	//   - "nextDayDelivery"
	//   - "customFulfillment1"
	//   - "customFulfillment2"
	//   - "customFulfillment3"
	//   - "customFulfillment4"
	//   - "customFulfillment5"
	//   - "inventory(place_id,attributes.key)"
	//
	// * numerical_field =
	//   - "price"
	//   - "discount"
	//   - "rating"
	//   - "ratingCount"
	//   - "attributes.key"
	//   - "inventory(place_id,price)"
	//   - "inventory(place_id,original_price)"
	//   - "inventory(place_id,attributes.key)"
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Set only if values should be bucketized into intervals. Must be set
	// for facets with numerical values. Must not be set for facet with text
	// values. Maximum number of intervals is 40.
	//
	// For all numerical facet keys that appear in the list of products from
	// the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are
	// computed from their distribution weekly. If the model assigns a high
	// score to a numerical facet key and its intervals are not specified in
	// the search request, these percentiles will become the bounds
	// for its intervals and will be returned in the response. If the
	// facet key intervals are specified in the request, then the specified
	// intervals will be returned instead.
	Intervals []*Interval `protobuf:"bytes,2,rep,name=intervals,proto3" json:"intervals,omitempty"`
	// Only get facet for the given restricted values. For example, when using
	// "pickupInStore" as key and set restricted values to
	// ["store123", "store456"], only facets for "store123" and "store456" are
	// returned. Only supported on predefined textual fields, custom textual
	// attributes and fulfillments. Maximum is 20.
	//
	// Must be set for the fulfillment facet keys:
	//
	// * pickupInStore
	//
	// * shipToStore
	//
	// * sameDayDelivery
	//
	// * nextDayDelivery
	//
	// * customFulfillment1
	//
	// * customFulfillment2
	//
	// * customFulfillment3
	//
	// * customFulfillment4
	//
	// * customFulfillment5
	RestrictedValues []string `protobuf:"bytes,3,rep,name=restricted_values,json=restrictedValues,proto3" json:"restricted_values,omitempty"`
	// Only get facet values that start with the given string prefix. For
	// example, suppose "categories" has three values "Women > Shoe",
	// "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the
	// "categories" facet will give only "Women > Shoe" and "Women > Dress".
	// Only supported on textual fields. Maximum is 10.
	Prefixes []string `protobuf:"bytes,8,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
	// Only get facet values that contains the given strings. For example,
	// suppose "categories" has three values "Women > Shoe",
	// "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the
	// "categories" facet will give only "Women > Shoe" and "Men > Shoe".
	// Only supported on textual fields. Maximum is 10.
	Contains []string `protobuf:"bytes,9,rep,name=contains,proto3" json:"contains,omitempty"`
	// True to make facet keys case insensitive when getting faceting
	// values with prefixes or contains; false otherwise.
	CaseInsensitive bool `protobuf:"varint,10,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"`
	// The order in which
	// [SearchResponse.Facet.values][google.cloud.retail.v2alpha.SearchResponse.Facet.values]
	// are returned.
	//
	// Allowed values are:
	//
	// * "count desc", which means order by
	// [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
	// descending.
	//
	// * "value desc", which means order by
	// [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
	// descending.
	//
	//	Only applies to textual facets.
	//
	// If not set, textual values are sorted in [natural
	// order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
	// intervals are sorted in the order given by
	// [FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals];
	// [FulfillmentInfo.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	// are sorted in the order given by
	// [FacetSpec.FacetKey.restricted_values][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.restricted_values].
	OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// The query that is used to compute facet for the given facet key.
	// When provided, it will override the default behavior of facet
	// computation. The query syntax is the same as a filter expression. See
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
	// for detail syntax and limitations. Notice that there is no limitation
	// on
	// [FacetKey.key][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.key]
	// when query is specified.
	//
	// In the response,
	// [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
	// will be always "1" and
	// [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
	// will be the number of results that match the query.
	//
	// For example, you can set a customized facet for "shipToStore",
	// where
	// [FacetKey.key][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.key]
	// is "customizedShipToStore", and
	// [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
	// is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
	// Then the facet will count the products that are both in stock and ship
	// to store "123".
	Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"`
	// Returns the min and max value for each numerical facet intervals.
	// Ignored for textual facets.
	ReturnMinMax bool `protobuf:"varint,11,opt,name=return_min_max,json=returnMinMax,proto3" json:"return_min_max,omitempty"`
	// contains filtered or unexported fields
}

Specifies how a facet is computed.

func (*SearchRequest_FacetSpec_FacetKey) Descriptor deprecated

func (*SearchRequest_FacetSpec_FacetKey) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_FacetSpec_FacetKey.ProtoReflect.Descriptor instead.

func (*SearchRequest_FacetSpec_FacetKey) GetCaseInsensitive

func (x *SearchRequest_FacetSpec_FacetKey) GetCaseInsensitive() bool

func (*SearchRequest_FacetSpec_FacetKey) GetContains

func (x *SearchRequest_FacetSpec_FacetKey) GetContains() []string

func (*SearchRequest_FacetSpec_FacetKey) GetIntervals

func (x *SearchRequest_FacetSpec_FacetKey) GetIntervals() []*Interval

func (*SearchRequest_FacetSpec_FacetKey) GetKey

func (*SearchRequest_FacetSpec_FacetKey) GetOrderBy

func (x *SearchRequest_FacetSpec_FacetKey) GetOrderBy() string

func (*SearchRequest_FacetSpec_FacetKey) GetPrefixes

func (x *SearchRequest_FacetSpec_FacetKey) GetPrefixes() []string

func (*SearchRequest_FacetSpec_FacetKey) GetQuery

func (*SearchRequest_FacetSpec_FacetKey) GetRestrictedValues

func (x *SearchRequest_FacetSpec_FacetKey) GetRestrictedValues() []string

func (*SearchRequest_FacetSpec_FacetKey) GetReturnMinMax

func (x *SearchRequest_FacetSpec_FacetKey) GetReturnMinMax() bool

func (*SearchRequest_FacetSpec_FacetKey) ProtoMessage

func (*SearchRequest_FacetSpec_FacetKey) ProtoMessage()

func (*SearchRequest_FacetSpec_FacetKey) ProtoReflect

func (*SearchRequest_FacetSpec_FacetKey) Reset

func (*SearchRequest_FacetSpec_FacetKey) String

type SearchRequest_PersonalizationSpec

type SearchRequest_PersonalizationSpec struct {

	// Defaults to
	// [Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec.Mode.AUTO].
	Mode SearchRequest_PersonalizationSpec_Mode `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

The specification for personalization.

func (*SearchRequest_PersonalizationSpec) Descriptor deprecated

func (*SearchRequest_PersonalizationSpec) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_PersonalizationSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_PersonalizationSpec) GetMode

func (*SearchRequest_PersonalizationSpec) ProtoMessage

func (*SearchRequest_PersonalizationSpec) ProtoMessage()

func (*SearchRequest_PersonalizationSpec) ProtoReflect

func (*SearchRequest_PersonalizationSpec) Reset

func (*SearchRequest_PersonalizationSpec) String

type SearchRequest_PersonalizationSpec_Mode

type SearchRequest_PersonalizationSpec_Mode int32

The personalization mode of each search request.

const (
	// Default value. In this case, server behavior defaults to
	// [Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec.Mode.AUTO].
	SearchRequest_PersonalizationSpec_MODE_UNSPECIFIED SearchRequest_PersonalizationSpec_Mode = 0
	// Let CRS decide whether to use personalization based on quality of user
	// event data.
	SearchRequest_PersonalizationSpec_AUTO SearchRequest_PersonalizationSpec_Mode = 1
	// Disable personalization.
	SearchRequest_PersonalizationSpec_DISABLED SearchRequest_PersonalizationSpec_Mode = 2
)

func (SearchRequest_PersonalizationSpec_Mode) Descriptor

func (SearchRequest_PersonalizationSpec_Mode) Enum

func (SearchRequest_PersonalizationSpec_Mode) EnumDescriptor deprecated

func (SearchRequest_PersonalizationSpec_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_PersonalizationSpec_Mode.Descriptor instead.

func (SearchRequest_PersonalizationSpec_Mode) Number

func (SearchRequest_PersonalizationSpec_Mode) String

func (SearchRequest_PersonalizationSpec_Mode) Type

type SearchRequest_QueryExpansionSpec

type SearchRequest_QueryExpansionSpec struct {

	// The condition under which query expansion should occur. Default to
	// [Condition.DISABLED][google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
	Condition SearchRequest_QueryExpansionSpec_Condition `` /* 148-byte string literal not displayed */
	// Whether to pin unexpanded results. If this field is set to true,
	// unexpanded products are always at the top of the search results, followed
	// by the expanded results.
	PinUnexpandedResults bool `protobuf:"varint,2,opt,name=pin_unexpanded_results,json=pinUnexpandedResults,proto3" json:"pin_unexpanded_results,omitempty"`
	// contains filtered or unexported fields
}

Specification to determine under which conditions query expansion should occur.

func (*SearchRequest_QueryExpansionSpec) Descriptor deprecated

func (*SearchRequest_QueryExpansionSpec) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_QueryExpansionSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_QueryExpansionSpec) GetCondition

func (*SearchRequest_QueryExpansionSpec) GetPinUnexpandedResults

func (x *SearchRequest_QueryExpansionSpec) GetPinUnexpandedResults() bool

func (*SearchRequest_QueryExpansionSpec) ProtoMessage

func (*SearchRequest_QueryExpansionSpec) ProtoMessage()

func (*SearchRequest_QueryExpansionSpec) ProtoReflect

func (*SearchRequest_QueryExpansionSpec) Reset

func (*SearchRequest_QueryExpansionSpec) String

type SearchRequest_QueryExpansionSpec_Condition

type SearchRequest_QueryExpansionSpec_Condition int32

Enum describing under which condition query expansion should occur.

const (
	// Unspecified query expansion condition. In this case, server behavior
	// defaults to
	// [Condition.DISABLED][google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
	SearchRequest_QueryExpansionSpec_CONDITION_UNSPECIFIED SearchRequest_QueryExpansionSpec_Condition = 0
	// Disabled query expansion. Only the exact search query is used, even if
	// [SearchResponse.total_size][google.cloud.retail.v2alpha.SearchResponse.total_size]
	// is zero.
	SearchRequest_QueryExpansionSpec_DISABLED SearchRequest_QueryExpansionSpec_Condition = 1
	// Automatic query expansion built by Google Retail Search.
	SearchRequest_QueryExpansionSpec_AUTO SearchRequest_QueryExpansionSpec_Condition = 3
)

func (SearchRequest_QueryExpansionSpec_Condition) Descriptor

func (SearchRequest_QueryExpansionSpec_Condition) Enum

func (SearchRequest_QueryExpansionSpec_Condition) EnumDescriptor deprecated

func (SearchRequest_QueryExpansionSpec_Condition) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_QueryExpansionSpec_Condition.Descriptor instead.

func (SearchRequest_QueryExpansionSpec_Condition) Number

func (SearchRequest_QueryExpansionSpec_Condition) String

func (SearchRequest_QueryExpansionSpec_Condition) Type

type SearchRequest_RelevanceThreshold

type SearchRequest_RelevanceThreshold int32

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

const (
	// Default value. In this case, server behavior defaults to
	// [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH].
	SearchRequest_RELEVANCE_THRESHOLD_UNSPECIFIED SearchRequest_RelevanceThreshold = 0
	// High relevance threshold.
	SearchRequest_HIGH SearchRequest_RelevanceThreshold = 1
	// Medium relevance threshold.
	SearchRequest_MEDIUM SearchRequest_RelevanceThreshold = 2
	// Low relevance threshold.
	SearchRequest_LOW SearchRequest_RelevanceThreshold = 3
	// Lowest relevance threshold.
	SearchRequest_LOWEST SearchRequest_RelevanceThreshold = 4
)

func (SearchRequest_RelevanceThreshold) Descriptor

func (SearchRequest_RelevanceThreshold) Enum

func (SearchRequest_RelevanceThreshold) EnumDescriptor deprecated

func (SearchRequest_RelevanceThreshold) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_RelevanceThreshold.Descriptor instead.

func (SearchRequest_RelevanceThreshold) Number

func (SearchRequest_RelevanceThreshold) String

func (SearchRequest_RelevanceThreshold) Type

type SearchRequest_SearchMode

type SearchRequest_SearchMode int32

The search mode of each search request.

const (
	// Default value. In this case both product search and faceted search will
	// be performed. Both
	// [SearchResponse.SearchResult][google.cloud.retail.v2alpha.SearchResponse.SearchResult]
	// and
	// [SearchResponse.Facet][google.cloud.retail.v2alpha.SearchResponse.Facet]
	// will be returned.
	SearchRequest_SEARCH_MODE_UNSPECIFIED SearchRequest_SearchMode = 0
	// Only product search will be performed. The faceted search will be
	// disabled.
	//
	// Only
	// [SearchResponse.SearchResult][google.cloud.retail.v2alpha.SearchResponse.SearchResult]
	// will be returned.
	// [SearchResponse.Facet][google.cloud.retail.v2alpha.SearchResponse.Facet]
	// will not be returned, even if
	// [SearchRequest.facet_specs][google.cloud.retail.v2alpha.SearchRequest.facet_specs]
	// or
	// [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec]
	// is set.
	SearchRequest_PRODUCT_SEARCH_ONLY SearchRequest_SearchMode = 1
	// Only faceted search will be performed. The product search will be
	// disabled.
	//
	// When in this mode, one or both of
	// [SearchRequest.facet_specs][google.cloud.retail.v2alpha.SearchRequest.facet_specs]
	// and
	// [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec]
	// should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only
	// [SearchResponse.Facet][google.cloud.retail.v2alpha.SearchResponse.Facet]
	// will be returned.
	// [SearchResponse.SearchResult][google.cloud.retail.v2alpha.SearchResponse.SearchResult]
	// will not be returned.
	SearchRequest_FACETED_SEARCH_ONLY SearchRequest_SearchMode = 2
)

func (SearchRequest_SearchMode) Descriptor

func (SearchRequest_SearchMode) Enum

func (SearchRequest_SearchMode) EnumDescriptor deprecated

func (SearchRequest_SearchMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_SearchMode.Descriptor instead.

func (SearchRequest_SearchMode) Number

func (SearchRequest_SearchMode) String

func (x SearchRequest_SearchMode) String() string

func (SearchRequest_SearchMode) Type

type SearchRequest_SpellCorrectionSpec

type SearchRequest_SpellCorrectionSpec struct {

	// The mode under which spell correction should take effect to
	// replace the original search query. Default to
	// [Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
	Mode SearchRequest_SpellCorrectionSpec_Mode `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

The specification for query spell correction.

func (*SearchRequest_SpellCorrectionSpec) Descriptor deprecated

func (*SearchRequest_SpellCorrectionSpec) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest_SpellCorrectionSpec.ProtoReflect.Descriptor instead.

func (*SearchRequest_SpellCorrectionSpec) GetMode

func (*SearchRequest_SpellCorrectionSpec) ProtoMessage

func (*SearchRequest_SpellCorrectionSpec) ProtoMessage()

func (*SearchRequest_SpellCorrectionSpec) ProtoReflect

func (*SearchRequest_SpellCorrectionSpec) Reset

func (*SearchRequest_SpellCorrectionSpec) String

type SearchRequest_SpellCorrectionSpec_Mode

type SearchRequest_SpellCorrectionSpec_Mode int32

Enum describing under which mode spell correction should occur.

const (
	// Unspecified spell correction mode. In this case, server behavior
	// defaults to
	// [Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
	SearchRequest_SpellCorrectionSpec_MODE_UNSPECIFIED SearchRequest_SpellCorrectionSpec_Mode = 0
	// Google Retail Search will try to find a spell suggestion if there
	// is any and put in the
	// [SearchResponse.corrected_query][google.cloud.retail.v2alpha.SearchResponse.corrected_query].
	// The spell suggestion will not be used as the search query.
	SearchRequest_SpellCorrectionSpec_SUGGESTION_ONLY SearchRequest_SpellCorrectionSpec_Mode = 1
	// Automatic spell correction built by Google Retail Search. Search will
	// be based on the corrected query if found.
	SearchRequest_SpellCorrectionSpec_AUTO SearchRequest_SpellCorrectionSpec_Mode = 2
)

func (SearchRequest_SpellCorrectionSpec_Mode) Descriptor

func (SearchRequest_SpellCorrectionSpec_Mode) Enum

func (SearchRequest_SpellCorrectionSpec_Mode) EnumDescriptor deprecated

func (SearchRequest_SpellCorrectionSpec_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_SpellCorrectionSpec_Mode.Descriptor instead.

func (SearchRequest_SpellCorrectionSpec_Mode) Number

func (SearchRequest_SpellCorrectionSpec_Mode) String

func (SearchRequest_SpellCorrectionSpec_Mode) Type

type SearchResponse

type SearchResponse struct {

	// A list of matched items. The order represents the ranking.
	Results []*SearchResponse_SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// Results of facets requested by user.
	Facets []*SearchResponse_Facet `protobuf:"bytes,2,rep,name=facets,proto3" json:"facets,omitempty"`
	// The estimated total count of matched items irrespective of pagination. The
	// count of [results][google.cloud.retail.v2alpha.SearchResponse.results]
	// returned by pagination may be less than the
	// [total_size][google.cloud.retail.v2alpha.SearchResponse.total_size] that
	// matches.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// Contains the spell corrected query, if found. If the spell correction type
	// is AUTOMATIC, then the search results are based on corrected_query.
	// Otherwise the original query is used for search.
	CorrectedQuery string `protobuf:"bytes,4,opt,name=corrected_query,json=correctedQuery,proto3" json:"corrected_query,omitempty"`
	// A unique search token. This should be included in the
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent] logs resulting from this
	// search, which enables accurate attribution of search model performance.
	AttributionToken string `protobuf:"bytes,5,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"`
	// A token that can be sent as
	// [SearchRequest.page_token][google.cloud.retail.v2alpha.SearchRequest.page_token]
	// to retrieve the next page. If this field is omitted, there are no
	// subsequent pages.
	NextPageToken string `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Query expansion information for the returned results.
	QueryExpansionInfo *SearchResponse_QueryExpansionInfo `protobuf:"bytes,7,opt,name=query_expansion_info,json=queryExpansionInfo,proto3" json:"query_expansion_info,omitempty"`
	// The URI of a customer-defined redirect page. If redirect action is
	// triggered, no search is performed, and only
	// [redirect_uri][google.cloud.retail.v2alpha.SearchResponse.redirect_uri] and
	// [attribution_token][google.cloud.retail.v2alpha.SearchResponse.attribution_token]
	// are set in the response.
	RedirectUri string `protobuf:"bytes,10,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// The fully qualified resource name of applied
	// [controls](https://cloud.google.com/retail/docs/serving-control-rules).
	AppliedControls []string `protobuf:"bytes,12,rep,name=applied_controls,json=appliedControls,proto3" json:"applied_controls,omitempty"`
	// The invalid
	// [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs]
	// that are not applied during serving.
	InvalidConditionBoostSpecs []*SearchRequest_BoostSpec_ConditionBoostSpec `` /* 144-byte string literal not displayed */
	// Metadata related to A/B testing
	// [Experiment][google.cloud.retail.v2alpha.Experiment] associated with this
	// response. Only exists when an experiment is triggered.
	ExperimentInfo []*ExperimentInfo `protobuf:"bytes,17,rep,name=experiment_info,json=experimentInfo,proto3" json:"experiment_info,omitempty"`
	// contains filtered or unexported fields
}

Response message for [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] method.

func (*SearchResponse) Descriptor deprecated

func (*SearchResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetAppliedControls

func (x *SearchResponse) GetAppliedControls() []string

func (*SearchResponse) GetAttributionToken

func (x *SearchResponse) GetAttributionToken() string

func (*SearchResponse) GetCorrectedQuery

func (x *SearchResponse) GetCorrectedQuery() string

func (*SearchResponse) GetExperimentInfo added in v1.13.0

func (x *SearchResponse) GetExperimentInfo() []*ExperimentInfo

func (*SearchResponse) GetFacets

func (x *SearchResponse) GetFacets() []*SearchResponse_Facet

func (*SearchResponse) GetInvalidConditionBoostSpecs

func (x *SearchResponse) GetInvalidConditionBoostSpecs() []*SearchRequest_BoostSpec_ConditionBoostSpec

func (*SearchResponse) GetNextPageToken

func (x *SearchResponse) GetNextPageToken() string

func (*SearchResponse) GetQueryExpansionInfo

func (x *SearchResponse) GetQueryExpansionInfo() *SearchResponse_QueryExpansionInfo

func (*SearchResponse) GetRedirectUri

func (x *SearchResponse) GetRedirectUri() string

func (*SearchResponse) GetResults

func (x *SearchResponse) GetResults() []*SearchResponse_SearchResult

func (*SearchResponse) GetTotalSize

func (x *SearchResponse) GetTotalSize() int32

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

func (x *SearchResponse) ProtoReflect() protoreflect.Message

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type SearchResponse_Facet

type SearchResponse_Facet struct {

	// The key for this facet. E.g., "colorFamilies" or "price" or
	// "attributes.attr1".
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The facet values for this field.
	Values []*SearchResponse_Facet_FacetValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// Whether the facet is dynamically generated.
	DynamicFacet bool `protobuf:"varint,3,opt,name=dynamic_facet,json=dynamicFacet,proto3" json:"dynamic_facet,omitempty"`
	// contains filtered or unexported fields
}

A facet result.

func (*SearchResponse_Facet) Descriptor deprecated

func (*SearchResponse_Facet) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse_Facet.ProtoReflect.Descriptor instead.

func (*SearchResponse_Facet) GetDynamicFacet

func (x *SearchResponse_Facet) GetDynamicFacet() bool

func (*SearchResponse_Facet) GetKey

func (x *SearchResponse_Facet) GetKey() string

func (*SearchResponse_Facet) GetValues

func (*SearchResponse_Facet) ProtoMessage

func (*SearchResponse_Facet) ProtoMessage()

func (*SearchResponse_Facet) ProtoReflect

func (x *SearchResponse_Facet) ProtoReflect() protoreflect.Message

func (*SearchResponse_Facet) Reset

func (x *SearchResponse_Facet) Reset()

func (*SearchResponse_Facet) String

func (x *SearchResponse_Facet) String() string

type SearchResponse_Facet_FacetValue

type SearchResponse_Facet_FacetValue struct {

	// A facet value which contains values.
	//
	// Types that are assignable to FacetValue:
	//
	//	*SearchResponse_Facet_FacetValue_Value
	//	*SearchResponse_Facet_FacetValue_Interval
	FacetValue isSearchResponse_Facet_FacetValue_FacetValue `protobuf_oneof:"facet_value"`
	// Number of items that have this facet value.
	Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	// The minimum value in the
	// [FacetValue.interval][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.interval].
	// Only supported on numerical facets and returned if
	// [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.return_min_max]
	// is true.
	MinValue float64 `protobuf:"fixed64,5,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
	// The maximum value in the
	// [FacetValue.interval][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.interval].
	// Only supported on numerical facets and returned if
	// [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.return_min_max]
	// is true.
	MaxValue float64 `protobuf:"fixed64,6,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
	// contains filtered or unexported fields
}

A facet value which contains value names and their count.

func (*SearchResponse_Facet_FacetValue) Descriptor deprecated

func (*SearchResponse_Facet_FacetValue) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse_Facet_FacetValue.ProtoReflect.Descriptor instead.

func (*SearchResponse_Facet_FacetValue) GetCount

func (x *SearchResponse_Facet_FacetValue) GetCount() int64

func (*SearchResponse_Facet_FacetValue) GetFacetValue

func (m *SearchResponse_Facet_FacetValue) GetFacetValue() isSearchResponse_Facet_FacetValue_FacetValue

func (*SearchResponse_Facet_FacetValue) GetInterval

func (x *SearchResponse_Facet_FacetValue) GetInterval() *Interval

func (*SearchResponse_Facet_FacetValue) GetMaxValue

func (x *SearchResponse_Facet_FacetValue) GetMaxValue() float64

func (*SearchResponse_Facet_FacetValue) GetMinValue

func (x *SearchResponse_Facet_FacetValue) GetMinValue() float64

func (*SearchResponse_Facet_FacetValue) GetValue

func (*SearchResponse_Facet_FacetValue) ProtoMessage

func (*SearchResponse_Facet_FacetValue) ProtoMessage()

func (*SearchResponse_Facet_FacetValue) ProtoReflect

func (*SearchResponse_Facet_FacetValue) Reset

func (*SearchResponse_Facet_FacetValue) String

type SearchResponse_Facet_FacetValue_Interval

type SearchResponse_Facet_FacetValue_Interval struct {
	// Interval value for a facet, such as [10, 20) for facet "price".
	Interval *Interval `protobuf:"bytes,2,opt,name=interval,proto3,oneof"`
}

type SearchResponse_Facet_FacetValue_Value

type SearchResponse_Facet_FacetValue_Value struct {
	// Text value of a facet, such as "Black" for facet "colorFamilies".
	Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}

type SearchResponse_QueryExpansionInfo

type SearchResponse_QueryExpansionInfo struct {

	// Bool describing whether query expansion has occurred.
	ExpandedQuery bool `protobuf:"varint,1,opt,name=expanded_query,json=expandedQuery,proto3" json:"expanded_query,omitempty"`
	// Number of pinned results. This field will only be set when expansion
	// happens and
	// [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
	// is set to true.
	PinnedResultCount int64 `protobuf:"varint,2,opt,name=pinned_result_count,json=pinnedResultCount,proto3" json:"pinned_result_count,omitempty"`
	// contains filtered or unexported fields
}

Information describing query expansion including whether expansion has occurred.

func (*SearchResponse_QueryExpansionInfo) Descriptor deprecated

func (*SearchResponse_QueryExpansionInfo) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse_QueryExpansionInfo.ProtoReflect.Descriptor instead.

func (*SearchResponse_QueryExpansionInfo) GetExpandedQuery

func (x *SearchResponse_QueryExpansionInfo) GetExpandedQuery() bool

func (*SearchResponse_QueryExpansionInfo) GetPinnedResultCount

func (x *SearchResponse_QueryExpansionInfo) GetPinnedResultCount() int64

func (*SearchResponse_QueryExpansionInfo) ProtoMessage

func (*SearchResponse_QueryExpansionInfo) ProtoMessage()

func (*SearchResponse_QueryExpansionInfo) ProtoReflect

func (*SearchResponse_QueryExpansionInfo) Reset

func (*SearchResponse_QueryExpansionInfo) String

type SearchResponse_SearchResult

type SearchResponse_SearchResult struct {

	// [Product.id][google.cloud.retail.v2alpha.Product.id] of the searched
	// [Product][google.cloud.retail.v2alpha.Product].
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The product data snippet in the search response. Only
	// [Product.name][google.cloud.retail.v2alpha.Product.name] is guaranteed to
	// be populated.
	//
	// [Product.variants][google.cloud.retail.v2alpha.Product.variants] contains
	// the product variants that match the search query. If there are multiple
	// product variants matching the query, top 5 most relevant product variants
	// are returned and ordered by relevancy.
	//
	// If relevancy can be deternmined, use
	// [matching_variant_fields][google.cloud.retail.v2alpha.SearchResponse.SearchResult.matching_variant_fields]
	// to look up matched product variants fields. If relevancy cannot be
	// determined, e.g. when searching "shoe" all products in a shoe product can
	// be a match, 5 product variants are returned but order is meaningless.
	Product *Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"`
	// The count of matched
	// [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product]s.
	MatchingVariantCount int32 `protobuf:"varint,3,opt,name=matching_variant_count,json=matchingVariantCount,proto3" json:"matching_variant_count,omitempty"`
	// If a [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product] matches the search query,
	// this map indicates which [Product][google.cloud.retail.v2alpha.Product]
	// fields are matched. The key is the
	// [Product.name][google.cloud.retail.v2alpha.Product.name], the value is a
	// field mask of the matched [Product][google.cloud.retail.v2alpha.Product]
	// fields. If matched attributes cannot be determined, this map will be
	// empty.
	//
	// For example, a key "sku1" with field mask
	// "products.color_info" indicates there is a match between
	// "sku1" [ColorInfo][google.cloud.retail.v2alpha.ColorInfo] and the query.
	MatchingVariantFields map[string]*fieldmaskpb.FieldMask `` /* 214-byte string literal not displayed */
	// The rollup matching
	// [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT]
	// [Product][google.cloud.retail.v2alpha.Product] attributes. The key is one
	// of the
	// [SearchRequest.variant_rollup_keys][google.cloud.retail.v2alpha.SearchRequest.variant_rollup_keys].
	// The values are the merged and de-duplicated
	// [Product][google.cloud.retail.v2alpha.Product] attributes. Notice that
	// the rollup values are respect filter. For example, when filtering by
	// "colorFamilies:ANY(\"red\")" and rollup "colorFamilies", only "red" is
	// returned.
	//
	// For textual and numerical attributes, the rollup values is a list of
	// 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" }
	//	     }
	//	  }
	//	}
	//
	// For [FulfillmentInfo][google.cloud.retail.v2alpha.FulfillmentInfo], 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".
	VariantRollupValues map[string]*structpb.Value `` /* 208-byte string literal not displayed */
	// Specifies previous events related to this product for this user based on
	// [UserEvent][google.cloud.retail.v2alpha.UserEvent] with same
	// [SearchRequest.visitor_id][google.cloud.retail.v2alpha.SearchRequest.visitor_id]
	// or [UserInfo.user_id][google.cloud.retail.v2alpha.UserInfo.user_id].
	//
	// This is set only when
	// [SearchRequest.PersonalizationSpec.mode][google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec.mode]
	// is
	// [SearchRequest.PersonalizationSpec.Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec.Mode.AUTO].
	//
	// Possible values:
	//
	// * `purchased`: Indicates that this product has been purchased before.
	PersonalLabels []string `protobuf:"bytes,7,rep,name=personal_labels,json=personalLabels,proto3" json:"personal_labels,omitempty"`
	// contains filtered or unexported fields
}

Represents the search results.

func (*SearchResponse_SearchResult) Descriptor deprecated

func (*SearchResponse_SearchResult) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse_SearchResult.ProtoReflect.Descriptor instead.

func (*SearchResponse_SearchResult) GetId

func (*SearchResponse_SearchResult) GetMatchingVariantCount

func (x *SearchResponse_SearchResult) GetMatchingVariantCount() int32

func (*SearchResponse_SearchResult) GetMatchingVariantFields

func (x *SearchResponse_SearchResult) GetMatchingVariantFields() map[string]*fieldmaskpb.FieldMask

func (*SearchResponse_SearchResult) GetPersonalLabels added in v1.12.0

func (x *SearchResponse_SearchResult) GetPersonalLabels() []string

func (*SearchResponse_SearchResult) GetProduct

func (x *SearchResponse_SearchResult) GetProduct() *Product

func (*SearchResponse_SearchResult) GetVariantRollupValues

func (x *SearchResponse_SearchResult) GetVariantRollupValues() map[string]*structpb.Value

func (*SearchResponse_SearchResult) ProtoMessage

func (*SearchResponse_SearchResult) ProtoMessage()

func (*SearchResponse_SearchResult) ProtoReflect

func (*SearchResponse_SearchResult) Reset

func (x *SearchResponse_SearchResult) Reset()

func (*SearchResponse_SearchResult) String

func (x *SearchResponse_SearchResult) String() string

type SearchServiceClient

type SearchServiceClient interface {
	// Performs a search.
	//
	// This feature is only available for users who have Retail Search enabled.
	// Enable Retail Search on Cloud Console before using this feature.
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
}

SearchServiceClient is the client API for SearchService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type SearchServiceServer

type SearchServiceServer interface {
	// Performs a search.
	//
	// This feature is only available for users who have Retail Search enabled.
	// Enable Retail Search on Cloud Console before using this feature.
	Search(context.Context, *SearchRequest) (*SearchResponse, error)
}

SearchServiceServer is the server API for SearchService service.

type SearchSolutionUseCase

type SearchSolutionUseCase int32

The use case of Cloud Retail Search.

const (
	// The value when it's unspecified. In this case, server behavior defaults to
	// [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2alpha.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH].
	SearchSolutionUseCase_SEARCH_SOLUTION_USE_CASE_UNSPECIFIED SearchSolutionUseCase = 0
	// Search use case. Expects the traffic has a non-empty
	// [query][google.cloud.retail.v2alpha.SearchRequest.query].
	SearchSolutionUseCase_SEARCH_SOLUTION_USE_CASE_SEARCH SearchSolutionUseCase = 1
	// Browse use case. Expects the traffic has an empty
	// [query][google.cloud.retail.v2alpha.SearchRequest.query].
	SearchSolutionUseCase_SEARCH_SOLUTION_USE_CASE_BROWSE SearchSolutionUseCase = 2
)

func (SearchSolutionUseCase) Descriptor

func (SearchSolutionUseCase) Enum

func (SearchSolutionUseCase) EnumDescriptor deprecated

func (SearchSolutionUseCase) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchSolutionUseCase.Descriptor instead.

func (SearchSolutionUseCase) Number

func (SearchSolutionUseCase) String

func (x SearchSolutionUseCase) String() string

func (SearchSolutionUseCase) Type

type ServingConfig

type ServingConfig struct {

	// Immutable. Fully qualified name
	// `projects/*/locations/global/catalogs/*/servingConfig/*`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The human readable serving config display name. Used in Retail
	// UI.
	//
	// This field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The id of the model in the same
	// [Catalog][google.cloud.retail.v2alpha.Catalog] to use at serving time.
	// Currently only RecommendationModels are supported:
	// https://cloud.google.com/retail/recommendations-ai/docs/create-models
	// Can be changed but only to a compatible model (e.g.
	// others-you-may-like CTR to others-you-may-like CVR).
	//
	// Required when
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
	ModelId string `protobuf:"bytes,3,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
	// How much price ranking we want in serving results.
	// Price reranking causes product items with a similar
	// recommendation probability to be ordered by price, with the
	// highest-priced items first. This setting could result in a decrease in
	// click-through and conversion rates.
	//
	//	Allowed values are:
	//
	// * `no-price-reranking`
	// * `low-price-reranking`
	// * `medium-price-reranking`
	// * `high-price-reranking`
	//
	// If not specified, we choose default based on model type. Default value:
	// `no-price-reranking`.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
	PriceRerankingLevel string `protobuf:"bytes,4,opt,name=price_reranking_level,json=priceRerankingLevel,proto3" json:"price_reranking_level,omitempty"`
	// Facet specifications for faceted search. If empty, no facets are returned.
	// The ids refer to the ids of [Control][google.cloud.retail.v2alpha.Control]
	// resources with only the Facet control set. These controls are assumed to be
	// in the same [Catalog][google.cloud.retail.v2alpha.Catalog] as the
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig].
	// A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error
	// is returned.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	FacetControlIds []string `protobuf:"bytes,5,rep,name=facet_control_ids,json=facetControlIds,proto3" json:"facet_control_ids,omitempty"`
	// The specification for dynamically generated facets. Notice that only
	// textual facets can be dynamically generated.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	DynamicFacetSpec *SearchRequest_DynamicFacetSpec `protobuf:"bytes,6,opt,name=dynamic_facet_spec,json=dynamicFacetSpec,proto3" json:"dynamic_facet_spec,omitempty"`
	// Condition boost specifications. If a product matches multiple conditions
	// in the specifications, boost scores from these specifications are all
	// applied and combined in a non-linear way. Maximum number of
	// specifications is 100.
	//
	// Notice that if both
	// [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
	// and
	// [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec]
	// are set, the boost conditions from both places are evaluated. If a search
	// request matches multiple boost conditions, the final boost score is equal
	// to the sum of the boost scores from all matched boost conditions.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	BoostControlIds []string `protobuf:"bytes,7,rep,name=boost_control_ids,json=boostControlIds,proto3" json:"boost_control_ids,omitempty"`
	// Condition filter specifications. If a product matches multiple conditions
	// in the specifications, filters from these specifications are all
	// applied and combined via the AND operator. Maximum number of
	// specifications is 100.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	FilterControlIds []string `protobuf:"bytes,9,rep,name=filter_control_ids,json=filterControlIds,proto3" json:"filter_control_ids,omitempty"`
	// Condition redirect specifications. Only the first triggered redirect action
	// is applied, even if multiple apply. Maximum number of specifications is
	// 1000.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	RedirectControlIds []string `protobuf:"bytes,10,rep,name=redirect_control_ids,json=redirectControlIds,proto3" json:"redirect_control_ids,omitempty"`
	// Condition synonyms specifications. If multiple syonyms conditions match,
	// all matching synonyms control in the list will execute. Order of controls
	// in the list will not matter. Maximum number of specifications is
	// 100.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	TwowaySynonymsControlIds []string `` /* 138-byte string literal not displayed */
	// Condition oneway synonyms specifications. If multiple oneway synonyms
	// conditions match, all matching oneway synonyms controls in the list will
	// execute. Order of controls in the list will not matter. Maximum number of
	// specifications is 100.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	OnewaySynonymsControlIds []string `` /* 138-byte string literal not displayed */
	// Condition do not associate specifications. If multiple do not associate
	// conditions match, all matching do not associate controls in the list will
	// execute.
	// - Order does not matter.
	// - Maximum number of specifications is 100.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	DoNotAssociateControlIds []string `` /* 140-byte string literal not displayed */
	// Condition replacement specifications.
	// - Applied according to the order in the list.
	// - A previously replaced term can not be re-replaced.
	// - Maximum number of specifications is 100.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	ReplacementControlIds []string `` /* 127-byte string literal not displayed */
	// Condition ignore specifications. If multiple ignore
	// conditions match, all matching ignore controls in the list will
	// execute.
	// - Order does not matter.
	// - Maximum number of specifications is 100.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	IgnoreControlIds []string `protobuf:"bytes,15,rep,name=ignore_control_ids,json=ignoreControlIds,proto3" json:"ignore_control_ids,omitempty"`
	// How much diversity to use in recommendation model results e.g.
	// `medium-diversity` or `high-diversity`. Currently supported values:
	//
	// * `no-diversity`
	// * `low-diversity`
	// * `medium-diversity`
	// * `high-diversity`
	// * `auto-diversity`
	//
	// If not specified, we choose default based on recommendation model
	// type. Default value: `no-diversity`.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
	DiversityLevel string `protobuf:"bytes,8,opt,name=diversity_level,json=diversityLevel,proto3" json:"diversity_level,omitempty"`
	// What kind of diversity to use - data driven or rule based. If unset, the
	// server behavior defaults to
	// [RULE_BASED_DIVERSITY][google.cloud.retail.v2alpha.ServingConfig.DiversityType.RULE_BASED_DIVERSITY].
	DiversityType ServingConfig_DiversityType `` /* 163-byte string literal not displayed */
	// Whether to add additional category filters on the `similar-items` model.
	// If not specified, we enable it by default.
	//
	//	Allowed values are:
	//
	//   - `no-category-match`: No additional filtering of original results from
	//     the model and the customer's filters.
	//   - `relaxed-category-match`: Only keep results with categories that match
	//     at least one item categories in the PredictRequests's context item.
	//   - If customer also sends filters in the PredictRequest, then the results
	//     will satisfy both conditions (user given and category match).
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
	EnableCategoryFilterLevel string `` /* 141-byte string literal not displayed */
	// The specification for personalization spec.
	//
	// Can only be set if
	// [solution_types][google.cloud.retail.v2alpha.ServingConfig.solution_types]
	// is
	// [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH].
	//
	// Notice that if both
	// [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec]
	// and
	// [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec]
	// are set.
	// [SearchRequest.personalization_spec][google.cloud.retail.v2alpha.SearchRequest.personalization_spec]
	// will override
	// [ServingConfig.personalization_spec][google.cloud.retail.v2alpha.ServingConfig.personalization_spec].
	PersonalizationSpec *SearchRequest_PersonalizationSpec `protobuf:"bytes,21,opt,name=personalization_spec,json=personalizationSpec,proto3" json:"personalization_spec,omitempty"`
	// Required. Immutable. Specifies the solution types that a serving config can
	// be associated with. Currently we support setting only one type of solution.
	SolutionTypes []SolutionType `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*ServingConfig) Descriptor deprecated

func (*ServingConfig) Descriptor() ([]byte, []int)

Deprecated: Use ServingConfig.ProtoReflect.Descriptor instead.

func (*ServingConfig) GetBoostControlIds

func (x *ServingConfig) GetBoostControlIds() []string

func (*ServingConfig) GetDisplayName

func (x *ServingConfig) GetDisplayName() string

func (*ServingConfig) GetDiversityLevel

func (x *ServingConfig) GetDiversityLevel() string

func (*ServingConfig) GetDiversityType added in v1.12.0

func (x *ServingConfig) GetDiversityType() ServingConfig_DiversityType

func (*ServingConfig) GetDoNotAssociateControlIds

func (x *ServingConfig) GetDoNotAssociateControlIds() []string

func (*ServingConfig) GetDynamicFacetSpec

func (x *ServingConfig) GetDynamicFacetSpec() *SearchRequest_DynamicFacetSpec

func (*ServingConfig) GetEnableCategoryFilterLevel

func (x *ServingConfig) GetEnableCategoryFilterLevel() string

func (*ServingConfig) GetFacetControlIds

func (x *ServingConfig) GetFacetControlIds() []string

func (*ServingConfig) GetFilterControlIds

func (x *ServingConfig) GetFilterControlIds() []string

func (*ServingConfig) GetIgnoreControlIds

func (x *ServingConfig) GetIgnoreControlIds() []string

func (*ServingConfig) GetModelId

func (x *ServingConfig) GetModelId() string

func (*ServingConfig) GetName

func (x *ServingConfig) GetName() string

func (*ServingConfig) GetOnewaySynonymsControlIds

func (x *ServingConfig) GetOnewaySynonymsControlIds() []string

func (*ServingConfig) GetPersonalizationSpec added in v1.12.0

func (x *ServingConfig) GetPersonalizationSpec() *SearchRequest_PersonalizationSpec

func (*ServingConfig) GetPriceRerankingLevel

func (x *ServingConfig) GetPriceRerankingLevel() string

func (*ServingConfig) GetRedirectControlIds

func (x *ServingConfig) GetRedirectControlIds() []string

func (*ServingConfig) GetReplacementControlIds

func (x *ServingConfig) GetReplacementControlIds() []string

func (*ServingConfig) GetSolutionTypes

func (x *ServingConfig) GetSolutionTypes() []SolutionType

func (*ServingConfig) GetTwowaySynonymsControlIds

func (x *ServingConfig) GetTwowaySynonymsControlIds() []string

func (*ServingConfig) ProtoMessage

func (*ServingConfig) ProtoMessage()

func (*ServingConfig) ProtoReflect

func (x *ServingConfig) ProtoReflect() protoreflect.Message

func (*ServingConfig) Reset

func (x *ServingConfig) Reset()

func (*ServingConfig) String

func (x *ServingConfig) String() string

type ServingConfigServiceClient

type ServingConfigServiceClient interface {
	// Creates a ServingConfig.
	//
	// A maximum of 100
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]s are allowed in
	// a [Catalog][google.cloud.retail.v2alpha.Catalog], otherwise a
	// FAILED_PRECONDITION error is returned.
	CreateServingConfig(ctx context.Context, in *CreateServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error)
	// Deletes a ServingConfig.
	//
	// Returns a NotFound error if the ServingConfig does not exist.
	DeleteServingConfig(ctx context.Context, in *DeleteServingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Updates a ServingConfig.
	UpdateServingConfig(ctx context.Context, in *UpdateServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error)
	// Gets a ServingConfig.
	//
	// Returns a NotFound error if the ServingConfig does not exist.
	GetServingConfig(ctx context.Context, in *GetServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error)
	// Lists all ServingConfigs linked to this catalog.
	ListServingConfigs(ctx context.Context, in *ListServingConfigsRequest, opts ...grpc.CallOption) (*ListServingConfigsResponse, error)
	// Enables a Control on the specified ServingConfig.
	// The control is added in the last position of the list of controls
	// it belongs to (e.g. if it's a facet spec control it will be applied
	// in the last position of servingConfig.facetSpecIds)
	// Returns a ALREADY_EXISTS error if the control has already been applied.
	// Returns a FAILED_PRECONDITION error if the addition could exceed maximum
	// number of control allowed for that type of control.
	AddControl(ctx context.Context, in *AddControlRequest, opts ...grpc.CallOption) (*ServingConfig, error)
	// Disables a Control on the specified ServingConfig.
	// The control is removed from the ServingConfig.
	// Returns a NOT_FOUND error if the Control is not enabled for the
	// ServingConfig.
	RemoveControl(ctx context.Context, in *RemoveControlRequest, opts ...grpc.CallOption) (*ServingConfig, error)
}

ServingConfigServiceClient is the client API for ServingConfigService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ServingConfigServiceServer

type ServingConfigServiceServer interface {
	// Creates a ServingConfig.
	//
	// A maximum of 100
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]s are allowed in
	// a [Catalog][google.cloud.retail.v2alpha.Catalog], otherwise a
	// FAILED_PRECONDITION error is returned.
	CreateServingConfig(context.Context, *CreateServingConfigRequest) (*ServingConfig, error)
	// Deletes a ServingConfig.
	//
	// Returns a NotFound error if the ServingConfig does not exist.
	DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*emptypb.Empty, error)
	// Updates a ServingConfig.
	UpdateServingConfig(context.Context, *UpdateServingConfigRequest) (*ServingConfig, error)
	// Gets a ServingConfig.
	//
	// Returns a NotFound error if the ServingConfig does not exist.
	GetServingConfig(context.Context, *GetServingConfigRequest) (*ServingConfig, error)
	// Lists all ServingConfigs linked to this catalog.
	ListServingConfigs(context.Context, *ListServingConfigsRequest) (*ListServingConfigsResponse, error)
	// Enables a Control on the specified ServingConfig.
	// The control is added in the last position of the list of controls
	// it belongs to (e.g. if it's a facet spec control it will be applied
	// in the last position of servingConfig.facetSpecIds)
	// Returns a ALREADY_EXISTS error if the control has already been applied.
	// Returns a FAILED_PRECONDITION error if the addition could exceed maximum
	// number of control allowed for that type of control.
	AddControl(context.Context, *AddControlRequest) (*ServingConfig, error)
	// Disables a Control on the specified ServingConfig.
	// The control is removed from the ServingConfig.
	// Returns a NOT_FOUND error if the Control is not enabled for the
	// ServingConfig.
	RemoveControl(context.Context, *RemoveControlRequest) (*ServingConfig, error)
}

ServingConfigServiceServer is the server API for ServingConfigService service.

type ServingConfig_DiversityType added in v1.12.0

type ServingConfig_DiversityType int32

What type of diversity - data or rule based.

const (
	// Default value.
	ServingConfig_DIVERSITY_TYPE_UNSPECIFIED ServingConfig_DiversityType = 0
	// Rule based diversity.
	ServingConfig_RULE_BASED_DIVERSITY ServingConfig_DiversityType = 2
	// Data driven diversity.
	ServingConfig_DATA_DRIVEN_DIVERSITY ServingConfig_DiversityType = 3
)

func (ServingConfig_DiversityType) Descriptor added in v1.12.0

func (ServingConfig_DiversityType) Enum added in v1.12.0

func (ServingConfig_DiversityType) EnumDescriptor deprecated added in v1.12.0

func (ServingConfig_DiversityType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServingConfig_DiversityType.Descriptor instead.

func (ServingConfig_DiversityType) Number added in v1.12.0

func (ServingConfig_DiversityType) String added in v1.12.0

func (ServingConfig_DiversityType) Type added in v1.12.0

type SetDefaultBranchRequest

type SetDefaultBranchRequest struct {

	// Full resource name of the catalog, such as
	// `projects/*/locations/global/catalogs/default_catalog`.
	Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// The final component of the resource name of a branch.
	//
	// This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT
	// error is returned.
	//
	// If there are no sufficient active products in the targeted branch and
	// [force][google.cloud.retail.v2alpha.SetDefaultBranchRequest.force] is not
	// set, a FAILED_PRECONDITION error is returned.
	BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	// Some note on this request, this can be retrieved by
	// [CatalogService.GetDefaultBranch][google.cloud.retail.v2alpha.CatalogService.GetDefaultBranch]
	// before next valid default branch set occurs.
	//
	// This field must be a UTF-8 encoded string with a length limit of 1,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	// If set to true, it permits switching to a branch with
	// [branch_id][google.cloud.retail.v2alpha.SetDefaultBranchRequest.branch_id]
	// even if it has no sufficient active products.
	Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

Request message to set a specified branch as new default_branch.

func (*SetDefaultBranchRequest) Descriptor deprecated

func (*SetDefaultBranchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetDefaultBranchRequest.ProtoReflect.Descriptor instead.

func (*SetDefaultBranchRequest) GetBranchId

func (x *SetDefaultBranchRequest) GetBranchId() string

func (*SetDefaultBranchRequest) GetCatalog

func (x *SetDefaultBranchRequest) GetCatalog() string

func (*SetDefaultBranchRequest) GetForce

func (x *SetDefaultBranchRequest) GetForce() bool

func (*SetDefaultBranchRequest) GetNote

func (x *SetDefaultBranchRequest) GetNote() string

func (*SetDefaultBranchRequest) ProtoMessage

func (*SetDefaultBranchRequest) ProtoMessage()

func (*SetDefaultBranchRequest) ProtoReflect

func (x *SetDefaultBranchRequest) ProtoReflect() protoreflect.Message

func (*SetDefaultBranchRequest) Reset

func (x *SetDefaultBranchRequest) Reset()

func (*SetDefaultBranchRequest) String

func (x *SetDefaultBranchRequest) String() string

type SetInventoryMetadata

type SetInventoryMetadata struct {
	// contains filtered or unexported fields
}

Metadata related to the progress of the SetInventory operation. Currently empty because there is no meaningful metadata populated from the [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory] method.

func (*SetInventoryMetadata) Descriptor deprecated

func (*SetInventoryMetadata) Descriptor() ([]byte, []int)

Deprecated: Use SetInventoryMetadata.ProtoReflect.Descriptor instead.

func (*SetInventoryMetadata) ProtoMessage

func (*SetInventoryMetadata) ProtoMessage()

func (*SetInventoryMetadata) ProtoReflect

func (x *SetInventoryMetadata) ProtoReflect() protoreflect.Message

func (*SetInventoryMetadata) Reset

func (x *SetInventoryMetadata) Reset()

func (*SetInventoryMetadata) String

func (x *SetInventoryMetadata) String() string

type SetInventoryRequest

type SetInventoryRequest struct {

	// Required. The inventory information to update. The allowable fields to
	// update are:
	//
	// * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info]
	// * [Product.availability][google.cloud.retail.v2alpha.Product.availability]
	// * [Product.available_quantity][google.cloud.retail.v2alpha.Product.available_quantity]
	// * [Product.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]
	// The updated inventory fields must be specified in
	// [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask].
	//
	// If
	// [SetInventoryRequest.inventory.name][google.cloud.retail.v2alpha.Product.name]
	// is empty or invalid, an INVALID_ARGUMENT error is returned.
	//
	// If the caller does not have permission to update the
	// [Product][google.cloud.retail.v2alpha.Product] named in
	// [Product.name][google.cloud.retail.v2alpha.Product.name], regardless of
	// whether or not it exists, a PERMISSION_DENIED error is returned.
	//
	// If the [Product][google.cloud.retail.v2alpha.Product] to update does not
	// have existing inventory information, the provided inventory information
	// will be inserted.
	//
	// If the [Product][google.cloud.retail.v2alpha.Product] to update has
	// existing inventory information, the provided inventory information will be
	// merged while respecting the last update time for each inventory field,
	// using the provided or default value for
	// [SetInventoryRequest.set_time][google.cloud.retail.v2alpha.SetInventoryRequest.set_time].
	//
	// The caller can replace place IDs for a subset of fulfillment types in the
	// following ways:
	//
	// * Adds "fulfillment_info" in
	// [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask]
	// * Specifies only the desired fulfillment types and corresponding place IDs
	// to update in
	// [SetInventoryRequest.inventory.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]
	//
	// The caller can clear all place IDs from a subset of fulfillment types in
	// the following ways:
	//
	// * Adds "fulfillment_info" in
	// [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask]
	// * Specifies only the desired fulfillment types to clear in
	// [SetInventoryRequest.inventory.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]
	// * Checks that only the desired fulfillment info types have empty
	// [SetInventoryRequest.inventory.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]
	//
	// The last update time is recorded for the following inventory fields:
	// * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info]
	// * [Product.availability][google.cloud.retail.v2alpha.Product.availability]
	// * [Product.available_quantity][google.cloud.retail.v2alpha.Product.available_quantity]
	// * [Product.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]
	//
	// If a full overwrite of inventory information while ignoring timestamps is
	// needed,
	// [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
	// should be invoked instead.
	Inventory *Product `protobuf:"bytes,1,opt,name=inventory,proto3" json:"inventory,omitempty"`
	// Indicates which inventory fields in the provided
	// [Product][google.cloud.retail.v2alpha.Product] to update.
	//
	// At least one field must be provided.
	//
	// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
	// is returned and the entire update will be ignored.
	SetMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=set_mask,json=setMask,proto3" json:"set_mask,omitempty"`
	// The time when the request is issued, used to prevent
	// out-of-order updates on inventory fields with the last update time
	// recorded. If not provided, the internal system time will be used.
	SetTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"`
	// If set to true, and the [Product][google.cloud.retail.v2alpha.Product] with
	// name [Product.name][google.cloud.retail.v2alpha.Product.name] is not found,
	// the inventory update will still be processed and retained for at most 1 day
	// until the [Product][google.cloud.retail.v2alpha.Product] is created. If set
	// to false, a NOT_FOUND error is returned if the
	// [Product][google.cloud.retail.v2alpha.Product] is not found.
	AllowMissing bool `protobuf:"varint,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory] method.

func (*SetInventoryRequest) Descriptor deprecated

func (*SetInventoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetInventoryRequest.ProtoReflect.Descriptor instead.

func (*SetInventoryRequest) GetAllowMissing

func (x *SetInventoryRequest) GetAllowMissing() bool

func (*SetInventoryRequest) GetInventory

func (x *SetInventoryRequest) GetInventory() *Product

func (*SetInventoryRequest) GetSetMask

func (x *SetInventoryRequest) GetSetMask() *fieldmaskpb.FieldMask

func (*SetInventoryRequest) GetSetTime

func (x *SetInventoryRequest) GetSetTime() *timestamppb.Timestamp

func (*SetInventoryRequest) ProtoMessage

func (*SetInventoryRequest) ProtoMessage()

func (*SetInventoryRequest) ProtoReflect

func (x *SetInventoryRequest) ProtoReflect() protoreflect.Message

func (*SetInventoryRequest) Reset

func (x *SetInventoryRequest) Reset()

func (*SetInventoryRequest) String

func (x *SetInventoryRequest) String() string

type SetInventoryResponse

type SetInventoryResponse struct {
	// contains filtered or unexported fields
}

Response of the SetInventoryRequest. Currently empty because there is no meaningful response populated from the [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory] method.

func (*SetInventoryResponse) Descriptor deprecated

func (*SetInventoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetInventoryResponse.ProtoReflect.Descriptor instead.

func (*SetInventoryResponse) ProtoMessage

func (*SetInventoryResponse) ProtoMessage()

func (*SetInventoryResponse) ProtoReflect

func (x *SetInventoryResponse) ProtoReflect() protoreflect.Message

func (*SetInventoryResponse) Reset

func (x *SetInventoryResponse) Reset()

func (*SetInventoryResponse) String

func (x *SetInventoryResponse) String() string

type SolutionType

type SolutionType int32

The type of solution.

const (
	// Default value.
	SolutionType_SOLUTION_TYPE_UNSPECIFIED SolutionType = 0
	// Used for Recommendations AI.
	SolutionType_SOLUTION_TYPE_RECOMMENDATION SolutionType = 1
	// Used for Retail Search.
	SolutionType_SOLUTION_TYPE_SEARCH SolutionType = 2
)

func (SolutionType) Descriptor

func (SolutionType) Enum

func (x SolutionType) Enum() *SolutionType

func (SolutionType) EnumDescriptor deprecated

func (SolutionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SolutionType.Descriptor instead.

func (SolutionType) Number

func (SolutionType) String

func (x SolutionType) String() string

func (SolutionType) Type

type TransformedUserEventsMetadata added in v1.12.0

type TransformedUserEventsMetadata struct {

	// Count of entries in the source user events BigQuery table.
	SourceEventsCount int64 `protobuf:"varint,1,opt,name=source_events_count,json=sourceEventsCount,proto3" json:"source_events_count,omitempty"`
	// Count of entries in the transformed user events BigQuery table, which could
	// be different from the actually imported number of user events.
	TransformedEventsCount int64 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Metadata related to transform user events operation.

func (*TransformedUserEventsMetadata) Descriptor deprecated added in v1.12.0

func (*TransformedUserEventsMetadata) Descriptor() ([]byte, []int)

Deprecated: Use TransformedUserEventsMetadata.ProtoReflect.Descriptor instead.

func (*TransformedUserEventsMetadata) GetSourceEventsCount added in v1.12.0

func (x *TransformedUserEventsMetadata) GetSourceEventsCount() int64

func (*TransformedUserEventsMetadata) GetTransformedEventsCount added in v1.12.0

func (x *TransformedUserEventsMetadata) GetTransformedEventsCount() int64

func (*TransformedUserEventsMetadata) ProtoMessage added in v1.12.0

func (*TransformedUserEventsMetadata) ProtoMessage()

func (*TransformedUserEventsMetadata) ProtoReflect added in v1.12.0

func (*TransformedUserEventsMetadata) Reset added in v1.12.0

func (x *TransformedUserEventsMetadata) Reset()

func (*TransformedUserEventsMetadata) String added in v1.12.0

type TuneModelMetadata

type TuneModelMetadata struct {

	// The resource name of the model that this tune applies to.
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

Metadata associated with a tune operation.

func (*TuneModelMetadata) Descriptor deprecated

func (*TuneModelMetadata) Descriptor() ([]byte, []int)

Deprecated: Use TuneModelMetadata.ProtoReflect.Descriptor instead.

func (*TuneModelMetadata) GetModel

func (x *TuneModelMetadata) GetModel() string

func (*TuneModelMetadata) ProtoMessage

func (*TuneModelMetadata) ProtoMessage()

func (*TuneModelMetadata) ProtoReflect

func (x *TuneModelMetadata) ProtoReflect() protoreflect.Message

func (*TuneModelMetadata) Reset

func (x *TuneModelMetadata) Reset()

func (*TuneModelMetadata) String

func (x *TuneModelMetadata) String() string

type TuneModelRequest

type TuneModelRequest struct {

	// Required. The resource name of the model to tune.
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*TuneModelRequest) Descriptor deprecated

func (*TuneModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use TuneModelRequest.ProtoReflect.Descriptor instead.

func (*TuneModelRequest) GetName

func (x *TuneModelRequest) GetName() string

func (*TuneModelRequest) ProtoMessage

func (*TuneModelRequest) ProtoMessage()

func (*TuneModelRequest) ProtoReflect

func (x *TuneModelRequest) ProtoReflect() protoreflect.Message

func (*TuneModelRequest) Reset

func (x *TuneModelRequest) Reset()

func (*TuneModelRequest) String

func (x *TuneModelRequest) String() string

type TuneModelResponse

type TuneModelResponse struct {
	// contains filtered or unexported fields
}

Response associated with a tune operation.

func (*TuneModelResponse) Descriptor deprecated

func (*TuneModelResponse) Descriptor() ([]byte, []int)

Deprecated: Use TuneModelResponse.ProtoReflect.Descriptor instead.

func (*TuneModelResponse) ProtoMessage

func (*TuneModelResponse) ProtoMessage()

func (*TuneModelResponse) ProtoReflect

func (x *TuneModelResponse) ProtoReflect() protoreflect.Message

func (*TuneModelResponse) Reset

func (x *TuneModelResponse) Reset()

func (*TuneModelResponse) String

func (x *TuneModelResponse) String() string

type UnimplementedAnalyticsServiceServer added in v1.15.0

type UnimplementedAnalyticsServiceServer struct {
}

UnimplementedAnalyticsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAnalyticsServiceServer) ExportAnalyticsMetrics added in v1.15.0

type UnimplementedCatalogServiceServer

type UnimplementedCatalogServiceServer struct {
}

UnimplementedCatalogServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCatalogServiceServer) AddCatalogAttribute

func (*UnimplementedCatalogServiceServer) BatchRemoveCatalogAttributes added in v1.12.0

func (*UnimplementedCatalogServiceServer) GetAttributesConfig

func (*UnimplementedCatalogServiceServer) GetCompletionConfig

func (*UnimplementedCatalogServiceServer) GetDefaultBranch

func (*UnimplementedCatalogServiceServer) ListCatalogs

func (*UnimplementedCatalogServiceServer) RemoveCatalogAttribute

func (*UnimplementedCatalogServiceServer) ReplaceCatalogAttribute

func (*UnimplementedCatalogServiceServer) SetDefaultBranch

func (*UnimplementedCatalogServiceServer) UpdateAttributesConfig

func (*UnimplementedCatalogServiceServer) UpdateCatalog

func (*UnimplementedCatalogServiceServer) UpdateCompletionConfig

type UnimplementedCompletionServiceServer

type UnimplementedCompletionServiceServer struct {
}

UnimplementedCompletionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCompletionServiceServer) CompleteQuery

func (*UnimplementedCompletionServiceServer) ImportCompletionData

type UnimplementedControlServiceServer

type UnimplementedControlServiceServer struct {
}

UnimplementedControlServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedControlServiceServer) CreateControl

func (*UnimplementedControlServiceServer) DeleteControl

func (*UnimplementedControlServiceServer) GetControl

func (*UnimplementedControlServiceServer) ListControls

func (*UnimplementedControlServiceServer) UpdateControl

type UnimplementedMerchantCenterAccountLinkServiceServer added in v1.13.0

type UnimplementedMerchantCenterAccountLinkServiceServer struct {
}

UnimplementedMerchantCenterAccountLinkServiceServer can be embedded to have forward compatible implementations.

type UnimplementedModelServiceServer

type UnimplementedModelServiceServer struct {
}

UnimplementedModelServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedModelServiceServer) CreateModel

func (*UnimplementedModelServiceServer) DeleteModel

func (*UnimplementedModelServiceServer) GetModel added in v1.13.0

func (*UnimplementedModelServiceServer) ListModels

func (*UnimplementedModelServiceServer) PauseModel

func (*UnimplementedModelServiceServer) ResumeModel

func (*UnimplementedModelServiceServer) TuneModel

func (*UnimplementedModelServiceServer) UpdateModel

type UnimplementedPredictionServiceServer

type UnimplementedPredictionServiceServer struct {
}

UnimplementedPredictionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPredictionServiceServer) Predict

type UnimplementedProductServiceServer

type UnimplementedProductServiceServer struct {
}

UnimplementedProductServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProductServiceServer) AddFulfillmentPlaces

func (*UnimplementedProductServiceServer) AddLocalInventories

func (*UnimplementedProductServiceServer) CreateProduct

func (*UnimplementedProductServiceServer) DeleteProduct

func (*UnimplementedProductServiceServer) GetProduct

func (*UnimplementedProductServiceServer) ImportProducts

func (*UnimplementedProductServiceServer) ListProducts

func (*UnimplementedProductServiceServer) PurgeProducts

func (*UnimplementedProductServiceServer) RemoveFulfillmentPlaces

func (*UnimplementedProductServiceServer) RemoveLocalInventories

func (*UnimplementedProductServiceServer) SetInventory

func (*UnimplementedProductServiceServer) UpdateProduct

type UnimplementedSearchServiceServer

type UnimplementedSearchServiceServer struct {
}

UnimplementedSearchServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSearchServiceServer) Search

type UnimplementedServingConfigServiceServer

type UnimplementedServingConfigServiceServer struct {
}

UnimplementedServingConfigServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServingConfigServiceServer) AddControl

func (*UnimplementedServingConfigServiceServer) CreateServingConfig

func (*UnimplementedServingConfigServiceServer) DeleteServingConfig

func (*UnimplementedServingConfigServiceServer) GetServingConfig

func (*UnimplementedServingConfigServiceServer) ListServingConfigs

func (*UnimplementedServingConfigServiceServer) RemoveControl

func (*UnimplementedServingConfigServiceServer) UpdateServingConfig

type UnimplementedUserEventServiceServer

type UnimplementedUserEventServiceServer struct {
}

UnimplementedUserEventServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserEventServiceServer) CollectUserEvent

func (*UnimplementedUserEventServiceServer) ImportUserEvents

func (*UnimplementedUserEventServiceServer) PurgeUserEvents

func (*UnimplementedUserEventServiceServer) RejoinUserEvents

func (*UnimplementedUserEventServiceServer) WriteUserEvent

type UpdateAttributesConfigRequest

type UpdateAttributesConfigRequest struct {

	// Required. The
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig] to update.
	AttributesConfig *AttributesConfig `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"`
	// Indicates which fields in the provided
	// [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig] to update.
	// The following is the only supported field:
	//
	// * [AttributesConfig.catalog_attributes][google.cloud.retail.v2alpha.AttributesConfig.catalog_attributes]
	//
	// If not set, all supported fields are updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfig] method.

func (*UpdateAttributesConfigRequest) Descriptor deprecated

func (*UpdateAttributesConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAttributesConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateAttributesConfigRequest) GetAttributesConfig

func (x *UpdateAttributesConfigRequest) GetAttributesConfig() *AttributesConfig

func (*UpdateAttributesConfigRequest) GetUpdateMask

func (*UpdateAttributesConfigRequest) ProtoMessage

func (*UpdateAttributesConfigRequest) ProtoMessage()

func (*UpdateAttributesConfigRequest) ProtoReflect

func (*UpdateAttributesConfigRequest) Reset

func (x *UpdateAttributesConfigRequest) Reset()

func (*UpdateAttributesConfigRequest) String

type UpdateCatalogRequest

type UpdateCatalogRequest struct {

	// Required. The [Catalog][google.cloud.retail.v2alpha.Catalog] to update.
	//
	// If the caller does not have permission to update the
	// [Catalog][google.cloud.retail.v2alpha.Catalog], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	//
	// If the [Catalog][google.cloud.retail.v2alpha.Catalog] to update does not
	// exist, a NOT_FOUND error is returned.
	Catalog *Catalog `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// Indicates which fields in the provided
	// [Catalog][google.cloud.retail.v2alpha.Catalog] to update.
	//
	// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
	// is returned.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.UpdateCatalog][google.cloud.retail.v2alpha.CatalogService.UpdateCatalog] method.

func (*UpdateCatalogRequest) Descriptor deprecated

func (*UpdateCatalogRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCatalogRequest.ProtoReflect.Descriptor instead.

func (*UpdateCatalogRequest) GetCatalog

func (x *UpdateCatalogRequest) GetCatalog() *Catalog

func (*UpdateCatalogRequest) GetUpdateMask

func (x *UpdateCatalogRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateCatalogRequest) ProtoMessage

func (*UpdateCatalogRequest) ProtoMessage()

func (*UpdateCatalogRequest) ProtoReflect

func (x *UpdateCatalogRequest) ProtoReflect() protoreflect.Message

func (*UpdateCatalogRequest) Reset

func (x *UpdateCatalogRequest) Reset()

func (*UpdateCatalogRequest) String

func (x *UpdateCatalogRequest) String() string

type UpdateCompletionConfigRequest

type UpdateCompletionConfigRequest struct {

	// Required. The
	// [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
	//
	// If the caller does not have permission to update the
	// [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
	// PERMISSION_DENIED error is returned.
	//
	// If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
	// update does not exist, a NOT_FOUND error is returned.
	CompletionConfig *CompletionConfig `protobuf:"bytes,1,opt,name=completion_config,json=completionConfig,proto3" json:"completion_config,omitempty"`
	// Indicates which fields in the provided
	// [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
	// The following are the only supported fields:
	//
	// * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
	// * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
	// * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
	// * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
	//
	// If not set, all supported fields are updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for [CatalogService.UpdateCompletionConfig][google.cloud.retail.v2alpha.CatalogService.UpdateCompletionConfig] method.

func (*UpdateCompletionConfigRequest) Descriptor deprecated

func (*UpdateCompletionConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCompletionConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateCompletionConfigRequest) GetCompletionConfig

func (x *UpdateCompletionConfigRequest) GetCompletionConfig() *CompletionConfig

func (*UpdateCompletionConfigRequest) GetUpdateMask

func (*UpdateCompletionConfigRequest) ProtoMessage

func (*UpdateCompletionConfigRequest) ProtoMessage()

func (*UpdateCompletionConfigRequest) ProtoReflect

func (*UpdateCompletionConfigRequest) Reset

func (x *UpdateCompletionConfigRequest) Reset()

func (*UpdateCompletionConfigRequest) String

type UpdateControlRequest

type UpdateControlRequest struct {

	// Required. The Control to update.
	Control *Control `protobuf:"bytes,1,opt,name=control,proto3" json:"control,omitempty"`
	// Indicates which fields in the provided
	// [Control][google.cloud.retail.v2alpha.Control] to update. The following are
	// NOT supported:
	//
	// * [Control.name][google.cloud.retail.v2alpha.Control.name]
	//
	// If not set or empty, all supported fields are updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for UpdateControl method.

func (*UpdateControlRequest) Descriptor deprecated

func (*UpdateControlRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateControlRequest.ProtoReflect.Descriptor instead.

func (*UpdateControlRequest) GetControl

func (x *UpdateControlRequest) GetControl() *Control

func (*UpdateControlRequest) GetUpdateMask

func (x *UpdateControlRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateControlRequest) ProtoMessage

func (*UpdateControlRequest) ProtoMessage()

func (*UpdateControlRequest) ProtoReflect

func (x *UpdateControlRequest) ProtoReflect() protoreflect.Message

func (*UpdateControlRequest) Reset

func (x *UpdateControlRequest) Reset()

func (*UpdateControlRequest) String

func (x *UpdateControlRequest) String() string

type UpdateModelRequest

type UpdateModelRequest struct {

	// Required. The body of the updated
	// [Model][google.cloud.retail.v2alpha.Model].
	Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// Optional. Indicates which fields in the provided 'model' to
	// update. If not set, by default updates all fields.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for updating an existing model.

func (*UpdateModelRequest) Descriptor deprecated

func (*UpdateModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead.

func (*UpdateModelRequest) GetModel

func (x *UpdateModelRequest) GetModel() *Model

func (*UpdateModelRequest) GetUpdateMask

func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateModelRequest) ProtoMessage

func (*UpdateModelRequest) ProtoMessage()

func (*UpdateModelRequest) ProtoReflect

func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message

func (*UpdateModelRequest) Reset

func (x *UpdateModelRequest) Reset()

func (*UpdateModelRequest) String

func (x *UpdateModelRequest) String() string

type UpdateProductRequest

type UpdateProductRequest struct {

	// Required. The product to update/create.
	//
	// If the caller does not have permission to update the
	// [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
	// not it exists, a PERMISSION_DENIED error is returned.
	//
	// If the [Product][google.cloud.retail.v2alpha.Product] to update does not
	// exist and
	// [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing]
	// is not set, a NOT_FOUND error is returned.
	Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// Indicates which fields in the provided
	// [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and
	// output only fields are NOT supported. If not set, all supported fields (the
	// fields that are neither immutable nor output only) are updated.
	//
	// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
	// is returned.
	//
	// The attribute key can be updated by setting the mask path as
	// "attributes.${key_name}". If a key name is present in the mask but not in
	// the patching product from the request, this key will be deleted after the
	// update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is
	// not found, a new [Product][google.cloud.retail.v2alpha.Product] will be
	// created. In this situation, `update_mask` is ignored.
	AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Request message for [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] method.

func (*UpdateProductRequest) Descriptor deprecated

func (*UpdateProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.

func (*UpdateProductRequest) GetAllowMissing

func (x *UpdateProductRequest) GetAllowMissing() bool

func (*UpdateProductRequest) GetProduct

func (x *UpdateProductRequest) GetProduct() *Product

func (*UpdateProductRequest) GetUpdateMask

func (x *UpdateProductRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateProductRequest) ProtoMessage

func (*UpdateProductRequest) ProtoMessage()

func (*UpdateProductRequest) ProtoReflect

func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message

func (*UpdateProductRequest) Reset

func (x *UpdateProductRequest) Reset()

func (*UpdateProductRequest) String

func (x *UpdateProductRequest) String() string

type UpdateServingConfigRequest

type UpdateServingConfigRequest struct {

	// Required. The ServingConfig to update.
	ServingConfig *ServingConfig `protobuf:"bytes,1,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"`
	// Indicates which fields in the provided
	// [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to update. The
	// following are NOT supported:
	//
	// * [ServingConfig.name][google.cloud.retail.v2alpha.ServingConfig.name]
	//
	// If not set, all supported fields are updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request for UpdateServingConfig method.

func (*UpdateServingConfigRequest) Descriptor deprecated

func (*UpdateServingConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateServingConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateServingConfigRequest) GetServingConfig

func (x *UpdateServingConfigRequest) GetServingConfig() *ServingConfig

func (*UpdateServingConfigRequest) GetUpdateMask

func (x *UpdateServingConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateServingConfigRequest) ProtoMessage

func (*UpdateServingConfigRequest) ProtoMessage()

func (*UpdateServingConfigRequest) ProtoReflect

func (*UpdateServingConfigRequest) Reset

func (x *UpdateServingConfigRequest) Reset()

func (*UpdateServingConfigRequest) String

func (x *UpdateServingConfigRequest) String() string

type UserEvent

type UserEvent struct {

	// Required. User event type. Allowed values are:
	//
	//   - `add-to-cart`: Products being added to cart.
	//   - `category-page-view`: Special pages such as sale or promotion pages
	//     viewed.
	//   - `detail-page-view`: Products detail page viewed.
	//   - `home-page-view`: Homepage viewed.
	//   - `promotion-offered`: Promotion is offered to a user.
	//   - `promotion-not-offered`: Promotion is not offered to a user.
	//   - `purchase-complete`: User finishing a purchase.
	//   - `search`: Product search.
	//   - `shopping-cart-page-view`: User viewing a shopping cart.
	EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	// Required. A unique identifier for tracking visitors.
	//
	// For example, this could be implemented with an HTTP cookie, which should be
	// able to uniquely identify a visitor on a single device. This unique
	// identifier should not change if the visitor log in/out of the website.
	//
	// Don't set the field to the same fixed ID for different users. This mixes
	// the event history of those users together, which results in degraded model
	// quality.
	//
	// The field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// The field should not contain PII or user-data. We recommend to use Google
	// Analytics [Client
	// ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
	// for this field.
	VisitorId string `protobuf:"bytes,2,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"`
	// A unique identifier for tracking a visitor session with a length limit of
	// 128 bytes. A session is an aggregation of an end user behavior in a time
	// span.
	//
	// A general guideline to populate the sesion_id:
	// 1. If user has no activity for 30 min, a new session_id should be assigned.
	// 2. The session_id should be unique across users, suggest use uuid or add
	// visitor_id as prefix.
	SessionId string `protobuf:"bytes,21,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Only required for
	// [UserEventService.ImportUserEvents][google.cloud.retail.v2alpha.UserEventService.ImportUserEvents]
	// method. Timestamp of when the user event happened.
	EventTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
	// A list of identifiers for the independent experiment groups this user event
	// belongs to. This is used to distinguish between user events associated with
	// different experiment setups (e.g. using Retail API, using different
	// recommendation models).
	ExperimentIds []string `protobuf:"bytes,4,rep,name=experiment_ids,json=experimentIds,proto3" json:"experiment_ids,omitempty"`
	// Highly recommended for user events that are the result of
	// [PredictionService.Predict][google.cloud.retail.v2alpha.PredictionService.Predict].
	// This field enables accurate attribution of recommendation model
	// performance.
	//
	// The value must be a valid
	// [PredictResponse.attribution_token][google.cloud.retail.v2alpha.PredictResponse.attribution_token]
	// for user events that are the result of
	// [PredictionService.Predict][google.cloud.retail.v2alpha.PredictionService.Predict].
	// The value must be a valid
	// [SearchResponse.attribution_token][google.cloud.retail.v2alpha.SearchResponse.attribution_token]
	// for user events that are the result of
	// [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
	//
	// This token enables us to accurately attribute page view or purchase back to
	// the event and the particular predict response containing this
	// clicked/purchased product. If user clicks on product K in the
	// recommendation results, pass
	// [PredictResponse.attribution_token][google.cloud.retail.v2alpha.PredictResponse.attribution_token]
	// as a URL parameter to product K's page. When recording events on product
	// K's page, log the
	// [PredictResponse.attribution_token][google.cloud.retail.v2alpha.PredictResponse.attribution_token]
	// to this field.
	AttributionToken string `protobuf:"bytes,5,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"`
	// The main product details related to the event.
	//
	// This field is optional except for the following event types:
	//
	// * `add-to-cart`
	// * `detail-page-view`
	// * `purchase-complete`
	//
	// In a `search` event, this field represents the products returned to the end
	// user on the current page (the end user may have not finished browsing the
	// whole page yet). When a new page is returned to the end user, after
	// pagination/filtering/ordering even for the same query, a new `search` event
	// with different
	// [product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is
	// desired. The end user may have not finished browsing the whole page yet.
	ProductDetails []*ProductDetail `protobuf:"bytes,6,rep,name=product_details,json=productDetails,proto3" json:"product_details,omitempty"`
	// The main auto-completion details related to the event.
	//
	// This field should be set for `search` event when autocomplete function is
	// enabled and the user clicks a suggestion for search.
	CompletionDetail *CompletionDetail `protobuf:"bytes,22,opt,name=completion_detail,json=completionDetail,proto3" json:"completion_detail,omitempty"`
	// Extra user event features to include in the recommendation model.
	//
	// If you provide custom attributes for ingested user events, also include
	// them in the user events that you associate with prediction requests. Custom
	// attribute formatting must be consistent between imported events and events
	// provided with prediction requests. This lets the Retail API use
	// those custom attributes when training models and serving predictions, which
	// helps improve recommendation quality.
	//
	// This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT
	// error is returned:
	//
	//   - The key must be a UTF-8 encoded string with a length limit of 5,000
	//     characters.
	//   - For text attributes, at most 400 values are allowed. Empty values are not
	//     allowed. Each value must be a UTF-8 encoded string with a length limit of
	//     256 characters.
	//   - For number attributes, at most 400 values are allowed.
	//
	// For product recommendations, an example of extra user information is
	// traffic_channel, which is how a user arrives at the site. Users can arrive
	// at the site by coming to the site directly, coming through Google
	// search, or in other ways.
	Attributes map[string]*CustomAttribute `` /* 161-byte string literal not displayed */
	// The ID or name of the associated shopping cart. This ID is used
	// to associate multiple items added or present in the cart before purchase.
	//
	// This can only be set for `add-to-cart`, `purchase-complete`, or
	// `shopping-cart-page-view` events.
	CartId string `protobuf:"bytes,8,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
	// A transaction represents the entire purchase transaction.
	//
	// Required for `purchase-complete` events. Other event types should not set
	// this field. Otherwise, an INVALID_ARGUMENT error is returned.
	PurchaseTransaction *PurchaseTransaction `protobuf:"bytes,9,opt,name=purchase_transaction,json=purchaseTransaction,proto3" json:"purchase_transaction,omitempty"`
	// The user's search query.
	//
	// See [SearchRequest.query][google.cloud.retail.v2alpha.SearchRequest.query]
	// for definition.
	//
	// The value must be a UTF-8 encoded string with a length limit of 5,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// At least one of
	// [search_query][google.cloud.retail.v2alpha.UserEvent.search_query] or
	// [page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories] is
	// required for `search` events. Other event types should not set this field.
	// Otherwise, an INVALID_ARGUMENT error is returned.
	SearchQuery string `protobuf:"bytes,10,opt,name=search_query,json=searchQuery,proto3" json:"search_query,omitempty"`
	// The filter syntax consists of an expression language for constructing a
	// predicate from one or more fields of the products being filtered.
	//
	// See
	// [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
	// for definition and syntax.
	//
	// The value must be a UTF-8 encoded string with a length limit of 1,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	Filter string `protobuf:"bytes,16,opt,name=filter,proto3" json:"filter,omitempty"`
	// The order in which products are returned.
	//
	// See
	// [SearchRequest.order_by][google.cloud.retail.v2alpha.SearchRequest.order_by]
	// for definition and syntax.
	//
	// The value must be a UTF-8 encoded string with a length limit of 1,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// This can only be set for `search` events. Other event types should not set
	// this field. Otherwise, an INVALID_ARGUMENT error is returned.
	OrderBy string `protobuf:"bytes,17,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// An integer that specifies the current offset for pagination (the 0-indexed
	// starting location, amongst the products deemed by the API as relevant).
	//
	// See
	// [SearchRequest.offset][google.cloud.retail.v2alpha.SearchRequest.offset]
	// for definition.
	//
	// If this field is negative, an INVALID_ARGUMENT is returned.
	//
	// This can only be set for `search` events. Other event types should not set
	// this field. Otherwise, an INVALID_ARGUMENT error is returned.
	Offset int32 `protobuf:"varint,18,opt,name=offset,proto3" json:"offset,omitempty"`
	// The categories associated with a category page.
	//
	// To represent full path of category, use '>' sign to separate different
	// hierarchies. If '>' is part of the category name, replace it with
	// other character(s).
	//
	// Category pages include special pages such as sales or promotions. For
	// instance, a special sale page may have the category hierarchy:
	// "pageCategories" : ["Sales > 2017 Black Friday Deals"].
	//
	// Required for `category-page-view` events. At least one of
	// [search_query][google.cloud.retail.v2alpha.UserEvent.search_query] or
	// [page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories] is
	// required for `search` events. Other event types should not set this field.
	// Otherwise, an INVALID_ARGUMENT error is returned.
	PageCategories []string `protobuf:"bytes,11,rep,name=page_categories,json=pageCategories,proto3" json:"page_categories,omitempty"`
	// User information.
	UserInfo *UserInfo `protobuf:"bytes,12,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// Complete URL (window.location.href) of the user's current page.
	//
	// When using the client side event reporting with JavaScript pixel and Google
	// Tag Manager, this value is filled in automatically. Maximum length 5,000
	// characters.
	Uri string `protobuf:"bytes,13,opt,name=uri,proto3" json:"uri,omitempty"`
	// The referrer URL of the current page.
	//
	// When using the client side event reporting with JavaScript pixel and Google
	// Tag Manager, this value is filled in automatically.
	ReferrerUri string `protobuf:"bytes,14,opt,name=referrer_uri,json=referrerUri,proto3" json:"referrer_uri,omitempty"`
	// A unique ID of a web page view.
	//
	// This should be kept the same for all user events triggered from the same
	// pageview. For example, an item detail page view could trigger multiple
	// events as the user is browsing the page. The `pageViewId` property should
	// be kept the same for all these events so that they can be grouped together
	// properly.
	//
	// When using the client side event reporting with JavaScript pixel and Google
	// Tag Manager, this value is filled in automatically.
	PageViewId string `protobuf:"bytes,15,opt,name=page_view_id,json=pageViewId,proto3" json:"page_view_id,omitempty"`
	// The entity for customers that may run multiple different entities, domains,
	// sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
	// `google.com`, `youtube.com`, etc.
	// It is recommended to set this field to get better per-entity search,
	// completion and prediction results.
	Entity string `protobuf:"bytes,23,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UserEvent) Descriptor deprecated

func (*UserEvent) Descriptor() ([]byte, []int)

Deprecated: Use UserEvent.ProtoReflect.Descriptor instead.

func (*UserEvent) GetAttributes

func (x *UserEvent) GetAttributes() map[string]*CustomAttribute

func (*UserEvent) GetAttributionToken

func (x *UserEvent) GetAttributionToken() string

func (*UserEvent) GetCartId

func (x *UserEvent) GetCartId() string

func (*UserEvent) GetCompletionDetail

func (x *UserEvent) GetCompletionDetail() *CompletionDetail

func (*UserEvent) GetEntity added in v1.13.0

func (x *UserEvent) GetEntity() string

func (*UserEvent) GetEventTime

func (x *UserEvent) GetEventTime() *timestamppb.Timestamp

func (*UserEvent) GetEventType

func (x *UserEvent) GetEventType() string

func (*UserEvent) GetExperimentIds

func (x *UserEvent) GetExperimentIds() []string

func (*UserEvent) GetFilter

func (x *UserEvent) GetFilter() string

func (*UserEvent) GetOffset

func (x *UserEvent) GetOffset() int32

func (*UserEvent) GetOrderBy

func (x *UserEvent) GetOrderBy() string

func (*UserEvent) GetPageCategories

func (x *UserEvent) GetPageCategories() []string

func (*UserEvent) GetPageViewId

func (x *UserEvent) GetPageViewId() string

func (*UserEvent) GetProductDetails

func (x *UserEvent) GetProductDetails() []*ProductDetail

func (*UserEvent) GetPurchaseTransaction

func (x *UserEvent) GetPurchaseTransaction() *PurchaseTransaction

func (*UserEvent) GetReferrerUri

func (x *UserEvent) GetReferrerUri() string

func (*UserEvent) GetSearchQuery

func (x *UserEvent) GetSearchQuery() string

func (*UserEvent) GetSessionId

func (x *UserEvent) GetSessionId() string

func (*UserEvent) GetUri

func (x *UserEvent) GetUri() string

func (*UserEvent) GetUserInfo

func (x *UserEvent) GetUserInfo() *UserInfo

func (*UserEvent) GetVisitorId

func (x *UserEvent) GetVisitorId() string

func (*UserEvent) ProtoMessage

func (*UserEvent) ProtoMessage()

func (*UserEvent) ProtoReflect

func (x *UserEvent) ProtoReflect() protoreflect.Message

func (*UserEvent) Reset

func (x *UserEvent) Reset()

func (*UserEvent) String

func (x *UserEvent) String() string

type UserEventImportSummary

type UserEventImportSummary struct {

	// Count of user events imported with complete existing catalog information.
	JoinedEventsCount int64 `protobuf:"varint,1,opt,name=joined_events_count,json=joinedEventsCount,proto3" json:"joined_events_count,omitempty"`
	// Count of user events imported, but with catalog information not found
	// in the imported catalog.
	UnjoinedEventsCount int64 `protobuf:"varint,2,opt,name=unjoined_events_count,json=unjoinedEventsCount,proto3" json:"unjoined_events_count,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UserEventImportSummary) Descriptor deprecated

func (*UserEventImportSummary) Descriptor() ([]byte, []int)

Deprecated: Use UserEventImportSummary.ProtoReflect.Descriptor instead.

func (*UserEventImportSummary) GetJoinedEventsCount

func (x *UserEventImportSummary) GetJoinedEventsCount() int64

func (*UserEventImportSummary) GetUnjoinedEventsCount

func (x *UserEventImportSummary) GetUnjoinedEventsCount() int64

func (*UserEventImportSummary) ProtoMessage

func (*UserEventImportSummary) ProtoMessage()

func (*UserEventImportSummary) ProtoReflect

func (x *UserEventImportSummary) ProtoReflect() protoreflect.Message

func (*UserEventImportSummary) Reset

func (x *UserEventImportSummary) Reset()

func (*UserEventImportSummary) String

func (x *UserEventImportSummary) String() string

type UserEventInlineSource

type UserEventInlineSource struct {

	// Required. A list of user events to import. Recommended max of 10k items.
	UserEvents []*UserEvent `protobuf:"bytes,1,rep,name=user_events,json=userEvents,proto3" json:"user_events,omitempty"`
	// contains filtered or unexported fields
}

The inline source for the input config for ImportUserEvents method.

func (*UserEventInlineSource) Descriptor deprecated

func (*UserEventInlineSource) Descriptor() ([]byte, []int)

Deprecated: Use UserEventInlineSource.ProtoReflect.Descriptor instead.

func (*UserEventInlineSource) GetUserEvents

func (x *UserEventInlineSource) GetUserEvents() []*UserEvent

func (*UserEventInlineSource) ProtoMessage

func (*UserEventInlineSource) ProtoMessage()

func (*UserEventInlineSource) ProtoReflect

func (x *UserEventInlineSource) ProtoReflect() protoreflect.Message

func (*UserEventInlineSource) Reset

func (x *UserEventInlineSource) Reset()

func (*UserEventInlineSource) String

func (x *UserEventInlineSource) String() string

type UserEventInputConfig

type UserEventInputConfig struct {

	// The source of the input.
	//
	// Types that are assignable to Source:
	//
	//	*UserEventInputConfig_UserEventInlineSource
	//	*UserEventInputConfig_GcsSource
	//	*UserEventInputConfig_BigQuerySource
	Source isUserEventInputConfig_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The input config source for user events.

func (*UserEventInputConfig) Descriptor deprecated

func (*UserEventInputConfig) Descriptor() ([]byte, []int)

Deprecated: Use UserEventInputConfig.ProtoReflect.Descriptor instead.

func (*UserEventInputConfig) GetBigQuerySource

func (x *UserEventInputConfig) GetBigQuerySource() *BigQuerySource

func (*UserEventInputConfig) GetGcsSource

func (x *UserEventInputConfig) GetGcsSource() *GcsSource

func (*UserEventInputConfig) GetSource

func (m *UserEventInputConfig) GetSource() isUserEventInputConfig_Source

func (*UserEventInputConfig) GetUserEventInlineSource

func (x *UserEventInputConfig) GetUserEventInlineSource() *UserEventInlineSource

func (*UserEventInputConfig) ProtoMessage

func (*UserEventInputConfig) ProtoMessage()

func (*UserEventInputConfig) ProtoReflect

func (x *UserEventInputConfig) ProtoReflect() protoreflect.Message

func (*UserEventInputConfig) Reset

func (x *UserEventInputConfig) Reset()

func (*UserEventInputConfig) String

func (x *UserEventInputConfig) String() string

type UserEventInputConfig_BigQuerySource

type UserEventInputConfig_BigQuerySource struct {
	// Required. BigQuery input source.
	BigQuerySource *BigQuerySource `protobuf:"bytes,3,opt,name=big_query_source,json=bigQuerySource,proto3,oneof"`
}

type UserEventInputConfig_GcsSource

type UserEventInputConfig_GcsSource struct {
	// Required. Google Cloud Storage location for the input content.
	GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}

type UserEventInputConfig_UserEventInlineSource

type UserEventInputConfig_UserEventInlineSource struct {
	// Required. The Inline source for the input content for UserEvents.
	UserEventInlineSource *UserEventInlineSource `protobuf:"bytes,1,opt,name=user_event_inline_source,json=userEventInlineSource,proto3,oneof"`
}

type UserEventServiceClient

type UserEventServiceClient interface {
	// Writes a single user event.
	WriteUserEvent(ctx context.Context, in *WriteUserEventRequest, opts ...grpc.CallOption) (*UserEvent, error)
	// Writes a single user event from the browser. This uses a GET request to
	// due to browser restriction of POST-ing to a 3rd party domain.
	//
	// This method is used only by the Retail API JavaScript pixel and Google Tag
	// Manager. Users should not call this method directly.
	CollectUserEvent(ctx context.Context, in *CollectUserEventRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
	// Deletes permanently all user events specified by the filter provided.
	// Depending on the number of events specified by the filter, this operation
	// could take hours or days to complete. To test a filter, use the list
	// command first.
	PurgeUserEvents(ctx context.Context, in *PurgeUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Bulk import of User events. Request processing might be
	// synchronous. Events that already exist are skipped.
	// Use this method for backfilling historical user events.
	//
	// `Operation.response` is of type `ImportResponse`. Note that it is
	// possible for a subset of the items to be successfully inserted.
	// `Operation.metadata` is of type `ImportMetadata`.
	ImportUserEvents(ctx context.Context, in *ImportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Starts a user-event rejoin operation with latest product catalog. Events
	// are not annotated with detailed product information for products that are
	// missing from the catalog when the user event is ingested. These
	// events are stored as unjoined events with limited usage on training and
	// serving. You can use this method to start a join operation on specified
	// events with the latest version of product catalog. You can also use this
	// method to correct events joined with the wrong product catalog. A rejoin
	// operation can take hours or days to complete.
	RejoinUserEvents(ctx context.Context, in *RejoinUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

UserEventServiceClient is the client API for UserEventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type UserEventServiceServer

type UserEventServiceServer interface {
	// Writes a single user event.
	WriteUserEvent(context.Context, *WriteUserEventRequest) (*UserEvent, error)
	// Writes a single user event from the browser. This uses a GET request to
	// due to browser restriction of POST-ing to a 3rd party domain.
	//
	// This method is used only by the Retail API JavaScript pixel and Google Tag
	// Manager. Users should not call this method directly.
	CollectUserEvent(context.Context, *CollectUserEventRequest) (*httpbody.HttpBody, error)
	// Deletes permanently all user events specified by the filter provided.
	// Depending on the number of events specified by the filter, this operation
	// could take hours or days to complete. To test a filter, use the list
	// command first.
	PurgeUserEvents(context.Context, *PurgeUserEventsRequest) (*longrunningpb.Operation, error)
	// Bulk import of User events. Request processing might be
	// synchronous. Events that already exist are skipped.
	// Use this method for backfilling historical user events.
	//
	// `Operation.response` is of type `ImportResponse`. Note that it is
	// possible for a subset of the items to be successfully inserted.
	// `Operation.metadata` is of type `ImportMetadata`.
	ImportUserEvents(context.Context, *ImportUserEventsRequest) (*longrunningpb.Operation, error)
	// Starts a user-event rejoin operation with latest product catalog. Events
	// are not annotated with detailed product information for products that are
	// missing from the catalog when the user event is ingested. These
	// events are stored as unjoined events with limited usage on training and
	// serving. You can use this method to start a join operation on specified
	// events with the latest version of product catalog. You can also use this
	// method to correct events joined with the wrong product catalog. A rejoin
	// operation can take hours or days to complete.
	RejoinUserEvents(context.Context, *RejoinUserEventsRequest) (*longrunningpb.Operation, error)
}

UserEventServiceServer is the server API for UserEventService service.

type UserInfo

type UserInfo struct {

	// Highly recommended for logged-in users. Unique identifier for logged-in
	// user, such as a user name. Don't set for anonymous users.
	//
	// Always use a hashed value for this ID.
	//
	// Don't set the field to the same fixed ID for different users. This mixes
	// the event history of those users together, which results in degraded
	// model quality.
	//
	// The field must be a UTF-8 encoded string with a length limit of 128
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The end user's IP address. This field is used to extract location
	// information for personalization.
	//
	// This field must be either an IPv4 address (e.g. "104.133.9.80") or an IPv6
	// address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334"). Otherwise, an
	// INVALID_ARGUMENT error is returned.
	//
	// This should not be set when:
	//
	// * setting
	// [SearchRequest.user_info][google.cloud.retail.v2alpha.SearchRequest.user_info].
	// * using the JavaScript tag in
	// [UserEventService.CollectUserEvent][google.cloud.retail.v2alpha.UserEventService.CollectUserEvent]
	// or if
	// [direct_user_request][google.cloud.retail.v2alpha.UserInfo.direct_user_request]
	// is set.
	IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// User agent as included in the HTTP header. Required for getting
	// [SearchResponse.sponsored_results][google.cloud.retail.v2alpha.SearchResponse.sponsored_results].
	//
	// The field must be a UTF-8 encoded string with a length limit of 1,000
	// characters. Otherwise, an INVALID_ARGUMENT error is returned.
	//
	// This should not be set when using the client side event reporting with
	// GTM or JavaScript tag in
	// [UserEventService.CollectUserEvent][google.cloud.retail.v2alpha.UserEventService.CollectUserEvent]
	// or if
	// [direct_user_request][google.cloud.retail.v2alpha.UserInfo.direct_user_request]
	// is set.
	UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// True if the request is made directly from the end user, in which case the
	// [ip_address][google.cloud.retail.v2alpha.UserInfo.ip_address] and
	// [user_agent][google.cloud.retail.v2alpha.UserInfo.user_agent] can be
	// populated from the HTTP request. This flag should be set only if the API
	// request is made directly from the end user such as a mobile app (and not if
	// a gateway or a server is processing and pushing the user events).
	//
	// This should not be set when using the JavaScript tag in
	// [UserEventService.CollectUserEvent][google.cloud.retail.v2alpha.UserEventService.CollectUserEvent].
	DirectUserRequest bool `protobuf:"varint,4,opt,name=direct_user_request,json=directUserRequest,proto3" json:"direct_user_request,omitempty"`
	// contains filtered or unexported fields
}

Information of an end user.

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetDirectUserRequest

func (x *UserInfo) GetDirectUserRequest() bool

func (*UserInfo) GetIpAddress

func (x *UserInfo) GetIpAddress() string

func (*UserInfo) GetUserAgent

func (x *UserInfo) GetUserAgent() string

func (*UserInfo) GetUserId

func (x *UserInfo) GetUserId() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type WriteUserEventRequest

type WriteUserEventRequest struct {

	// Required. The parent catalog resource name, such as
	// `projects/1234/locations/global/catalogs/default_catalog`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. User event to write.
	UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
	// If set to true, the user event will be written asynchronously after
	// validation, and the API will respond without waiting for the write.
	// Therefore, silent failures can occur even if the API returns success. In
	// case of silent failures, error messages can be found in Stackdriver logs.
	WriteAsync bool `protobuf:"varint,3,opt,name=write_async,json=writeAsync,proto3" json:"write_async,omitempty"`
	// contains filtered or unexported fields
}

Request message for WriteUserEvent method.

func (*WriteUserEventRequest) Descriptor deprecated

func (*WriteUserEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use WriteUserEventRequest.ProtoReflect.Descriptor instead.

func (*WriteUserEventRequest) GetParent

func (x *WriteUserEventRequest) GetParent() string

func (*WriteUserEventRequest) GetUserEvent

func (x *WriteUserEventRequest) GetUserEvent() *UserEvent

func (*WriteUserEventRequest) GetWriteAsync added in v1.12.0

func (x *WriteUserEventRequest) GetWriteAsync() bool

func (*WriteUserEventRequest) ProtoMessage

func (*WriteUserEventRequest) ProtoMessage()

func (*WriteUserEventRequest) ProtoReflect

func (x *WriteUserEventRequest) ProtoReflect() protoreflect.Message

func (*WriteUserEventRequest) Reset

func (x *WriteUserEventRequest) Reset()

func (*WriteUserEventRequest) String

func (x *WriteUserEventRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL