Variables
CatalogAttribute_AttributeType_name, CatalogAttribute_AttributeType_value
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.
CatalogAttribute_IndexableOption_name, CatalogAttribute_IndexableOption_value
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.
CatalogAttribute_DynamicFacetableOption_name, CatalogAttribute_DynamicFacetableOption_value
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.
CatalogAttribute_SearchableOption_name, CatalogAttribute_SearchableOption_value
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.
CatalogAttribute_ExactSearchableOption_name, CatalogAttribute_ExactSearchableOption_value
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.
CatalogAttribute_RetrievableOption_name, CatalogAttribute_RetrievableOption_value
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.
AttributeConfigLevel_name, AttributeConfigLevel_value
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.
SolutionType_name, SolutionType_value
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.
RecommendationsFilteringOption_name, RecommendationsFilteringOption_value
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.
SearchSolutionUseCase_name, SearchSolutionUseCase_value
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.
ImportProductsRequest_ReconciliationMode_name, ImportProductsRequest_ReconciliationMode_value
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.
Model_ServingState_name, Model_ServingState_value
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.
Model_TrainingState_name, Model_TrainingState_value
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.
Model_PeriodicTuningState_name, Model_PeriodicTuningState_value
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.
Model_DataState_name, Model_DataState_value
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.
Model_ContextProductsType_name, Model_ContextProductsType_value
var (
Model_ContextProductsType_name = map[int32]string{
0: "CONTEXT_PRODUCTS_TYPE_UNSPECIFIED",
1: "SINGLE_CONTEXT_PRODUCT",
2: "MULTIPLE_CONTEXT_PRODUCTS",
}
Model_ContextProductsType_value = map[string]int32{
"CONTEXT_PRODUCTS_TYPE_UNSPECIFIED": 0,
"SINGLE_CONTEXT_PRODUCT": 1,
"MULTIPLE_CONTEXT_PRODUCTS": 2,
}
)
Enum value maps for Model_ContextProductsType.
Product_Type_name, Product_Type_value
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.
Product_Availability_name, Product_Availability_value
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.
AlertConfig_AlertPolicy_EnrollStatus_name, AlertConfig_AlertPolicy_EnrollStatus_value
var (
AlertConfig_AlertPolicy_EnrollStatus_name = map[int32]string{
0: "ENROLL_STATUS_UNSPECIFIED",
1: "ENROLLED",
2: "DECLINED",
}
AlertConfig_AlertPolicy_EnrollStatus_value = map[string]int32{
"ENROLL_STATUS_UNSPECIFIED": 0,
"ENROLLED": 1,
"DECLINED": 2,
}
)
Enum value maps for AlertConfig_AlertPolicy_EnrollStatus.
SearchRequest_SearchMode_name, SearchRequest_SearchMode_value
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.
SearchRequest_DynamicFacetSpec_Mode_name, SearchRequest_DynamicFacetSpec_Mode_value
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.
SearchRequest_QueryExpansionSpec_Condition_name, SearchRequest_QueryExpansionSpec_Condition_value
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.
SearchRequest_PersonalizationSpec_Mode_name, SearchRequest_PersonalizationSpec_Mode_value
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.
SearchRequest_SpellCorrectionSpec_Mode_name, SearchRequest_SpellCorrectionSpec_Mode_value
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.
ServingConfig_DiversityType_name, ServingConfig_DiversityType_value
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.
RejoinUserEventsRequest_UserEventRejoinScope_name, RejoinUserEventsRequest_UserEventRejoinScope_value
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.
File_google_cloud_retail_v2beta_analytics_service_proto
var File_google_cloud_retail_v2beta_analytics_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_catalog_proto
var File_google_cloud_retail_v2beta_catalog_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_catalog_service_proto
var File_google_cloud_retail_v2beta_catalog_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_common_proto
var File_google_cloud_retail_v2beta_common_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_completion_service_proto
var File_google_cloud_retail_v2beta_completion_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_control_proto
var File_google_cloud_retail_v2beta_control_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_control_service_proto
var File_google_cloud_retail_v2beta_control_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_export_config_proto
var File_google_cloud_retail_v2beta_export_config_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_generative_question_proto
var File_google_cloud_retail_v2beta_generative_question_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_generative_question_service_proto
var File_google_cloud_retail_v2beta_generative_question_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_import_config_proto
var File_google_cloud_retail_v2beta_import_config_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_model_proto
var File_google_cloud_retail_v2beta_model_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_model_service_proto
var File_google_cloud_retail_v2beta_model_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_prediction_service_proto
var File_google_cloud_retail_v2beta_prediction_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_product_proto
var File_google_cloud_retail_v2beta_product_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_product_service_proto
var File_google_cloud_retail_v2beta_product_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_project_proto
var File_google_cloud_retail_v2beta_project_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_project_service_proto
var File_google_cloud_retail_v2beta_project_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_promotion_proto
var File_google_cloud_retail_v2beta_promotion_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_purge_config_proto
var File_google_cloud_retail_v2beta_purge_config_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_search_service_proto
var File_google_cloud_retail_v2beta_search_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_serving_config_proto
var File_google_cloud_retail_v2beta_serving_config_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_serving_config_service_proto
var File_google_cloud_retail_v2beta_serving_config_service_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_user_event_proto
var File_google_cloud_retail_v2beta_user_event_proto protoreflect.FileDescriptor
File_google_cloud_retail_v2beta_user_event_service_proto
var File_google_cloud_retail_v2beta_user_event_service_proto protoreflect.FileDescriptor
Functions
func RegisterAnalyticsServiceServer
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 RegisterGenerativeQuestionServiceServer
func RegisterGenerativeQuestionServiceServer(s *grpc.Server, srv GenerativeQuestionServiceServer)
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 RegisterProjectServiceServer
func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
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)
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.v2beta.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.v2beta.CatalogService.AddCatalogAttribute] method.
func (*AddCatalogAttributeRequest) Descriptor
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 (x *AddCatalogAttributeRequest) ProtoReflect() protoreflect.Message
func (*AddCatalogAttributeRequest) Reset
func (x *AddCatalogAttributeRequest) Reset()
func (*AddCatalogAttributeRequest) String
func (x *AddCatalogAttributeRequest) String() string
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
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
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.v2beta.ProductService.AddFulfillmentPlaces] method.
func (*AddFulfillmentPlacesMetadata) Descriptor
func (*AddFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)
Deprecated: Use AddFulfillmentPlacesMetadata.ProtoReflect.Descriptor instead.
func (*AddFulfillmentPlacesMetadata) ProtoMessage
func (*AddFulfillmentPlacesMetadata) ProtoMessage()
func (*AddFulfillmentPlacesMetadata) ProtoReflect
func (x *AddFulfillmentPlacesMetadata) ProtoReflect() protoreflect.Message
func (*AddFulfillmentPlacesMetadata) Reset
func (x *AddFulfillmentPlacesMetadata) Reset()
func (*AddFulfillmentPlacesMetadata) String
func (x *AddFulfillmentPlacesMetadata) String() string
AddFulfillmentPlacesRequest
type AddFulfillmentPlacesRequest struct {
// Required. Full resource name of
// [Product][google.cloud.retail.v2beta.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.v2beta.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.v2beta.FulfillmentInfo.type].
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Required. The IDs for this
// [type][google.cloud.retail.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.Product] is created. If set to false,
// a NOT_FOUND error is returned if the
// [Product][google.cloud.retail.v2beta.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.v2beta.ProductService.AddFulfillmentPlaces] method.
func (*AddFulfillmentPlacesRequest) Descriptor
func (*AddFulfillmentPlacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddFulfillmentPlacesRequest.ProtoReflect.Descriptor instead.
func (*AddFulfillmentPlacesRequest) GetAddTime
func (x *AddFulfillmentPlacesRequest) GetAddTime() *timestamppb.Timestamp
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 (x *AddFulfillmentPlacesRequest) ProtoReflect() protoreflect.Message
func (*AddFulfillmentPlacesRequest) Reset
func (x *AddFulfillmentPlacesRequest) Reset()
func (*AddFulfillmentPlacesRequest) String
func (x *AddFulfillmentPlacesRequest) String() string
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.v2beta.ProductService.AddFulfillmentPlaces] method.
func (*AddFulfillmentPlacesResponse) Descriptor
func (*AddFulfillmentPlacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddFulfillmentPlacesResponse.ProtoReflect.Descriptor instead.
func (*AddFulfillmentPlacesResponse) ProtoMessage
func (*AddFulfillmentPlacesResponse) ProtoMessage()
func (*AddFulfillmentPlacesResponse) ProtoReflect
func (x *AddFulfillmentPlacesResponse) ProtoReflect() protoreflect.Message
func (*AddFulfillmentPlacesResponse) Reset
func (x *AddFulfillmentPlacesResponse) Reset()
func (*AddFulfillmentPlacesResponse) String
func (x *AddFulfillmentPlacesResponse) String() string
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.v2beta.ProductService.AddLocalInventories] method.
func (*AddLocalInventoriesMetadata) Descriptor
func (*AddLocalInventoriesMetadata) Descriptor() ([]byte, []int)
Deprecated: Use AddLocalInventoriesMetadata.ProtoReflect.Descriptor instead.
func (*AddLocalInventoriesMetadata) ProtoMessage
func (*AddLocalInventoriesMetadata) ProtoMessage()
func (*AddLocalInventoriesMetadata) ProtoReflect
func (x *AddLocalInventoriesMetadata) ProtoReflect() protoreflect.Message
func (*AddLocalInventoriesMetadata) Reset
func (x *AddLocalInventoriesMetadata) Reset()
func (*AddLocalInventoriesMetadata) String
func (x *AddLocalInventoriesMetadata) String() string
AddLocalInventoriesRequest
type AddLocalInventoriesRequest struct {
// Required. Full resource name of
// [Product][google.cloud.retail.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.Product] is created. If set to false,
// a NOT_FOUND error is returned if the
// [Product][google.cloud.retail.v2beta.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.v2beta.ProductService.AddLocalInventories] method.
func (*AddLocalInventoriesRequest) Descriptor
func (*AddLocalInventoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddLocalInventoriesRequest.ProtoReflect.Descriptor instead.
func (*AddLocalInventoriesRequest) GetAddMask
func (x *AddLocalInventoriesRequest) GetAddMask() *fieldmaskpb.FieldMask
func (*AddLocalInventoriesRequest) GetAddTime
func (x *AddLocalInventoriesRequest) GetAddTime() *timestamppb.Timestamp
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 (x *AddLocalInventoriesRequest) ProtoReflect() protoreflect.Message
func (*AddLocalInventoriesRequest) Reset
func (x *AddLocalInventoriesRequest) Reset()
func (*AddLocalInventoriesRequest) String
func (x *AddLocalInventoriesRequest) String() string
AddLocalInventoriesResponse
type AddLocalInventoriesResponse struct {
// contains filtered or unexported fields
}
Response of the [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] API. Currently empty because there is no meaningful response populated from the [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] method.
func (*AddLocalInventoriesResponse) Descriptor
func (*AddLocalInventoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddLocalInventoriesResponse.ProtoReflect.Descriptor instead.
func (*AddLocalInventoriesResponse) ProtoMessage
func (*AddLocalInventoriesResponse) ProtoMessage()
func (*AddLocalInventoriesResponse) ProtoReflect
func (x *AddLocalInventoriesResponse) ProtoReflect() protoreflect.Message
func (*AddLocalInventoriesResponse) Reset
func (x *AddLocalInventoriesResponse) Reset()
func (*AddLocalInventoriesResponse) String
func (x *AddLocalInventoriesResponse) String() string
AlertConfig
type AlertConfig struct {
// Required. Immutable. The name of the AlertConfig singleton resource.
// Format: projects/*/alertConfig
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Alert policies for a customer.
// They must be unique by [AlertPolicy.alert_group]
AlertPolicies []*AlertConfig_AlertPolicy `protobuf:"bytes,2,rep,name=alert_policies,json=alertPolicies,proto3" json:"alert_policies,omitempty"`
// contains filtered or unexported fields
}
Project level alert config.
func (*AlertConfig) Descriptor
func (*AlertConfig) Descriptor() ([]byte, []int)
Deprecated: Use AlertConfig.ProtoReflect.Descriptor instead.
func (*AlertConfig) GetAlertPolicies
func (x *AlertConfig) GetAlertPolicies() []*AlertConfig_AlertPolicy
func (*AlertConfig) GetName
func (x *AlertConfig) GetName() string
func (*AlertConfig) ProtoMessage
func (*AlertConfig) ProtoMessage()
func (*AlertConfig) ProtoReflect
func (x *AlertConfig) ProtoReflect() protoreflect.Message
func (*AlertConfig) Reset
func (x *AlertConfig) Reset()
func (*AlertConfig) String
func (x *AlertConfig) String() string
AlertConfig_AlertPolicy
type AlertConfig_AlertPolicy struct {
AlertGroup string `protobuf:"bytes,1,opt,name=alert_group,json=alertGroup,proto3" json:"alert_group,omitempty"`
EnrollStatus AlertConfig_AlertPolicy_EnrollStatus "" /* 167 byte string literal not displayed */
Recipients []*AlertConfig_AlertPolicy_Recipient `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"`
}
Alert policy for a customer.
func (*AlertConfig_AlertPolicy) Descriptor
func (*AlertConfig_AlertPolicy) Descriptor() ([]byte, []int)
Deprecated: Use AlertConfig_AlertPolicy.ProtoReflect.Descriptor instead.
func (*AlertConfig_AlertPolicy) GetAlertGroup
func (x *AlertConfig_AlertPolicy) GetAlertGroup() string
func (*AlertConfig_AlertPolicy) GetEnrollStatus
func (x *AlertConfig_AlertPolicy) GetEnrollStatus() AlertConfig_AlertPolicy_EnrollStatus
func (*AlertConfig_AlertPolicy) GetRecipients
func (x *AlertConfig_AlertPolicy) GetRecipients() []*AlertConfig_AlertPolicy_Recipient
func (*AlertConfig_AlertPolicy) ProtoMessage
func (*AlertConfig_AlertPolicy) ProtoMessage()
func (*AlertConfig_AlertPolicy) ProtoReflect
func (x *AlertConfig_AlertPolicy) ProtoReflect() protoreflect.Message
func (*AlertConfig_AlertPolicy) Reset
func (x *AlertConfig_AlertPolicy) Reset()
func (*AlertConfig_AlertPolicy) String
func (x *AlertConfig_AlertPolicy) String() string
AlertConfig_AlertPolicy_EnrollStatus
type AlertConfig_AlertPolicy_EnrollStatus int32
The enrollment status enum for alert policy.
AlertConfig_AlertPolicy_ENROLL_STATUS_UNSPECIFIED, AlertConfig_AlertPolicy_ENROLLED, AlertConfig_AlertPolicy_DECLINED
const (
// Default value. Used for customers who have not responded to the
// alert policy.
AlertConfig_AlertPolicy_ENROLL_STATUS_UNSPECIFIED AlertConfig_AlertPolicy_EnrollStatus = 0
// Customer is enrolled in this policy.
AlertConfig_AlertPolicy_ENROLLED AlertConfig_AlertPolicy_EnrollStatus = 1
// Customer declined this policy.
AlertConfig_AlertPolicy_DECLINED AlertConfig_AlertPolicy_EnrollStatus = 2
)
func (AlertConfig_AlertPolicy_EnrollStatus) Descriptor
func (AlertConfig_AlertPolicy_EnrollStatus) Descriptor() protoreflect.EnumDescriptor
func (AlertConfig_AlertPolicy_EnrollStatus) Enum
func (x AlertConfig_AlertPolicy_EnrollStatus) Enum() *AlertConfig_AlertPolicy_EnrollStatus
func (AlertConfig_AlertPolicy_EnrollStatus) EnumDescriptor
func (AlertConfig_AlertPolicy_EnrollStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use AlertConfig_AlertPolicy_EnrollStatus.Descriptor instead.
func (AlertConfig_AlertPolicy_EnrollStatus) Number
func (x AlertConfig_AlertPolicy_EnrollStatus) Number() protoreflect.EnumNumber
func (AlertConfig_AlertPolicy_EnrollStatus) String
func (x AlertConfig_AlertPolicy_EnrollStatus) String() string
func (AlertConfig_AlertPolicy_EnrollStatus) Type
func (AlertConfig_AlertPolicy_EnrollStatus) Type() protoreflect.EnumType
AlertConfig_AlertPolicy_Recipient
type AlertConfig_AlertPolicy_Recipient struct {
// Email address of the recipient.
EmailAddress string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
// contains filtered or unexported fields
}
Recipient contact information.
func (*AlertConfig_AlertPolicy_Recipient) Descriptor
func (*AlertConfig_AlertPolicy_Recipient) Descriptor() ([]byte, []int)
Deprecated: Use AlertConfig_AlertPolicy_Recipient.ProtoReflect.Descriptor instead.
func (*AlertConfig_AlertPolicy_Recipient) GetEmailAddress
func (x *AlertConfig_AlertPolicy_Recipient) GetEmailAddress() string
func (*AlertConfig_AlertPolicy_Recipient) ProtoMessage
func (*AlertConfig_AlertPolicy_Recipient) ProtoMessage()
func (*AlertConfig_AlertPolicy_Recipient) ProtoReflect
func (x *AlertConfig_AlertPolicy_Recipient) ProtoReflect() protoreflect.Message
func (*AlertConfig_AlertPolicy_Recipient) Reset
func (x *AlertConfig_AlertPolicy_Recipient) Reset()
func (*AlertConfig_AlertPolicy_Recipient) String
func (x *AlertConfig_AlertPolicy_Recipient) String() string
AnalyticsServiceClient
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
func NewAnalyticsServiceClient(cc grpc.ClientConnInterface) AnalyticsServiceClient
AnalyticsServiceServer
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.
AttributeConfigLevel
type AttributeConfigLevel int32
At which level we offer configuration for attributes.
AttributeConfigLevel_ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED, AttributeConfigLevel_PRODUCT_LEVEL_ATTRIBUTE_CONFIG, AttributeConfigLevel_CATALOG_LEVEL_ATTRIBUTE_CONFIG
const (
// Value used when unset. In this case, server behavior defaults to
// [CATALOG_LEVEL_ATTRIBUTE_CONFIG][google.cloud.retail.v2beta.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.v2beta.Product.attributes].
AttributeConfigLevel_PRODUCT_LEVEL_ATTRIBUTE_CONFIG AttributeConfigLevel = 1
// At this level, we honor the attribute configurations set in
// [CatalogConfig.attribute_configs][].
AttributeConfigLevel_CATALOG_LEVEL_ATTRIBUTE_CONFIG AttributeConfigLevel = 2
)
func (AttributeConfigLevel) Descriptor
func (AttributeConfigLevel) Descriptor() protoreflect.EnumDescriptor
func (AttributeConfigLevel) Enum
func (x AttributeConfigLevel) Enum() *AttributeConfigLevel
func (AttributeConfigLevel) EnumDescriptor
func (AttributeConfigLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use AttributeConfigLevel.Descriptor instead.
func (AttributeConfigLevel) Number
func (x AttributeConfigLevel) Number() protoreflect.EnumNumber
func (AttributeConfigLevel) String
func (x AttributeConfigLevel) String() string
func (AttributeConfigLevel) Type
func (AttributeConfigLevel) Type() protoreflect.EnumType
AttributesConfig
type AttributesConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CatalogAttributes map[string]*CatalogAttribute "" /* 200 byte string literal not displayed */
AttributeConfigLevel AttributeConfigLevel "" /* 177 byte string literal not displayed */
}
Catalog level attribute config.
func (*AttributesConfig) Descriptor
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
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.v2beta.Product] for whom it's sold.
func (*Audience) Descriptor
Deprecated: Use Audience.ProtoReflect.Descriptor instead.
func (*Audience) GetAgeGroups
func (*Audience) GetGenders
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
BatchRemoveCatalogAttributesRequest
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.v2beta.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.v2beta.CatalogService.BatchRemoveCatalogAttributes] method.
func (*BatchRemoveCatalogAttributesRequest) Descriptor
func (*BatchRemoveCatalogAttributesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchRemoveCatalogAttributesRequest.ProtoReflect.Descriptor instead.
func (*BatchRemoveCatalogAttributesRequest) GetAttributeKeys
func (x *BatchRemoveCatalogAttributesRequest) GetAttributeKeys() []string
func (*BatchRemoveCatalogAttributesRequest) GetAttributesConfig
func (x *BatchRemoveCatalogAttributesRequest) GetAttributesConfig() string
func (*BatchRemoveCatalogAttributesRequest) ProtoMessage
func (*BatchRemoveCatalogAttributesRequest) ProtoMessage()
func (*BatchRemoveCatalogAttributesRequest) ProtoReflect
func (x *BatchRemoveCatalogAttributesRequest) ProtoReflect() protoreflect.Message
func (*BatchRemoveCatalogAttributesRequest) Reset
func (x *BatchRemoveCatalogAttributesRequest) Reset()
func (*BatchRemoveCatalogAttributesRequest) String
func (x *BatchRemoveCatalogAttributesRequest) String() string
BatchRemoveCatalogAttributesResponse
type BatchRemoveCatalogAttributesResponse struct {
DeletedCatalogAttributes []string "" /* 135 byte string literal not displayed */
ResetCatalogAttributes []string "" /* 129 byte string literal not displayed */
}
Response of the [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes].
func (*BatchRemoveCatalogAttributesResponse) Descriptor
func (*BatchRemoveCatalogAttributesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchRemoveCatalogAttributesResponse.ProtoReflect.Descriptor instead.
func (*BatchRemoveCatalogAttributesResponse) GetDeletedCatalogAttributes
func (x *BatchRemoveCatalogAttributesResponse) GetDeletedCatalogAttributes() []string
func (*BatchRemoveCatalogAttributesResponse) GetResetCatalogAttributes
func (x *BatchRemoveCatalogAttributesResponse) GetResetCatalogAttributes() []string
func (*BatchRemoveCatalogAttributesResponse) ProtoMessage
func (*BatchRemoveCatalogAttributesResponse) ProtoMessage()
func (*BatchRemoveCatalogAttributesResponse) ProtoReflect
func (x *BatchRemoveCatalogAttributesResponse) ProtoReflect() protoreflect.Message
func (*BatchRemoveCatalogAttributesResponse) Reset
func (x *BatchRemoveCatalogAttributesResponse) Reset()
func (*BatchRemoveCatalogAttributesResponse) String
func (x *BatchRemoveCatalogAttributesResponse) String() string
BatchUpdateGenerativeQuestionConfigsRequest
type BatchUpdateGenerativeQuestionConfigsRequest struct {
// Optional. Resource name of the parent catalog.
// Format: projects/{project}/locations/{location}/catalogs/{catalog}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The updates question configs.
Requests []*UpdateGenerativeQuestionConfigRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
// contains filtered or unexported fields
}
Request for BatchUpdateGenerativeQuestionConfig method.
func (*BatchUpdateGenerativeQuestionConfigsRequest) Descriptor
func (*BatchUpdateGenerativeQuestionConfigsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateGenerativeQuestionConfigsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateGenerativeQuestionConfigsRequest) GetParent
func (x *BatchUpdateGenerativeQuestionConfigsRequest) GetParent() string
func (*BatchUpdateGenerativeQuestionConfigsRequest) GetRequests
func (x *BatchUpdateGenerativeQuestionConfigsRequest) GetRequests() []*UpdateGenerativeQuestionConfigRequest
func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoMessage
func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoMessage()
func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoReflect
func (x *BatchUpdateGenerativeQuestionConfigsRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateGenerativeQuestionConfigsRequest) Reset
func (x *BatchUpdateGenerativeQuestionConfigsRequest) Reset()
func (*BatchUpdateGenerativeQuestionConfigsRequest) String
func (x *BatchUpdateGenerativeQuestionConfigsRequest) String() string
BatchUpdateGenerativeQuestionConfigsResponse
type BatchUpdateGenerativeQuestionConfigsResponse struct {
GenerativeQuestionConfigs []*GenerativeQuestionConfig "" /* 138 byte string literal not displayed */
}
Aggregated response for UpdateGenerativeQuestionConfig method.
func (*BatchUpdateGenerativeQuestionConfigsResponse) Descriptor
func (*BatchUpdateGenerativeQuestionConfigsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateGenerativeQuestionConfigsResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs
func (x *BatchUpdateGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs() []*GenerativeQuestionConfig
func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoMessage
func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoMessage()
func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoReflect
func (x *BatchUpdateGenerativeQuestionConfigsResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateGenerativeQuestionConfigsResponse) Reset
func (x *BatchUpdateGenerativeQuestionConfigsResponse) Reset()
func (*BatchUpdateGenerativeQuestionConfigsResponse) String
func (x *BatchUpdateGenerativeQuestionConfigsResponse) String() string
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
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
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.v2beta.Product] per line. Each product must
//
// have a valid [Product.id][google.cloud.retail.v2beta.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.v2beta.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
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
BigQuerySource_PartitionDate
type BigQuerySource_PartitionDate struct {
// BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
//
// Only supported in
// [ImportProductsRequest][google.cloud.retail.v2beta.ImportProductsRequest].
PartitionDate *date.Date `protobuf:"bytes,6,opt,name=partition_date,json=partitionDate,proto3,oneof"`
}
Catalog
type Catalog struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
ProductLevelConfig *ProductLevelConfig `protobuf:"bytes,4,opt,name=product_level_config,json=productLevelConfig,proto3" json:"product_level_config,omitempty"`
MerchantCenterLinkingConfig *MerchantCenterLinkingConfig "" /* 146 byte string literal not displayed */
}
The catalog configuration.
func (*Catalog) Descriptor
Deprecated: Use Catalog.ProtoReflect.Descriptor instead.
func (*Catalog) GetDisplayName
func (*Catalog) GetMerchantCenterLinkingConfig
func (x *Catalog) GetMerchantCenterLinkingConfig() *MerchantCenterLinkingConfig
func (*Catalog) GetName
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
CatalogAttribute
type CatalogAttribute struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
InUse bool `protobuf:"varint,9,opt,name=in_use,json=inUse,proto3" json:"in_use,omitempty"`
Type CatalogAttribute_AttributeType `protobuf:"varint,10,opt,name=type,proto3,enum=google.cloud.retail.v2beta.CatalogAttribute_AttributeType" json:"type,omitempty"`
IndexableOption CatalogAttribute_IndexableOption "" /* 172 byte string literal not displayed */
DynamicFacetableOption CatalogAttribute_DynamicFacetableOption "" /* 202 byte string literal not displayed */
SearchableOption CatalogAttribute_SearchableOption "" /* 176 byte string literal not displayed */
RecommendationsFilteringOption RecommendationsFilteringOption "" /* 217 byte string literal not displayed */
ExactSearchableOption CatalogAttribute_ExactSearchableOption "" /* 199 byte string literal not displayed */
RetrievableOption CatalogAttribute_RetrievableOption "" /* 181 byte string literal not displayed */
FacetConfig *CatalogAttribute_FacetConfig `protobuf:"bytes,13,opt,name=facet_config,json=facetConfig,proto3" json:"facet_config,omitempty"`
}
Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.
func (*CatalogAttribute) Descriptor
func (*CatalogAttribute) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute.ProtoReflect.Descriptor instead.
func (*CatalogAttribute) GetDynamicFacetableOption
func (x *CatalogAttribute) GetDynamicFacetableOption() CatalogAttribute_DynamicFacetableOption
func (*CatalogAttribute) GetExactSearchableOption
func (x *CatalogAttribute) GetExactSearchableOption() CatalogAttribute_ExactSearchableOption
func (*CatalogAttribute) GetFacetConfig
func (x *CatalogAttribute) GetFacetConfig() *CatalogAttribute_FacetConfig
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
func (x *CatalogAttribute) GetRetrievableOption() CatalogAttribute_RetrievableOption
func (*CatalogAttribute) GetSearchableOption
func (x *CatalogAttribute) GetSearchableOption() CatalogAttribute_SearchableOption
func (*CatalogAttribute) GetType
func (x *CatalogAttribute) GetType() CatalogAttribute_AttributeType
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
CatalogAttribute_AttributeType
type CatalogAttribute_AttributeType int32
The type of an attribute.
CatalogAttribute_UNKNOWN, CatalogAttribute_TEXTUAL, CatalogAttribute_NUMERICAL
const (
// The type of the attribute is unknown.
//
// Used when type cannot be derived from attribute that is not
// [in_use][google.cloud.retail.v2beta.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) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_AttributeType) Enum
func (x CatalogAttribute_AttributeType) Enum() *CatalogAttribute_AttributeType
func (CatalogAttribute_AttributeType) EnumDescriptor
func (CatalogAttribute_AttributeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_AttributeType.Descriptor instead.
func (CatalogAttribute_AttributeType) Number
func (x CatalogAttribute_AttributeType) Number() protoreflect.EnumNumber
func (CatalogAttribute_AttributeType) String
func (x CatalogAttribute_AttributeType) String() string
func (CatalogAttribute_AttributeType) Type
func (CatalogAttribute_AttributeType) Type() protoreflect.EnumType
CatalogAttribute_DynamicFacetableOption
type CatalogAttribute_DynamicFacetableOption int32
The status of the dynamic facetable option of a catalog attribute.
CatalogAttribute_DYNAMIC_FACETABLE_OPTION_UNSPECIFIED, CatalogAttribute_DYNAMIC_FACETABLE_ENABLED, CatalogAttribute_DYNAMIC_FACETABLE_DISABLED
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) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_DynamicFacetableOption) Enum
func (CatalogAttribute_DynamicFacetableOption) EnumDescriptor
func (CatalogAttribute_DynamicFacetableOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_DynamicFacetableOption.Descriptor instead.
func (CatalogAttribute_DynamicFacetableOption) Number
func (x CatalogAttribute_DynamicFacetableOption) Number() protoreflect.EnumNumber
func (CatalogAttribute_DynamicFacetableOption) String
func (x CatalogAttribute_DynamicFacetableOption) String() string
func (CatalogAttribute_DynamicFacetableOption) Type
func (CatalogAttribute_DynamicFacetableOption) Type() protoreflect.EnumType
CatalogAttribute_ExactSearchableOption
type CatalogAttribute_ExactSearchableOption int32
The status of the exact-searchable option of a catalog attribute.
CatalogAttribute_EXACT_SEARCHABLE_OPTION_UNSPECIFIED, CatalogAttribute_EXACT_SEARCHABLE_ENABLED, CatalogAttribute_EXACT_SEARCHABLE_DISABLED
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
func (CatalogAttribute_ExactSearchableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_ExactSearchableOption) Enum
func (CatalogAttribute_ExactSearchableOption) EnumDescriptor
func (CatalogAttribute_ExactSearchableOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_ExactSearchableOption.Descriptor instead.
func (CatalogAttribute_ExactSearchableOption) Number
func (x CatalogAttribute_ExactSearchableOption) Number() protoreflect.EnumNumber
func (CatalogAttribute_ExactSearchableOption) String
func (x CatalogAttribute_ExactSearchableOption) String() string
func (CatalogAttribute_ExactSearchableOption) Type
func (CatalogAttribute_ExactSearchableOption) Type() protoreflect.EnumType
CatalogAttribute_FacetConfig
type CatalogAttribute_FacetConfig struct {
// If you don't set the facet
// [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
// in the request to a numerical attribute, then we use the computed
// intervals with rounded bounds obtained from all its product numerical
// attribute values. The computed intervals might not be ideal for some
// attributes. Therefore, we give you the option to overwrite them with the
// facet_intervals field. The maximum of facet intervals per
// [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
// Each interval must have a lower bound or an upper bound. If both bounds
// are provided, then the lower bound must be smaller or equal than the
// upper bound.
FacetIntervals []*Interval `protobuf:"bytes,1,rep,name=facet_intervals,json=facetIntervals,proto3" json:"facet_intervals,omitempty"`
// Each instance represents a list of attribute values to ignore as facet
// values for a specific time range. The maximum number of instances per
// [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
IgnoredFacetValues []*CatalogAttribute_FacetConfig_IgnoredFacetValues `protobuf:"bytes,2,rep,name=ignored_facet_values,json=ignoredFacetValues,proto3" json:"ignored_facet_values,omitempty"`
// Each instance replaces a list of facet values by a merged facet
// value. If a facet value is not in any list, then it will stay the same.
// To avoid conflicts, only paths of length 1 are accepted. In other words,
// if "dark_blue" merged into "BLUE", then the latter can't merge into
// "blues" because this would create a path of length 2. The maximum number
// of instances of MergedFacetValue per
// [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
// This feature is available only for textual custom attributes.
MergedFacetValues []*CatalogAttribute_FacetConfig_MergedFacetValue `protobuf:"bytes,3,rep,name=merged_facet_values,json=mergedFacetValues,proto3" json:"merged_facet_values,omitempty"`
// Use this field only if you want to merge a facet key into another facet
// key.
MergedFacet *CatalogAttribute_FacetConfig_MergedFacet `protobuf:"bytes,4,opt,name=merged_facet,json=mergedFacet,proto3" json:"merged_facet,omitempty"`
// Set this field only if you want to rerank based on facet values engaged
// by the user for the current key. This option is only possible for custom
// facetable textual keys.
RerankConfig *CatalogAttribute_FacetConfig_RerankConfig `protobuf:"bytes,5,opt,name=rerank_config,json=rerankConfig,proto3" json:"rerank_config,omitempty"`
// contains filtered or unexported fields
}
Possible options for the facet that corresponds to the current attribute config.
func (*CatalogAttribute_FacetConfig) Descriptor
func (*CatalogAttribute_FacetConfig) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig) GetFacetIntervals
func (x *CatalogAttribute_FacetConfig) GetFacetIntervals() []*Interval
func (*CatalogAttribute_FacetConfig) GetIgnoredFacetValues
func (x *CatalogAttribute_FacetConfig) GetIgnoredFacetValues() []*CatalogAttribute_FacetConfig_IgnoredFacetValues
func (*CatalogAttribute_FacetConfig) GetMergedFacet
func (x *CatalogAttribute_FacetConfig) GetMergedFacet() *CatalogAttribute_FacetConfig_MergedFacet
func (*CatalogAttribute_FacetConfig) GetMergedFacetValues
func (x *CatalogAttribute_FacetConfig) GetMergedFacetValues() []*CatalogAttribute_FacetConfig_MergedFacetValue
func (*CatalogAttribute_FacetConfig) GetRerankConfig
func (x *CatalogAttribute_FacetConfig) GetRerankConfig() *CatalogAttribute_FacetConfig_RerankConfig
func (*CatalogAttribute_FacetConfig) ProtoMessage
func (*CatalogAttribute_FacetConfig) ProtoMessage()
func (*CatalogAttribute_FacetConfig) ProtoReflect
func (x *CatalogAttribute_FacetConfig) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig) Reset
func (x *CatalogAttribute_FacetConfig) Reset()
func (*CatalogAttribute_FacetConfig) String
func (x *CatalogAttribute_FacetConfig) String() string
CatalogAttribute_FacetConfig_IgnoredFacetValues
type CatalogAttribute_FacetConfig_IgnoredFacetValues struct {
// List of facet values to ignore for the following time range. The facet
// values are the same as the attribute values. There is a limit of 10
// values per instance of IgnoredFacetValues. Each value can have at most
// 128 characters.
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// Time range for the current list of facet values to ignore.
// If multiple time ranges are specified for an facet value for the
// current attribute, consider all of them. If both are empty, ignore
// always. If start time and end time are set, then start time
// must be before end time.
// If start time is not empty and end time is empty, then will ignore
// these facet values after the start time.
StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// If start time is empty and end time is not empty, then ignore these
// facet values before end time.
EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}
[Facet values][google.cloud.retail.v2beta.SearchResponse.Facet.values] to ignore on [facets][google.cloud.retail.v2beta.SearchResponse.Facet] during the specified time range for the given [SearchResponse.Facet.key][google.cloud.retail.v2beta.SearchResponse.Facet.key] attribute.
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) Descriptor
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_IgnoredFacetValues.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) GetEndTime
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetEndTime() *timestamppb.Timestamp
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) GetStartTime
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetStartTime() *timestamppb.Timestamp
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) GetValues
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetValues() []string
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoMessage
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoMessage()
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoReflect
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) Reset
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) Reset()
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) String
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) String() string
CatalogAttribute_FacetConfig_MergedFacet
type CatalogAttribute_FacetConfig_MergedFacet struct {
// The merged facet key should be a valid facet key that is different than
// the facet key of the current catalog attribute. We refer this is
// merged facet key as the child of the current catalog attribute. This
// merged facet key can't be a parent of another facet key (i.e. no
// directed path of length 2). This merged facet key needs to be either a
// textual custom attribute or a numerical custom attribute.
MergedFacetKey string `protobuf:"bytes,1,opt,name=merged_facet_key,json=mergedFacetKey,proto3" json:"merged_facet_key,omitempty"`
// contains filtered or unexported fields
}
The current facet key (i.e. attribute config) maps into the [merged_facet_key][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key]. A facet key can have at most one child. The current facet key and the merged facet key need both to be textual custom attributes or both numerical custom attributes (same type).
func (*CatalogAttribute_FacetConfig_MergedFacet) Descriptor
func (*CatalogAttribute_FacetConfig_MergedFacet) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_MergedFacet.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_MergedFacet) GetMergedFacetKey
func (x *CatalogAttribute_FacetConfig_MergedFacet) GetMergedFacetKey() string
func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoMessage
func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoMessage()
func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoReflect
func (x *CatalogAttribute_FacetConfig_MergedFacet) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_MergedFacet) Reset
func (x *CatalogAttribute_FacetConfig_MergedFacet) Reset()
func (*CatalogAttribute_FacetConfig_MergedFacet) String
func (x *CatalogAttribute_FacetConfig_MergedFacet) String() string
CatalogAttribute_FacetConfig_MergedFacetValue
type CatalogAttribute_FacetConfig_MergedFacetValue struct {
// All the facet values that are replaces by the same
// [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
// that follows. The maximum number of values per MergedFacetValue is 25.
// Each value can have up to 128 characters.
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// All the previous values are replaced by this merged facet value.
// This merged_value must be non-empty and can have up to 128 characters.
MergedValue string `protobuf:"bytes,2,opt,name=merged_value,json=mergedValue,proto3" json:"merged_value,omitempty"`
// contains filtered or unexported fields
}
Replaces a set of textual facet values by the same (possibly different) merged facet value. Each facet value should appear at most once as a value per [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]. This feature is available only for textual custom attributes.
func (*CatalogAttribute_FacetConfig_MergedFacetValue) Descriptor
func (*CatalogAttribute_FacetConfig_MergedFacetValue) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_MergedFacetValue.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_MergedFacetValue) GetMergedValue
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) GetMergedValue() string
func (*CatalogAttribute_FacetConfig_MergedFacetValue) GetValues
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) GetValues() []string
func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoMessage
func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoMessage()
func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoReflect
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_MergedFacetValue) Reset
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) Reset()
func (*CatalogAttribute_FacetConfig_MergedFacetValue) String
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) String() string
CatalogAttribute_FacetConfig_RerankConfig
type CatalogAttribute_FacetConfig_RerankConfig struct {
// If set to true, then we also rerank the dynamic facets based on the
// facet values engaged by the user for the current attribute key during
// serving.
RerankFacet bool `protobuf:"varint,1,opt,name=rerank_facet,json=rerankFacet,proto3" json:"rerank_facet,omitempty"`
// If empty, rerank on all facet values for the current key. Otherwise,
// will rerank on the facet values from this list only.
FacetValues []string `protobuf:"bytes,2,rep,name=facet_values,json=facetValues,proto3" json:"facet_values,omitempty"`
// contains filtered or unexported fields
}
Options to rerank based on facet values engaged by the user for the current key. That key needs to be a custom textual key and facetable. To use this control, you also need to pass all the facet keys engaged by the user in the request using the field [SearchRequest.FacetSpec]. In particular, if you don't pass the facet keys engaged that you want to rerank on, this control won't be effective. Moreover, to obtain better results, the facet values that you want to rerank on should be close to English (ideally made of words, underscores, and spaces).
func (*CatalogAttribute_FacetConfig_RerankConfig) Descriptor
func (*CatalogAttribute_FacetConfig_RerankConfig) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_RerankConfig.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_RerankConfig) GetFacetValues
func (x *CatalogAttribute_FacetConfig_RerankConfig) GetFacetValues() []string
func (*CatalogAttribute_FacetConfig_RerankConfig) GetRerankFacet
func (x *CatalogAttribute_FacetConfig_RerankConfig) GetRerankFacet() bool
func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoMessage
func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoMessage()
func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoReflect
func (x *CatalogAttribute_FacetConfig_RerankConfig) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_RerankConfig) Reset
func (x *CatalogAttribute_FacetConfig_RerankConfig) Reset()
func (*CatalogAttribute_FacetConfig_RerankConfig) String
func (x *CatalogAttribute_FacetConfig_RerankConfig) String() string
CatalogAttribute_IndexableOption
type CatalogAttribute_IndexableOption int32
The status of the indexable option of a catalog attribute.
CatalogAttribute_INDEXABLE_OPTION_UNSPECIFIED, CatalogAttribute_INDEXABLE_ENABLED, CatalogAttribute_INDEXABLE_DISABLED
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) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_IndexableOption) Enum
func (x CatalogAttribute_IndexableOption) Enum() *CatalogAttribute_IndexableOption
func (CatalogAttribute_IndexableOption) EnumDescriptor
func (CatalogAttribute_IndexableOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_IndexableOption.Descriptor instead.
func (CatalogAttribute_IndexableOption) Number
func (x CatalogAttribute_IndexableOption) Number() protoreflect.EnumNumber
func (CatalogAttribute_IndexableOption) String
func (x CatalogAttribute_IndexableOption) String() string
func (CatalogAttribute_IndexableOption) Type
func (CatalogAttribute_IndexableOption) Type() protoreflect.EnumType
CatalogAttribute_RetrievableOption
type CatalogAttribute_RetrievableOption int32
The status of the retrievable option of a catalog attribute.
CatalogAttribute_RETRIEVABLE_OPTION_UNSPECIFIED, CatalogAttribute_RETRIEVABLE_ENABLED, CatalogAttribute_RETRIEVABLE_DISABLED
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
func (CatalogAttribute_RetrievableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_RetrievableOption) Enum
func (x CatalogAttribute_RetrievableOption) Enum() *CatalogAttribute_RetrievableOption
func (CatalogAttribute_RetrievableOption) EnumDescriptor
func (CatalogAttribute_RetrievableOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_RetrievableOption.Descriptor instead.
func (CatalogAttribute_RetrievableOption) Number
func (x CatalogAttribute_RetrievableOption) Number() protoreflect.EnumNumber
func (CatalogAttribute_RetrievableOption) String
func (x CatalogAttribute_RetrievableOption) String() string
func (CatalogAttribute_RetrievableOption) Type
func (CatalogAttribute_RetrievableOption) Type() protoreflect.EnumType
CatalogAttribute_SearchableOption
type CatalogAttribute_SearchableOption int32
The status of the searchable option of a catalog attribute.
CatalogAttribute_SEARCHABLE_OPTION_UNSPECIFIED, CatalogAttribute_SEARCHABLE_ENABLED, CatalogAttribute_SEARCHABLE_DISABLED
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) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_SearchableOption) Enum
func (x CatalogAttribute_SearchableOption) Enum() *CatalogAttribute_SearchableOption
func (CatalogAttribute_SearchableOption) EnumDescriptor
func (CatalogAttribute_SearchableOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_SearchableOption.Descriptor instead.
func (CatalogAttribute_SearchableOption) Number
func (x CatalogAttribute_SearchableOption) Number() protoreflect.EnumNumber
func (CatalogAttribute_SearchableOption) String
func (x CatalogAttribute_SearchableOption) String() string
func (CatalogAttribute_SearchableOption) Type
func (CatalogAttribute_SearchableOption) Type() protoreflect.EnumType
CatalogServiceClient
type CatalogServiceClient interface {
// Lists all the [Catalog][google.cloud.retail.v2beta.Catalog]s associated
// with the project.
ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error)
// Updates the [Catalog][google.cloud.retail.v2beta.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.v2beta.SearchService.Search],
// [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct],
// [ProductService.ListProducts][google.cloud.retail.v2beta.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.v2beta.SearchRequest.branch] to
// `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
// to setting
// [SearchRequest.branch][google.cloud.retail.v2beta.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.v2beta.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.v2beta.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.v2beta.CompletionConfig].
GetCompletionConfig(ctx context.Context, in *GetCompletionConfigRequest, opts ...grpc.CallOption) (*CompletionConfig, error)
// Updates the
// [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig]s.
UpdateCompletionConfig(ctx context.Context, in *UpdateCompletionConfigRequest, opts ...grpc.CallOption) (*CompletionConfig, error)
// Gets an [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
GetAttributesConfig(ctx context.Context, in *GetAttributesConfigRequest, opts ...grpc.CallOption) (*AttributesConfig, error)
// Updates the
// [AttributesConfig][google.cloud.retail.v2beta.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.v2beta.CatalogAttribute] to the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
//
// If the [CatalogAttribute][google.cloud.retail.v2beta.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.v2beta.CatalogAttribute] from the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
//
// If the [CatalogAttribute][google.cloud.retail.v2beta.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.v2beta.CatalogAttribute]s from the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
BatchRemoveCatalogAttributes(ctx context.Context, in *BatchRemoveCatalogAttributesRequest, opts ...grpc.CallOption) (*BatchRemoveCatalogAttributesResponse, error)
// Replaces the specified
// [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] in the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] by updating
// the catalog attribute with the same
// [CatalogAttribute.key][google.cloud.retail.v2beta.CatalogAttribute.key].
//
// If the [CatalogAttribute][google.cloud.retail.v2beta.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.
func NewCatalogServiceClient
func NewCatalogServiceClient(cc grpc.ClientConnInterface) CatalogServiceClient
CatalogServiceServer
type CatalogServiceServer interface {
// Lists all the [Catalog][google.cloud.retail.v2beta.Catalog]s associated
// with the project.
ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
// Updates the [Catalog][google.cloud.retail.v2beta.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.v2beta.SearchService.Search],
// [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct],
// [ProductService.ListProducts][google.cloud.retail.v2beta.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.v2beta.SearchRequest.branch] to
// `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
// to setting
// [SearchRequest.branch][google.cloud.retail.v2beta.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.v2beta.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.v2beta.CatalogService.SetDefaultBranch]
// method under a specified parent catalog.
GetDefaultBranch(context.Context, *GetDefaultBranchRequest) (*GetDefaultBranchResponse, error)
// Gets a [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig].
GetCompletionConfig(context.Context, *GetCompletionConfigRequest) (*CompletionConfig, error)
// Updates the
// [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig]s.
UpdateCompletionConfig(context.Context, *UpdateCompletionConfigRequest) (*CompletionConfig, error)
// Gets an [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
GetAttributesConfig(context.Context, *GetAttributesConfigRequest) (*AttributesConfig, error)
// Updates the
// [AttributesConfig][google.cloud.retail.v2beta.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.v2beta.CatalogAttribute] to the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
//
// If the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to
// add already exists, an ALREADY_EXISTS error is returned.
AddCatalogAttribute(context.Context, *AddCatalogAttributeRequest) (*AttributesConfig, error)
// Removes the specified
// [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] from the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
//
// If the [CatalogAttribute][google.cloud.retail.v2beta.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.v2beta.CatalogAttribute]s from the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
BatchRemoveCatalogAttributes(context.Context, *BatchRemoveCatalogAttributesRequest) (*BatchRemoveCatalogAttributesResponse, error)
// Replaces the specified
// [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] in the
// [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] by updating
// the catalog attribute with the same
// [CatalogAttribute.key][google.cloud.retail.v2beta.CatalogAttribute.key].
//
// If the [CatalogAttribute][google.cloud.retail.v2beta.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.
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
func (*CollectUserEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CollectUserEventRequest.ProtoReflect.Descriptor instead.
func (*CollectUserEventRequest) GetConversionRule
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
func (x *CollectUserEventRequest) GetPrebuiltRule() string
func (*CollectUserEventRequest) GetRawJson
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
CollectUserEventRequest_PrebuiltRule
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"`
}
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.v2beta.Product].
func (*ColorInfo) Descriptor
Deprecated: Use ColorInfo.ProtoReflect.Descriptor instead.
func (*ColorInfo) GetColorFamilies
func (*ColorInfo) GetColors
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
CompleteQueryRequest
type CompleteQueryRequest struct {
Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
VisitorId string `protobuf:"bytes,7,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"`
LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
Dataset string `protobuf:"bytes,6,opt,name=dataset,proto3" json:"dataset,omitempty"`
MaxSuggestions int32 `protobuf:"varint,5,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"`
EnableAttributeSuggestions bool "" /* 142 byte string literal not displayed */
Entity string `protobuf:"bytes,10,opt,name=entity,proto3" json:"entity,omitempty"`
}
Autocomplete parameters.
func (*CompleteQueryRequest) Descriptor
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
func (x *CompleteQueryRequest) GetEnableAttributeSuggestions() bool
func (*CompleteQueryRequest) GetEntity
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
CompleteQueryResponse
type CompleteQueryResponse struct {
CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"`
AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"`
RecentSearchResults []*CompleteQueryResponse_RecentSearchResult `protobuf:"bytes,3,rep,name=recent_search_results,json=recentSearchResults,proto3" json:"recent_search_results,omitempty"`
AttributeResults map[string]*CompleteQueryResponse_AttributeResult "" /* 197 byte string literal not displayed */
}
Response of the autocomplete query.
func (*CompleteQueryResponse) Descriptor
func (*CompleteQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse) GetAttributeResults
func (x *CompleteQueryResponse) GetAttributeResults() map[string]*CompleteQueryResponse_AttributeResult
func (*CompleteQueryResponse) GetAttributionToken
func (x *CompleteQueryResponse) GetAttributionToken() string
func (*CompleteQueryResponse) GetCompletionResults
func (x *CompleteQueryResponse) GetCompletionResults() []*CompleteQueryResponse_CompletionResult
func (*CompleteQueryResponse) GetRecentSearchResults
func (x *CompleteQueryResponse) GetRecentSearchResults() []*CompleteQueryResponse_RecentSearchResult
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/completion_service.proto.
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
CompleteQueryResponse_AttributeResult
type CompleteQueryResponse_AttributeResult struct {
Suggestions []string `protobuf:"bytes,1,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
// contains filtered or unexported fields
}
Resource that represents attribute results. The list of suggestions for the attribute.
func (*CompleteQueryResponse_AttributeResult) Descriptor
func (*CompleteQueryResponse_AttributeResult) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse_AttributeResult.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse_AttributeResult) GetSuggestions
func (x *CompleteQueryResponse_AttributeResult) GetSuggestions() []string
func (*CompleteQueryResponse_AttributeResult) ProtoMessage
func (*CompleteQueryResponse_AttributeResult) ProtoMessage()
func (*CompleteQueryResponse_AttributeResult) ProtoReflect
func (x *CompleteQueryResponse_AttributeResult) ProtoReflect() protoreflect.Message
func (*CompleteQueryResponse_AttributeResult) Reset
func (x *CompleteQueryResponse_AttributeResult) Reset()
func (*CompleteQueryResponse_AttributeResult) String
func (x *CompleteQueryResponse_AttributeResult) String() string
CompleteQueryResponse_CompletionResult
type CompleteQueryResponse_CompletionResult struct {
Suggestion string `protobuf:"bytes,1,opt,name=suggestion,proto3" json:"suggestion,omitempty"`
Attributes map[string]*CustomAttribute "" /* 161 byte string literal not displayed */
}
Resource that represents completion results.
func (*CompleteQueryResponse_CompletionResult) Descriptor
func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse_CompletionResult.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse_CompletionResult) GetAttributes
func (x *CompleteQueryResponse_CompletionResult) GetAttributes() map[string]*CustomAttribute
func (*CompleteQueryResponse_CompletionResult) GetSuggestion
func (x *CompleteQueryResponse_CompletionResult) GetSuggestion() string
func (*CompleteQueryResponse_CompletionResult) ProtoMessage
func (*CompleteQueryResponse_CompletionResult) ProtoMessage()
func (*CompleteQueryResponse_CompletionResult) ProtoReflect
func (x *CompleteQueryResponse_CompletionResult) ProtoReflect() protoreflect.Message
func (*CompleteQueryResponse_CompletionResult) Reset
func (x *CompleteQueryResponse_CompletionResult) Reset()
func (*CompleteQueryResponse_CompletionResult) String
func (x *CompleteQueryResponse_CompletionResult) String() string
CompleteQueryResponse_RecentSearchResult (deprecated)
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
}
Deprecated: Recent search of this user.
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/completion_service.proto.
func (*CompleteQueryResponse_RecentSearchResult) Descriptor (deprecated)
func (*CompleteQueryResponse_RecentSearchResult) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse_RecentSearchResult.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse_RecentSearchResult) GetRecentSearch (deprecated)
func (x *CompleteQueryResponse_RecentSearchResult) GetRecentSearch() string
func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage (deprecated)
func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage()
func (*CompleteQueryResponse_RecentSearchResult) ProtoReflect (deprecated)
func (x *CompleteQueryResponse_RecentSearchResult) ProtoReflect() protoreflect.Message
func (*CompleteQueryResponse_RecentSearchResult) Reset (deprecated)
func (x *CompleteQueryResponse_RecentSearchResult) Reset()
func (*CompleteQueryResponse_RecentSearchResult) String (deprecated)
func (x *CompleteQueryResponse_RecentSearchResult) String() string
CompletionConfig
type CompletionConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
MatchingOrder string `protobuf:"bytes,2,opt,name=matching_order,json=matchingOrder,proto3" json:"matching_order,omitempty"`
MaxSuggestions int32 `protobuf:"varint,3,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"`
MinPrefixLength int32 `protobuf:"varint,4,opt,name=min_prefix_length,json=minPrefixLength,proto3" json:"min_prefix_length,omitempty"`
AutoLearning bool `protobuf:"varint,11,opt,name=auto_learning,json=autoLearning,proto3" json:"auto_learning,omitempty"`
SuggestionsInputConfig *CompletionDataInputConfig "" /* 129 byte string literal not displayed */
LastSuggestionsImportOperation string "" /* 155 byte string literal not displayed */
DenylistInputConfig *CompletionDataInputConfig `protobuf:"bytes,7,opt,name=denylist_input_config,json=denylistInputConfig,proto3" json:"denylist_input_config,omitempty"`
LastDenylistImportOperation string "" /* 146 byte string literal not displayed */
AllowlistInputConfig *CompletionDataInputConfig `protobuf:"bytes,9,opt,name=allowlist_input_config,json=allowlistInputConfig,proto3" json:"allowlist_input_config,omitempty"`
LastAllowlistImportOperation string "" /* 150 byte string literal not displayed */
}
Catalog level autocomplete config for customers to customize autocomplete feature's settings.
func (*CompletionConfig) Descriptor
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
CompletionDataInputConfig
type CompletionDataInputConfig struct {
// The source of the input.
//
// Supported
// [BigQuerySource.data_schema][google.cloud.retail.v2beta.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
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 (x *CompletionDataInputConfig) ProtoReflect() protoreflect.Message
func (*CompletionDataInputConfig) Reset
func (x *CompletionDataInputConfig) Reset()
func (*CompletionDataInputConfig) String
func (x *CompletionDataInputConfig) String() string
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"`
}
CompletionDetail
type CompletionDetail struct {
CompletionAttributionToken string "" /* 141 byte string literal not displayed */
SelectedSuggestion string `protobuf:"bytes,2,opt,name=selected_suggestion,json=selectedSuggestion,proto3" json:"selected_suggestion,omitempty"`
SelectedPosition int32 `protobuf:"varint,3,opt,name=selected_position,json=selectedPosition,proto3" json:"selected_position,omitempty"`
}
Detailed completion information including completion attribution token and clicked completion info.
func (*CompletionDetail) Descriptor
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
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.
func NewCompletionServiceClient
func NewCompletionServiceClient(cc grpc.ClientConnInterface) CompletionServiceClient
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.
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"`
// Used to support browse uses cases.
// A list (up to 10 entries) of categories or departments.
// The format should be the same as
// [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
PageCategories []string `protobuf:"bytes,4,rep,name=page_categories,json=pageCategories,proto3" json:"page_categories,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: Use Condition.ProtoReflect.Descriptor instead.
func (*Condition) GetActiveTimeRange
func (x *Condition) GetActiveTimeRange() []*Condition_TimeRange
func (*Condition) GetPageCategories
func (*Condition) GetQueryTerms
func (x *Condition) GetQueryTerms() []*Condition_QueryTerm
func (*Condition) ProtoMessage
func (*Condition)