Documentation ¶
Index ¶
- Variables
- func RegisterAnalyticsServiceServer(s *grpc.Server, srv AnalyticsServiceServer)
- func RegisterCatalogServiceServer(s *grpc.Server, srv CatalogServiceServer)
- func RegisterCompletionServiceServer(s *grpc.Server, srv CompletionServiceServer)
- func RegisterControlServiceServer(s *grpc.Server, srv ControlServiceServer)
- func RegisterGenerativeQuestionServiceServer(s *grpc.Server, srv GenerativeQuestionServiceServer)
- func RegisterModelServiceServer(s *grpc.Server, srv ModelServiceServer)
- func RegisterPredictionServiceServer(s *grpc.Server, srv PredictionServiceServer)
- func RegisterProductServiceServer(s *grpc.Server, srv ProductServiceServer)
- func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
- func RegisterSearchServiceServer(s *grpc.Server, srv SearchServiceServer)
- func RegisterServingConfigServiceServer(s *grpc.Server, srv ServingConfigServiceServer)
- func RegisterUserEventServiceServer(s *grpc.Server, srv UserEventServiceServer)
- type AddCatalogAttributeRequest
- func (*AddCatalogAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCatalogAttributeRequest) GetAttributesConfig() string
- func (x *AddCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute
- func (*AddCatalogAttributeRequest) ProtoMessage()
- func (x *AddCatalogAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *AddCatalogAttributeRequest) Reset()
- func (x *AddCatalogAttributeRequest) String() string
- type AddControlRequest
- func (*AddControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddControlRequest) GetControlId() string
- func (x *AddControlRequest) GetServingConfig() string
- func (*AddControlRequest) ProtoMessage()
- func (x *AddControlRequest) ProtoReflect() protoreflect.Message
- func (x *AddControlRequest) Reset()
- func (x *AddControlRequest) String() string
- type AddFulfillmentPlacesMetadata
- func (*AddFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)deprecated
- func (*AddFulfillmentPlacesMetadata) ProtoMessage()
- func (x *AddFulfillmentPlacesMetadata) ProtoReflect() protoreflect.Message
- func (x *AddFulfillmentPlacesMetadata) Reset()
- func (x *AddFulfillmentPlacesMetadata) String() string
- type AddFulfillmentPlacesRequest
- func (*AddFulfillmentPlacesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddFulfillmentPlacesRequest) GetAddTime() *timestamppb.Timestamp
- func (x *AddFulfillmentPlacesRequest) GetAllowMissing() bool
- func (x *AddFulfillmentPlacesRequest) GetPlaceIds() []string
- func (x *AddFulfillmentPlacesRequest) GetProduct() string
- func (x *AddFulfillmentPlacesRequest) GetType() string
- func (*AddFulfillmentPlacesRequest) ProtoMessage()
- func (x *AddFulfillmentPlacesRequest) ProtoReflect() protoreflect.Message
- func (x *AddFulfillmentPlacesRequest) Reset()
- func (x *AddFulfillmentPlacesRequest) String() string
- type AddFulfillmentPlacesResponse
- func (*AddFulfillmentPlacesResponse) Descriptor() ([]byte, []int)deprecated
- func (*AddFulfillmentPlacesResponse) ProtoMessage()
- func (x *AddFulfillmentPlacesResponse) ProtoReflect() protoreflect.Message
- func (x *AddFulfillmentPlacesResponse) Reset()
- func (x *AddFulfillmentPlacesResponse) String() string
- type AddLocalInventoriesMetadata
- type AddLocalInventoriesRequest
- func (*AddLocalInventoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddLocalInventoriesRequest) GetAddMask() *fieldmaskpb.FieldMask
- func (x *AddLocalInventoriesRequest) GetAddTime() *timestamppb.Timestamp
- func (x *AddLocalInventoriesRequest) GetAllowMissing() bool
- func (x *AddLocalInventoriesRequest) GetLocalInventories() []*LocalInventory
- func (x *AddLocalInventoriesRequest) GetProduct() string
- func (*AddLocalInventoriesRequest) ProtoMessage()
- func (x *AddLocalInventoriesRequest) ProtoReflect() protoreflect.Message
- func (x *AddLocalInventoriesRequest) Reset()
- func (x *AddLocalInventoriesRequest) String() string
- type AddLocalInventoriesResponse
- type AlertConfig
- func (*AlertConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AlertConfig) GetAlertPolicies() []*AlertConfig_AlertPolicy
- func (x *AlertConfig) GetName() string
- func (*AlertConfig) ProtoMessage()
- func (x *AlertConfig) ProtoReflect() protoreflect.Message
- func (x *AlertConfig) Reset()
- func (x *AlertConfig) String() string
- type AlertConfig_AlertPolicy
- func (*AlertConfig_AlertPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *AlertConfig_AlertPolicy) GetAlertGroup() string
- func (x *AlertConfig_AlertPolicy) GetEnrollStatus() AlertConfig_AlertPolicy_EnrollStatus
- func (x *AlertConfig_AlertPolicy) GetRecipients() []*AlertConfig_AlertPolicy_Recipient
- func (*AlertConfig_AlertPolicy) ProtoMessage()
- func (x *AlertConfig_AlertPolicy) ProtoReflect() protoreflect.Message
- func (x *AlertConfig_AlertPolicy) Reset()
- func (x *AlertConfig_AlertPolicy) String() string
- type AlertConfig_AlertPolicy_EnrollStatus
- func (AlertConfig_AlertPolicy_EnrollStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AlertConfig_AlertPolicy_EnrollStatus) Enum() *AlertConfig_AlertPolicy_EnrollStatus
- func (AlertConfig_AlertPolicy_EnrollStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AlertConfig_AlertPolicy_EnrollStatus) Number() protoreflect.EnumNumber
- func (x AlertConfig_AlertPolicy_EnrollStatus) String() string
- func (AlertConfig_AlertPolicy_EnrollStatus) Type() protoreflect.EnumType
- type AlertConfig_AlertPolicy_Recipient
- func (*AlertConfig_AlertPolicy_Recipient) Descriptor() ([]byte, []int)deprecated
- func (x *AlertConfig_AlertPolicy_Recipient) GetEmailAddress() string
- func (*AlertConfig_AlertPolicy_Recipient) ProtoMessage()
- func (x *AlertConfig_AlertPolicy_Recipient) ProtoReflect() protoreflect.Message
- func (x *AlertConfig_AlertPolicy_Recipient) Reset()
- func (x *AlertConfig_AlertPolicy_Recipient) String() string
- type AnalyticsServiceClient
- type AnalyticsServiceServer
- type AttributeConfigLevel
- func (AttributeConfigLevel) Descriptor() protoreflect.EnumDescriptor
- func (x AttributeConfigLevel) Enum() *AttributeConfigLevel
- func (AttributeConfigLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x AttributeConfigLevel) Number() protoreflect.EnumNumber
- func (x AttributeConfigLevel) String() string
- func (AttributeConfigLevel) Type() protoreflect.EnumType
- type AttributesConfig
- func (*AttributesConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AttributesConfig) GetAttributeConfigLevel() AttributeConfigLevel
- func (x *AttributesConfig) GetCatalogAttributes() map[string]*CatalogAttribute
- func (x *AttributesConfig) GetName() string
- func (*AttributesConfig) ProtoMessage()
- func (x *AttributesConfig) ProtoReflect() protoreflect.Message
- func (x *AttributesConfig) Reset()
- func (x *AttributesConfig) String() string
- type Audience
- type BatchRemoveCatalogAttributesRequest
- func (*BatchRemoveCatalogAttributesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchRemoveCatalogAttributesRequest) GetAttributeKeys() []string
- func (x *BatchRemoveCatalogAttributesRequest) GetAttributesConfig() string
- func (*BatchRemoveCatalogAttributesRequest) ProtoMessage()
- func (x *BatchRemoveCatalogAttributesRequest) ProtoReflect() protoreflect.Message
- func (x *BatchRemoveCatalogAttributesRequest) Reset()
- func (x *BatchRemoveCatalogAttributesRequest) String() string
- type BatchRemoveCatalogAttributesResponse
- func (*BatchRemoveCatalogAttributesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchRemoveCatalogAttributesResponse) GetDeletedCatalogAttributes() []string
- func (x *BatchRemoveCatalogAttributesResponse) GetResetCatalogAttributes() []string
- func (*BatchRemoveCatalogAttributesResponse) ProtoMessage()
- func (x *BatchRemoveCatalogAttributesResponse) ProtoReflect() protoreflect.Message
- func (x *BatchRemoveCatalogAttributesResponse) Reset()
- func (x *BatchRemoveCatalogAttributesResponse) String() string
- type BatchUpdateGenerativeQuestionConfigsRequest
- func (*BatchUpdateGenerativeQuestionConfigsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateGenerativeQuestionConfigsRequest) GetParent() string
- func (x *BatchUpdateGenerativeQuestionConfigsRequest) GetRequests() []*UpdateGenerativeQuestionConfigRequest
- func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoMessage()
- func (x *BatchUpdateGenerativeQuestionConfigsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateGenerativeQuestionConfigsRequest) Reset()
- func (x *BatchUpdateGenerativeQuestionConfigsRequest) String() string
- type BatchUpdateGenerativeQuestionConfigsResponse
- func (*BatchUpdateGenerativeQuestionConfigsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs() []*GenerativeQuestionConfig
- func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoMessage()
- func (x *BatchUpdateGenerativeQuestionConfigsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateGenerativeQuestionConfigsResponse) Reset()
- func (x *BatchUpdateGenerativeQuestionConfigsResponse) String() string
- type BigQueryOutputResult
- func (*BigQueryOutputResult) Descriptor() ([]byte, []int)deprecated
- func (x *BigQueryOutputResult) GetDatasetId() string
- func (x *BigQueryOutputResult) GetTableId() string
- func (*BigQueryOutputResult) ProtoMessage()
- func (x *BigQueryOutputResult) ProtoReflect() protoreflect.Message
- func (x *BigQueryOutputResult) Reset()
- func (x *BigQueryOutputResult) String() string
- type BigQuerySource
- func (*BigQuerySource) Descriptor() ([]byte, []int)deprecated
- func (x *BigQuerySource) GetDataSchema() string
- func (x *BigQuerySource) GetDatasetId() string
- func (x *BigQuerySource) GetGcsStagingDir() string
- func (m *BigQuerySource) GetPartition() isBigQuerySource_Partition
- func (x *BigQuerySource) GetPartitionDate() *date.Date
- func (x *BigQuerySource) GetProjectId() string
- func (x *BigQuerySource) GetTableId() string
- func (*BigQuerySource) ProtoMessage()
- func (x *BigQuerySource) ProtoReflect() protoreflect.Message
- func (x *BigQuerySource) Reset()
- func (x *BigQuerySource) String() string
- type BigQuerySource_PartitionDate
- type Catalog
- func (*Catalog) Descriptor() ([]byte, []int)deprecated
- func (x *Catalog) GetDisplayName() string
- func (x *Catalog) GetMerchantCenterLinkingConfig() *MerchantCenterLinkingConfig
- func (x *Catalog) GetName() string
- func (x *Catalog) GetProductLevelConfig() *ProductLevelConfig
- func (*Catalog) ProtoMessage()
- func (x *Catalog) ProtoReflect() protoreflect.Message
- func (x *Catalog) Reset()
- func (x *Catalog) String() string
- type CatalogAttribute
- func (*CatalogAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogAttribute) GetDynamicFacetableOption() CatalogAttribute_DynamicFacetableOption
- func (x *CatalogAttribute) GetExactSearchableOption() CatalogAttribute_ExactSearchableOption
- func (x *CatalogAttribute) GetFacetConfig() *CatalogAttribute_FacetConfig
- func (x *CatalogAttribute) GetInUse() bool
- func (x *CatalogAttribute) GetIndexableOption() CatalogAttribute_IndexableOption
- func (x *CatalogAttribute) GetKey() string
- func (x *CatalogAttribute) GetRecommendationsFilteringOption() RecommendationsFilteringOption
- func (x *CatalogAttribute) GetRetrievableOption() CatalogAttribute_RetrievableOption
- func (x *CatalogAttribute) GetSearchableOption() CatalogAttribute_SearchableOption
- func (x *CatalogAttribute) GetType() CatalogAttribute_AttributeType
- func (*CatalogAttribute) ProtoMessage()
- func (x *CatalogAttribute) ProtoReflect() protoreflect.Message
- func (x *CatalogAttribute) Reset()
- func (x *CatalogAttribute) String() string
- type CatalogAttribute_AttributeType
- func (CatalogAttribute_AttributeType) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogAttribute_AttributeType) Enum() *CatalogAttribute_AttributeType
- func (CatalogAttribute_AttributeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogAttribute_AttributeType) Number() protoreflect.EnumNumber
- func (x CatalogAttribute_AttributeType) String() string
- func (CatalogAttribute_AttributeType) Type() protoreflect.EnumType
- type CatalogAttribute_DynamicFacetableOption
- func (CatalogAttribute_DynamicFacetableOption) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogAttribute_DynamicFacetableOption) Enum() *CatalogAttribute_DynamicFacetableOption
- func (CatalogAttribute_DynamicFacetableOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogAttribute_DynamicFacetableOption) Number() protoreflect.EnumNumber
- func (x CatalogAttribute_DynamicFacetableOption) String() string
- func (CatalogAttribute_DynamicFacetableOption) Type() protoreflect.EnumType
- type CatalogAttribute_ExactSearchableOption
- func (CatalogAttribute_ExactSearchableOption) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogAttribute_ExactSearchableOption) Enum() *CatalogAttribute_ExactSearchableOption
- func (CatalogAttribute_ExactSearchableOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogAttribute_ExactSearchableOption) Number() protoreflect.EnumNumber
- func (x CatalogAttribute_ExactSearchableOption) String() string
- func (CatalogAttribute_ExactSearchableOption) Type() protoreflect.EnumType
- type CatalogAttribute_FacetConfig
- func (*CatalogAttribute_FacetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogAttribute_FacetConfig) GetFacetIntervals() []*Interval
- func (x *CatalogAttribute_FacetConfig) GetIgnoredFacetValues() []*CatalogAttribute_FacetConfig_IgnoredFacetValues
- func (x *CatalogAttribute_FacetConfig) GetMergedFacet() *CatalogAttribute_FacetConfig_MergedFacet
- func (x *CatalogAttribute_FacetConfig) GetMergedFacetValues() []*CatalogAttribute_FacetConfig_MergedFacetValue
- func (x *CatalogAttribute_FacetConfig) GetRerankConfig() *CatalogAttribute_FacetConfig_RerankConfig
- func (*CatalogAttribute_FacetConfig) ProtoMessage()
- func (x *CatalogAttribute_FacetConfig) ProtoReflect() protoreflect.Message
- func (x *CatalogAttribute_FacetConfig) Reset()
- func (x *CatalogAttribute_FacetConfig) String() string
- type CatalogAttribute_FacetConfig_IgnoredFacetValues
- func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetEndTime() *timestamppb.Timestamp
- func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetStartTime() *timestamppb.Timestamp
- func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetValues() []string
- func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoMessage()
- func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoReflect() protoreflect.Message
- func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) Reset()
- func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) String() string
- type CatalogAttribute_FacetConfig_MergedFacet
- func (*CatalogAttribute_FacetConfig_MergedFacet) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogAttribute_FacetConfig_MergedFacet) GetMergedFacetKey() string
- func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoMessage()
- func (x *CatalogAttribute_FacetConfig_MergedFacet) ProtoReflect() protoreflect.Message
- func (x *CatalogAttribute_FacetConfig_MergedFacet) Reset()
- func (x *CatalogAttribute_FacetConfig_MergedFacet) String() string
- type CatalogAttribute_FacetConfig_MergedFacetValue
- func (*CatalogAttribute_FacetConfig_MergedFacetValue) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogAttribute_FacetConfig_MergedFacetValue) GetMergedValue() string
- func (x *CatalogAttribute_FacetConfig_MergedFacetValue) GetValues() []string
- func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoMessage()
- func (x *CatalogAttribute_FacetConfig_MergedFacetValue) ProtoReflect() protoreflect.Message
- func (x *CatalogAttribute_FacetConfig_MergedFacetValue) Reset()
- func (x *CatalogAttribute_FacetConfig_MergedFacetValue) String() string
- type CatalogAttribute_FacetConfig_RerankConfig
- func (*CatalogAttribute_FacetConfig_RerankConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogAttribute_FacetConfig_RerankConfig) GetFacetValues() []string
- func (x *CatalogAttribute_FacetConfig_RerankConfig) GetRerankFacet() bool
- func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoMessage()
- func (x *CatalogAttribute_FacetConfig_RerankConfig) ProtoReflect() protoreflect.Message
- func (x *CatalogAttribute_FacetConfig_RerankConfig) Reset()
- func (x *CatalogAttribute_FacetConfig_RerankConfig) String() string
- type CatalogAttribute_IndexableOption
- func (CatalogAttribute_IndexableOption) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogAttribute_IndexableOption) Enum() *CatalogAttribute_IndexableOption
- func (CatalogAttribute_IndexableOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogAttribute_IndexableOption) Number() protoreflect.EnumNumber
- func (x CatalogAttribute_IndexableOption) String() string
- func (CatalogAttribute_IndexableOption) Type() protoreflect.EnumType
- type CatalogAttribute_RetrievableOption
- func (CatalogAttribute_RetrievableOption) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogAttribute_RetrievableOption) Enum() *CatalogAttribute_RetrievableOption
- func (CatalogAttribute_RetrievableOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogAttribute_RetrievableOption) Number() protoreflect.EnumNumber
- func (x CatalogAttribute_RetrievableOption) String() string
- func (CatalogAttribute_RetrievableOption) Type() protoreflect.EnumType
- type CatalogAttribute_SearchableOption
- func (CatalogAttribute_SearchableOption) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogAttribute_SearchableOption) Enum() *CatalogAttribute_SearchableOption
- func (CatalogAttribute_SearchableOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogAttribute_SearchableOption) Number() protoreflect.EnumNumber
- func (x CatalogAttribute_SearchableOption) String() string
- func (CatalogAttribute_SearchableOption) Type() protoreflect.EnumType
- type CatalogServiceClient
- type CatalogServiceServer
- type CollectUserEventRequest
- func (*CollectUserEventRequest) Descriptor() ([]byte, []int)deprecated
- func (m *CollectUserEventRequest) GetConversionRule() isCollectUserEventRequest_ConversionRule
- func (x *CollectUserEventRequest) GetEts() int64
- func (x *CollectUserEventRequest) GetParent() string
- func (x *CollectUserEventRequest) GetPrebuiltRule() string
- func (x *CollectUserEventRequest) GetRawJson() string
- func (x *CollectUserEventRequest) GetUri() string
- func (x *CollectUserEventRequest) GetUserEvent() string
- func (*CollectUserEventRequest) ProtoMessage()
- func (x *CollectUserEventRequest) ProtoReflect() protoreflect.Message
- func (x *CollectUserEventRequest) Reset()
- func (x *CollectUserEventRequest) String() string
- type CollectUserEventRequest_PrebuiltRule
- type ColorInfo
- type CompleteQueryRequest
- func (*CompleteQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteQueryRequest) GetCatalog() string
- func (x *CompleteQueryRequest) GetDataset() string
- func (x *CompleteQueryRequest) GetDeviceType() string
- func (x *CompleteQueryRequest) GetEnableAttributeSuggestions() bool
- func (x *CompleteQueryRequest) GetEntity() string
- func (x *CompleteQueryRequest) GetLanguageCodes() []string
- func (x *CompleteQueryRequest) GetMaxSuggestions() int32
- func (x *CompleteQueryRequest) GetQuery() string
- func (x *CompleteQueryRequest) GetVisitorId() string
- func (*CompleteQueryRequest) ProtoMessage()
- func (x *CompleteQueryRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteQueryRequest) Reset()
- func (x *CompleteQueryRequest) String() string
- type CompleteQueryResponse
- func (*CompleteQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteQueryResponse) GetAttributeResults() map[string]*CompleteQueryResponse_AttributeResult
- func (x *CompleteQueryResponse) GetAttributionToken() string
- func (x *CompleteQueryResponse) GetCompletionResults() []*CompleteQueryResponse_CompletionResult
- func (x *CompleteQueryResponse) GetRecentSearchResults() []*CompleteQueryResponse_RecentSearchResultdeprecated
- func (*CompleteQueryResponse) ProtoMessage()
- func (x *CompleteQueryResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteQueryResponse) Reset()
- func (x *CompleteQueryResponse) String() string
- type CompleteQueryResponse_AttributeResult
- func (*CompleteQueryResponse_AttributeResult) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteQueryResponse_AttributeResult) GetSuggestions() []string
- func (*CompleteQueryResponse_AttributeResult) ProtoMessage()
- func (x *CompleteQueryResponse_AttributeResult) ProtoReflect() protoreflect.Message
- func (x *CompleteQueryResponse_AttributeResult) Reset()
- func (x *CompleteQueryResponse_AttributeResult) String() string
- type CompleteQueryResponse_CompletionResult
- func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteQueryResponse_CompletionResult) GetAttributes() map[string]*CustomAttribute
- func (x *CompleteQueryResponse_CompletionResult) GetSuggestion() string
- func (*CompleteQueryResponse_CompletionResult) ProtoMessage()
- func (x *CompleteQueryResponse_CompletionResult) ProtoReflect() protoreflect.Message
- func (x *CompleteQueryResponse_CompletionResult) Reset()
- func (x *CompleteQueryResponse_CompletionResult) String() string
- type CompleteQueryResponse_RecentSearchResultdeprecated
- func (*CompleteQueryResponse_RecentSearchResult) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteQueryResponse_RecentSearchResult) GetRecentSearch() string
- func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage()
- func (x *CompleteQueryResponse_RecentSearchResult) ProtoReflect() protoreflect.Message
- func (x *CompleteQueryResponse_RecentSearchResult) Reset()
- func (x *CompleteQueryResponse_RecentSearchResult) String() string
- type CompletionConfig
- func (*CompletionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionConfig) GetAllowlistInputConfig() *CompletionDataInputConfig
- func (x *CompletionConfig) GetAutoLearning() bool
- func (x *CompletionConfig) GetDenylistInputConfig() *CompletionDataInputConfig
- func (x *CompletionConfig) GetLastAllowlistImportOperation() string
- func (x *CompletionConfig) GetLastDenylistImportOperation() string
- func (x *CompletionConfig) GetLastSuggestionsImportOperation() string
- func (x *CompletionConfig) GetMatchingOrder() string
- func (x *CompletionConfig) GetMaxSuggestions() int32
- func (x *CompletionConfig) GetMinPrefixLength() int32
- func (x *CompletionConfig) GetName() string
- func (x *CompletionConfig) GetSuggestionsInputConfig() *CompletionDataInputConfig
- func (*CompletionConfig) ProtoMessage()
- func (x *CompletionConfig) ProtoReflect() protoreflect.Message
- func (x *CompletionConfig) Reset()
- func (x *CompletionConfig) String() string
- type CompletionDataInputConfig
- func (*CompletionDataInputConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionDataInputConfig) GetBigQuerySource() *BigQuerySource
- func (m *CompletionDataInputConfig) GetSource() isCompletionDataInputConfig_Source
- func (*CompletionDataInputConfig) ProtoMessage()
- func (x *CompletionDataInputConfig) ProtoReflect() protoreflect.Message
- func (x *CompletionDataInputConfig) Reset()
- func (x *CompletionDataInputConfig) String() string
- type CompletionDataInputConfig_BigQuerySource
- type CompletionDetail
- func (*CompletionDetail) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionDetail) GetCompletionAttributionToken() string
- func (x *CompletionDetail) GetSelectedPosition() int32
- func (x *CompletionDetail) GetSelectedSuggestion() string
- func (*CompletionDetail) ProtoMessage()
- func (x *CompletionDetail) ProtoReflect() protoreflect.Message
- func (x *CompletionDetail) Reset()
- func (x *CompletionDetail) String() string
- type CompletionServiceClient
- type CompletionServiceServer
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetActiveTimeRange() []*Condition_TimeRange
- func (x *Condition) GetPageCategories() []string
- func (x *Condition) GetQueryTerms() []*Condition_QueryTerm
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type Condition_QueryTerm
- func (*Condition_QueryTerm) Descriptor() ([]byte, []int)deprecated
- func (x *Condition_QueryTerm) GetFullMatch() bool
- func (x *Condition_QueryTerm) GetValue() string
- func (*Condition_QueryTerm) ProtoMessage()
- func (x *Condition_QueryTerm) ProtoReflect() protoreflect.Message
- func (x *Condition_QueryTerm) Reset()
- func (x *Condition_QueryTerm) String() string
- type Condition_TimeRange
- func (*Condition_TimeRange) Descriptor() ([]byte, []int)deprecated
- func (x *Condition_TimeRange) GetEndTime() *timestamppb.Timestamp
- func (x *Condition_TimeRange) GetStartTime() *timestamppb.Timestamp
- func (*Condition_TimeRange) ProtoMessage()
- func (x *Condition_TimeRange) ProtoReflect() protoreflect.Message
- func (x *Condition_TimeRange) Reset()
- func (x *Condition_TimeRange) String() string
- type Control
- func (*Control) Descriptor() ([]byte, []int)deprecated
- func (x *Control) GetAssociatedServingConfigIds() []string
- func (m *Control) GetControl() isControl_Control
- func (x *Control) GetDisplayName() string
- func (x *Control) GetFacetSpec() *SearchRequest_FacetSpecdeprecated
- func (x *Control) GetName() string
- func (x *Control) GetRule() *Rule
- func (x *Control) GetSearchSolutionUseCase() []SearchSolutionUseCase
- func (x *Control) GetSolutionTypes() []SolutionType
- func (*Control) ProtoMessage()
- func (x *Control) ProtoReflect() protoreflect.Message
- func (x *Control) Reset()
- func (x *Control) String() string
- type ControlServiceClient
- type ControlServiceServer
- type Control_FacetSpec
- type Control_Rule
- type CreateControlRequest
- func (*CreateControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateControlRequest) GetControl() *Control
- func (x *CreateControlRequest) GetControlId() string
- func (x *CreateControlRequest) GetParent() string
- func (*CreateControlRequest) ProtoMessage()
- func (x *CreateControlRequest) ProtoReflect() protoreflect.Message
- func (x *CreateControlRequest) Reset()
- func (x *CreateControlRequest) String() string
- type CreateModelMetadata
- func (*CreateModelMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModelMetadata) GetModel() string
- func (*CreateModelMetadata) ProtoMessage()
- func (x *CreateModelMetadata) ProtoReflect() protoreflect.Message
- func (x *CreateModelMetadata) Reset()
- func (x *CreateModelMetadata) String() string
- type CreateModelRequest
- func (*CreateModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModelRequest) GetDryRun() bool
- func (x *CreateModelRequest) GetModel() *Model
- func (x *CreateModelRequest) GetParent() string
- func (*CreateModelRequest) ProtoMessage()
- func (x *CreateModelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateModelRequest) Reset()
- func (x *CreateModelRequest) String() string
- type CreateProductRequest
- func (*CreateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductRequest) GetParent() string
- func (x *CreateProductRequest) GetProduct() *Product
- func (x *CreateProductRequest) GetProductId() string
- func (*CreateProductRequest) ProtoMessage()
- func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProductRequest) Reset()
- func (x *CreateProductRequest) String() string
- type CreateServingConfigRequest
- func (*CreateServingConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateServingConfigRequest) GetParent() string
- func (x *CreateServingConfigRequest) GetServingConfig() *ServingConfig
- func (x *CreateServingConfigRequest) GetServingConfigId() string
- func (*CreateServingConfigRequest) ProtoMessage()
- func (x *CreateServingConfigRequest) ProtoReflect() protoreflect.Message
- func (x *CreateServingConfigRequest) Reset()
- func (x *CreateServingConfigRequest) String() string
- type CustomAttribute
- func (*CustomAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *CustomAttribute) GetIndexable() booldeprecated
- func (x *CustomAttribute) GetNumbers() []float64
- func (x *CustomAttribute) GetSearchable() booldeprecated
- func (x *CustomAttribute) GetText() []string
- func (*CustomAttribute) ProtoMessage()
- func (x *CustomAttribute) ProtoReflect() protoreflect.Message
- func (x *CustomAttribute) Reset()
- func (x *CustomAttribute) String() string
- type DeleteControlRequest
- func (*DeleteControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteControlRequest) GetName() string
- func (*DeleteControlRequest) ProtoMessage()
- func (x *DeleteControlRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteControlRequest) Reset()
- func (x *DeleteControlRequest) String() string
- type DeleteModelRequest
- func (*DeleteModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModelRequest) GetName() string
- func (*DeleteModelRequest) ProtoMessage()
- func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteModelRequest) Reset()
- func (x *DeleteModelRequest) String() string
- type DeleteProductRequest
- func (*DeleteProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductRequest) GetName() string
- func (*DeleteProductRequest) ProtoMessage()
- func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductRequest) Reset()
- func (x *DeleteProductRequest) String() string
- type DeleteServingConfigRequest
- func (*DeleteServingConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteServingConfigRequest) GetName() string
- func (*DeleteServingConfigRequest) ProtoMessage()
- func (x *DeleteServingConfigRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteServingConfigRequest) Reset()
- func (x *DeleteServingConfigRequest) String() string
- type ExperimentInfo
- func (*ExperimentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ExperimentInfo) GetExperiment() string
- func (m *ExperimentInfo) GetExperimentMetadata() isExperimentInfo_ExperimentMetadata
- func (x *ExperimentInfo) GetServingConfigExperiment() *ExperimentInfo_ServingConfigExperiment
- func (*ExperimentInfo) ProtoMessage()
- func (x *ExperimentInfo) ProtoReflect() protoreflect.Message
- func (x *ExperimentInfo) Reset()
- func (x *ExperimentInfo) String() string
- type ExperimentInfo_ServingConfigExperiment
- func (*ExperimentInfo_ServingConfigExperiment) Descriptor() ([]byte, []int)deprecated
- func (x *ExperimentInfo_ServingConfigExperiment) GetExperimentServingConfig() string
- func (x *ExperimentInfo_ServingConfigExperiment) GetOriginalServingConfig() string
- func (*ExperimentInfo_ServingConfigExperiment) ProtoMessage()
- func (x *ExperimentInfo_ServingConfigExperiment) ProtoReflect() protoreflect.Message
- func (x *ExperimentInfo_ServingConfigExperiment) Reset()
- func (x *ExperimentInfo_ServingConfigExperiment) String() string
- type ExperimentInfo_ServingConfigExperiment_
- type ExportAnalyticsMetricsRequest
- func (*ExportAnalyticsMetricsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportAnalyticsMetricsRequest) GetCatalog() string
- func (x *ExportAnalyticsMetricsRequest) GetFilter() string
- func (x *ExportAnalyticsMetricsRequest) GetOutputConfig() *OutputConfig
- func (*ExportAnalyticsMetricsRequest) ProtoMessage()
- func (x *ExportAnalyticsMetricsRequest) ProtoReflect() protoreflect.Message
- func (x *ExportAnalyticsMetricsRequest) Reset()
- func (x *ExportAnalyticsMetricsRequest) String() string
- type ExportAnalyticsMetricsResponse
- func (*ExportAnalyticsMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportAnalyticsMetricsResponse) GetErrorSamples() []*status.Status
- func (x *ExportAnalyticsMetricsResponse) GetErrorsConfig() *ExportErrorsConfig
- func (x *ExportAnalyticsMetricsResponse) GetOutputResult() *OutputResult
- func (*ExportAnalyticsMetricsResponse) ProtoMessage()
- func (x *ExportAnalyticsMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *ExportAnalyticsMetricsResponse) Reset()
- func (x *ExportAnalyticsMetricsResponse) String() string
- type ExportErrorsConfig
- func (*ExportErrorsConfig) Descriptor() ([]byte, []int)deprecated
- func (m *ExportErrorsConfig) GetDestination() isExportErrorsConfig_Destination
- func (x *ExportErrorsConfig) GetGcsPrefix() string
- func (*ExportErrorsConfig) ProtoMessage()
- func (x *ExportErrorsConfig) ProtoReflect() protoreflect.Message
- func (x *ExportErrorsConfig) Reset()
- func (x *ExportErrorsConfig) String() string
- type ExportErrorsConfig_GcsPrefix
- type ExportMetadata
- func (*ExportMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ExportMetadata) GetCreateTime() *timestamppb.Timestamp
- func (x *ExportMetadata) GetUpdateTime() *timestamppb.Timestamp
- func (*ExportMetadata) ProtoMessage()
- func (x *ExportMetadata) ProtoReflect() protoreflect.Message
- func (x *ExportMetadata) Reset()
- func (x *ExportMetadata) String() string
- type ExportProductsRequest
- func (*ExportProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportProductsRequest) GetFilter() string
- func (x *ExportProductsRequest) GetOutputConfig() *OutputConfig
- func (x *ExportProductsRequest) GetParent() string
- func (*ExportProductsRequest) ProtoMessage()
- func (x *ExportProductsRequest) ProtoReflect() protoreflect.Message
- func (x *ExportProductsRequest) Reset()
- func (x *ExportProductsRequest) String() string
- type ExportProductsResponse
- func (*ExportProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportProductsResponse) GetErrorSamples() []*status.Status
- func (x *ExportProductsResponse) GetErrorsConfig() *ExportErrorsConfig
- func (x *ExportProductsResponse) GetOutputResult() *OutputResult
- func (*ExportProductsResponse) ProtoMessage()
- func (x *ExportProductsResponse) ProtoReflect() protoreflect.Message
- func (x *ExportProductsResponse) Reset()
- func (x *ExportProductsResponse) String() string
- type ExportUserEventsRequest
- func (*ExportUserEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportUserEventsRequest) GetFilter() string
- func (x *ExportUserEventsRequest) GetOutputConfig() *OutputConfig
- func (x *ExportUserEventsRequest) GetParent() string
- func (*ExportUserEventsRequest) ProtoMessage()
- func (x *ExportUserEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ExportUserEventsRequest) Reset()
- func (x *ExportUserEventsRequest) String() string
- type ExportUserEventsResponse
- func (*ExportUserEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportUserEventsResponse) GetErrorSamples() []*status.Status
- func (x *ExportUserEventsResponse) GetErrorsConfig() *ExportErrorsConfig
- func (x *ExportUserEventsResponse) GetOutputResult() *OutputResult
- func (*ExportUserEventsResponse) ProtoMessage()
- func (x *ExportUserEventsResponse) ProtoReflect() protoreflect.Message
- func (x *ExportUserEventsResponse) Reset()
- func (x *ExportUserEventsResponse) String() string
- type FulfillmentInfo
- func (*FulfillmentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FulfillmentInfo) GetPlaceIds() []string
- func (x *FulfillmentInfo) GetType() string
- func (*FulfillmentInfo) ProtoMessage()
- func (x *FulfillmentInfo) ProtoReflect() protoreflect.Message
- func (x *FulfillmentInfo) Reset()
- func (x *FulfillmentInfo) String() string
- type GcsOutputResult
- type GcsSource
- type GenerativeQuestionConfig
- func (*GenerativeQuestionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GenerativeQuestionConfig) GetAllowedInConversation() bool
- func (x *GenerativeQuestionConfig) GetCatalog() string
- func (x *GenerativeQuestionConfig) GetExampleValues() []string
- func (x *GenerativeQuestionConfig) GetFacet() string
- func (x *GenerativeQuestionConfig) GetFinalQuestion() string
- func (x *GenerativeQuestionConfig) GetFrequency() float32
- func (x *GenerativeQuestionConfig) GetGeneratedQuestion() string
- func (*GenerativeQuestionConfig) ProtoMessage()
- func (x *GenerativeQuestionConfig) ProtoReflect() protoreflect.Message
- func (x *GenerativeQuestionConfig) Reset()
- func (x *GenerativeQuestionConfig) String() string
- type GenerativeQuestionServiceClient
- type GenerativeQuestionServiceServer
- type GenerativeQuestionsFeatureConfig
- func (*GenerativeQuestionsFeatureConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GenerativeQuestionsFeatureConfig) GetCatalog() string
- func (x *GenerativeQuestionsFeatureConfig) GetFeatureEnabled() bool
- func (x *GenerativeQuestionsFeatureConfig) GetMinimumProducts() int32
- func (*GenerativeQuestionsFeatureConfig) ProtoMessage()
- func (x *GenerativeQuestionsFeatureConfig) ProtoReflect() protoreflect.Message
- func (x *GenerativeQuestionsFeatureConfig) Reset()
- func (x *GenerativeQuestionsFeatureConfig) String() string
- type GetAlertConfigRequest
- func (*GetAlertConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAlertConfigRequest) GetName() string
- func (*GetAlertConfigRequest) ProtoMessage()
- func (x *GetAlertConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetAlertConfigRequest) Reset()
- func (x *GetAlertConfigRequest) String() string
- type GetAttributesConfigRequest
- func (*GetAttributesConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttributesConfigRequest) GetName() string
- func (*GetAttributesConfigRequest) ProtoMessage()
- func (x *GetAttributesConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetAttributesConfigRequest) Reset()
- func (x *GetAttributesConfigRequest) String() string
- type GetCompletionConfigRequest
- func (*GetCompletionConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCompletionConfigRequest) GetName() string
- func (*GetCompletionConfigRequest) ProtoMessage()
- func (x *GetCompletionConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetCompletionConfigRequest) Reset()
- func (x *GetCompletionConfigRequest) String() string
- type GetControlRequest
- type GetDefaultBranchRequest
- func (*GetDefaultBranchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDefaultBranchRequest) GetCatalog() string
- func (*GetDefaultBranchRequest) ProtoMessage()
- func (x *GetDefaultBranchRequest) ProtoReflect() protoreflect.Message
- func (x *GetDefaultBranchRequest) Reset()
- func (x *GetDefaultBranchRequest) String() string
- type GetDefaultBranchResponse
- func (*GetDefaultBranchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDefaultBranchResponse) GetBranch() string
- func (x *GetDefaultBranchResponse) GetNote() string
- func (x *GetDefaultBranchResponse) GetSetTime() *timestamppb.Timestamp
- func (*GetDefaultBranchResponse) ProtoMessage()
- func (x *GetDefaultBranchResponse) ProtoReflect() protoreflect.Message
- func (x *GetDefaultBranchResponse) Reset()
- func (x *GetDefaultBranchResponse) String() string
- type GetGenerativeQuestionsFeatureConfigRequest
- func (*GetGenerativeQuestionsFeatureConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGenerativeQuestionsFeatureConfigRequest) GetCatalog() string
- func (*GetGenerativeQuestionsFeatureConfigRequest) ProtoMessage()
- func (x *GetGenerativeQuestionsFeatureConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetGenerativeQuestionsFeatureConfigRequest) Reset()
- func (x *GetGenerativeQuestionsFeatureConfigRequest) String() string
- type GetModelRequest
- type GetProductRequest
- type GetServingConfigRequest
- func (*GetServingConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetServingConfigRequest) GetName() string
- func (*GetServingConfigRequest) ProtoMessage()
- func (x *GetServingConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetServingConfigRequest) Reset()
- func (x *GetServingConfigRequest) String() string
- type Image
- type ImportCompletionDataRequest
- func (*ImportCompletionDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportCompletionDataRequest) GetInputConfig() *CompletionDataInputConfig
- func (x *ImportCompletionDataRequest) GetNotificationPubsubTopic() string
- func (x *ImportCompletionDataRequest) GetParent() string
- func (*ImportCompletionDataRequest) ProtoMessage()
- func (x *ImportCompletionDataRequest) ProtoReflect() protoreflect.Message
- func (x *ImportCompletionDataRequest) Reset()
- func (x *ImportCompletionDataRequest) String() string
- type ImportCompletionDataResponse
- func (*ImportCompletionDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImportCompletionDataResponse) GetErrorSamples() []*status.Status
- func (*ImportCompletionDataResponse) ProtoMessage()
- func (x *ImportCompletionDataResponse) ProtoReflect() protoreflect.Message
- func (x *ImportCompletionDataResponse) Reset()
- func (x *ImportCompletionDataResponse) String() string
- type ImportErrorsConfig
- func (*ImportErrorsConfig) Descriptor() ([]byte, []int)deprecated
- func (m *ImportErrorsConfig) GetDestination() isImportErrorsConfig_Destination
- func (x *ImportErrorsConfig) GetGcsPrefix() string
- func (*ImportErrorsConfig) ProtoMessage()
- func (x *ImportErrorsConfig) ProtoReflect() protoreflect.Message
- func (x *ImportErrorsConfig) Reset()
- func (x *ImportErrorsConfig) String() string
- type ImportErrorsConfig_GcsPrefix
- type ImportMetadata
- func (*ImportMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ImportMetadata) GetCreateTime() *timestamppb.Timestamp
- func (x *ImportMetadata) GetFailureCount() int64
- func (x *ImportMetadata) GetNotificationPubsubTopic() string
- func (x *ImportMetadata) GetRequestId() stringdeprecated
- func (x *ImportMetadata) GetSuccessCount() int64
- func (x *ImportMetadata) GetUpdateTime() *timestamppb.Timestamp
- func (*ImportMetadata) ProtoMessage()
- func (x *ImportMetadata) ProtoReflect() protoreflect.Message
- func (x *ImportMetadata) Reset()
- func (x *ImportMetadata) String() string
- type ImportProductsRequest
- func (*ImportProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportProductsRequest) GetErrorsConfig() *ImportErrorsConfig
- func (x *ImportProductsRequest) GetInputConfig() *ProductInputConfig
- func (x *ImportProductsRequest) GetNotificationPubsubTopic() string
- func (x *ImportProductsRequest) GetParent() string
- func (x *ImportProductsRequest) GetReconciliationMode() ImportProductsRequest_ReconciliationMode
- func (x *ImportProductsRequest) GetRequestId() stringdeprecated
- func (x *ImportProductsRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*ImportProductsRequest) ProtoMessage()
- func (x *ImportProductsRequest) ProtoReflect() protoreflect.Message
- func (x *ImportProductsRequest) Reset()
- func (x *ImportProductsRequest) String() string
- type ImportProductsRequest_ReconciliationMode
- func (ImportProductsRequest_ReconciliationMode) Descriptor() protoreflect.EnumDescriptor
- func (x ImportProductsRequest_ReconciliationMode) Enum() *ImportProductsRequest_ReconciliationMode
- func (ImportProductsRequest_ReconciliationMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ImportProductsRequest_ReconciliationMode) Number() protoreflect.EnumNumber
- func (x ImportProductsRequest_ReconciliationMode) String() string
- func (ImportProductsRequest_ReconciliationMode) Type() protoreflect.EnumType
- type ImportProductsResponse
- func (*ImportProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImportProductsResponse) GetErrorSamples() []*status.Status
- func (x *ImportProductsResponse) GetErrorsConfig() *ImportErrorsConfig
- func (*ImportProductsResponse) ProtoMessage()
- func (x *ImportProductsResponse) ProtoReflect() protoreflect.Message
- func (x *ImportProductsResponse) Reset()
- func (x *ImportProductsResponse) String() string
- type ImportUserEventsRequest
- func (*ImportUserEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportUserEventsRequest) GetErrorsConfig() *ImportErrorsConfig
- func (x *ImportUserEventsRequest) GetInputConfig() *UserEventInputConfig
- func (x *ImportUserEventsRequest) GetParent() string
- func (*ImportUserEventsRequest) ProtoMessage()
- func (x *ImportUserEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ImportUserEventsRequest) Reset()
- func (x *ImportUserEventsRequest) String() string
- type ImportUserEventsResponse
- func (*ImportUserEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImportUserEventsResponse) GetErrorSamples() []*status.Status
- func (x *ImportUserEventsResponse) GetErrorsConfig() *ImportErrorsConfig
- func (x *ImportUserEventsResponse) GetImportSummary() *UserEventImportSummary
- func (*ImportUserEventsResponse) ProtoMessage()
- func (x *ImportUserEventsResponse) ProtoReflect() protoreflect.Message
- func (x *ImportUserEventsResponse) Reset()
- func (x *ImportUserEventsResponse) String() string
- type Interval
- func (*Interval) Descriptor() ([]byte, []int)deprecated
- func (x *Interval) GetExclusiveMaximum() float64
- func (x *Interval) GetExclusiveMinimum() float64
- func (m *Interval) GetMax() isInterval_Max
- func (x *Interval) GetMaximum() float64
- func (m *Interval) GetMin() isInterval_Min
- func (x *Interval) GetMinimum() float64
- func (*Interval) ProtoMessage()
- func (x *Interval) ProtoReflect() protoreflect.Message
- func (x *Interval) Reset()
- func (x *Interval) String() string
- type Interval_ExclusiveMaximum
- type Interval_ExclusiveMinimum
- type Interval_Maximum
- type Interval_Minimum
- type ListCatalogsRequest
- func (*ListCatalogsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCatalogsRequest) GetPageSize() int32
- func (x *ListCatalogsRequest) GetPageToken() string
- func (x *ListCatalogsRequest) GetParent() string
- func (*ListCatalogsRequest) ProtoMessage()
- func (x *ListCatalogsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCatalogsRequest) Reset()
- func (x *ListCatalogsRequest) String() string
- type ListCatalogsResponse
- func (*ListCatalogsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCatalogsResponse) GetCatalogs() []*Catalog
- func (x *ListCatalogsResponse) GetNextPageToken() string
- func (*ListCatalogsResponse) ProtoMessage()
- func (x *ListCatalogsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCatalogsResponse) Reset()
- func (x *ListCatalogsResponse) String() string
- type ListControlsRequest
- func (*ListControlsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListControlsRequest) GetFilter() string
- func (x *ListControlsRequest) GetPageSize() int32
- func (x *ListControlsRequest) GetPageToken() string
- func (x *ListControlsRequest) GetParent() string
- func (*ListControlsRequest) ProtoMessage()
- func (x *ListControlsRequest) ProtoReflect() protoreflect.Message
- func (x *ListControlsRequest) Reset()
- func (x *ListControlsRequest) String() string
- type ListControlsResponse
- func (*ListControlsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListControlsResponse) GetControls() []*Control
- func (x *ListControlsResponse) GetNextPageToken() string
- func (*ListControlsResponse) ProtoMessage()
- func (x *ListControlsResponse) ProtoReflect() protoreflect.Message
- func (x *ListControlsResponse) Reset()
- func (x *ListControlsResponse) String() string
- type ListGenerativeQuestionConfigsRequest
- func (*ListGenerativeQuestionConfigsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGenerativeQuestionConfigsRequest) GetParent() string
- func (*ListGenerativeQuestionConfigsRequest) ProtoMessage()
- func (x *ListGenerativeQuestionConfigsRequest) ProtoReflect() protoreflect.Message
- func (x *ListGenerativeQuestionConfigsRequest) Reset()
- func (x *ListGenerativeQuestionConfigsRequest) String() string
- type ListGenerativeQuestionConfigsResponse
- func (*ListGenerativeQuestionConfigsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs() []*GenerativeQuestionConfig
- func (*ListGenerativeQuestionConfigsResponse) ProtoMessage()
- func (x *ListGenerativeQuestionConfigsResponse) ProtoReflect() protoreflect.Message
- func (x *ListGenerativeQuestionConfigsResponse) Reset()
- func (x *ListGenerativeQuestionConfigsResponse) String() string
- type ListModelsRequest
- func (*ListModelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsRequest) GetPageSize() int32
- func (x *ListModelsRequest) GetPageToken() string
- func (x *ListModelsRequest) GetParent() string
- func (*ListModelsRequest) ProtoMessage()
- func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListModelsRequest) Reset()
- func (x *ListModelsRequest) String() string
- type ListModelsResponse
- func (*ListModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsResponse) GetModels() []*Model
- func (x *ListModelsResponse) GetNextPageToken() string
- func (*ListModelsResponse) ProtoMessage()
- func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListModelsResponse) Reset()
- func (x *ListModelsResponse) String() string
- type ListProductsRequest
- func (*ListProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsRequest) GetFilter() string
- func (x *ListProductsRequest) GetPageSize() int32
- func (x *ListProductsRequest) GetPageToken() string
- func (x *ListProductsRequest) GetParent() string
- func (x *ListProductsRequest) GetReadMask() *fieldmaskpb.FieldMask
- func (*ListProductsRequest) ProtoMessage()
- func (x *ListProductsRequest) ProtoReflect() protoreflect.Message
- func (x *ListProductsRequest) Reset()
- func (x *ListProductsRequest) String() string
- type ListProductsResponse
- func (*ListProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsResponse) GetNextPageToken() string
- func (x *ListProductsResponse) GetProducts() []*Product
- func (*ListProductsResponse) ProtoMessage()
- func (x *ListProductsResponse) ProtoReflect() protoreflect.Message
- func (x *ListProductsResponse) Reset()
- func (x *ListProductsResponse) String() string
- type ListServingConfigsRequest
- func (*ListServingConfigsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListServingConfigsRequest) GetPageSize() int32
- func (x *ListServingConfigsRequest) GetPageToken() string
- func (x *ListServingConfigsRequest) GetParent() string
- func (*ListServingConfigsRequest) ProtoMessage()
- func (x *ListServingConfigsRequest) ProtoReflect() protoreflect.Message
- func (x *ListServingConfigsRequest) Reset()
- func (x *ListServingConfigsRequest) String() string
- type ListServingConfigsResponse
- func (*ListServingConfigsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServingConfigsResponse) GetNextPageToken() string
- func (x *ListServingConfigsResponse) GetServingConfigs() []*ServingConfig
- func (*ListServingConfigsResponse) ProtoMessage()
- func (x *ListServingConfigsResponse) ProtoReflect() protoreflect.Message
- func (x *ListServingConfigsResponse) Reset()
- func (x *ListServingConfigsResponse) String() string
- type LocalInventory
- func (*LocalInventory) Descriptor() ([]byte, []int)deprecated
- func (x *LocalInventory) GetAttributes() map[string]*CustomAttribute
- func (x *LocalInventory) GetFulfillmentTypes() []string
- func (x *LocalInventory) GetPlaceId() string
- func (x *LocalInventory) GetPriceInfo() *PriceInfo
- func (*LocalInventory) ProtoMessage()
- func (x *LocalInventory) ProtoReflect() protoreflect.Message
- func (x *LocalInventory) Reset()
- func (x *LocalInventory) String() string
- type MerchantCenterFeedFilter
- func (*MerchantCenterFeedFilter) Descriptor() ([]byte, []int)deprecated
- func (x *MerchantCenterFeedFilter) GetPrimaryFeedId() int64
- func (x *MerchantCenterFeedFilter) GetPrimaryFeedName() string
- func (*MerchantCenterFeedFilter) ProtoMessage()
- func (x *MerchantCenterFeedFilter) ProtoReflect() protoreflect.Message
- func (x *MerchantCenterFeedFilter) Reset()
- func (x *MerchantCenterFeedFilter) String() string
- type MerchantCenterLink
- func (*MerchantCenterLink) Descriptor() ([]byte, []int)deprecated
- func (x *MerchantCenterLink) GetBranchId() string
- func (x *MerchantCenterLink) GetDestinations() []string
- func (x *MerchantCenterLink) GetFeeds() []*MerchantCenterFeedFilter
- func (x *MerchantCenterLink) GetLanguageCode() string
- func (x *MerchantCenterLink) GetMerchantCenterAccountId() int64
- func (x *MerchantCenterLink) GetRegionCode() string
- func (*MerchantCenterLink) ProtoMessage()
- func (x *MerchantCenterLink) ProtoReflect() protoreflect.Message
- func (x *MerchantCenterLink) Reset()
- func (x *MerchantCenterLink) String() string
- type MerchantCenterLinkingConfig
- func (*MerchantCenterLinkingConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MerchantCenterLinkingConfig) GetLinks() []*MerchantCenterLink
- func (*MerchantCenterLinkingConfig) ProtoMessage()
- func (x *MerchantCenterLinkingConfig) ProtoReflect() protoreflect.Message
- func (x *MerchantCenterLinkingConfig) Reset()
- func (x *MerchantCenterLinkingConfig) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetCreateTime() *timestamppb.Timestamp
- func (x *Model) GetDataState() Model_DataState
- func (x *Model) GetDisplayName() string
- func (x *Model) GetFilteringOption() RecommendationsFilteringOption
- func (x *Model) GetLastTuneTime() *timestamppb.Timestamp
- func (x *Model) GetModelFeaturesConfig() *Model_ModelFeaturesConfig
- func (x *Model) GetName() string
- func (x *Model) GetOptimizationObjective() string
- func (x *Model) GetPeriodicTuningState() Model_PeriodicTuningState
- func (x *Model) GetServingConfigLists() []*Model_ServingConfigList
- func (x *Model) GetServingState() Model_ServingState
- func (x *Model) GetTrainingState() Model_TrainingState
- func (x *Model) GetTuningOperation() string
- func (x *Model) GetType() string
- func (x *Model) GetUpdateTime() *timestamppb.Timestamp
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- type ModelServiceClient
- type ModelServiceServer
- type Model_ContextProductsType
- func (Model_ContextProductsType) Descriptor() protoreflect.EnumDescriptor
- func (x Model_ContextProductsType) Enum() *Model_ContextProductsType
- func (Model_ContextProductsType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Model_ContextProductsType) Number() protoreflect.EnumNumber
- func (x Model_ContextProductsType) String() string
- func (Model_ContextProductsType) Type() protoreflect.EnumType
- type Model_DataState
- func (Model_DataState) Descriptor() protoreflect.EnumDescriptor
- func (x Model_DataState) Enum() *Model_DataState
- func (Model_DataState) EnumDescriptor() ([]byte, []int)deprecated
- func (x Model_DataState) Number() protoreflect.EnumNumber
- func (x Model_DataState) String() string
- func (Model_DataState) Type() protoreflect.EnumType
- type Model_FrequentlyBoughtTogetherFeaturesConfig
- func (*Model_FrequentlyBoughtTogetherFeaturesConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) GetContextProductsType() Model_ContextProductsType
- func (*Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoMessage()
- func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoReflect() protoreflect.Message
- func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) Reset()
- func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) String() string
- type Model_ModelFeaturesConfig
- func (*Model_ModelFeaturesConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Model_ModelFeaturesConfig) GetFrequentlyBoughtTogetherConfig() *Model_FrequentlyBoughtTogetherFeaturesConfig
- func (m *Model_ModelFeaturesConfig) GetTypeDedicatedConfig() isModel_ModelFeaturesConfig_TypeDedicatedConfig
- func (*Model_ModelFeaturesConfig) ProtoMessage()
- func (x *Model_ModelFeaturesConfig) ProtoReflect() protoreflect.Message
- func (x *Model_ModelFeaturesConfig) Reset()
- func (x *Model_ModelFeaturesConfig) String() string
- type Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig
- type Model_PeriodicTuningState
- func (Model_PeriodicTuningState) Descriptor() protoreflect.EnumDescriptor
- func (x Model_PeriodicTuningState) Enum() *Model_PeriodicTuningState
- func (Model_PeriodicTuningState) EnumDescriptor() ([]byte, []int)deprecated
- func (x Model_PeriodicTuningState) Number() protoreflect.EnumNumber
- func (x Model_PeriodicTuningState) String() string
- func (Model_PeriodicTuningState) Type() protoreflect.EnumType
- type Model_ServingConfigList
- func (*Model_ServingConfigList) Descriptor() ([]byte, []int)deprecated
- func (x *Model_ServingConfigList) GetServingConfigIds() []string
- func (*Model_ServingConfigList) ProtoMessage()
- func (x *Model_ServingConfigList) ProtoReflect() protoreflect.Message
- func (x *Model_ServingConfigList) Reset()
- func (x *Model_ServingConfigList) String() string
- type Model_ServingState
- func (Model_ServingState) Descriptor() protoreflect.EnumDescriptor
- func (x Model_ServingState) Enum() *Model_ServingState
- func (Model_ServingState) EnumDescriptor() ([]byte, []int)deprecated
- func (x Model_ServingState) Number() protoreflect.EnumNumber
- func (x Model_ServingState) String() string
- func (Model_ServingState) Type() protoreflect.EnumType
- type Model_TrainingState
- func (Model_TrainingState) Descriptor() protoreflect.EnumDescriptor
- func (x Model_TrainingState) Enum() *Model_TrainingState
- func (Model_TrainingState) EnumDescriptor() ([]byte, []int)deprecated
- func (x Model_TrainingState) Number() protoreflect.EnumNumber
- func (x Model_TrainingState) String() string
- func (Model_TrainingState) Type() protoreflect.EnumType
- type OutputConfig
- func (*OutputConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OutputConfig) GetBigqueryDestination() *OutputConfig_BigQueryDestination
- func (m *OutputConfig) GetDestination() isOutputConfig_Destination
- func (x *OutputConfig) GetGcsDestination() *OutputConfig_GcsDestination
- func (*OutputConfig) ProtoMessage()
- func (x *OutputConfig) ProtoReflect() protoreflect.Message
- func (x *OutputConfig) Reset()
- func (x *OutputConfig) String() string
- type OutputConfig_BigQueryDestination
- func (*OutputConfig_BigQueryDestination) Descriptor() ([]byte, []int)deprecated
- func (x *OutputConfig_BigQueryDestination) GetDatasetId() string
- func (x *OutputConfig_BigQueryDestination) GetTableIdPrefix() string
- func (x *OutputConfig_BigQueryDestination) GetTableType() string
- func (*OutputConfig_BigQueryDestination) ProtoMessage()
- func (x *OutputConfig_BigQueryDestination) ProtoReflect() protoreflect.Message
- func (x *OutputConfig_BigQueryDestination) Reset()
- func (x *OutputConfig_BigQueryDestination) String() string
- type OutputConfig_BigqueryDestination
- type OutputConfig_GcsDestination
- func (*OutputConfig_GcsDestination) Descriptor() ([]byte, []int)deprecated
- func (x *OutputConfig_GcsDestination) GetOutputUriPrefix() string
- func (*OutputConfig_GcsDestination) ProtoMessage()
- func (x *OutputConfig_GcsDestination) ProtoReflect() protoreflect.Message
- func (x *OutputConfig_GcsDestination) Reset()
- func (x *OutputConfig_GcsDestination) String() string
- type OutputConfig_GcsDestination_
- type OutputResult
- func (*OutputResult) Descriptor() ([]byte, []int)deprecated
- func (x *OutputResult) GetBigqueryResult() []*BigQueryOutputResult
- func (x *OutputResult) GetGcsResult() []*GcsOutputResult
- func (*OutputResult) ProtoMessage()
- func (x *OutputResult) ProtoReflect() protoreflect.Message
- func (x *OutputResult) Reset()
- func (x *OutputResult) String() string
- type PauseModelRequest
- type PredictRequest
- func (*PredictRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PredictRequest) GetFilter() string
- func (x *PredictRequest) GetLabels() map[string]string
- func (x *PredictRequest) GetPageSize() int32
- func (x *PredictRequest) GetPageToken() stringdeprecated
- func (x *PredictRequest) GetParams() map[string]*structpb.Value
- func (x *PredictRequest) GetPlacement() string
- func (x *PredictRequest) GetUserEvent() *UserEvent
- func (x *PredictRequest) GetValidateOnly() bool
- func (*PredictRequest) ProtoMessage()
- func (x *PredictRequest) ProtoReflect() protoreflect.Message
- func (x *PredictRequest) Reset()
- func (x *PredictRequest) String() string
- type PredictResponse
- func (*PredictResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PredictResponse) GetAttributionToken() string
- func (x *PredictResponse) GetMissingIds() []string
- func (x *PredictResponse) GetResults() []*PredictResponse_PredictionResult
- func (x *PredictResponse) GetValidateOnly() bool
- func (*PredictResponse) ProtoMessage()
- func (x *PredictResponse) ProtoReflect() protoreflect.Message
- func (x *PredictResponse) Reset()
- func (x *PredictResponse) String() string
- type PredictResponse_PredictionResult
- func (*PredictResponse_PredictionResult) Descriptor() ([]byte, []int)deprecated
- func (x *PredictResponse_PredictionResult) GetId() string
- func (x *PredictResponse_PredictionResult) GetMetadata() map[string]*structpb.Value
- func (*PredictResponse_PredictionResult) ProtoMessage()
- func (x *PredictResponse_PredictionResult) ProtoReflect() protoreflect.Message
- func (x *PredictResponse_PredictionResult) Reset()
- func (x *PredictResponse_PredictionResult) String() string
- type PredictionServiceClient
- type PredictionServiceServer
- type PriceInfo
- func (*PriceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PriceInfo) GetCost() float32
- func (x *PriceInfo) GetCurrencyCode() string
- func (x *PriceInfo) GetOriginalPrice() float32
- func (x *PriceInfo) GetPrice() float32
- func (x *PriceInfo) GetPriceEffectiveTime() *timestamppb.Timestamp
- func (x *PriceInfo) GetPriceExpireTime() *timestamppb.Timestamp
- func (x *PriceInfo) GetPriceRange() *PriceInfo_PriceRange
- func (*PriceInfo) ProtoMessage()
- func (x *PriceInfo) ProtoReflect() protoreflect.Message
- func (x *PriceInfo) Reset()
- func (x *PriceInfo) String() string
- type PriceInfo_PriceRange
- func (*PriceInfo_PriceRange) Descriptor() ([]byte, []int)deprecated
- func (x *PriceInfo_PriceRange) GetOriginalPrice() *Interval
- func (x *PriceInfo_PriceRange) GetPrice() *Interval
- func (*PriceInfo_PriceRange) ProtoMessage()
- func (x *PriceInfo_PriceRange) ProtoReflect() protoreflect.Message
- func (x *PriceInfo_PriceRange) Reset()
- func (x *PriceInfo_PriceRange) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetAttributes() map[string]*CustomAttribute
- func (x *Product) GetAudience() *Audience
- func (x *Product) GetAvailability() Product_Availability
- func (x *Product) GetAvailableQuantity() *wrapperspb.Int32Value
- func (x *Product) GetAvailableTime() *timestamppb.Timestamp
- func (x *Product) GetBrands() []string
- func (x *Product) GetCategories() []string
- func (x *Product) GetCollectionMemberIds() []string
- func (x *Product) GetColorInfo() *ColorInfo
- func (x *Product) GetConditions() []string
- func (x *Product) GetDescription() string
- func (m *Product) GetExpiration() isProduct_Expiration
- func (x *Product) GetExpireTime() *timestamppb.Timestamp
- func (x *Product) GetFulfillmentInfo() []*FulfillmentInfo
- func (x *Product) GetGtin() string
- func (x *Product) GetId() string
- func (x *Product) GetImages() []*Image
- func (x *Product) GetLanguageCode() string
- func (x *Product) GetLocalInventories() []*LocalInventory
- func (x *Product) GetMaterials() []string
- func (x *Product) GetName() string
- func (x *Product) GetPatterns() []string
- func (x *Product) GetPriceInfo() *PriceInfo
- func (x *Product) GetPrimaryProductId() string
- func (x *Product) GetPromotions() []*Promotion
- func (x *Product) GetPublishTime() *timestamppb.Timestamp
- func (x *Product) GetRating() *Rating
- func (x *Product) GetRetrievableFields() *fieldmaskpb.FieldMaskdeprecated
- func (x *Product) GetSizes() []string
- func (x *Product) GetTags() []string
- func (x *Product) GetTitle() string
- func (x *Product) GetTtl() *durationpb.Duration
- func (x *Product) GetType() Product_Type
- func (x *Product) GetUri() string
- func (x *Product) GetVariants() []*Product
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type ProductAttributeInterval
- func (*ProductAttributeInterval) Descriptor() ([]byte, []int)deprecated
- func (x *ProductAttributeInterval) GetInterval() *Interval
- func (x *ProductAttributeInterval) GetName() string
- func (*ProductAttributeInterval) ProtoMessage()
- func (x *ProductAttributeInterval) ProtoReflect() protoreflect.Message
- func (x *ProductAttributeInterval) Reset()
- func (x *ProductAttributeInterval) String() string
- type ProductAttributeValue
- func (*ProductAttributeValue) Descriptor() ([]byte, []int)deprecated
- func (x *ProductAttributeValue) GetName() string
- func (x *ProductAttributeValue) GetValue() string
- func (*ProductAttributeValue) ProtoMessage()
- func (x *ProductAttributeValue) ProtoReflect() protoreflect.Message
- func (x *ProductAttributeValue) Reset()
- func (x *ProductAttributeValue) String() string
- type ProductDetail
- func (*ProductDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ProductDetail) GetProduct() *Product
- func (x *ProductDetail) GetQuantity() *wrapperspb.Int32Value
- func (*ProductDetail) ProtoMessage()
- func (x *ProductDetail) ProtoReflect() protoreflect.Message
- func (x *ProductDetail) Reset()
- func (x *ProductDetail) String() string
- type ProductInlineSource
- func (*ProductInlineSource) Descriptor() ([]byte, []int)deprecated
- func (x *ProductInlineSource) GetProducts() []*Product
- func (*ProductInlineSource) ProtoMessage()
- func (x *ProductInlineSource) ProtoReflect() protoreflect.Message
- func (x *ProductInlineSource) Reset()
- func (x *ProductInlineSource) String() string
- type ProductInputConfig
- func (*ProductInputConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProductInputConfig) GetBigQuerySource() *BigQuerySource
- func (x *ProductInputConfig) GetGcsSource() *GcsSource
- func (x *ProductInputConfig) GetProductInlineSource() *ProductInlineSource
- func (m *ProductInputConfig) GetSource() isProductInputConfig_Source
- func (*ProductInputConfig) ProtoMessage()
- func (x *ProductInputConfig) ProtoReflect() protoreflect.Message
- func (x *ProductInputConfig) Reset()
- func (x *ProductInputConfig) String() string
- type ProductInputConfig_BigQuerySource
- type ProductInputConfig_GcsSource
- type ProductInputConfig_ProductInlineSource
- type ProductLevelConfig
- func (*ProductLevelConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProductLevelConfig) GetIngestionProductType() string
- func (x *ProductLevelConfig) GetMerchantCenterProductIdField() string
- func (*ProductLevelConfig) ProtoMessage()
- func (x *ProductLevelConfig) ProtoReflect() protoreflect.Message
- func (x *ProductLevelConfig) Reset()
- func (x *ProductLevelConfig) String() string
- type ProductServiceClient
- type ProductServiceServer
- type Product_Availability
- func (Product_Availability) Descriptor() protoreflect.EnumDescriptor
- func (x Product_Availability) Enum() *Product_Availability
- func (Product_Availability) EnumDescriptor() ([]byte, []int)deprecated
- func (x Product_Availability) Number() protoreflect.EnumNumber
- func (x Product_Availability) String() string
- func (Product_Availability) Type() protoreflect.EnumType
- type Product_ExpireTime
- type Product_Ttl
- type Product_Type
- func (Product_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Product_Type) Enum() *Product_Type
- func (Product_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Product_Type) Number() protoreflect.EnumNumber
- func (x Product_Type) String() string
- func (Product_Type) Type() protoreflect.EnumType
- type ProjectServiceClient
- type ProjectServiceServer
- type Promotion
- type PurchaseTransaction
- func (*PurchaseTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseTransaction) GetCost() float32
- func (x *PurchaseTransaction) GetCurrencyCode() string
- func (x *PurchaseTransaction) GetId() string
- func (x *PurchaseTransaction) GetRevenue() float32
- func (x *PurchaseTransaction) GetTax() float32
- func (*PurchaseTransaction) ProtoMessage()
- func (x *PurchaseTransaction) ProtoReflect() protoreflect.Message
- func (x *PurchaseTransaction) Reset()
- func (x *PurchaseTransaction) String() string
- type PurgeMetadata
- type PurgeProductsMetadata
- func (*PurgeProductsMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *PurgeProductsMetadata) GetCreateTime() *timestamppb.Timestamp
- func (x *PurgeProductsMetadata) GetFailureCount() int64
- func (x *PurgeProductsMetadata) GetSuccessCount() int64
- func (x *PurgeProductsMetadata) GetUpdateTime() *timestamppb.Timestamp
- func (*PurgeProductsMetadata) ProtoMessage()
- func (x *PurgeProductsMetadata) ProtoReflect() protoreflect.Message
- func (x *PurgeProductsMetadata) Reset()
- func (x *PurgeProductsMetadata) String() string
- type PurgeProductsRequest
- func (*PurgeProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PurgeProductsRequest) GetFilter() string
- func (x *PurgeProductsRequest) GetForce() bool
- func (x *PurgeProductsRequest) GetParent() string
- func (*PurgeProductsRequest) ProtoMessage()
- func (x *PurgeProductsRequest) ProtoReflect() protoreflect.Message
- func (x *PurgeProductsRequest) Reset()
- func (x *PurgeProductsRequest) String() string
- type PurgeProductsResponse
- func (*PurgeProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PurgeProductsResponse) GetPurgeCount() int64
- func (x *PurgeProductsResponse) GetPurgeSample() []string
- func (*PurgeProductsResponse) ProtoMessage()
- func (x *PurgeProductsResponse) ProtoReflect() protoreflect.Message
- func (x *PurgeProductsResponse) Reset()
- func (x *PurgeProductsResponse) String() string
- type PurgeUserEventsRequest
- func (*PurgeUserEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PurgeUserEventsRequest) GetFilter() string
- func (x *PurgeUserEventsRequest) GetForce() bool
- func (x *PurgeUserEventsRequest) GetParent() string
- func (*PurgeUserEventsRequest) ProtoMessage()
- func (x *PurgeUserEventsRequest) ProtoReflect() protoreflect.Message
- func (x *PurgeUserEventsRequest) Reset()
- func (x *PurgeUserEventsRequest) String() string
- type PurgeUserEventsResponse
- func (*PurgeUserEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PurgeUserEventsResponse) GetPurgedEventsCount() int64
- func (*PurgeUserEventsResponse) ProtoMessage()
- func (x *PurgeUserEventsResponse) ProtoReflect() protoreflect.Message
- func (x *PurgeUserEventsResponse) Reset()
- func (x *PurgeUserEventsResponse) String() string
- type Rating
- func (*Rating) Descriptor() ([]byte, []int)deprecated
- func (x *Rating) GetAverageRating() float32
- func (x *Rating) GetRatingCount() int32
- func (x *Rating) GetRatingHistogram() []int32
- func (*Rating) ProtoMessage()
- func (x *Rating) ProtoReflect() protoreflect.Message
- func (x *Rating) Reset()
- func (x *Rating) String() string
- type RecommendationsFilteringOption
- func (RecommendationsFilteringOption) Descriptor() protoreflect.EnumDescriptor
- func (x RecommendationsFilteringOption) Enum() *RecommendationsFilteringOption
- func (RecommendationsFilteringOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecommendationsFilteringOption) Number() protoreflect.EnumNumber
- func (x RecommendationsFilteringOption) String() string
- func (RecommendationsFilteringOption) Type() protoreflect.EnumType
- type RejoinUserEventsMetadata
- type RejoinUserEventsRequest
- func (*RejoinUserEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RejoinUserEventsRequest) GetParent() string
- func (x *RejoinUserEventsRequest) GetUserEventRejoinScope() RejoinUserEventsRequest_UserEventRejoinScope
- func (*RejoinUserEventsRequest) ProtoMessage()
- func (x *RejoinUserEventsRequest) ProtoReflect() protoreflect.Message
- func (x *RejoinUserEventsRequest) Reset()
- func (x *RejoinUserEventsRequest) String() string
- type RejoinUserEventsRequest_UserEventRejoinScope
- func (RejoinUserEventsRequest_UserEventRejoinScope) Descriptor() protoreflect.EnumDescriptor
- func (x RejoinUserEventsRequest_UserEventRejoinScope) Enum() *RejoinUserEventsRequest_UserEventRejoinScope
- func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor() ([]byte, []int)deprecated
- func (x RejoinUserEventsRequest_UserEventRejoinScope) Number() protoreflect.EnumNumber
- func (x RejoinUserEventsRequest_UserEventRejoinScope) String() string
- func (RejoinUserEventsRequest_UserEventRejoinScope) Type() protoreflect.EnumType
- type RejoinUserEventsResponse
- func (*RejoinUserEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RejoinUserEventsResponse) GetRejoinedUserEventsCount() int64
- func (*RejoinUserEventsResponse) ProtoMessage()
- func (x *RejoinUserEventsResponse) ProtoReflect() protoreflect.Message
- func (x *RejoinUserEventsResponse) Reset()
- func (x *RejoinUserEventsResponse) String() string
- type RemoveCatalogAttributeRequest
- func (*RemoveCatalogAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCatalogAttributeRequest) GetAttributesConfig() string
- func (x *RemoveCatalogAttributeRequest) GetKey() string
- func (*RemoveCatalogAttributeRequest) ProtoMessage()
- func (x *RemoveCatalogAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveCatalogAttributeRequest) Reset()
- func (x *RemoveCatalogAttributeRequest) String() string
- type RemoveControlRequest
- func (*RemoveControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveControlRequest) GetControlId() string
- func (x *RemoveControlRequest) GetServingConfig() string
- func (*RemoveControlRequest) ProtoMessage()
- func (x *RemoveControlRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveControlRequest) Reset()
- func (x *RemoveControlRequest) String() string
- type RemoveFulfillmentPlacesMetadata
- func (*RemoveFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)deprecated
- func (*RemoveFulfillmentPlacesMetadata) ProtoMessage()
- func (x *RemoveFulfillmentPlacesMetadata) ProtoReflect() protoreflect.Message
- func (x *RemoveFulfillmentPlacesMetadata) Reset()
- func (x *RemoveFulfillmentPlacesMetadata) String() string
- type RemoveFulfillmentPlacesRequest
- func (*RemoveFulfillmentPlacesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFulfillmentPlacesRequest) GetAllowMissing() bool
- func (x *RemoveFulfillmentPlacesRequest) GetPlaceIds() []string
- func (x *RemoveFulfillmentPlacesRequest) GetProduct() string
- func (x *RemoveFulfillmentPlacesRequest) GetRemoveTime() *timestamppb.Timestamp
- func (x *RemoveFulfillmentPlacesRequest) GetType() string
- func (*RemoveFulfillmentPlacesRequest) ProtoMessage()
- func (x *RemoveFulfillmentPlacesRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveFulfillmentPlacesRequest) Reset()
- func (x *RemoveFulfillmentPlacesRequest) String() string
- type RemoveFulfillmentPlacesResponse
- func (*RemoveFulfillmentPlacesResponse) Descriptor() ([]byte, []int)deprecated
- func (*RemoveFulfillmentPlacesResponse) ProtoMessage()
- func (x *RemoveFulfillmentPlacesResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveFulfillmentPlacesResponse) Reset()
- func (x *RemoveFulfillmentPlacesResponse) String() string
- type RemoveLocalInventoriesMetadata
- func (*RemoveLocalInventoriesMetadata) Descriptor() ([]byte, []int)deprecated
- func (*RemoveLocalInventoriesMetadata) ProtoMessage()
- func (x *RemoveLocalInventoriesMetadata) ProtoReflect() protoreflect.Message
- func (x *RemoveLocalInventoriesMetadata) Reset()
- func (x *RemoveLocalInventoriesMetadata) String() string
- type RemoveLocalInventoriesRequest
- func (*RemoveLocalInventoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveLocalInventoriesRequest) GetAllowMissing() bool
- func (x *RemoveLocalInventoriesRequest) GetPlaceIds() []string
- func (x *RemoveLocalInventoriesRequest) GetProduct() string
- func (x *RemoveLocalInventoriesRequest) GetRemoveTime() *timestamppb.Timestamp
- func (*RemoveLocalInventoriesRequest) ProtoMessage()
- func (x *RemoveLocalInventoriesRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveLocalInventoriesRequest) Reset()
- func (x *RemoveLocalInventoriesRequest) String() string
- type RemoveLocalInventoriesResponse
- func (*RemoveLocalInventoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (*RemoveLocalInventoriesResponse) ProtoMessage()
- func (x *RemoveLocalInventoriesResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveLocalInventoriesResponse) Reset()
- func (x *RemoveLocalInventoriesResponse) String() string
- type ReplaceCatalogAttributeRequest
- func (*ReplaceCatalogAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReplaceCatalogAttributeRequest) GetAttributesConfig() string
- func (x *ReplaceCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute
- func (x *ReplaceCatalogAttributeRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*ReplaceCatalogAttributeRequest) ProtoMessage()
- func (x *ReplaceCatalogAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *ReplaceCatalogAttributeRequest) Reset()
- func (x *ReplaceCatalogAttributeRequest) String() string
- type ResumeModelRequest
- func (*ResumeModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResumeModelRequest) GetName() string
- func (*ResumeModelRequest) ProtoMessage()
- func (x *ResumeModelRequest) ProtoReflect() protoreflect.Message
- func (x *ResumeModelRequest) Reset()
- func (x *ResumeModelRequest) String() string
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (m *Rule) GetAction() isRule_Action
- func (x *Rule) GetBoostAction() *Rule_BoostAction
- func (x *Rule) GetCondition() *Condition
- func (x *Rule) GetDoNotAssociateAction() *Rule_DoNotAssociateAction
- func (x *Rule) GetFilterAction() *Rule_FilterAction
- func (x *Rule) GetForceReturnFacetAction() *Rule_ForceReturnFacetAction
- func (x *Rule) GetIgnoreAction() *Rule_IgnoreAction
- func (x *Rule) GetOnewaySynonymsAction() *Rule_OnewaySynonymsAction
- func (x *Rule) GetRedirectAction() *Rule_RedirectAction
- func (x *Rule) GetRemoveFacetAction() *Rule_RemoveFacetAction
- func (x *Rule) GetReplacementAction() *Rule_ReplacementAction
- func (x *Rule) GetTwowaySynonymsAction() *Rule_TwowaySynonymsAction
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type Rule_BoostAction
- func (*Rule_BoostAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_BoostAction) GetBoost() float32
- func (x *Rule_BoostAction) GetProductsFilter() string
- func (*Rule_BoostAction) ProtoMessage()
- func (x *Rule_BoostAction) ProtoReflect() protoreflect.Message
- func (x *Rule_BoostAction) Reset()
- func (x *Rule_BoostAction) String() string
- type Rule_BoostAction_
- type Rule_DoNotAssociateAction
- func (*Rule_DoNotAssociateAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_DoNotAssociateAction) GetDoNotAssociateTerms() []string
- func (x *Rule_DoNotAssociateAction) GetQueryTerms() []string
- func (x *Rule_DoNotAssociateAction) GetTerms() []string
- func (*Rule_DoNotAssociateAction) ProtoMessage()
- func (x *Rule_DoNotAssociateAction) ProtoReflect() protoreflect.Message
- func (x *Rule_DoNotAssociateAction) Reset()
- func (x *Rule_DoNotAssociateAction) String() string
- type Rule_DoNotAssociateAction_
- type Rule_FilterAction
- type Rule_FilterAction_
- type Rule_ForceReturnFacetAction
- func (*Rule_ForceReturnFacetAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_ForceReturnFacetAction) GetFacetPositionAdjustments() []*Rule_ForceReturnFacetAction_FacetPositionAdjustment
- func (*Rule_ForceReturnFacetAction) ProtoMessage()
- func (x *Rule_ForceReturnFacetAction) ProtoReflect() protoreflect.Message
- func (x *Rule_ForceReturnFacetAction) Reset()
- func (x *Rule_ForceReturnFacetAction) String() string
- type Rule_ForceReturnFacetAction_
- type Rule_ForceReturnFacetAction_FacetPositionAdjustment
- func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) GetAttributeName() string
- func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) GetPosition() int32
- func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) ProtoMessage()
- func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) ProtoReflect() protoreflect.Message
- func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) Reset()
- func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) String() string
- type Rule_IgnoreAction
- func (*Rule_IgnoreAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_IgnoreAction) GetIgnoreTerms() []string
- func (*Rule_IgnoreAction) ProtoMessage()
- func (x *Rule_IgnoreAction) ProtoReflect() protoreflect.Message
- func (x *Rule_IgnoreAction) Reset()
- func (x *Rule_IgnoreAction) String() string
- type Rule_IgnoreAction_
- type Rule_OnewaySynonymsAction
- func (*Rule_OnewaySynonymsAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_OnewaySynonymsAction) GetOnewayTerms() []string
- func (x *Rule_OnewaySynonymsAction) GetQueryTerms() []string
- func (x *Rule_OnewaySynonymsAction) GetSynonyms() []string
- func (*Rule_OnewaySynonymsAction) ProtoMessage()
- func (x *Rule_OnewaySynonymsAction) ProtoReflect() protoreflect.Message
- func (x *Rule_OnewaySynonymsAction) Reset()
- func (x *Rule_OnewaySynonymsAction) String() string
- type Rule_OnewaySynonymsAction_
- type Rule_RedirectAction
- func (*Rule_RedirectAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_RedirectAction) GetRedirectUri() string
- func (*Rule_RedirectAction) ProtoMessage()
- func (x *Rule_RedirectAction) ProtoReflect() protoreflect.Message
- func (x *Rule_RedirectAction) Reset()
- func (x *Rule_RedirectAction) String() string
- type Rule_RedirectAction_
- type Rule_RemoveFacetAction
- func (*Rule_RemoveFacetAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_RemoveFacetAction) GetAttributeNames() []string
- func (*Rule_RemoveFacetAction) ProtoMessage()
- func (x *Rule_RemoveFacetAction) ProtoReflect() protoreflect.Message
- func (x *Rule_RemoveFacetAction) Reset()
- func (x *Rule_RemoveFacetAction) String() string
- type Rule_RemoveFacetAction_
- type Rule_ReplacementAction
- func (*Rule_ReplacementAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_ReplacementAction) GetQueryTerms() []string
- func (x *Rule_ReplacementAction) GetReplacementTerm() string
- func (x *Rule_ReplacementAction) GetTerm() string
- func (*Rule_ReplacementAction) ProtoMessage()
- func (x *Rule_ReplacementAction) ProtoReflect() protoreflect.Message
- func (x *Rule_ReplacementAction) Reset()
- func (x *Rule_ReplacementAction) String() string
- type Rule_ReplacementAction_
- type Rule_TwowaySynonymsAction
- func (*Rule_TwowaySynonymsAction) Descriptor() ([]byte, []int)deprecated
- func (x *Rule_TwowaySynonymsAction) GetSynonyms() []string
- func (*Rule_TwowaySynonymsAction) ProtoMessage()
- func (x *Rule_TwowaySynonymsAction) ProtoReflect() protoreflect.Message
- func (x *Rule_TwowaySynonymsAction) Reset()
- func (x *Rule_TwowaySynonymsAction) String() string
- type Rule_TwowaySynonymsAction_
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetBoostSpec() *SearchRequest_BoostSpec
- func (x *SearchRequest) GetBranch() string
- func (x *SearchRequest) GetCanonicalFilter() string
- func (x *SearchRequest) GetConversationalSearchSpec() *SearchRequest_ConversationalSearchSpec
- func (x *SearchRequest) GetDynamicFacetSpec() *SearchRequest_DynamicFacetSpecdeprecated
- func (x *SearchRequest) GetEntity() string
- func (x *SearchRequest) GetFacetSpecs() []*SearchRequest_FacetSpec
- func (x *SearchRequest) GetFilter() string
- func (x *SearchRequest) GetLabels() map[string]string
- func (x *SearchRequest) GetOffset() int32
- func (x *SearchRequest) GetOrderBy() string
- func (x *SearchRequest) GetPageCategories() []string
- func (x *SearchRequest) GetPageSize() int32
- func (x *SearchRequest) GetPageToken() string
- func (x *SearchRequest) GetPersonalizationSpec() *SearchRequest_PersonalizationSpec
- func (x *SearchRequest) GetPlacement() string
- func (x *SearchRequest) GetQuery() string
- func (x *SearchRequest) GetQueryExpansionSpec() *SearchRequest_QueryExpansionSpec
- func (x *SearchRequest) GetSearchMode() SearchRequest_SearchMode
- func (x *SearchRequest) GetSpellCorrectionSpec() *SearchRequest_SpellCorrectionSpec
- func (x *SearchRequest) GetTileNavigationSpec() *SearchRequest_TileNavigationSpec
- func (x *SearchRequest) GetUserInfo() *UserInfo
- func (x *SearchRequest) GetVariantRollupKeys() []string
- func (x *SearchRequest) GetVisitorId() string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchRequest_BoostSpec
- func (*SearchRequest_BoostSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_BoostSpec) GetConditionBoostSpecs() []*SearchRequest_BoostSpec_ConditionBoostSpec
- func (x *SearchRequest_BoostSpec) GetSkipBoostSpecValidation() bool
- func (*SearchRequest_BoostSpec) ProtoMessage()
- func (x *SearchRequest_BoostSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_BoostSpec) Reset()
- func (x *SearchRequest_BoostSpec) String() string
- type SearchRequest_BoostSpec_ConditionBoostSpec
- func (*SearchRequest_BoostSpec_ConditionBoostSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_BoostSpec_ConditionBoostSpec) GetBoost() float32
- func (x *SearchRequest_BoostSpec_ConditionBoostSpec) GetCondition() string
- func (*SearchRequest_BoostSpec_ConditionBoostSpec) ProtoMessage()
- func (x *SearchRequest_BoostSpec_ConditionBoostSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_BoostSpec_ConditionBoostSpec) Reset()
- func (x *SearchRequest_BoostSpec_ConditionBoostSpec) String() string
- type SearchRequest_ConversationalSearchSpec
- func (*SearchRequest_ConversationalSearchSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_ConversationalSearchSpec) GetConversationId() string
- func (x *SearchRequest_ConversationalSearchSpec) GetFollowupConversationRequested() bool
- func (x *SearchRequest_ConversationalSearchSpec) GetUserAnswer() *SearchRequest_ConversationalSearchSpec_UserAnswer
- func (*SearchRequest_ConversationalSearchSpec) ProtoMessage()
- func (x *SearchRequest_ConversationalSearchSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_ConversationalSearchSpec) Reset()
- func (x *SearchRequest_ConversationalSearchSpec) String() string
- type SearchRequest_ConversationalSearchSpec_UserAnswer
- func (*SearchRequest_ConversationalSearchSpec_UserAnswer) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) GetSelectedAnswer() *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) GetTextAnswer() string
- func (m *SearchRequest_ConversationalSearchSpec_UserAnswer) GetType() isSearchRequest_ConversationalSearchSpec_UserAnswer_Type
- func (*SearchRequest_ConversationalSearchSpec_UserAnswer) ProtoMessage()
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) Reset()
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) String() string
- type SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer
- func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) GetProductAttributeValue() *ProductAttributeValue
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) GetProductAttributeValues() []*ProductAttributeValuedeprecated
- func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) ProtoMessage()
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) Reset()
- func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) String() string
- type SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer_
- type SearchRequest_ConversationalSearchSpec_UserAnswer_TextAnswer
- type SearchRequest_DynamicFacetSpec
- func (*SearchRequest_DynamicFacetSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_DynamicFacetSpec) GetMode() SearchRequest_DynamicFacetSpec_Mode
- func (*SearchRequest_DynamicFacetSpec) ProtoMessage()
- func (x *SearchRequest_DynamicFacetSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_DynamicFacetSpec) Reset()
- func (x *SearchRequest_DynamicFacetSpec) String() string
- type SearchRequest_DynamicFacetSpec_Mode
- func (SearchRequest_DynamicFacetSpec_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x SearchRequest_DynamicFacetSpec_Mode) Enum() *SearchRequest_DynamicFacetSpec_Mode
- func (SearchRequest_DynamicFacetSpec_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchRequest_DynamicFacetSpec_Mode) Number() protoreflect.EnumNumber
- func (x SearchRequest_DynamicFacetSpec_Mode) String() string
- func (SearchRequest_DynamicFacetSpec_Mode) Type() protoreflect.EnumType
- type SearchRequest_FacetSpec
- func (*SearchRequest_FacetSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_FacetSpec) GetEnableDynamicPosition() bool
- func (x *SearchRequest_FacetSpec) GetExcludedFilterKeys() []string
- func (x *SearchRequest_FacetSpec) GetFacetKey() *SearchRequest_FacetSpec_FacetKey
- func (x *SearchRequest_FacetSpec) GetLimit() int32
- func (*SearchRequest_FacetSpec) ProtoMessage()
- func (x *SearchRequest_FacetSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_FacetSpec) Reset()
- func (x *SearchRequest_FacetSpec) String() string
- type SearchRequest_FacetSpec_FacetKey
- func (*SearchRequest_FacetSpec_FacetKey) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_FacetSpec_FacetKey) GetCaseInsensitive() bool
- func (x *SearchRequest_FacetSpec_FacetKey) GetContains() []string
- func (x *SearchRequest_FacetSpec_FacetKey) GetIntervals() []*Interval
- func (x *SearchRequest_FacetSpec_FacetKey) GetKey() string
- func (x *SearchRequest_FacetSpec_FacetKey) GetOrderBy() string
- func (x *SearchRequest_FacetSpec_FacetKey) GetPrefixes() []string
- func (x *SearchRequest_FacetSpec_FacetKey) GetQuery() string
- func (x *SearchRequest_FacetSpec_FacetKey) GetRestrictedValues() []string
- func (x *SearchRequest_FacetSpec_FacetKey) GetReturnMinMax() bool
- func (*SearchRequest_FacetSpec_FacetKey) ProtoMessage()
- func (x *SearchRequest_FacetSpec_FacetKey) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_FacetSpec_FacetKey) Reset()
- func (x *SearchRequest_FacetSpec_FacetKey) String() string
- type SearchRequest_PersonalizationSpec
- func (*SearchRequest_PersonalizationSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_PersonalizationSpec) GetMode() SearchRequest_PersonalizationSpec_Mode
- func (*SearchRequest_PersonalizationSpec) ProtoMessage()
- func (x *SearchRequest_PersonalizationSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_PersonalizationSpec) Reset()
- func (x *SearchRequest_PersonalizationSpec) String() string
- type SearchRequest_PersonalizationSpec_Mode
- func (SearchRequest_PersonalizationSpec_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x SearchRequest_PersonalizationSpec_Mode) Enum() *SearchRequest_PersonalizationSpec_Mode
- func (SearchRequest_PersonalizationSpec_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchRequest_PersonalizationSpec_Mode) Number() protoreflect.EnumNumber
- func (x SearchRequest_PersonalizationSpec_Mode) String() string
- func (SearchRequest_PersonalizationSpec_Mode) Type() protoreflect.EnumType
- type SearchRequest_QueryExpansionSpec
- func (*SearchRequest_QueryExpansionSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_QueryExpansionSpec) GetCondition() SearchRequest_QueryExpansionSpec_Condition
- func (x *SearchRequest_QueryExpansionSpec) GetPinUnexpandedResults() bool
- func (*SearchRequest_QueryExpansionSpec) ProtoMessage()
- func (x *SearchRequest_QueryExpansionSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_QueryExpansionSpec) Reset()
- func (x *SearchRequest_QueryExpansionSpec) String() string
- type SearchRequest_QueryExpansionSpec_Condition
- func (SearchRequest_QueryExpansionSpec_Condition) Descriptor() protoreflect.EnumDescriptor
- func (x SearchRequest_QueryExpansionSpec_Condition) Enum() *SearchRequest_QueryExpansionSpec_Condition
- func (SearchRequest_QueryExpansionSpec_Condition) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchRequest_QueryExpansionSpec_Condition) Number() protoreflect.EnumNumber
- func (x SearchRequest_QueryExpansionSpec_Condition) String() string
- func (SearchRequest_QueryExpansionSpec_Condition) Type() protoreflect.EnumType
- type SearchRequest_SearchMode
- func (SearchRequest_SearchMode) Descriptor() protoreflect.EnumDescriptor
- func (x SearchRequest_SearchMode) Enum() *SearchRequest_SearchMode
- func (SearchRequest_SearchMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchRequest_SearchMode) Number() protoreflect.EnumNumber
- func (x SearchRequest_SearchMode) String() string
- func (SearchRequest_SearchMode) Type() protoreflect.EnumType
- type SearchRequest_SpellCorrectionSpec
- func (*SearchRequest_SpellCorrectionSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_SpellCorrectionSpec) GetMode() SearchRequest_SpellCorrectionSpec_Mode
- func (*SearchRequest_SpellCorrectionSpec) ProtoMessage()
- func (x *SearchRequest_SpellCorrectionSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_SpellCorrectionSpec) Reset()
- func (x *SearchRequest_SpellCorrectionSpec) String() string
- type SearchRequest_SpellCorrectionSpec_Mode
- func (SearchRequest_SpellCorrectionSpec_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x SearchRequest_SpellCorrectionSpec_Mode) Enum() *SearchRequest_SpellCorrectionSpec_Mode
- func (SearchRequest_SpellCorrectionSpec_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchRequest_SpellCorrectionSpec_Mode) Number() protoreflect.EnumNumber
- func (x SearchRequest_SpellCorrectionSpec_Mode) String() string
- func (SearchRequest_SpellCorrectionSpec_Mode) Type() protoreflect.EnumType
- type SearchRequest_TileNavigationSpec
- func (*SearchRequest_TileNavigationSpec) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest_TileNavigationSpec) GetAppliedTiles() []*Tile
- func (x *SearchRequest_TileNavigationSpec) GetTileNavigationRequested() bool
- func (*SearchRequest_TileNavigationSpec) ProtoMessage()
- func (x *SearchRequest_TileNavigationSpec) ProtoReflect() protoreflect.Message
- func (x *SearchRequest_TileNavigationSpec) Reset()
- func (x *SearchRequest_TileNavigationSpec) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetAppliedControls() []string
- func (x *SearchResponse) GetAttributionToken() string
- func (x *SearchResponse) GetConversationalSearchResult() *SearchResponse_ConversationalSearchResult
- func (x *SearchResponse) GetCorrectedQuery() string
- func (x *SearchResponse) GetExperimentInfo() []*ExperimentInfo
- func (x *SearchResponse) GetFacets() []*SearchResponse_Facet
- func (x *SearchResponse) GetInvalidConditionBoostSpecs() []*SearchRequest_BoostSpec_ConditionBoostSpec
- func (x *SearchResponse) GetNextPageToken() string
- func (x *SearchResponse) GetQueryExpansionInfo() *SearchResponse_QueryExpansionInfo
- func (x *SearchResponse) GetRedirectUri() string
- func (x *SearchResponse) GetResults() []*SearchResponse_SearchResult
- func (x *SearchResponse) GetTileNavigationResult() *SearchResponse_TileNavigationResult
- func (x *SearchResponse) GetTotalSize() int32
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type SearchResponse_ConversationalSearchResult
- func (*SearchResponse_ConversationalSearchResult) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_ConversationalSearchResult) GetAdditionalFilter() *SearchResponse_ConversationalSearchResult_AdditionalFilter
- func (x *SearchResponse_ConversationalSearchResult) GetAdditionalFilters() []*SearchResponse_ConversationalSearchResult_AdditionalFilterdeprecated
- func (x *SearchResponse_ConversationalSearchResult) GetConversationId() string
- func (x *SearchResponse_ConversationalSearchResult) GetFollowupQuestion() string
- func (x *SearchResponse_ConversationalSearchResult) GetRefinedQuery() string
- func (x *SearchResponse_ConversationalSearchResult) GetSuggestedAnswers() []*SearchResponse_ConversationalSearchResult_SuggestedAnswer
- func (*SearchResponse_ConversationalSearchResult) ProtoMessage()
- func (x *SearchResponse_ConversationalSearchResult) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_ConversationalSearchResult) Reset()
- func (x *SearchResponse_ConversationalSearchResult) String() string
- type SearchResponse_ConversationalSearchResult_AdditionalFilter
- func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) GetProductAttributeValue() *ProductAttributeValue
- func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) ProtoMessage()
- func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) Reset()
- func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) String() string
- type SearchResponse_ConversationalSearchResult_SuggestedAnswer
- func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) GetProductAttributeValue() *ProductAttributeValue
- func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) ProtoMessage()
- func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) Reset()
- func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) String() string
- type SearchResponse_Facet
- func (*SearchResponse_Facet) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_Facet) GetDynamicFacet() bool
- func (x *SearchResponse_Facet) GetKey() string
- func (x *SearchResponse_Facet) GetValues() []*SearchResponse_Facet_FacetValue
- func (*SearchResponse_Facet) ProtoMessage()
- func (x *SearchResponse_Facet) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_Facet) Reset()
- func (x *SearchResponse_Facet) String() string
- type SearchResponse_Facet_FacetValue
- func (*SearchResponse_Facet_FacetValue) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_Facet_FacetValue) GetCount() int64
- func (m *SearchResponse_Facet_FacetValue) GetFacetValue() isSearchResponse_Facet_FacetValue_FacetValue
- func (x *SearchResponse_Facet_FacetValue) GetInterval() *Interval
- func (x *SearchResponse_Facet_FacetValue) GetMaxValue() float64
- func (x *SearchResponse_Facet_FacetValue) GetMinValue() float64
- func (x *SearchResponse_Facet_FacetValue) GetValue() string
- func (*SearchResponse_Facet_FacetValue) ProtoMessage()
- func (x *SearchResponse_Facet_FacetValue) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_Facet_FacetValue) Reset()
- func (x *SearchResponse_Facet_FacetValue) String() string
- type SearchResponse_Facet_FacetValue_Interval
- type SearchResponse_Facet_FacetValue_Value
- type SearchResponse_QueryExpansionInfo
- func (*SearchResponse_QueryExpansionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_QueryExpansionInfo) GetExpandedQuery() bool
- func (x *SearchResponse_QueryExpansionInfo) GetPinnedResultCount() int64
- func (*SearchResponse_QueryExpansionInfo) ProtoMessage()
- func (x *SearchResponse_QueryExpansionInfo) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_QueryExpansionInfo) Reset()
- func (x *SearchResponse_QueryExpansionInfo) String() string
- type SearchResponse_SearchResult
- func (*SearchResponse_SearchResult) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_SearchResult) GetId() string
- func (x *SearchResponse_SearchResult) GetMatchingVariantCount() int32
- func (x *SearchResponse_SearchResult) GetMatchingVariantFields() map[string]*fieldmaskpb.FieldMask
- func (x *SearchResponse_SearchResult) GetPersonalLabels() []string
- func (x *SearchResponse_SearchResult) GetProduct() *Product
- func (x *SearchResponse_SearchResult) GetVariantRollupValues() map[string]*structpb.Value
- func (*SearchResponse_SearchResult) ProtoMessage()
- func (x *SearchResponse_SearchResult) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_SearchResult) Reset()
- func (x *SearchResponse_SearchResult) String() string
- type SearchResponse_TileNavigationResult
- func (*SearchResponse_TileNavigationResult) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse_TileNavigationResult) GetTiles() []*Tile
- func (*SearchResponse_TileNavigationResult) ProtoMessage()
- func (x *SearchResponse_TileNavigationResult) ProtoReflect() protoreflect.Message
- func (x *SearchResponse_TileNavigationResult) Reset()
- func (x *SearchResponse_TileNavigationResult) String() string
- type SearchServiceClient
- type SearchServiceServer
- type SearchSolutionUseCase
- func (SearchSolutionUseCase) Descriptor() protoreflect.EnumDescriptor
- func (x SearchSolutionUseCase) Enum() *SearchSolutionUseCase
- func (SearchSolutionUseCase) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchSolutionUseCase) Number() protoreflect.EnumNumber
- func (x SearchSolutionUseCase) String() string
- func (SearchSolutionUseCase) Type() protoreflect.EnumType
- type ServingConfig
- func (*ServingConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServingConfig) GetBoostControlIds() []string
- func (x *ServingConfig) GetDisplayName() string
- func (x *ServingConfig) GetDiversityLevel() string
- func (x *ServingConfig) GetDiversityType() ServingConfig_DiversityType
- func (x *ServingConfig) GetDoNotAssociateControlIds() []string
- func (x *ServingConfig) GetDynamicFacetSpec() *SearchRequest_DynamicFacetSpec
- func (x *ServingConfig) GetEnableCategoryFilterLevel() string
- func (x *ServingConfig) GetFacetControlIds() []string
- func (x *ServingConfig) GetFilterControlIds() []string
- func (x *ServingConfig) GetIgnoreControlIds() []string
- func (x *ServingConfig) GetIgnoreRecsDenylist() bool
- func (x *ServingConfig) GetModelId() string
- func (x *ServingConfig) GetName() string
- func (x *ServingConfig) GetOnewaySynonymsControlIds() []string
- func (x *ServingConfig) GetPersonalizationSpec() *SearchRequest_PersonalizationSpec
- func (x *ServingConfig) GetPriceRerankingLevel() string
- func (x *ServingConfig) GetRedirectControlIds() []string
- func (x *ServingConfig) GetReplacementControlIds() []string
- func (x *ServingConfig) GetSolutionTypes() []SolutionType
- func (x *ServingConfig) GetTwowaySynonymsControlIds() []string
- func (*ServingConfig) ProtoMessage()
- func (x *ServingConfig) ProtoReflect() protoreflect.Message
- func (x *ServingConfig) Reset()
- func (x *ServingConfig) String() string
- type ServingConfigServiceClient
- type ServingConfigServiceServer
- type ServingConfig_DiversityType
- func (ServingConfig_DiversityType) Descriptor() protoreflect.EnumDescriptor
- func (x ServingConfig_DiversityType) Enum() *ServingConfig_DiversityType
- func (ServingConfig_DiversityType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServingConfig_DiversityType) Number() protoreflect.EnumNumber
- func (x ServingConfig_DiversityType) String() string
- func (ServingConfig_DiversityType) Type() protoreflect.EnumType
- type SetDefaultBranchRequest
- func (*SetDefaultBranchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDefaultBranchRequest) GetBranchId() string
- func (x *SetDefaultBranchRequest) GetCatalog() string
- func (x *SetDefaultBranchRequest) GetForce() bool
- func (x *SetDefaultBranchRequest) GetNote() string
- func (*SetDefaultBranchRequest) ProtoMessage()
- func (x *SetDefaultBranchRequest) ProtoReflect() protoreflect.Message
- func (x *SetDefaultBranchRequest) Reset()
- func (x *SetDefaultBranchRequest) String() string
- type SetInventoryMetadata
- type SetInventoryRequest
- func (*SetInventoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetInventoryRequest) GetAllowMissing() bool
- func (x *SetInventoryRequest) GetInventory() *Product
- func (x *SetInventoryRequest) GetSetMask() *fieldmaskpb.FieldMask
- func (x *SetInventoryRequest) GetSetTime() *timestamppb.Timestamp
- func (*SetInventoryRequest) ProtoMessage()
- func (x *SetInventoryRequest) ProtoReflect() protoreflect.Message
- func (x *SetInventoryRequest) Reset()
- func (x *SetInventoryRequest) String() string
- type SetInventoryResponse
- type SolutionType
- func (SolutionType) Descriptor() protoreflect.EnumDescriptor
- func (x SolutionType) Enum() *SolutionType
- func (SolutionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SolutionType) Number() protoreflect.EnumNumber
- func (x SolutionType) String() string
- func (SolutionType) Type() protoreflect.EnumType
- type Tile
- func (*Tile) Descriptor() ([]byte, []int)deprecated
- func (m *Tile) GetProductAttribute() isTile_ProductAttribute
- func (x *Tile) GetProductAttributeInterval() *ProductAttributeInterval
- func (x *Tile) GetProductAttributeValue() *ProductAttributeValue
- func (x *Tile) GetRepresentativeProductId() string
- func (*Tile) ProtoMessage()
- func (x *Tile) ProtoReflect() protoreflect.Message
- func (x *Tile) Reset()
- func (x *Tile) String() string
- type Tile_ProductAttributeInterval
- type Tile_ProductAttributeValue
- type TuneModelMetadata
- type TuneModelRequest
- type TuneModelResponse
- type UnimplementedAnalyticsServiceServer
- type UnimplementedCatalogServiceServer
- func (*UnimplementedCatalogServiceServer) AddCatalogAttribute(context.Context, *AddCatalogAttributeRequest) (*AttributesConfig, error)
- func (*UnimplementedCatalogServiceServer) BatchRemoveCatalogAttributes(context.Context, *BatchRemoveCatalogAttributesRequest) (*BatchRemoveCatalogAttributesResponse, error)
- func (*UnimplementedCatalogServiceServer) GetAttributesConfig(context.Context, *GetAttributesConfigRequest) (*AttributesConfig, error)
- func (*UnimplementedCatalogServiceServer) GetCompletionConfig(context.Context, *GetCompletionConfigRequest) (*CompletionConfig, error)
- func (*UnimplementedCatalogServiceServer) GetDefaultBranch(context.Context, *GetDefaultBranchRequest) (*GetDefaultBranchResponse, error)
- func (*UnimplementedCatalogServiceServer) ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
- func (*UnimplementedCatalogServiceServer) RemoveCatalogAttribute(context.Context, *RemoveCatalogAttributeRequest) (*AttributesConfig, error)
- func (*UnimplementedCatalogServiceServer) ReplaceCatalogAttribute(context.Context, *ReplaceCatalogAttributeRequest) (*AttributesConfig, error)
- func (*UnimplementedCatalogServiceServer) SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*emptypb.Empty, error)
- func (*UnimplementedCatalogServiceServer) UpdateAttributesConfig(context.Context, *UpdateAttributesConfigRequest) (*AttributesConfig, error)
- func (*UnimplementedCatalogServiceServer) UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error)
- func (*UnimplementedCatalogServiceServer) UpdateCompletionConfig(context.Context, *UpdateCompletionConfigRequest) (*CompletionConfig, error)
- type UnimplementedCompletionServiceServer
- type UnimplementedControlServiceServer
- func (*UnimplementedControlServiceServer) CreateControl(context.Context, *CreateControlRequest) (*Control, error)
- func (*UnimplementedControlServiceServer) DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error)
- func (*UnimplementedControlServiceServer) GetControl(context.Context, *GetControlRequest) (*Control, error)
- func (*UnimplementedControlServiceServer) ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error)
- func (*UnimplementedControlServiceServer) UpdateControl(context.Context, *UpdateControlRequest) (*Control, error)
- type UnimplementedGenerativeQuestionServiceServer
- func (*UnimplementedGenerativeQuestionServiceServer) BatchUpdateGenerativeQuestionConfigs(context.Context, *BatchUpdateGenerativeQuestionConfigsRequest) (*BatchUpdateGenerativeQuestionConfigsResponse, error)
- func (*UnimplementedGenerativeQuestionServiceServer) GetGenerativeQuestionsFeatureConfig(context.Context, *GetGenerativeQuestionsFeatureConfigRequest) (*GenerativeQuestionsFeatureConfig, error)
- func (*UnimplementedGenerativeQuestionServiceServer) ListGenerativeQuestionConfigs(context.Context, *ListGenerativeQuestionConfigsRequest) (*ListGenerativeQuestionConfigsResponse, error)
- func (*UnimplementedGenerativeQuestionServiceServer) UpdateGenerativeQuestionConfig(context.Context, *UpdateGenerativeQuestionConfigRequest) (*GenerativeQuestionConfig, error)
- func (*UnimplementedGenerativeQuestionServiceServer) UpdateGenerativeQuestionsFeatureConfig(context.Context, *UpdateGenerativeQuestionsFeatureConfigRequest) (*GenerativeQuestionsFeatureConfig, error)
- type UnimplementedModelServiceServer
- func (*UnimplementedModelServiceServer) CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedModelServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*emptypb.Empty, error)
- func (*UnimplementedModelServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
- func (*UnimplementedModelServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- func (*UnimplementedModelServiceServer) PauseModel(context.Context, *PauseModelRequest) (*Model, error)
- func (*UnimplementedModelServiceServer) ResumeModel(context.Context, *ResumeModelRequest) (*Model, error)
- func (*UnimplementedModelServiceServer) TuneModel(context.Context, *TuneModelRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedModelServiceServer) UpdateModel(context.Context, *UpdateModelRequest) (*Model, error)
- type UnimplementedPredictionServiceServer
- type UnimplementedProductServiceServer
- func (*UnimplementedProductServiceServer) AddFulfillmentPlaces(context.Context, *AddFulfillmentPlacesRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) AddLocalInventories(context.Context, *AddLocalInventoriesRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) CreateProduct(context.Context, *CreateProductRequest) (*Product, error)
- func (*UnimplementedProductServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error)
- func (*UnimplementedProductServiceServer) ExportProducts(context.Context, *ExportProductsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) GetProduct(context.Context, *GetProductRequest) (*Product, error)
- func (*UnimplementedProductServiceServer) ImportProducts(context.Context, *ImportProductsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error)
- func (*UnimplementedProductServiceServer) PurgeProducts(context.Context, *PurgeProductsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) RemoveFulfillmentPlaces(context.Context, *RemoveFulfillmentPlacesRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) RemoveLocalInventories(context.Context, *RemoveLocalInventoriesRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) SetInventory(context.Context, *SetInventoryRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedProductServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error)
- type UnimplementedProjectServiceServer
- type UnimplementedSearchServiceServer
- type UnimplementedServingConfigServiceServer
- func (*UnimplementedServingConfigServiceServer) AddControl(context.Context, *AddControlRequest) (*ServingConfig, error)
- func (*UnimplementedServingConfigServiceServer) CreateServingConfig(context.Context, *CreateServingConfigRequest) (*ServingConfig, error)
- func (*UnimplementedServingConfigServiceServer) DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*emptypb.Empty, error)
- func (*UnimplementedServingConfigServiceServer) GetServingConfig(context.Context, *GetServingConfigRequest) (*ServingConfig, error)
- func (*UnimplementedServingConfigServiceServer) ListServingConfigs(context.Context, *ListServingConfigsRequest) (*ListServingConfigsResponse, error)
- func (*UnimplementedServingConfigServiceServer) RemoveControl(context.Context, *RemoveControlRequest) (*ServingConfig, error)
- func (*UnimplementedServingConfigServiceServer) UpdateServingConfig(context.Context, *UpdateServingConfigRequest) (*ServingConfig, error)
- type UnimplementedUserEventServiceServer
- func (*UnimplementedUserEventServiceServer) CollectUserEvent(context.Context, *CollectUserEventRequest) (*httpbody.HttpBody, error)
- func (*UnimplementedUserEventServiceServer) ExportUserEvents(context.Context, *ExportUserEventsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedUserEventServiceServer) ImportUserEvents(context.Context, *ImportUserEventsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedUserEventServiceServer) PurgeUserEvents(context.Context, *PurgeUserEventsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedUserEventServiceServer) RejoinUserEvents(context.Context, *RejoinUserEventsRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedUserEventServiceServer) WriteUserEvent(context.Context, *WriteUserEventRequest) (*UserEvent, error)
- type UpdateAlertConfigRequest
- func (*UpdateAlertConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAlertConfigRequest) GetAlertConfig() *AlertConfig
- func (x *UpdateAlertConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateAlertConfigRequest) ProtoMessage()
- func (x *UpdateAlertConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAlertConfigRequest) Reset()
- func (x *UpdateAlertConfigRequest) String() string
- type UpdateAttributesConfigRequest
- func (*UpdateAttributesConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAttributesConfigRequest) GetAttributesConfig() *AttributesConfig
- func (x *UpdateAttributesConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateAttributesConfigRequest) ProtoMessage()
- func (x *UpdateAttributesConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAttributesConfigRequest) Reset()
- func (x *UpdateAttributesConfigRequest) String() string
- type UpdateCatalogRequest
- func (*UpdateCatalogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCatalogRequest) GetCatalog() *Catalog
- func (x *UpdateCatalogRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateCatalogRequest) ProtoMessage()
- func (x *UpdateCatalogRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCatalogRequest) Reset()
- func (x *UpdateCatalogRequest) String() string
- type UpdateCompletionConfigRequest
- func (*UpdateCompletionConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCompletionConfigRequest) GetCompletionConfig() *CompletionConfig
- func (x *UpdateCompletionConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateCompletionConfigRequest) ProtoMessage()
- func (x *UpdateCompletionConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCompletionConfigRequest) Reset()
- func (x *UpdateCompletionConfigRequest) String() string
- type UpdateControlRequest
- func (*UpdateControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateControlRequest) GetControl() *Control
- func (x *UpdateControlRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateControlRequest) ProtoMessage()
- func (x *UpdateControlRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateControlRequest) Reset()
- func (x *UpdateControlRequest) String() string
- type UpdateGenerativeQuestionConfigRequest
- func (*UpdateGenerativeQuestionConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGenerativeQuestionConfigRequest) GetGenerativeQuestionConfig() *GenerativeQuestionConfig
- func (x *UpdateGenerativeQuestionConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateGenerativeQuestionConfigRequest) ProtoMessage()
- func (x *UpdateGenerativeQuestionConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGenerativeQuestionConfigRequest) Reset()
- func (x *UpdateGenerativeQuestionConfigRequest) String() string
- type UpdateGenerativeQuestionsFeatureConfigRequest
- func (*UpdateGenerativeQuestionsFeatureConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGenerativeQuestionsFeatureConfigRequest) GetGenerativeQuestionsFeatureConfig() *GenerativeQuestionsFeatureConfig
- func (x *UpdateGenerativeQuestionsFeatureConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateGenerativeQuestionsFeatureConfigRequest) ProtoMessage()
- func (x *UpdateGenerativeQuestionsFeatureConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGenerativeQuestionsFeatureConfigRequest) Reset()
- func (x *UpdateGenerativeQuestionsFeatureConfigRequest) String() string
- type UpdateModelRequest
- func (*UpdateModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateModelRequest) GetModel() *Model
- func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateModelRequest) ProtoMessage()
- func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateModelRequest) Reset()
- func (x *UpdateModelRequest) String() string
- type UpdateProductRequest
- func (*UpdateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductRequest) GetAllowMissing() bool
- func (x *UpdateProductRequest) GetProduct() *Product
- func (x *UpdateProductRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateProductRequest) ProtoMessage()
- func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductRequest) Reset()
- func (x *UpdateProductRequest) String() string
- type UpdateServingConfigRequest
- func (*UpdateServingConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateServingConfigRequest) GetServingConfig() *ServingConfig
- func (x *UpdateServingConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateServingConfigRequest) ProtoMessage()
- func (x *UpdateServingConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateServingConfigRequest) Reset()
- func (x *UpdateServingConfigRequest) String() string
- type UserEvent
- func (*UserEvent) Descriptor() ([]byte, []int)deprecated
- func (x *UserEvent) GetAttributes() map[string]*CustomAttribute
- func (x *UserEvent) GetAttributionToken() string
- func (x *UserEvent) GetCartId() string
- func (x *UserEvent) GetCompletionDetail() *CompletionDetail
- func (x *UserEvent) GetEntity() string
- func (x *UserEvent) GetEventTime() *timestamppb.Timestamp
- func (x *UserEvent) GetEventType() string
- func (x *UserEvent) GetExperimentIds() []string
- func (x *UserEvent) GetFilter() string
- func (x *UserEvent) GetOffset() int32
- func (x *UserEvent) GetOrderBy() string
- func (x *UserEvent) GetPageCategories() []string
- func (x *UserEvent) GetPageViewId() string
- func (x *UserEvent) GetProductDetails() []*ProductDetail
- func (x *UserEvent) GetPurchaseTransaction() *PurchaseTransaction
- func (x *UserEvent) GetReferrerUri() string
- func (x *UserEvent) GetSearchQuery() string
- func (x *UserEvent) GetSessionId() string
- func (x *UserEvent) GetUri() string
- func (x *UserEvent) GetUserInfo() *UserInfo
- func (x *UserEvent) GetVisitorId() string
- func (*UserEvent) ProtoMessage()
- func (x *UserEvent) ProtoReflect() protoreflect.Message
- func (x *UserEvent) Reset()
- func (x *UserEvent) String() string
- type UserEventImportSummary
- func (*UserEventImportSummary) Descriptor() ([]byte, []int)deprecated
- func (x *UserEventImportSummary) GetJoinedEventsCount() int64
- func (x *UserEventImportSummary) GetUnjoinedEventsCount() int64
- func (*UserEventImportSummary) ProtoMessage()
- func (x *UserEventImportSummary) ProtoReflect() protoreflect.Message
- func (x *UserEventImportSummary) Reset()
- func (x *UserEventImportSummary) String() string
- type UserEventInlineSource
- func (*UserEventInlineSource) Descriptor() ([]byte, []int)deprecated
- func (x *UserEventInlineSource) GetUserEvents() []*UserEvent
- func (*UserEventInlineSource) ProtoMessage()
- func (x *UserEventInlineSource) ProtoReflect() protoreflect.Message
- func (x *UserEventInlineSource) Reset()
- func (x *UserEventInlineSource) String() string
- type UserEventInputConfig
- func (*UserEventInputConfig) Descriptor() ([]byte, []int)deprecated
- func (x *UserEventInputConfig) GetBigQuerySource() *BigQuerySource
- func (x *UserEventInputConfig) GetGcsSource() *GcsSource
- func (m *UserEventInputConfig) GetSource() isUserEventInputConfig_Source
- func (x *UserEventInputConfig) GetUserEventInlineSource() *UserEventInlineSource
- func (*UserEventInputConfig) ProtoMessage()
- func (x *UserEventInputConfig) ProtoReflect() protoreflect.Message
- func (x *UserEventInputConfig) Reset()
- func (x *UserEventInputConfig) String() string
- type UserEventInputConfig_BigQuerySource
- type UserEventInputConfig_GcsSource
- type UserEventInputConfig_UserEventInlineSource
- type UserEventServiceClient
- type UserEventServiceServer
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetDirectUserRequest() bool
- func (x *UserInfo) GetIpAddress() string
- func (x *UserInfo) GetUserAgent() string
- func (x *UserInfo) GetUserId() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type WriteUserEventRequest
- func (*WriteUserEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteUserEventRequest) GetParent() string
- func (x *WriteUserEventRequest) GetUserEvent() *UserEvent
- func (x *WriteUserEventRequest) GetWriteAsync() bool
- func (*WriteUserEventRequest) ProtoMessage()
- func (x *WriteUserEventRequest) ProtoReflect() protoreflect.Message
- func (x *WriteUserEventRequest) Reset()
- func (x *WriteUserEventRequest) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
var File_google_cloud_retail_v2beta_analytics_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_catalog_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_catalog_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_common_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_completion_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_control_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_control_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_export_config_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_generative_question_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_generative_question_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_import_config_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_model_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_model_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_prediction_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_product_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_product_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_project_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_project_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_promotion_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_purge_config_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_search_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_serving_config_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_serving_config_service_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_user_event_proto protoreflect.FileDescriptor
var File_google_cloud_retail_v2beta_user_event_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAnalyticsServiceServer ¶ added in v1.15.0
func RegisterAnalyticsServiceServer(s *grpc.Server, srv AnalyticsServiceServer)
func RegisterCatalogServiceServer ¶
func RegisterCatalogServiceServer(s *grpc.Server, srv CatalogServiceServer)
func RegisterCompletionServiceServer ¶
func RegisterCompletionServiceServer(s *grpc.Server, srv CompletionServiceServer)
func RegisterControlServiceServer ¶
func RegisterControlServiceServer(s *grpc.Server, srv ControlServiceServer)
func RegisterGenerativeQuestionServiceServer ¶ added in v1.19.0
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 ¶ added in v1.19.0
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)
Types ¶
type AddCatalogAttributeRequest ¶
type AddCatalogAttributeRequest struct { // Required. Full AttributesConfig resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"` // Required. The // [CatalogAttribute][google.cloud.retail.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
deprecated
func (*AddCatalogAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddCatalogAttributeRequest.ProtoReflect.Descriptor instead.
func (*AddCatalogAttributeRequest) GetAttributesConfig ¶
func (x *AddCatalogAttributeRequest) GetAttributesConfig() string
func (*AddCatalogAttributeRequest) GetCatalogAttribute ¶
func (x *AddCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute
func (*AddCatalogAttributeRequest) ProtoMessage ¶
func (*AddCatalogAttributeRequest) ProtoMessage()
func (*AddCatalogAttributeRequest) ProtoReflect ¶
func (x *AddCatalogAttributeRequest) ProtoReflect() protoreflect.Message
func (*AddCatalogAttributeRequest) Reset ¶
func (x *AddCatalogAttributeRequest) Reset()
func (*AddCatalogAttributeRequest) String ¶
func (x *AddCatalogAttributeRequest) String() string
type AddControlRequest ¶
type AddControlRequest struct { // Required. The source ServingConfig resource name . Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` ServingConfig string `protobuf:"bytes,1,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"` // Required. The id of the control to apply. Assumed to be in the same catalog // as the serving config - if id is not found a NOT_FOUND error is returned. ControlId string `protobuf:"bytes,2,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"` // contains filtered or unexported fields }
Request for AddControl method.
func (*AddControlRequest) Descriptor
deprecated
func (*AddControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddControlRequest.ProtoReflect.Descriptor instead.
func (*AddControlRequest) GetControlId ¶
func (x *AddControlRequest) GetControlId() string
func (*AddControlRequest) GetServingConfig ¶
func (x *AddControlRequest) GetServingConfig() string
func (*AddControlRequest) ProtoMessage ¶
func (*AddControlRequest) ProtoMessage()
func (*AddControlRequest) ProtoReflect ¶
func (x *AddControlRequest) ProtoReflect() protoreflect.Message
func (*AddControlRequest) Reset ¶
func (x *AddControlRequest) Reset()
func (*AddControlRequest) String ¶
func (x *AddControlRequest) String() string
type AddFulfillmentPlacesMetadata ¶
type AddFulfillmentPlacesMetadata struct {
// contains filtered or unexported fields
}
Metadata related to the progress of the AddFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] method.
func (*AddFulfillmentPlacesMetadata) Descriptor
deprecated
func (*AddFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)
Deprecated: Use AddFulfillmentPlacesMetadata.ProtoReflect.Descriptor instead.
func (*AddFulfillmentPlacesMetadata) ProtoMessage ¶
func (*AddFulfillmentPlacesMetadata) ProtoMessage()
func (*AddFulfillmentPlacesMetadata) ProtoReflect ¶
func (x *AddFulfillmentPlacesMetadata) ProtoReflect() protoreflect.Message
func (*AddFulfillmentPlacesMetadata) Reset ¶
func (x *AddFulfillmentPlacesMetadata) Reset()
func (*AddFulfillmentPlacesMetadata) String ¶
func (x *AddFulfillmentPlacesMetadata) String() string
type 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
deprecated
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
type AddFulfillmentPlacesResponse ¶
type AddFulfillmentPlacesResponse struct {
// contains filtered or unexported fields
}
Response of the AddFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] method.
func (*AddFulfillmentPlacesResponse) Descriptor
deprecated
func (*AddFulfillmentPlacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddFulfillmentPlacesResponse.ProtoReflect.Descriptor instead.
func (*AddFulfillmentPlacesResponse) ProtoMessage ¶
func (*AddFulfillmentPlacesResponse) ProtoMessage()
func (*AddFulfillmentPlacesResponse) ProtoReflect ¶
func (x *AddFulfillmentPlacesResponse) ProtoReflect() protoreflect.Message
func (*AddFulfillmentPlacesResponse) Reset ¶
func (x *AddFulfillmentPlacesResponse) Reset()
func (*AddFulfillmentPlacesResponse) String ¶
func (x *AddFulfillmentPlacesResponse) String() string
type AddLocalInventoriesMetadata ¶
type AddLocalInventoriesMetadata struct {
// contains filtered or unexported fields
}
Metadata related to the progress of the AddLocalInventories operation. Currently empty because there is no meaningful metadata populated from the [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] method.
func (*AddLocalInventoriesMetadata) Descriptor
deprecated
func (*AddLocalInventoriesMetadata) Descriptor() ([]byte, []int)
Deprecated: Use AddLocalInventoriesMetadata.ProtoReflect.Descriptor instead.
func (*AddLocalInventoriesMetadata) ProtoMessage ¶
func (*AddLocalInventoriesMetadata) ProtoMessage()
func (*AddLocalInventoriesMetadata) ProtoReflect ¶
func (x *AddLocalInventoriesMetadata) ProtoReflect() protoreflect.Message
func (*AddLocalInventoriesMetadata) Reset ¶
func (x *AddLocalInventoriesMetadata) Reset()
func (*AddLocalInventoriesMetadata) String ¶
func (x *AddLocalInventoriesMetadata) String() string
type AddLocalInventoriesRequest ¶
type AddLocalInventoriesRequest struct { // Required. Full resource name of // [Product][google.cloud.retail.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
deprecated
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
type 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
deprecated
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
type AlertConfig ¶ added in v1.19.0
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
deprecated
added in
v1.19.0
func (*AlertConfig) Descriptor() ([]byte, []int)
Deprecated: Use AlertConfig.ProtoReflect.Descriptor instead.
func (*AlertConfig) GetAlertPolicies ¶ added in v1.19.0
func (x *AlertConfig) GetAlertPolicies() []*AlertConfig_AlertPolicy
func (*AlertConfig) GetName ¶ added in v1.19.0
func (x *AlertConfig) GetName() string
func (*AlertConfig) ProtoMessage ¶ added in v1.19.0
func (*AlertConfig) ProtoMessage()
func (*AlertConfig) ProtoReflect ¶ added in v1.19.0
func (x *AlertConfig) ProtoReflect() protoreflect.Message
func (*AlertConfig) Reset ¶ added in v1.19.0
func (x *AlertConfig) Reset()
func (*AlertConfig) String ¶ added in v1.19.0
func (x *AlertConfig) String() string
type AlertConfig_AlertPolicy ¶ added in v1.19.0
type AlertConfig_AlertPolicy struct { // The feature that provides alerting capability. // Supported value: // - `search-data-quality` for retail search customers. // - `conv-data-quality` for retail conversation customers. AlertGroup string `protobuf:"bytes,1,opt,name=alert_group,json=alertGroup,proto3" json:"alert_group,omitempty"` // The enrollment status of a customer. EnrollStatus AlertConfig_AlertPolicy_EnrollStatus `` /* 167-byte string literal not displayed */ // Recipients for the alert policy. // One alert policy should not exceed 20 recipients. Recipients []*AlertConfig_AlertPolicy_Recipient `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"` // contains filtered or unexported fields }
Alert policy for a customer.
func (*AlertConfig_AlertPolicy) Descriptor
deprecated
added in
v1.19.0
func (*AlertConfig_AlertPolicy) Descriptor() ([]byte, []int)
Deprecated: Use AlertConfig_AlertPolicy.ProtoReflect.Descriptor instead.
func (*AlertConfig_AlertPolicy) GetAlertGroup ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy) GetAlertGroup() string
func (*AlertConfig_AlertPolicy) GetEnrollStatus ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy) GetEnrollStatus() AlertConfig_AlertPolicy_EnrollStatus
func (*AlertConfig_AlertPolicy) GetRecipients ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy) GetRecipients() []*AlertConfig_AlertPolicy_Recipient
func (*AlertConfig_AlertPolicy) ProtoMessage ¶ added in v1.19.0
func (*AlertConfig_AlertPolicy) ProtoMessage()
func (*AlertConfig_AlertPolicy) ProtoReflect ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy) ProtoReflect() protoreflect.Message
func (*AlertConfig_AlertPolicy) Reset ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy) Reset()
func (*AlertConfig_AlertPolicy) String ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy) String() string
type AlertConfig_AlertPolicy_EnrollStatus ¶ added in v1.19.0
type AlertConfig_AlertPolicy_EnrollStatus int32
The enrollment status enum for alert policy.
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 ¶ added in v1.19.0
func (AlertConfig_AlertPolicy_EnrollStatus) Descriptor() protoreflect.EnumDescriptor
func (AlertConfig_AlertPolicy_EnrollStatus) Enum ¶ added in v1.19.0
func (x AlertConfig_AlertPolicy_EnrollStatus) Enum() *AlertConfig_AlertPolicy_EnrollStatus
func (AlertConfig_AlertPolicy_EnrollStatus) EnumDescriptor
deprecated
added in
v1.19.0
func (AlertConfig_AlertPolicy_EnrollStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use AlertConfig_AlertPolicy_EnrollStatus.Descriptor instead.
func (AlertConfig_AlertPolicy_EnrollStatus) Number ¶ added in v1.19.0
func (x AlertConfig_AlertPolicy_EnrollStatus) Number() protoreflect.EnumNumber
func (AlertConfig_AlertPolicy_EnrollStatus) String ¶ added in v1.19.0
func (x AlertConfig_AlertPolicy_EnrollStatus) String() string
func (AlertConfig_AlertPolicy_EnrollStatus) Type ¶ added in v1.19.0
func (AlertConfig_AlertPolicy_EnrollStatus) Type() protoreflect.EnumType
type AlertConfig_AlertPolicy_Recipient ¶ added in v1.19.0
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
deprecated
added in
v1.19.0
func (*AlertConfig_AlertPolicy_Recipient) Descriptor() ([]byte, []int)
Deprecated: Use AlertConfig_AlertPolicy_Recipient.ProtoReflect.Descriptor instead.
func (*AlertConfig_AlertPolicy_Recipient) GetEmailAddress ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy_Recipient) GetEmailAddress() string
func (*AlertConfig_AlertPolicy_Recipient) ProtoMessage ¶ added in v1.19.0
func (*AlertConfig_AlertPolicy_Recipient) ProtoMessage()
func (*AlertConfig_AlertPolicy_Recipient) ProtoReflect ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy_Recipient) ProtoReflect() protoreflect.Message
func (*AlertConfig_AlertPolicy_Recipient) Reset ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy_Recipient) Reset()
func (*AlertConfig_AlertPolicy_Recipient) String ¶ added in v1.19.0
func (x *AlertConfig_AlertPolicy_Recipient) String() string
type AnalyticsServiceClient ¶ added in v1.15.0
type AnalyticsServiceClient interface { // Exports analytics metrics. // // `Operation.response` is of type `ExportAnalyticsMetricsResponse`. // `Operation.metadata` is of type `ExportMetadata`. ExportAnalyticsMetrics(ctx context.Context, in *ExportAnalyticsMetricsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) }
AnalyticsServiceClient is the client API for AnalyticsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnalyticsServiceClient ¶ added in v1.15.0
func NewAnalyticsServiceClient(cc grpc.ClientConnInterface) AnalyticsServiceClient
type AnalyticsServiceServer ¶ added in v1.15.0
type AnalyticsServiceServer interface { // Exports analytics metrics. // // `Operation.response` is of type `ExportAnalyticsMetricsResponse`. // `Operation.metadata` is of type `ExportMetadata`. ExportAnalyticsMetrics(context.Context, *ExportAnalyticsMetricsRequest) (*longrunningpb.Operation, error) }
AnalyticsServiceServer is the server API for AnalyticsService service.
type AttributeConfigLevel ¶
type AttributeConfigLevel int32
At which level we offer configuration for attributes.
const ( // Value used when unset. In this case, server behavior defaults to // [CATALOG_LEVEL_ATTRIBUTE_CONFIG][google.cloud.retail.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
deprecated
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
type AttributesConfig ¶
type AttributesConfig struct { // Required. Immutable. The fully qualified resource name of the attribute // config. Format: `projects/*/locations/*/catalogs/*/attributesConfig` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Enable attribute(s) config at catalog level. // For example, indexable, dynamic_facetable, or searchable for each // attribute. // // The key is catalog attribute's name. // For example: `color`, `brands`, `attributes.custom_attribute`, such as // `attributes.xyz`. // // The maximum number of catalog attributes allowed in a request is 1000. CatalogAttributes map[string]*CatalogAttribute `` /* 200-byte string literal not displayed */ // Output only. The // [AttributeConfigLevel][google.cloud.retail.v2beta.AttributeConfigLevel] // used for this catalog. AttributeConfigLevel AttributeConfigLevel `` /* 177-byte string literal not displayed */ // contains filtered or unexported fields }
Catalog level attribute config.
func (*AttributesConfig) Descriptor
deprecated
func (*AttributesConfig) Descriptor() ([]byte, []int)
Deprecated: Use AttributesConfig.ProtoReflect.Descriptor instead.
func (*AttributesConfig) GetAttributeConfigLevel ¶
func (x *AttributesConfig) GetAttributeConfigLevel() AttributeConfigLevel
func (*AttributesConfig) GetCatalogAttributes ¶
func (x *AttributesConfig) GetCatalogAttributes() map[string]*CatalogAttribute
func (*AttributesConfig) GetName ¶
func (x *AttributesConfig) GetName() string
func (*AttributesConfig) ProtoMessage ¶
func (*AttributesConfig) ProtoMessage()
func (*AttributesConfig) ProtoReflect ¶
func (x *AttributesConfig) ProtoReflect() protoreflect.Message
func (*AttributesConfig) Reset ¶
func (x *AttributesConfig) Reset()
func (*AttributesConfig) String ¶
func (x *AttributesConfig) String() string
type Audience ¶
type Audience struct { // The genders of the audience. Strongly encouraged to use the standard // values: "male", "female", "unisex". // // At most 5 values are allowed. Each value must be a UTF-8 encoded string // with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error // is returned. // // Google Merchant Center property // [gender](https://support.google.com/merchants/answer/6324479). Schema.org // property // [Product.audience.suggestedGender](https://schema.org/suggestedGender). Genders []string `protobuf:"bytes,1,rep,name=genders,proto3" json:"genders,omitempty"` // The age groups of the audience. Strongly encouraged to use the standard // values: "newborn" (up to 3 months old), "infant" (3–12 months old), // "toddler" (1–5 years old), "kids" (5–13 years old), "adult" (typically // teens or older). // // At most 5 values are allowed. Each value must be a UTF-8 encoded string // with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error // is returned. // // Google Merchant Center property // [age_group](https://support.google.com/merchants/answer/6324463). // Schema.org property // [Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and // [Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge). AgeGroups []string `protobuf:"bytes,2,rep,name=age_groups,json=ageGroups,proto3" json:"age_groups,omitempty"` // contains filtered or unexported fields }
An intended audience of the Product[google.cloud.retail.v2beta.Product] for whom it's sold.
func (*Audience) Descriptor
deprecated
func (*Audience) GetAgeGroups ¶
func (*Audience) GetGenders ¶
func (*Audience) ProtoMessage ¶
func (*Audience) ProtoMessage()
func (*Audience) ProtoReflect ¶
func (x *Audience) ProtoReflect() protoreflect.Message
type 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
deprecated
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
type BatchRemoveCatalogAttributesResponse ¶
type BatchRemoveCatalogAttributesResponse struct { // Catalog attributes that were deleted. Only pre-loaded [catalog // attributes][google.cloud.retail.v2beta.CatalogAttribute] that are // neither [in // use][google.cloud.retail.v2beta.CatalogAttribute.in_use] by // products nor predefined can be deleted. DeletedCatalogAttributes []string `` /* 135-byte string literal not displayed */ // Catalog attributes that were reset. [Catalog // attributes][google.cloud.retail.v2beta.CatalogAttribute] that are either // [in use][google.cloud.retail.v2beta.CatalogAttribute.in_use] by products or // are predefined attributes cannot be deleted; however, their configuration // properties will reset to default values upon removal request. ResetCatalogAttributes []string `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
Response of the [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes].
func (*BatchRemoveCatalogAttributesResponse) Descriptor
deprecated
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
type BatchUpdateGenerativeQuestionConfigsRequest ¶ added in v1.19.0
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
deprecated
added in
v1.19.0
func (*BatchUpdateGenerativeQuestionConfigsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateGenerativeQuestionConfigsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateGenerativeQuestionConfigsRequest) GetParent ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsRequest) GetParent() string
func (*BatchUpdateGenerativeQuestionConfigsRequest) GetRequests ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsRequest) GetRequests() []*UpdateGenerativeQuestionConfigRequest
func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoMessage ¶ added in v1.19.0
func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoMessage()
func (*BatchUpdateGenerativeQuestionConfigsRequest) ProtoReflect ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateGenerativeQuestionConfigsRequest) Reset ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsRequest) Reset()
func (*BatchUpdateGenerativeQuestionConfigsRequest) String ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsRequest) String() string
type BatchUpdateGenerativeQuestionConfigsResponse ¶ added in v1.19.0
type BatchUpdateGenerativeQuestionConfigsResponse struct { // Optional. The updates question configs. GenerativeQuestionConfigs []*GenerativeQuestionConfig `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
Aggregated response for UpdateGenerativeQuestionConfig method.
func (*BatchUpdateGenerativeQuestionConfigsResponse) Descriptor
deprecated
added in
v1.19.0
func (*BatchUpdateGenerativeQuestionConfigsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateGenerativeQuestionConfigsResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs() []*GenerativeQuestionConfig
func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoMessage ¶ added in v1.19.0
func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoMessage()
func (*BatchUpdateGenerativeQuestionConfigsResponse) ProtoReflect ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateGenerativeQuestionConfigsResponse) Reset ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsResponse) Reset()
func (*BatchUpdateGenerativeQuestionConfigsResponse) String ¶ added in v1.19.0
func (x *BatchUpdateGenerativeQuestionConfigsResponse) String() string
type BigQueryOutputResult ¶
type BigQueryOutputResult struct { // The ID of a BigQuery Dataset. DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` // The ID of a BigQuery Table. TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` // contains filtered or unexported fields }
A BigQuery output result.
func (*BigQueryOutputResult) Descriptor
deprecated
func (*BigQueryOutputResult) Descriptor() ([]byte, []int)
Deprecated: Use BigQueryOutputResult.ProtoReflect.Descriptor instead.
func (*BigQueryOutputResult) GetDatasetId ¶
func (x *BigQueryOutputResult) GetDatasetId() string
func (*BigQueryOutputResult) GetTableId ¶
func (x *BigQueryOutputResult) GetTableId() string
func (*BigQueryOutputResult) ProtoMessage ¶
func (*BigQueryOutputResult) ProtoMessage()
func (*BigQueryOutputResult) ProtoReflect ¶
func (x *BigQueryOutputResult) ProtoReflect() protoreflect.Message
func (*BigQueryOutputResult) Reset ¶
func (x *BigQueryOutputResult) Reset()
func (*BigQueryOutputResult) String ¶
func (x *BigQueryOutputResult) String() string
type BigQuerySource ¶
type BigQuerySource struct { // BigQuery table partition info. Leave this empty if the BigQuery table // is not partitioned. // // Types that are assignable to Partition: // // *BigQuerySource_PartitionDate Partition isBigQuerySource_Partition `protobuf_oneof:"partition"` // The project ID (can be project # or ID) that the BigQuery source is in with // a length limit of 128 characters. If not specified, inherits the project // ID from the parent request. ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Required. The BigQuery data set to copy the data from with a length limit // of 1,024 characters. DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` // Required. The BigQuery table to copy the data from with a length limit of // 1,024 characters. TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` // Intermediate Cloud Storage directory used for the import with a length // limit of 2,000 characters. Can be specified if one wants to have the // BigQuery export to a specific Cloud Storage directory. GcsStagingDir string `protobuf:"bytes,3,opt,name=gcs_staging_dir,json=gcsStagingDir,proto3" json:"gcs_staging_dir,omitempty"` // The schema to use when parsing the data from the source. // // Supported values for product imports: // // * `product` (default): One JSON // [Product][google.cloud.retail.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
deprecated
func (*BigQuerySource) Descriptor() ([]byte, []int)
Deprecated: Use BigQuerySource.ProtoReflect.Descriptor instead.
func (*BigQuerySource) GetDataSchema ¶
func (x *BigQuerySource) GetDataSchema() string
func (*BigQuerySource) GetDatasetId ¶
func (x *BigQuerySource) GetDatasetId() string
func (*BigQuerySource) GetGcsStagingDir ¶
func (x *BigQuerySource) GetGcsStagingDir() string
func (*BigQuerySource) GetPartition ¶
func (m *BigQuerySource) GetPartition() isBigQuerySource_Partition
func (*BigQuerySource) GetPartitionDate ¶
func (x *BigQuerySource) GetPartitionDate() *date.Date
func (*BigQuerySource) GetProjectId ¶
func (x *BigQuerySource) GetProjectId() string
func (*BigQuerySource) GetTableId ¶
func (x *BigQuerySource) GetTableId() string
func (*BigQuerySource) ProtoMessage ¶
func (*BigQuerySource) ProtoMessage()
func (*BigQuerySource) ProtoReflect ¶
func (x *BigQuerySource) ProtoReflect() protoreflect.Message
func (*BigQuerySource) Reset ¶
func (x *BigQuerySource) Reset()
func (*BigQuerySource) String ¶
func (x *BigQuerySource) String() string
type BigQuerySource_PartitionDate ¶
type BigQuerySource_PartitionDate struct { // BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. // // Only supported in // [ImportProductsRequest][google.cloud.retail.v2beta.ImportProductsRequest]. PartitionDate *date.Date `protobuf:"bytes,6,opt,name=partition_date,json=partitionDate,proto3,oneof"` }
type Catalog ¶
type Catalog struct { // Required. Immutable. The fully qualified resource name of the catalog. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. Immutable. The catalog display name. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Required. The product level configuration. ProductLevelConfig *ProductLevelConfig `protobuf:"bytes,4,opt,name=product_level_config,json=productLevelConfig,proto3" json:"product_level_config,omitempty"` // The Merchant Center linking configuration. // After a link is added, the data stream from Merchant Center to Cloud Retail // will be enabled automatically. The requester must have access to the // Merchant Center account in order to make changes to this field. MerchantCenterLinkingConfig *MerchantCenterLinkingConfig `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
The catalog configuration.
func (*Catalog) Descriptor
deprecated
func (*Catalog) GetDisplayName ¶
func (*Catalog) GetMerchantCenterLinkingConfig ¶
func (x *Catalog) GetMerchantCenterLinkingConfig() *MerchantCenterLinkingConfig
func (*Catalog) GetProductLevelConfig ¶
func (x *Catalog) GetProductLevelConfig() *ProductLevelConfig
func (*Catalog) ProtoMessage ¶
func (*Catalog) ProtoMessage()
func (*Catalog) ProtoReflect ¶
func (x *Catalog) ProtoReflect() protoreflect.Message
type CatalogAttribute ¶
type CatalogAttribute struct { // Required. Attribute name. // For example: `color`, `brands`, `attributes.custom_attribute`, such as // `attributes.xyz`. // To be indexable, the attribute name can contain only alpha-numeric // characters and underscores. For example, an attribute named // `attributes.abc_xyz` can be indexed, but an attribute named // `attributes.abc-xyz` cannot be indexed. // // If the attribute key starts with `attributes.`, then the attribute is a // custom attribute. Attributes such as `brands`, `patterns`, and `title` are // built-in and called system attributes. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Output only. Indicates whether this attribute has been used by any // products. `True` if at least one // [Product][google.cloud.retail.v2beta.Product] is using this attribute in // [Product.attributes][google.cloud.retail.v2beta.Product.attributes]. // Otherwise, this field is `False`. // // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] can be // pre-loaded by using // [CatalogService.AddCatalogAttribute][google.cloud.retail.v2beta.CatalogService.AddCatalogAttribute], // [CatalogService.ImportCatalogAttributes][], or // [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2beta.CatalogService.UpdateAttributesConfig] // APIs. This field is `False` for pre-loaded // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s. // // Only pre-loaded [catalog // attributes][google.cloud.retail.v2beta.CatalogAttribute] that are neither // in use by products nor predefined can be deleted. [Catalog // attributes][google.cloud.retail.v2beta.CatalogAttribute] that are // either in use by products or are predefined attributes cannot be deleted; // however, their configuration properties will reset to default values upon // removal request. // // After catalog changes, it takes about 10 minutes for this field to update. InUse bool `protobuf:"varint,9,opt,name=in_use,json=inUse,proto3" json:"in_use,omitempty"` // Output only. The type of this attribute. This is derived from the attribute // in [Product.attributes][google.cloud.retail.v2beta.Product.attributes]. Type CatalogAttribute_AttributeType `` /* 126-byte string literal not displayed */ // When // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values // are indexed so that it can be filtered, faceted, or boosted in // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // // Must be specified when // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. IndexableOption CatalogAttribute_IndexableOption `` /* 172-byte string literal not displayed */ // If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic // facet. Could only be DYNAMIC_FACETABLE_DISABLED if // [CatalogAttribute.indexable_option][google.cloud.retail.v2beta.CatalogAttribute.indexable_option] // is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned. // // Must be specified, otherwise throws INVALID_FORMAT error. DynamicFacetableOption CatalogAttribute_DynamicFacetableOption `` /* 202-byte string literal not displayed */ // When // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values // are searchable by text queries in // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // // If SEARCHABLE_ENABLED but attribute type is numerical, attribute values // will not be searchable by text queries in // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as // there are no text values associated to numerical attributes. // // Must be specified, when // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. SearchableOption CatalogAttribute_SearchableOption `` /* 176-byte string literal not displayed */ // When // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if RECOMMENDATIONS_FILTERING_ENABLED, // attribute values are filterable for recommendations. // This option works for categorical features only, // does not work for numerical features, inventory filtering. RecommendationsFilteringOption RecommendationsFilteringOption `` /* 217-byte string literal not displayed */ // If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. // This property only applies to textual custom attributes and requires // indexable set to enabled to enable exact-searchable. If unset, the server // behavior defaults to // [EXACT_SEARCHABLE_DISABLED][google.cloud.retail.v2beta.CatalogAttribute.ExactSearchableOption.EXACT_SEARCHABLE_DISABLED]. ExactSearchableOption CatalogAttribute_ExactSearchableOption `` /* 199-byte string literal not displayed */ // If RETRIEVABLE_ENABLED, attribute values are retrievable in the search // results. If unset, the server behavior defaults to // [RETRIEVABLE_DISABLED][google.cloud.retail.v2beta.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED]. RetrievableOption CatalogAttribute_RetrievableOption `` /* 181-byte string literal not displayed */ // Contains facet options. FacetConfig *CatalogAttribute_FacetConfig `protobuf:"bytes,13,opt,name=facet_config,json=facetConfig,proto3" json:"facet_config,omitempty"` // contains filtered or unexported fields }
Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.
func (*CatalogAttribute) Descriptor
deprecated
func (*CatalogAttribute) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute.ProtoReflect.Descriptor instead.
func (*CatalogAttribute) GetDynamicFacetableOption ¶
func (x *CatalogAttribute) GetDynamicFacetableOption() CatalogAttribute_DynamicFacetableOption
func (*CatalogAttribute) GetExactSearchableOption ¶
func (x *CatalogAttribute) GetExactSearchableOption() CatalogAttribute_ExactSearchableOption
func (*CatalogAttribute) GetFacetConfig ¶ added in v1.17.0
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 ¶ added in v1.12.0
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
type CatalogAttribute_AttributeType ¶
type CatalogAttribute_AttributeType int32
The type of an attribute.
const ( // The type of the attribute is unknown. // // Used when type cannot be derived from attribute that is not // [in_use][google.cloud.retail.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
deprecated
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
type CatalogAttribute_DynamicFacetableOption ¶
type CatalogAttribute_DynamicFacetableOption int32
The status of the dynamic facetable option of a catalog attribute.
const ( // Value used when unset. CatalogAttribute_DYNAMIC_FACETABLE_OPTION_UNSPECIFIED CatalogAttribute_DynamicFacetableOption = 0 // Dynamic facetable option enabled for an attribute. CatalogAttribute_DYNAMIC_FACETABLE_ENABLED CatalogAttribute_DynamicFacetableOption = 1 // Dynamic facetable option disabled for an attribute. CatalogAttribute_DYNAMIC_FACETABLE_DISABLED CatalogAttribute_DynamicFacetableOption = 2 )
func (CatalogAttribute_DynamicFacetableOption) Descriptor ¶
func (CatalogAttribute_DynamicFacetableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_DynamicFacetableOption) EnumDescriptor
deprecated
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
type CatalogAttribute_ExactSearchableOption ¶
type CatalogAttribute_ExactSearchableOption int32
The status of the exact-searchable option of a catalog attribute.
const ( // Value used when unset. CatalogAttribute_EXACT_SEARCHABLE_OPTION_UNSPECIFIED CatalogAttribute_ExactSearchableOption = 0 // Exact searchable option enabled for an attribute. CatalogAttribute_EXACT_SEARCHABLE_ENABLED CatalogAttribute_ExactSearchableOption = 1 // Exact searchable option disabled for an attribute. CatalogAttribute_EXACT_SEARCHABLE_DISABLED CatalogAttribute_ExactSearchableOption = 2 )
func (CatalogAttribute_ExactSearchableOption) Descriptor ¶
func (CatalogAttribute_ExactSearchableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_ExactSearchableOption) EnumDescriptor
deprecated
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
type CatalogAttribute_FacetConfig ¶ added in v1.17.0
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
deprecated
added in
v1.17.0
func (*CatalogAttribute_FacetConfig) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig) GetFacetIntervals ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) GetFacetIntervals() []*Interval
func (*CatalogAttribute_FacetConfig) GetIgnoredFacetValues ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) GetIgnoredFacetValues() []*CatalogAttribute_FacetConfig_IgnoredFacetValues
func (*CatalogAttribute_FacetConfig) GetMergedFacet ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) GetMergedFacet() *CatalogAttribute_FacetConfig_MergedFacet
func (*CatalogAttribute_FacetConfig) GetMergedFacetValues ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) GetMergedFacetValues() []*CatalogAttribute_FacetConfig_MergedFacetValue
func (*CatalogAttribute_FacetConfig) GetRerankConfig ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) GetRerankConfig() *CatalogAttribute_FacetConfig_RerankConfig
func (*CatalogAttribute_FacetConfig) ProtoMessage ¶ added in v1.17.0
func (*CatalogAttribute_FacetConfig) ProtoMessage()
func (*CatalogAttribute_FacetConfig) ProtoReflect ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig) Reset ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) Reset()
func (*CatalogAttribute_FacetConfig) String ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig) String() string
type CatalogAttribute_FacetConfig_IgnoredFacetValues ¶ added in v1.17.0
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
deprecated
added in
v1.17.0
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_IgnoredFacetValues.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) GetEndTime ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetEndTime() *timestamppb.Timestamp
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) GetStartTime ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetStartTime() *timestamppb.Timestamp
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) GetValues ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) GetValues() []string
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoMessage ¶ added in v1.17.0
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoMessage()
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoReflect ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) Reset ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) Reset()
func (*CatalogAttribute_FacetConfig_IgnoredFacetValues) String ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_IgnoredFacetValues) String() string
type CatalogAttribute_FacetConfig_MergedFacet ¶ added in v1.17.0
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
deprecated
added in
v1.17.0
func (*CatalogAttribute_FacetConfig_MergedFacet) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_MergedFacet.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_MergedFacet) GetMergedFacetKey ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacet) GetMergedFacetKey() string
func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoMessage ¶ added in v1.17.0
func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoMessage()
func (*CatalogAttribute_FacetConfig_MergedFacet) ProtoReflect ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacet) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_MergedFacet) Reset ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacet) Reset()
func (*CatalogAttribute_FacetConfig_MergedFacet) String ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacet) String() string
type CatalogAttribute_FacetConfig_MergedFacetValue ¶ added in v1.17.0
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
deprecated
added in
v1.17.0
func (*CatalogAttribute_FacetConfig_MergedFacetValue) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_MergedFacetValue.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_MergedFacetValue) GetMergedValue ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) GetMergedValue() string
func (*CatalogAttribute_FacetConfig_MergedFacetValue) GetValues ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) GetValues() []string
func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoMessage ¶ added in v1.17.0
func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoMessage()
func (*CatalogAttribute_FacetConfig_MergedFacetValue) ProtoReflect ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_MergedFacetValue) Reset ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) Reset()
func (*CatalogAttribute_FacetConfig_MergedFacetValue) String ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_MergedFacetValue) String() string
type CatalogAttribute_FacetConfig_RerankConfig ¶ added in v1.17.0
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
deprecated
added in
v1.17.0
func (*CatalogAttribute_FacetConfig_RerankConfig) Descriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_FacetConfig_RerankConfig.ProtoReflect.Descriptor instead.
func (*CatalogAttribute_FacetConfig_RerankConfig) GetFacetValues ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_RerankConfig) GetFacetValues() []string
func (*CatalogAttribute_FacetConfig_RerankConfig) GetRerankFacet ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_RerankConfig) GetRerankFacet() bool
func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoMessage ¶ added in v1.17.0
func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoMessage()
func (*CatalogAttribute_FacetConfig_RerankConfig) ProtoReflect ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_RerankConfig) ProtoReflect() protoreflect.Message
func (*CatalogAttribute_FacetConfig_RerankConfig) Reset ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_RerankConfig) Reset()
func (*CatalogAttribute_FacetConfig_RerankConfig) String ¶ added in v1.17.0
func (x *CatalogAttribute_FacetConfig_RerankConfig) String() string
type CatalogAttribute_IndexableOption ¶
type CatalogAttribute_IndexableOption int32
The status of the indexable option of a catalog attribute.
const ( // Value used when unset. CatalogAttribute_INDEXABLE_OPTION_UNSPECIFIED CatalogAttribute_IndexableOption = 0 // Indexable option enabled for an attribute. CatalogAttribute_INDEXABLE_ENABLED CatalogAttribute_IndexableOption = 1 // Indexable option disabled for an attribute. CatalogAttribute_INDEXABLE_DISABLED CatalogAttribute_IndexableOption = 2 )
func (CatalogAttribute_IndexableOption) Descriptor ¶
func (CatalogAttribute_IndexableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_IndexableOption) Enum ¶
func (x CatalogAttribute_IndexableOption) Enum() *CatalogAttribute_IndexableOption
func (CatalogAttribute_IndexableOption) EnumDescriptor
deprecated
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
type CatalogAttribute_RetrievableOption ¶ added in v1.12.0
type CatalogAttribute_RetrievableOption int32
The status of the retrievable option of a catalog attribute.
const ( // Value used when unset. CatalogAttribute_RETRIEVABLE_OPTION_UNSPECIFIED CatalogAttribute_RetrievableOption = 0 // Retrievable option enabled for an attribute. CatalogAttribute_RETRIEVABLE_ENABLED CatalogAttribute_RetrievableOption = 1 // Retrievable option disabled for an attribute. CatalogAttribute_RETRIEVABLE_DISABLED CatalogAttribute_RetrievableOption = 2 )
func (CatalogAttribute_RetrievableOption) Descriptor ¶ added in v1.12.0
func (CatalogAttribute_RetrievableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_RetrievableOption) Enum ¶ added in v1.12.0
func (x CatalogAttribute_RetrievableOption) Enum() *CatalogAttribute_RetrievableOption
func (CatalogAttribute_RetrievableOption) EnumDescriptor
deprecated
added in
v1.12.0
func (CatalogAttribute_RetrievableOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogAttribute_RetrievableOption.Descriptor instead.
func (CatalogAttribute_RetrievableOption) Number ¶ added in v1.12.0
func (x CatalogAttribute_RetrievableOption) Number() protoreflect.EnumNumber
func (CatalogAttribute_RetrievableOption) String ¶ added in v1.12.0
func (x CatalogAttribute_RetrievableOption) String() string
func (CatalogAttribute_RetrievableOption) Type ¶ added in v1.12.0
func (CatalogAttribute_RetrievableOption) Type() protoreflect.EnumType
type CatalogAttribute_SearchableOption ¶
type CatalogAttribute_SearchableOption int32
The status of the searchable option of a catalog attribute.
const ( // Value used when unset. CatalogAttribute_SEARCHABLE_OPTION_UNSPECIFIED CatalogAttribute_SearchableOption = 0 // Searchable option enabled for an attribute. CatalogAttribute_SEARCHABLE_ENABLED CatalogAttribute_SearchableOption = 1 // Searchable option disabled for an attribute. CatalogAttribute_SEARCHABLE_DISABLED CatalogAttribute_SearchableOption = 2 )
func (CatalogAttribute_SearchableOption) Descriptor ¶
func (CatalogAttribute_SearchableOption) Descriptor() protoreflect.EnumDescriptor
func (CatalogAttribute_SearchableOption) Enum ¶
func (x CatalogAttribute_SearchableOption) Enum() *CatalogAttribute_SearchableOption
func (CatalogAttribute_SearchableOption) EnumDescriptor
deprecated
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
type 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
type 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.
type CollectUserEventRequest ¶
type CollectUserEventRequest struct { // The rule that can convert the raw_json to a user event. It is needed // only when the raw_json is set. // // Types that are assignable to ConversionRule: // // *CollectUserEventRequest_PrebuiltRule ConversionRule isCollectUserEventRequest_ConversionRule `protobuf_oneof:"conversion_rule"` // Required. The parent catalog name, such as // `projects/1234/locations/global/catalogs/default_catalog`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. URL encoded UserEvent proto with a length limit of 2,000,000 // characters. UserEvent string `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"` // The URL including cgi-parameters but excluding the hash fragment with a // length limit of 5,000 characters. This is often more useful than the // referer URL, because many browsers only send the domain for 3rd party // requests. Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // The event timestamp in milliseconds. This prevents browser caching of // otherwise identical get requests. The name is abbreviated to reduce the // payload bytes. Ets int64 `protobuf:"varint,4,opt,name=ets,proto3" json:"ets,omitempty"` // An arbitrary serialized JSON string that contains necessary information // that can comprise a user event. When this field is specified, the // user_event field will be ignored. Note: line-delimited JSON is not // supported, a single JSON only. RawJson string `protobuf:"bytes,5,opt,name=raw_json,json=rawJson,proto3" json:"raw_json,omitempty"` // contains filtered or unexported fields }
Request message for CollectUserEvent method.
func (*CollectUserEventRequest) Descriptor
deprecated
func (*CollectUserEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CollectUserEventRequest.ProtoReflect.Descriptor instead.
func (*CollectUserEventRequest) GetConversionRule ¶ added in v1.12.0
func (m *CollectUserEventRequest) GetConversionRule() isCollectUserEventRequest_ConversionRule
func (*CollectUserEventRequest) GetEts ¶
func (x *CollectUserEventRequest) GetEts() int64
func (*CollectUserEventRequest) GetParent ¶
func (x *CollectUserEventRequest) GetParent() string
func (*CollectUserEventRequest) GetPrebuiltRule ¶ added in v1.12.0
func (x *CollectUserEventRequest) GetPrebuiltRule() string
func (*CollectUserEventRequest) GetRawJson ¶ added in v1.12.0
func (x *CollectUserEventRequest) GetRawJson() string
func (*CollectUserEventRequest) GetUri ¶
func (x *CollectUserEventRequest) GetUri() string
func (*CollectUserEventRequest) GetUserEvent ¶
func (x *CollectUserEventRequest) GetUserEvent() string
func (*CollectUserEventRequest) ProtoMessage ¶
func (*CollectUserEventRequest) ProtoMessage()
func (*CollectUserEventRequest) ProtoReflect ¶
func (x *CollectUserEventRequest) ProtoReflect() protoreflect.Message
func (*CollectUserEventRequest) Reset ¶
func (x *CollectUserEventRequest) Reset()
func (*CollectUserEventRequest) String ¶
func (x *CollectUserEventRequest) String() string
type CollectUserEventRequest_PrebuiltRule ¶ added in v1.12.0
type CollectUserEventRequest_PrebuiltRule struct { // The prebuilt rule name that can convert a specific type of raw_json. // For example: "ga4_bq" rule for the GA4 user event schema. PrebuiltRule string `protobuf:"bytes,6,opt,name=prebuilt_rule,json=prebuiltRule,proto3,oneof"` }
type ColorInfo ¶
type ColorInfo struct { // The standard color families. Strongly recommended to use the following // standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", // "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and // "Mixed". Normally it is expected to have only 1 color family. May consider // using single "Mixed" instead of multiple values. // // A maximum of 5 values are allowed. Each value must be a UTF-8 encoded // string with a length limit of 128 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Google Merchant Center property // [color](https://support.google.com/merchants/answer/6324487). Schema.org // property [Product.color](https://schema.org/color). ColorFamilies []string `protobuf:"bytes,1,rep,name=color_families,json=colorFamilies,proto3" json:"color_families,omitempty"` // The color display names, which may be different from standard color family // names, such as the color aliases used in the website frontend. Normally // it is expected to have only 1 color. May consider using single "Mixed" // instead of multiple values. // // A maximum of 75 colors are allowed. Each value must be a UTF-8 encoded // string with a length limit of 128 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Google Merchant Center property // [color](https://support.google.com/merchants/answer/6324487). Schema.org // property [Product.color](https://schema.org/color). Colors []string `protobuf:"bytes,2,rep,name=colors,proto3" json:"colors,omitempty"` // contains filtered or unexported fields }
The color information of a Product[google.cloud.retail.v2beta.Product].
func (*ColorInfo) Descriptor
deprecated
func (*ColorInfo) GetColorFamilies ¶
func (*ColorInfo) ProtoMessage ¶
func (*ColorInfo) ProtoMessage()
func (*ColorInfo) ProtoReflect ¶
func (x *ColorInfo) ProtoReflect() protoreflect.Message
type CompleteQueryRequest ¶
type CompleteQueryRequest struct { // Required. Catalog for which the completion is performed. // // Full resource name of catalog, such as // `projects/*/locations/global/catalogs/default_catalog`. Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // Required. The query used to generate suggestions. // // The maximum number of allowed characters is 255. Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // Required field. A unique identifier for tracking visitors. For example, // this could be implemented with an HTTP cookie, which should be able to // uniquely identify a visitor on a single device. This unique identifier // should not change if the visitor logs in or out of the website. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. VisitorId string `protobuf:"bytes,7,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"` // Note that this field applies for `user-data` dataset only. For requests // with `cloud-retail` dataset, setting this field has no effect. // // The language filters applied to the output suggestions. If set, it should // contain the language of the query. If not set, suggestions are returned // without considering language restrictions. This is the BCP-47 language // code, such as "en-US" or "sr-Latn". For more information, see [Tags for // Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum // number of language codes is 3. LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` // The device type context for completion suggestions. We recommend that you // leave this field empty. // // It can apply different suggestions on different device types, e.g. // `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device // types. // // Supported formats: // // * `UNKNOWN_DEVICE_TYPE` // // * `DESKTOP` // // * `MOBILE` // // * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`. DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` // Determines which dataset to use for fetching completion. "user-data" will // use the imported dataset through // [CompletionService.ImportCompletionData][google.cloud.retail.v2beta.CompletionService.ImportCompletionData]. // "cloud-retail" will use the dataset generated by cloud retail based on user // events. If leave empty, it will use the "user-data". // // Current supported values: // // * user-data // // - cloud-retail: // This option requires enabling auto-learning function first. See // [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset). Dataset string `protobuf:"bytes,6,opt,name=dataset,proto3" json:"dataset,omitempty"` // Completion max suggestions. If left unset or set to 0, then will fallback // to the configured value // [CompletionConfig.max_suggestions][google.cloud.retail.v2beta.CompletionConfig.max_suggestions]. // // The maximum allowed max suggestions is 20. If it is set higher, it will be // capped by 20. MaxSuggestions int32 `protobuf:"varint,5,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"` // If true, attribute suggestions are enabled and provided in the response. // // This field is only available for the "cloud-retail" dataset. EnableAttributeSuggestions bool `` /* 142-byte string literal not displayed */ // The entity for customers who run multiple entities, domains, sites, or // regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. // If this is set, it must be an exact match with // [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get // per-entity autocomplete results. Entity string `protobuf:"bytes,10,opt,name=entity,proto3" json:"entity,omitempty"` // contains filtered or unexported fields }
Autocomplete parameters.
func (*CompleteQueryRequest) Descriptor
deprecated
func (*CompleteQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryRequest.ProtoReflect.Descriptor instead.
func (*CompleteQueryRequest) GetCatalog ¶
func (x *CompleteQueryRequest) GetCatalog() string
func (*CompleteQueryRequest) GetDataset ¶
func (x *CompleteQueryRequest) GetDataset() string
func (*CompleteQueryRequest) GetDeviceType ¶
func (x *CompleteQueryRequest) GetDeviceType() string
func (*CompleteQueryRequest) GetEnableAttributeSuggestions ¶ added in v1.17.0
func (x *CompleteQueryRequest) GetEnableAttributeSuggestions() bool
func (*CompleteQueryRequest) GetEntity ¶ added in v1.13.0
func (x *CompleteQueryRequest) GetEntity() string
func (*CompleteQueryRequest) GetLanguageCodes ¶
func (x *CompleteQueryRequest) GetLanguageCodes() []string
func (*CompleteQueryRequest) GetMaxSuggestions ¶
func (x *CompleteQueryRequest) GetMaxSuggestions() int32
func (*CompleteQueryRequest) GetQuery ¶
func (x *CompleteQueryRequest) GetQuery() string
func (*CompleteQueryRequest) GetVisitorId ¶
func (x *CompleteQueryRequest) GetVisitorId() string
func (*CompleteQueryRequest) ProtoMessage ¶
func (*CompleteQueryRequest) ProtoMessage()
func (*CompleteQueryRequest) ProtoReflect ¶
func (x *CompleteQueryRequest) ProtoReflect() protoreflect.Message
func (*CompleteQueryRequest) Reset ¶
func (x *CompleteQueryRequest) Reset()
func (*CompleteQueryRequest) String ¶
func (x *CompleteQueryRequest) String() string
type CompleteQueryResponse ¶
type CompleteQueryResponse struct { // Results of the matching suggestions. The result list is ordered and the // first result is top suggestion. CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"` // A unique complete token. This should be included in the // [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] // for search events resulting from this completion, which enables accurate // attribution of complete model performance. AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` // Deprecated. Matched recent searches of this user. The maximum number of // recent searches is 10. This field is a restricted feature. If you want to // enable it, contact Retail Search support. // // This feature is only available when // [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] // field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is // imported. The recent searches satisfy the follow rules: // // - They are ordered from latest to oldest. // // - They are matched with // [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] // case insensitively. // // - They are transformed to lower case. // // - They are UTF-8 safe. // // Recent searches are deduplicated. More recent searches will be reserved // when duplication happens. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/completion_service.proto. RecentSearchResults []*CompleteQueryResponse_RecentSearchResult `protobuf:"bytes,3,rep,name=recent_search_results,json=recentSearchResults,proto3" json:"recent_search_results,omitempty"` // A map of matched attribute suggestions. This field is only available for // "cloud-retail" dataset. // // Current supported keys: // // * `brands` // // * `categories` AttributeResults map[string]*CompleteQueryResponse_AttributeResult `` /* 197-byte string literal not displayed */ // contains filtered or unexported fields }
Response of the autocomplete query.
func (*CompleteQueryResponse) Descriptor
deprecated
func (*CompleteQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse) GetAttributeResults ¶ added in v1.19.0
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
deprecated
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
type CompleteQueryResponse_AttributeResult ¶ added in v1.19.0
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
deprecated
added in
v1.19.0
func (*CompleteQueryResponse_AttributeResult) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse_AttributeResult.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse_AttributeResult) GetSuggestions ¶ added in v1.19.0
func (x *CompleteQueryResponse_AttributeResult) GetSuggestions() []string
func (*CompleteQueryResponse_AttributeResult) ProtoMessage ¶ added in v1.19.0
func (*CompleteQueryResponse_AttributeResult) ProtoMessage()
func (*CompleteQueryResponse_AttributeResult) ProtoReflect ¶ added in v1.19.0
func (x *CompleteQueryResponse_AttributeResult) ProtoReflect() protoreflect.Message
func (*CompleteQueryResponse_AttributeResult) Reset ¶ added in v1.19.0
func (x *CompleteQueryResponse_AttributeResult) Reset()
func (*CompleteQueryResponse_AttributeResult) String ¶ added in v1.19.0
func (x *CompleteQueryResponse_AttributeResult) String() string
type CompleteQueryResponse_CompletionResult ¶
type CompleteQueryResponse_CompletionResult struct { // The suggestion for the query. Suggestion string `protobuf:"bytes,1,opt,name=suggestion,proto3" json:"suggestion,omitempty"` // Custom attributes for the suggestion term. // // * For "user-data", the attributes are additional custom attributes // ingested through BigQuery. // // * For "cloud-retail", the attributes are product attributes generated // by Cloud Retail. It requires // [UserEvent.product_details][google.cloud.retail.v2beta.UserEvent.product_details] // is imported properly. Attributes map[string]*CustomAttribute `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
Resource that represents completion results.
func (*CompleteQueryResponse_CompletionResult) Descriptor
deprecated
func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int)
Deprecated: Use CompleteQueryResponse_CompletionResult.ProtoReflect.Descriptor instead.
func (*CompleteQueryResponse_CompletionResult) GetAttributes ¶
func (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
type 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 ¶
func (x *CompleteQueryResponse_RecentSearchResult) GetRecentSearch() string
func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage ¶
func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage()
func (*CompleteQueryResponse_RecentSearchResult) ProtoReflect ¶
func (x *CompleteQueryResponse_RecentSearchResult) ProtoReflect() protoreflect.Message
func (*CompleteQueryResponse_RecentSearchResult) Reset ¶
func (x *CompleteQueryResponse_RecentSearchResult) Reset()
func (*CompleteQueryResponse_RecentSearchResult) String ¶
func (x *CompleteQueryResponse_RecentSearchResult) String() string
type CompletionConfig ¶
type CompletionConfig struct { // Required. Immutable. Fully qualified name // `projects/*/locations/*/catalogs/*/completionConfig` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Specifies the matching order for autocomplete suggestions, e.g., a query // consisting of 'sh' with 'out-of-order' specified would suggest "women's // shoes", whereas a query of 'red s' with 'exact-prefix' specified would // suggest "red shoes". Currently supported values: // // * 'out-of-order' // * 'exact-prefix' // // Default value: 'exact-prefix'. MatchingOrder string `protobuf:"bytes,2,opt,name=matching_order,json=matchingOrder,proto3" json:"matching_order,omitempty"` // The maximum number of autocomplete suggestions returned per term. Default // value is 20. If left unset or set to 0, then will fallback to default // value. // // Value range is 1 to 20. MaxSuggestions int32 `protobuf:"varint,3,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"` // The minimum number of characters needed to be typed in order to get // suggestions. Default value is 2. If left unset or set to 0, then will // fallback to default value. // // Value range is 1 to 20. MinPrefixLength int32 `protobuf:"varint,4,opt,name=min_prefix_length,json=minPrefixLength,proto3" json:"min_prefix_length,omitempty"` // If set to true, the auto learning function is enabled. Auto learning uses // user data to generate suggestions using ML techniques. Default value is // false. Only after enabling auto learning can users use `cloud-retail` // data in // [CompleteQueryRequest][google.cloud.retail.v2beta.CompleteQueryRequest]. AutoLearning bool `protobuf:"varint,11,opt,name=auto_learning,json=autoLearning,proto3" json:"auto_learning,omitempty"` // Output only. The source data for the latest import of the autocomplete // suggestion phrases. SuggestionsInputConfig *CompletionDataInputConfig `` /* 129-byte string literal not displayed */ // Output only. Name of the LRO corresponding to the latest suggestion terms // list import. // // Can use [GetOperation][google.longrunning.Operations.GetOperation] API // method to retrieve the latest state of the Long Running Operation. LastSuggestionsImportOperation string `` /* 155-byte string literal not displayed */ // Output only. The source data for the latest import of the autocomplete // denylist phrases. DenylistInputConfig *CompletionDataInputConfig `protobuf:"bytes,7,opt,name=denylist_input_config,json=denylistInputConfig,proto3" json:"denylist_input_config,omitempty"` // Output only. Name of the LRO corresponding to the latest denylist import. // // Can use [GetOperation][google.longrunning.Operations.GetOperation] API to // retrieve the latest state of the Long Running Operation. LastDenylistImportOperation string `` /* 146-byte string literal not displayed */ // Output only. The source data for the latest import of the autocomplete // allowlist phrases. AllowlistInputConfig *CompletionDataInputConfig `protobuf:"bytes,9,opt,name=allowlist_input_config,json=allowlistInputConfig,proto3" json:"allowlist_input_config,omitempty"` // Output only. Name of the LRO corresponding to the latest allowlist import. // // Can use [GetOperation][google.longrunning.Operations.GetOperation] API to // retrieve the latest state of the Long Running Operation. LastAllowlistImportOperation string `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
Catalog level autocomplete config for customers to customize autocomplete feature's settings.
func (*CompletionConfig) Descriptor
deprecated
func (*CompletionConfig) Descriptor() ([]byte, []int)
Deprecated: Use CompletionConfig.ProtoReflect.Descriptor instead.
func (*CompletionConfig) GetAllowlistInputConfig ¶
func (x *CompletionConfig) GetAllowlistInputConfig() *CompletionDataInputConfig
func (*CompletionConfig) GetAutoLearning ¶
func (x *CompletionConfig) GetAutoLearning() bool
func (*CompletionConfig) GetDenylistInputConfig ¶
func (x *CompletionConfig) GetDenylistInputConfig() *CompletionDataInputConfig
func (*CompletionConfig) GetLastAllowlistImportOperation ¶
func (x *CompletionConfig) GetLastAllowlistImportOperation() string
func (*CompletionConfig) GetLastDenylistImportOperation ¶
func (x *CompletionConfig) GetLastDenylistImportOperation() string
func (*CompletionConfig) GetLastSuggestionsImportOperation ¶
func (x *CompletionConfig) GetLastSuggestionsImportOperation() string
func (*CompletionConfig) GetMatchingOrder ¶
func (x *CompletionConfig) GetMatchingOrder() string
func (*CompletionConfig) GetMaxSuggestions ¶
func (x *CompletionConfig) GetMaxSuggestions() int32
func (*CompletionConfig) GetMinPrefixLength ¶
func (x *CompletionConfig) GetMinPrefixLength() int32
func (*CompletionConfig) GetName ¶
func (x *CompletionConfig) GetName() string
func (*CompletionConfig) GetSuggestionsInputConfig ¶
func (x *CompletionConfig) GetSuggestionsInputConfig() *CompletionDataInputConfig
func (*CompletionConfig) ProtoMessage ¶
func (*CompletionConfig) ProtoMessage()
func (*CompletionConfig) ProtoReflect ¶
func (x *CompletionConfig) ProtoReflect() protoreflect.Message
func (*CompletionConfig) Reset ¶
func (x *CompletionConfig) Reset()
func (*CompletionConfig) String ¶
func (x *CompletionConfig) String() string
type CompletionDataInputConfig ¶
type CompletionDataInputConfig struct { // The source of the input. // // Supported // [BigQuerySource.data_schema][google.cloud.retail.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
deprecated
func (*CompletionDataInputConfig) Descriptor() ([]byte, []int)
Deprecated: Use CompletionDataInputConfig.ProtoReflect.Descriptor instead.
func (*CompletionDataInputConfig) GetBigQuerySource ¶
func (x *CompletionDataInputConfig) GetBigQuerySource() *BigQuerySource
func (*CompletionDataInputConfig) GetSource ¶
func (m *CompletionDataInputConfig) GetSource() isCompletionDataInputConfig_Source
func (*CompletionDataInputConfig) ProtoMessage ¶
func (*CompletionDataInputConfig) ProtoMessage()
func (*CompletionDataInputConfig) ProtoReflect ¶
func (x *CompletionDataInputConfig) ProtoReflect() protoreflect.Message
func (*CompletionDataInputConfig) Reset ¶
func (x *CompletionDataInputConfig) Reset()
func (*CompletionDataInputConfig) String ¶
func (x *CompletionDataInputConfig) String() string
type CompletionDataInputConfig_BigQuerySource ¶
type CompletionDataInputConfig_BigQuerySource struct { // Required. BigQuery input source. // // Add the IAM permission "BigQuery Data Viewer" for // cloud-retail-customer-data-access@system.gserviceaccount.com before // using this feature otherwise an error is thrown. BigQuerySource *BigQuerySource `protobuf:"bytes,1,opt,name=big_query_source,json=bigQuerySource,proto3,oneof"` }
type CompletionDetail ¶
type CompletionDetail struct { // Completion attribution token in // [CompleteQueryResponse.attribution_token][google.cloud.retail.v2beta.CompleteQueryResponse.attribution_token]. CompletionAttributionToken string `` /* 141-byte string literal not displayed */ // End user selected // [CompleteQueryResponse.CompletionResult.suggestion][google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.suggestion]. SelectedSuggestion string `protobuf:"bytes,2,opt,name=selected_suggestion,json=selectedSuggestion,proto3" json:"selected_suggestion,omitempty"` // End user selected // [CompleteQueryResponse.CompletionResult.suggestion][google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.suggestion] // position, starting from 0. SelectedPosition int32 `protobuf:"varint,3,opt,name=selected_position,json=selectedPosition,proto3" json:"selected_position,omitempty"` // contains filtered or unexported fields }
Detailed completion information including completion attribution token and clicked completion info.
func (*CompletionDetail) Descriptor
deprecated
func (*CompletionDetail) Descriptor() ([]byte, []int)
Deprecated: Use CompletionDetail.ProtoReflect.Descriptor instead.
func (*CompletionDetail) GetCompletionAttributionToken ¶
func (x *CompletionDetail) GetCompletionAttributionToken() string
func (*CompletionDetail) GetSelectedPosition ¶
func (x *CompletionDetail) GetSelectedPosition() int32
func (*CompletionDetail) GetSelectedSuggestion ¶
func (x *CompletionDetail) GetSelectedSuggestion() string
func (*CompletionDetail) ProtoMessage ¶
func (*CompletionDetail) ProtoMessage()
func (*CompletionDetail) ProtoReflect ¶
func (x *CompletionDetail) ProtoReflect() protoreflect.Message
func (*CompletionDetail) Reset ¶
func (x *CompletionDetail) Reset()
func (*CompletionDetail) String ¶
func (x *CompletionDetail) String() string
type CompletionServiceClient ¶
type CompletionServiceClient interface { // Completes the specified prefix with keyword suggestions. // // This feature is only available for users who have Retail Search enabled. // Enable Retail Search on Cloud Console before using this feature. CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) // Bulk import of processed completion dataset. // // Request processing is asynchronous. Partial updating is not supported. // // The operation is successfully finished only after the imported suggestions // are indexed successfully and ready for serving. The process takes hours. // // This feature is only available for users who have Retail Search enabled. // Enable Retail Search on Cloud Console before using this feature. ImportCompletionData(ctx context.Context, in *ImportCompletionDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) }
CompletionServiceClient is the client API for CompletionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCompletionServiceClient ¶
func NewCompletionServiceClient(cc grpc.ClientConnInterface) CompletionServiceClient
type CompletionServiceServer ¶
type CompletionServiceServer interface { // Completes the specified prefix with keyword suggestions. // // This feature is only available for users who have Retail Search enabled. // Enable Retail Search on Cloud Console before using this feature. CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) // Bulk import of processed completion dataset. // // Request processing is asynchronous. Partial updating is not supported. // // The operation is successfully finished only after the imported suggestions // are indexed successfully and ready for serving. The process takes hours. // // This feature is only available for users who have Retail Search enabled. // Enable Retail Search on Cloud Console before using this feature. ImportCompletionData(context.Context, *ImportCompletionDataRequest) (*longrunningpb.Operation, error) }
CompletionServiceServer is the server API for CompletionService service.
type Condition ¶
type Condition struct { // A list (up to 10 entries) of terms to match the query on. If not // specified, match all queries. // If many query terms are specified, the condition // is matched if any of the terms is a match (i.e. using the OR operator). QueryTerms []*Condition_QueryTerm `protobuf:"bytes,1,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"` // Range of time(s) specifying when Condition is active. // Condition true if any time range matches. ActiveTimeRange []*Condition_TimeRange `protobuf:"bytes,3,rep,name=active_time_range,json=activeTimeRange,proto3" json:"active_time_range,omitempty"` // 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
func (*Condition) GetActiveTimeRange ¶
func (x *Condition) GetActiveTimeRange() []*Condition_TimeRange
func (*Condition) GetPageCategories ¶ added in v1.17.0
func (*Condition) GetQueryTerms ¶
func (x *Condition) GetQueryTerms() []*Condition_QueryTerm
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type Condition_QueryTerm ¶
type Condition_QueryTerm struct { // The value of the term to match on. // Value cannot be empty. // Value can have at most 3 terms if specified as a partial match. Each // space separated string is considered as one term. // For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms // and not allowed for a partial match. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Whether this is supposed to be a full or partial match. FullMatch bool `protobuf:"varint,2,opt,name=full_match,json=fullMatch,proto3" json:"full_match,omitempty"` // contains filtered or unexported fields }
Query terms that we want to match on.
func (*Condition_QueryTerm) Descriptor
deprecated
func (*Condition_QueryTerm) Descriptor() ([]byte, []int)
Deprecated: Use Condition_QueryTerm.ProtoReflect.Descriptor instead.
func (*Condition_QueryTerm) GetFullMatch ¶
func (x *Condition_QueryTerm) GetFullMatch() bool
func (*Condition_QueryTerm) GetValue ¶
func (x *Condition_QueryTerm) GetValue() string
func (*Condition_QueryTerm) ProtoMessage ¶
func (*Condition_QueryTerm) ProtoMessage()
func (*Condition_QueryTerm) ProtoReflect ¶
func (x *Condition_QueryTerm) ProtoReflect() protoreflect.Message
func (*Condition_QueryTerm) Reset ¶
func (x *Condition_QueryTerm) Reset()
func (*Condition_QueryTerm) String ¶
func (x *Condition_QueryTerm) String() string
type Condition_TimeRange ¶
type Condition_TimeRange struct { // Start of time range. Range is inclusive. StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End of time range. Range is inclusive. EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
Used for time-dependent conditions. Example: Want to have rule applied for week long sale.
func (*Condition_TimeRange) Descriptor
deprecated
func (*Condition_TimeRange) Descriptor() ([]byte, []int)
Deprecated: Use Condition_TimeRange.ProtoReflect.Descriptor instead.
func (*Condition_TimeRange) GetEndTime ¶
func (x *Condition_TimeRange) GetEndTime() *timestamppb.Timestamp
func (*Condition_TimeRange) GetStartTime ¶
func (x *Condition_TimeRange) GetStartTime() *timestamppb.Timestamp
func (*Condition_TimeRange) ProtoMessage ¶
func (*Condition_TimeRange) ProtoMessage()
func (*Condition_TimeRange) ProtoReflect ¶
func (x *Condition_TimeRange) ProtoReflect() protoreflect.Message
func (*Condition_TimeRange) Reset ¶
func (x *Condition_TimeRange) Reset()
func (*Condition_TimeRange) String ¶
func (x *Condition_TimeRange) String() string
type Control ¶
type Control struct { // The behavior/type of the control // // A behavior/type must be specified on creation. Type cannot be changed once // specified (e.g. A Rule control will always be a Rule control.). An // INVALID_ARGUMENT will be returned if either condition is violated. // // Types that are assignable to Control: // // *Control_FacetSpec // *Control_Rule Control isControl_Control `protobuf_oneof:"control"` // Immutable. Fully qualified name // `projects/*/locations/global/catalogs/*/controls/*` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The human readable control display name. Used in Retail UI. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is thrown. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. List of [serving // config][google.cloud.retail.v2beta.ServingConfig] ids that are associated // with this control in the same // [Catalog][google.cloud.retail.v2beta.Catalog]. // // Note the association is managed via the // [ServingConfig][google.cloud.retail.v2beta.ServingConfig], this is an // output only denormalized view. AssociatedServingConfigIds []string `` /* 143-byte string literal not displayed */ // Required. Immutable. The solution types that the control is used for. // Currently we support setting only one type of solution at creation time. // // Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. // If no solution type is provided at creation time, will default to // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2beta.SolutionType.SOLUTION_TYPE_SEARCH]. SolutionTypes []SolutionType `` /* 153-byte string literal not displayed */ // Specifies the use case for the control. // Affects what condition fields can be set. // Only settable by search controls. // Will default to // [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH] // if not specified. Currently only allow one search_solution_use_case per // control. SearchSolutionUseCase []SearchSolutionUseCase `` /* 190-byte string literal not displayed */ // contains filtered or unexported fields }
Configures dynamic metadata that can be linked to a ServingConfig[google.cloud.retail.v2beta.ServingConfig] and affect search or recommendation results at serving time.
func (*Control) Descriptor
deprecated
func (*Control) GetAssociatedServingConfigIds ¶
func (*Control) GetControl ¶
func (m *Control) GetControl() isControl_Control
func (*Control) GetDisplayName ¶
func (*Control) GetFacetSpec
deprecated
func (x *Control) GetFacetSpec() *SearchRequest_FacetSpec
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/control.proto.
func (*Control) GetSearchSolutionUseCase ¶
func (x *Control) GetSearchSolutionUseCase() []SearchSolutionUseCase
func (*Control) GetSolutionTypes ¶
func (x *Control) GetSolutionTypes() []SolutionType
func (*Control) ProtoMessage ¶
func (*Control) ProtoMessage()
func (*Control) ProtoReflect ¶
func (x *Control) ProtoReflect() protoreflect.Message
type ControlServiceClient ¶
type ControlServiceClient interface { // Creates a Control. // // If the [Control][google.cloud.retail.v2beta.Control] to create already // exists, an ALREADY_EXISTS error is returned. CreateControl(ctx context.Context, in *CreateControlRequest, opts ...grpc.CallOption) (*Control, error) // Deletes a Control. // // If the [Control][google.cloud.retail.v2beta.Control] to delete does not // exist, a NOT_FOUND error is returned. DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Updates a Control. // // [Control][google.cloud.retail.v2beta.Control] cannot be set to a different // oneof field, if so an INVALID_ARGUMENT is returned. If the // [Control][google.cloud.retail.v2beta.Control] to update does not exist, a // NOT_FOUND error is returned. UpdateControl(ctx context.Context, in *UpdateControlRequest, opts ...grpc.CallOption) (*Control, error) // Gets a Control. GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error) // Lists all Controls by their parent // [Catalog][google.cloud.retail.v2beta.Catalog]. ListControls(ctx context.Context, in *ListControlsRequest, opts ...grpc.CallOption) (*ListControlsResponse, error) }
ControlServiceClient is the client API for ControlService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewControlServiceClient ¶
func NewControlServiceClient(cc grpc.ClientConnInterface) ControlServiceClient
type ControlServiceServer ¶
type ControlServiceServer interface { // Creates a Control. // // If the [Control][google.cloud.retail.v2beta.Control] to create already // exists, an ALREADY_EXISTS error is returned. CreateControl(context.Context, *CreateControlRequest) (*Control, error) // Deletes a Control. // // If the [Control][google.cloud.retail.v2beta.Control] to delete does not // exist, a NOT_FOUND error is returned. DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error) // Updates a Control. // // [Control][google.cloud.retail.v2beta.Control] cannot be set to a different // oneof field, if so an INVALID_ARGUMENT is returned. If the // [Control][google.cloud.retail.v2beta.Control] to update does not exist, a // NOT_FOUND error is returned. UpdateControl(context.Context, *UpdateControlRequest) (*Control, error) // Gets a Control. GetControl(context.Context, *GetControlRequest) (*Control, error) // Lists all Controls by their parent // [Catalog][google.cloud.retail.v2beta.Catalog]. ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error) }
ControlServiceServer is the server API for ControlService service.
type Control_FacetSpec ¶
type Control_FacetSpec struct { // A facet specification to perform faceted search. // // Note that this field is deprecated and will throw NOT_IMPLEMENTED if // used for creating a control. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/control.proto. FacetSpec *SearchRequest_FacetSpec `protobuf:"bytes,3,opt,name=facet_spec,json=facetSpec,proto3,oneof"` }
type Control_Rule ¶
type Control_Rule struct { // A rule control - a condition-action pair. // Enacts a set action when the condition is triggered. // For example: Boost "gShoe" when query full matches "Running Shoes". Rule *Rule `protobuf:"bytes,4,opt,name=rule,proto3,oneof"` }
type CreateControlRequest ¶
type CreateControlRequest struct { // Required. Full resource name of parent catalog. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Control to create. Control *Control `protobuf:"bytes,2,opt,name=control,proto3" json:"control,omitempty"` // Required. The ID to use for the Control, which will become the final // component of the Control's resource name. // // This value should be 4-63 characters, and valid characters // are /[a-z][0-9]-_/. ControlId string `protobuf:"bytes,3,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"` // contains filtered or unexported fields }
Request for CreateControl method.
func (*CreateControlRequest) Descriptor
deprecated
func (*CreateControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateControlRequest.ProtoReflect.Descriptor instead.
func (*CreateControlRequest) GetControl ¶
func (x *CreateControlRequest) GetControl() *Control
func (*CreateControlRequest) GetControlId ¶
func (x *CreateControlRequest) GetControlId() string
func (*CreateControlRequest) GetParent ¶
func (x *CreateControlRequest) GetParent() string
func (*CreateControlRequest) ProtoMessage ¶
func (*CreateControlRequest) ProtoMessage()
func (*CreateControlRequest) ProtoReflect ¶
func (x *CreateControlRequest) ProtoReflect() protoreflect.Message
func (*CreateControlRequest) Reset ¶
func (x *CreateControlRequest) Reset()
func (*CreateControlRequest) String ¶
func (x *CreateControlRequest) String() string
type CreateModelMetadata ¶
type CreateModelMetadata struct { // The resource name of the model that this create applies to. // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
Metadata associated with a create operation.
func (*CreateModelMetadata) Descriptor
deprecated
func (*CreateModelMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CreateModelMetadata.ProtoReflect.Descriptor instead.
func (*CreateModelMetadata) GetModel ¶
func (x *CreateModelMetadata) GetModel() string
func (*CreateModelMetadata) ProtoMessage ¶
func (*CreateModelMetadata) ProtoMessage()
func (*CreateModelMetadata) ProtoReflect ¶
func (x *CreateModelMetadata) ProtoReflect() protoreflect.Message
func (*CreateModelMetadata) Reset ¶
func (x *CreateModelMetadata) Reset()
func (*CreateModelMetadata) String ¶
func (x *CreateModelMetadata) String() string
type CreateModelRequest ¶
type CreateModelRequest struct { // Required. The parent resource under which to create the model. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The payload of the [Model][google.cloud.retail.v2beta.Model] to // create. Model *Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // Optional. Whether to run a dry run to validate the request (without // actually creating the model). DryRun bool `protobuf:"varint,3,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` // contains filtered or unexported fields }
Request for creating a model.
func (*CreateModelRequest) Descriptor
deprecated
func (*CreateModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead.
func (*CreateModelRequest) GetDryRun ¶
func (x *CreateModelRequest) GetDryRun() bool
func (*CreateModelRequest) GetModel ¶
func (x *CreateModelRequest) GetModel() *Model
func (*CreateModelRequest) GetParent ¶
func (x *CreateModelRequest) GetParent() string
func (*CreateModelRequest) ProtoMessage ¶
func (*CreateModelRequest) ProtoMessage()
func (*CreateModelRequest) ProtoReflect ¶
func (x *CreateModelRequest) ProtoReflect() protoreflect.Message
func (*CreateModelRequest) Reset ¶
func (x *CreateModelRequest) Reset()
func (*CreateModelRequest) String ¶
func (x *CreateModelRequest) String() string
type CreateProductRequest ¶
type CreateProductRequest struct { // Required. The parent catalog resource name, such as // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The [Product][google.cloud.retail.v2beta.Product] to create. Product *Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` // Required. The ID to use for the // [Product][google.cloud.retail.v2beta.Product], which will become the final // component of the [Product.name][google.cloud.retail.v2beta.Product.name]. // // If the caller does not have permission to create the // [Product][google.cloud.retail.v2beta.Product], regardless of whether or not // it exists, a PERMISSION_DENIED error is returned. // // This field must be unique among all // [Product][google.cloud.retail.v2beta.Product]s with the same // [parent][google.cloud.retail.v2beta.CreateProductRequest.parent]. // Otherwise, an ALREADY_EXISTS error is returned. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] method.
func (*CreateProductRequest) Descriptor
deprecated
func (*CreateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductRequest.ProtoReflect.Descriptor instead.
func (*CreateProductRequest) GetParent ¶
func (x *CreateProductRequest) GetParent() string
func (*CreateProductRequest) GetProduct ¶
func (x *CreateProductRequest) GetProduct() *Product
func (*CreateProductRequest) GetProductId ¶
func (x *CreateProductRequest) GetProductId() string
func (*CreateProductRequest) ProtoMessage ¶
func (*CreateProductRequest) ProtoMessage()
func (*CreateProductRequest) ProtoReflect ¶
func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
func (*CreateProductRequest) Reset ¶
func (x *CreateProductRequest) Reset()
func (*CreateProductRequest) String ¶
func (x *CreateProductRequest) String() string
type CreateServingConfigRequest ¶
type CreateServingConfigRequest struct { // Required. Full resource name of parent. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The ServingConfig to create. ServingConfig *ServingConfig `protobuf:"bytes,2,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"` // Required. The ID to use for the ServingConfig, which will become the final // component of the ServingConfig's resource name. // // This value should be 4-63 characters, and valid characters // are /[a-z][0-9]-_/. ServingConfigId string `protobuf:"bytes,3,opt,name=serving_config_id,json=servingConfigId,proto3" json:"serving_config_id,omitempty"` // contains filtered or unexported fields }
Request for CreateServingConfig method.
func (*CreateServingConfigRequest) Descriptor
deprecated
func (*CreateServingConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateServingConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateServingConfigRequest) GetParent ¶
func (x *CreateServingConfigRequest) GetParent() string
func (*CreateServingConfigRequest) GetServingConfig ¶
func (x *CreateServingConfigRequest) GetServingConfig() *ServingConfig
func (*CreateServingConfigRequest) GetServingConfigId ¶
func (x *CreateServingConfigRequest) GetServingConfigId() string
func (*CreateServingConfigRequest) ProtoMessage ¶
func (*CreateServingConfigRequest) ProtoMessage()
func (*CreateServingConfigRequest) ProtoReflect ¶
func (x *CreateServingConfigRequest) ProtoReflect() protoreflect.Message
func (*CreateServingConfigRequest) Reset ¶
func (x *CreateServingConfigRequest) Reset()
func (*CreateServingConfigRequest) String ¶
func (x *CreateServingConfigRequest) String() string
type CustomAttribute ¶
type CustomAttribute struct { // The textual values of this custom attribute. For example, `["yellow", // "green"]` when the key is "color". // // Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is // returned. // // Exactly one of [text][google.cloud.retail.v2beta.CustomAttribute.text] or // [numbers][google.cloud.retail.v2beta.CustomAttribute.numbers] should be // set. Otherwise, an INVALID_ARGUMENT error is returned. Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"` // The numerical values of this custom attribute. For example, `[2.3, 15.4]` // when the key is "lengths_cm". // // Exactly one of [text][google.cloud.retail.v2beta.CustomAttribute.text] or // [numbers][google.cloud.retail.v2beta.CustomAttribute.numbers] should be // set. Otherwise, an INVALID_ARGUMENT error is returned. Numbers []float64 `protobuf:"fixed64,2,rep,packed,name=numbers,proto3" json:"numbers,omitempty"` // This field is normally ignored unless // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // of the [Catalog][google.cloud.retail.v2beta.Catalog] is set to the // deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about // product-level attribute configuration, see [Configuration // modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). // If true, custom attribute values are searchable by text queries in // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // // This field is ignored in a // [UserEvent][google.cloud.retail.v2beta.UserEvent]. // // Only set if type [text][google.cloud.retail.v2beta.CustomAttribute.text] is // set. Otherwise, a INVALID_ARGUMENT error is returned. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/common.proto. Searchable *bool `protobuf:"varint,3,opt,name=searchable,proto3,oneof" json:"searchable,omitempty"` // This field is normally ignored unless // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] // of the [Catalog][google.cloud.retail.v2beta.Catalog] is set to the // deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about // product-level attribute configuration, see [Configuration // modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). // If true, custom attribute values are indexed, so that they can be filtered, // faceted or boosted in // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // // This field is ignored in a // [UserEvent][google.cloud.retail.v2beta.UserEvent]. // // See // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter], // [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] // and // [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec] // for more details. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/common.proto. Indexable *bool `protobuf:"varint,4,opt,name=indexable,proto3,oneof" json:"indexable,omitempty"` // contains filtered or unexported fields }
A custom attribute that is not explicitly modeled in Product[google.cloud.retail.v2beta.Product].
func (*CustomAttribute) Descriptor
deprecated
func (*CustomAttribute) Descriptor() ([]byte, []int)
Deprecated: Use CustomAttribute.ProtoReflect.Descriptor instead.
func (*CustomAttribute) GetIndexable
deprecated
func (x *CustomAttribute) GetIndexable() bool
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/common.proto.
func (*CustomAttribute) GetNumbers ¶
func (x *CustomAttribute) GetNumbers() []float64
func (*CustomAttribute) GetSearchable
deprecated
func (x *CustomAttribute) GetSearchable() bool
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/common.proto.
func (*CustomAttribute) GetText ¶
func (x *CustomAttribute) GetText() []string
func (*CustomAttribute) ProtoMessage ¶
func (*CustomAttribute) ProtoMessage()
func (*CustomAttribute) ProtoReflect ¶
func (x *CustomAttribute) ProtoReflect() protoreflect.Message
func (*CustomAttribute) Reset ¶
func (x *CustomAttribute) Reset()
func (*CustomAttribute) String ¶
func (x *CustomAttribute) String() string
type DeleteControlRequest ¶
type DeleteControlRequest struct { // Required. The resource name of the Control to delete. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for DeleteControl method.
func (*DeleteControlRequest) Descriptor
deprecated
func (*DeleteControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteControlRequest.ProtoReflect.Descriptor instead.
func (*DeleteControlRequest) GetName ¶
func (x *DeleteControlRequest) GetName() string
func (*DeleteControlRequest) ProtoMessage ¶
func (*DeleteControlRequest) ProtoMessage()
func (*DeleteControlRequest) ProtoReflect ¶
func (x *DeleteControlRequest) ProtoReflect() protoreflect.Message
func (*DeleteControlRequest) Reset ¶
func (x *DeleteControlRequest) Reset()
func (*DeleteControlRequest) String ¶
func (x *DeleteControlRequest) String() string
type DeleteModelRequest ¶
type DeleteModelRequest struct { // Required. The resource name of the // [Model][google.cloud.retail.v2beta.Model] to delete. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for deleting a model.
func (*DeleteModelRequest) Descriptor
deprecated
func (*DeleteModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.
func (*DeleteModelRequest) GetName ¶
func (x *DeleteModelRequest) GetName() string
func (*DeleteModelRequest) ProtoMessage ¶
func (*DeleteModelRequest) ProtoMessage()
func (*DeleteModelRequest) ProtoReflect ¶
func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message
func (*DeleteModelRequest) Reset ¶
func (x *DeleteModelRequest) Reset()
func (*DeleteModelRequest) String ¶
func (x *DeleteModelRequest) String() string
type DeleteProductRequest ¶
type DeleteProductRequest struct { // Required. Full resource name of // [Product][google.cloud.retail.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 delete the // [Product][google.cloud.retail.v2beta.Product], regardless of whether or not // it exists, a PERMISSION_DENIED error is returned. // // If the [Product][google.cloud.retail.v2beta.Product] to delete does not // exist, a NOT_FOUND error is returned. // // The [Product][google.cloud.retail.v2beta.Product] to delete can neither be // a // [Product.Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION] // [Product][google.cloud.retail.v2beta.Product] member nor a // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product] with more than one // [variants][google.cloud.retail.v2beta.Product.Type.VARIANT]. Otherwise, an // INVALID_ARGUMENT error is returned. // // All inventory information for the named // [Product][google.cloud.retail.v2beta.Product] will be deleted. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.DeleteProduct][google.cloud.retail.v2beta.ProductService.DeleteProduct] method.
func (*DeleteProductRequest) Descriptor
deprecated
func (*DeleteProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductRequest) GetName ¶
func (x *DeleteProductRequest) GetName() string
func (*DeleteProductRequest) ProtoMessage ¶
func (*DeleteProductRequest) ProtoMessage()
func (*DeleteProductRequest) ProtoReflect ¶
func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductRequest) Reset ¶
func (x *DeleteProductRequest) Reset()
func (*DeleteProductRequest) String ¶
func (x *DeleteProductRequest) String() string
type DeleteServingConfigRequest ¶
type DeleteServingConfigRequest struct { // Required. The resource name of the ServingConfig to delete. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for DeleteServingConfig method.
func (*DeleteServingConfigRequest) Descriptor
deprecated
func (*DeleteServingConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServingConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteServingConfigRequest) GetName ¶
func (x *DeleteServingConfigRequest) GetName() string
func (*DeleteServingConfigRequest) ProtoMessage ¶
func (*DeleteServingConfigRequest) ProtoMessage()
func (*DeleteServingConfigRequest) ProtoReflect ¶
func (x *DeleteServingConfigRequest) ProtoReflect() protoreflect.Message
func (*DeleteServingConfigRequest) Reset ¶
func (x *DeleteServingConfigRequest) Reset()
func (*DeleteServingConfigRequest) String ¶
func (x *DeleteServingConfigRequest) String() string
type ExperimentInfo ¶ added in v1.13.0
type ExperimentInfo struct { // Information associated with the specific experiment entity being recorded. // // Types that are assignable to ExperimentMetadata: // // *ExperimentInfo_ServingConfigExperiment_ ExperimentMetadata isExperimentInfo_ExperimentMetadata `protobuf_oneof:"experiment_metadata"` // The fully qualified resource name of the experiment that provides the // serving config under test, should an active experiment exist. For example: // `projects/*/locations/global/catalogs/default_catalog/experiments/experiment_id` Experiment string `protobuf:"bytes,1,opt,name=experiment,proto3" json:"experiment,omitempty"` // contains filtered or unexported fields }
Metadata for active A/B testing [Experiment][].
func (*ExperimentInfo) Descriptor
deprecated
added in
v1.13.0
func (*ExperimentInfo) Descriptor() ([]byte, []int)
Deprecated: Use ExperimentInfo.ProtoReflect.Descriptor instead.
func (*ExperimentInfo) GetExperiment ¶ added in v1.13.0
func (x *ExperimentInfo) GetExperiment() string
func (*ExperimentInfo) GetExperimentMetadata ¶ added in v1.13.0
func (m *ExperimentInfo) GetExperimentMetadata() isExperimentInfo_ExperimentMetadata
func (*ExperimentInfo) GetServingConfigExperiment ¶ added in v1.13.0
func (x *ExperimentInfo) GetServingConfigExperiment() *ExperimentInfo_ServingConfigExperiment
func (*ExperimentInfo) ProtoMessage ¶ added in v1.13.0
func (*ExperimentInfo) ProtoMessage()
func (*ExperimentInfo) ProtoReflect ¶ added in v1.13.0
func (x *ExperimentInfo) ProtoReflect() protoreflect.Message
func (*ExperimentInfo) Reset ¶ added in v1.13.0
func (x *ExperimentInfo) Reset()
func (*ExperimentInfo) String ¶ added in v1.13.0
func (x *ExperimentInfo) String() string
type ExperimentInfo_ServingConfigExperiment ¶ added in v1.13.0
type ExperimentInfo_ServingConfigExperiment struct { // The fully qualified resource name of the original // [SearchRequest.placement][google.cloud.retail.v2beta.SearchRequest.placement] // in the search request prior to reassignment by experiment API. For // example: `projects/*/locations/*/catalogs/*/servingConfigs/*`. OriginalServingConfig string `` /* 126-byte string literal not displayed */ // The fully qualified resource name of the serving config // [Experiment.VariantArm.serving_config_id][] responsible for generating // the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. ExperimentServingConfig string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
Metadata for active serving config A/B tests.
func (*ExperimentInfo_ServingConfigExperiment) Descriptor
deprecated
added in
v1.13.0
func (*ExperimentInfo_ServingConfigExperiment) Descriptor() ([]byte, []int)
Deprecated: Use ExperimentInfo_ServingConfigExperiment.ProtoReflect.Descriptor instead.
func (*ExperimentInfo_ServingConfigExperiment) GetExperimentServingConfig ¶ added in v1.13.0
func (x *ExperimentInfo_ServingConfigExperiment) GetExperimentServingConfig() string
func (*ExperimentInfo_ServingConfigExperiment) GetOriginalServingConfig ¶ added in v1.13.0
func (x *ExperimentInfo_ServingConfigExperiment) GetOriginalServingConfig() string
func (*ExperimentInfo_ServingConfigExperiment) ProtoMessage ¶ added in v1.13.0
func (*ExperimentInfo_ServingConfigExperiment) ProtoMessage()
func (*ExperimentInfo_ServingConfigExperiment) ProtoReflect ¶ added in v1.13.0
func (x *ExperimentInfo_ServingConfigExperiment) ProtoReflect() protoreflect.Message
func (*ExperimentInfo_ServingConfigExperiment) Reset ¶ added in v1.13.0
func (x *ExperimentInfo_ServingConfigExperiment) Reset()
func (*ExperimentInfo_ServingConfigExperiment) String ¶ added in v1.13.0
func (x *ExperimentInfo_ServingConfigExperiment) String() string
type ExperimentInfo_ServingConfigExperiment_ ¶ added in v1.13.0
type ExperimentInfo_ServingConfigExperiment_ struct { // A/B test between existing Cloud Retail Search // [ServingConfig][google.cloud.retail.v2beta.ServingConfig]s. ServingConfigExperiment *ExperimentInfo_ServingConfigExperiment `protobuf:"bytes,2,opt,name=serving_config_experiment,json=servingConfigExperiment,proto3,oneof"` }
type ExportAnalyticsMetricsRequest ¶ added in v1.15.0
type ExportAnalyticsMetricsRequest struct { // Required. Full resource name of the parent catalog. // Expected format: `projects/*/locations/*/catalogs/*` Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // Required. The output location of the data. OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // A filtering expression to specify restrictions on returned metrics. // The expression is a sequence of terms. Each term applies a restriction to // the returned metrics. Use this expression to restrict results to a // specific time range. // // Currently we expect only one types of fields: // // * `timestamp`: This can be specified twice, once with a // less than operator and once with a greater than operator. The // `timestamp` restriction should result in one, contiguous, valid, // `timestamp` range. // // Some examples of valid filters expressions: // // * Example 1: `timestamp > "2012-04-23T18:25:43.511Z" // timestamp < "2012-04-23T18:30:43.511Z"` // * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"` Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Request message for the `ExportAnalyticsMetrics` method.
func (*ExportAnalyticsMetricsRequest) Descriptor
deprecated
added in
v1.15.0
func (*ExportAnalyticsMetricsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportAnalyticsMetricsRequest.ProtoReflect.Descriptor instead.
func (*ExportAnalyticsMetricsRequest) GetCatalog ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsRequest) GetCatalog() string
func (*ExportAnalyticsMetricsRequest) GetFilter ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsRequest) GetFilter() string
func (*ExportAnalyticsMetricsRequest) GetOutputConfig ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsRequest) GetOutputConfig() *OutputConfig
func (*ExportAnalyticsMetricsRequest) ProtoMessage ¶ added in v1.15.0
func (*ExportAnalyticsMetricsRequest) ProtoMessage()
func (*ExportAnalyticsMetricsRequest) ProtoReflect ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsRequest) ProtoReflect() protoreflect.Message
func (*ExportAnalyticsMetricsRequest) Reset ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsRequest) Reset()
func (*ExportAnalyticsMetricsRequest) String ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsRequest) String() string
type ExportAnalyticsMetricsResponse ¶ added in v1.15.0
type ExportAnalyticsMetricsResponse struct { // A sample of errors encountered while processing the request. ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"` // This field is never set. ErrorsConfig *ExportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // Output result indicating where the data were exported to. OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"` // contains filtered or unexported fields }
Response of the ExportAnalyticsMetricsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
func (*ExportAnalyticsMetricsResponse) Descriptor
deprecated
added in
v1.15.0
func (*ExportAnalyticsMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportAnalyticsMetricsResponse.ProtoReflect.Descriptor instead.
func (*ExportAnalyticsMetricsResponse) GetErrorSamples ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsResponse) GetErrorSamples() []*status.Status
func (*ExportAnalyticsMetricsResponse) GetErrorsConfig ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsResponse) GetErrorsConfig() *ExportErrorsConfig
func (*ExportAnalyticsMetricsResponse) GetOutputResult ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsResponse) GetOutputResult() *OutputResult
func (*ExportAnalyticsMetricsResponse) ProtoMessage ¶ added in v1.15.0
func (*ExportAnalyticsMetricsResponse) ProtoMessage()
func (*ExportAnalyticsMetricsResponse) ProtoReflect ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsResponse) ProtoReflect() protoreflect.Message
func (*ExportAnalyticsMetricsResponse) Reset ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsResponse) Reset()
func (*ExportAnalyticsMetricsResponse) String ¶ added in v1.15.0
func (x *ExportAnalyticsMetricsResponse) String() string
type ExportErrorsConfig ¶
type ExportErrorsConfig struct { // Required. Errors destination. // // Types that are assignable to Destination: // // *ExportErrorsConfig_GcsPrefix Destination isExportErrorsConfig_Destination `protobuf_oneof:"destination"` // contains filtered or unexported fields }
Configuration of destination for Export related errors.
func (*ExportErrorsConfig) Descriptor
deprecated
func (*ExportErrorsConfig) Descriptor() ([]byte, []int)
Deprecated: Use ExportErrorsConfig.ProtoReflect.Descriptor instead.
func (*ExportErrorsConfig) GetDestination ¶
func (m *ExportErrorsConfig) GetDestination() isExportErrorsConfig_Destination
func (*ExportErrorsConfig) GetGcsPrefix ¶
func (x *ExportErrorsConfig) GetGcsPrefix() string
func (*ExportErrorsConfig) ProtoMessage ¶
func (*ExportErrorsConfig) ProtoMessage()
func (*ExportErrorsConfig) ProtoReflect ¶
func (x *ExportErrorsConfig) ProtoReflect() protoreflect.Message
func (*ExportErrorsConfig) Reset ¶
func (x *ExportErrorsConfig) Reset()
func (*ExportErrorsConfig) String ¶
func (x *ExportErrorsConfig) String() string
type ExportErrorsConfig_GcsPrefix ¶
type ExportErrorsConfig_GcsPrefix struct { // Google Cloud Storage path for import errors. This must be an empty, // existing Cloud Storage bucket. Export errors will be written to a file in // this bucket, one per line, as a JSON-encoded // `google.rpc.Status` message. GcsPrefix string `protobuf:"bytes,1,opt,name=gcs_prefix,json=gcsPrefix,proto3,oneof"` }
type ExportMetadata ¶
type ExportMetadata struct { // Operation create time. CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Operation last update time. If the operation is done, this is also the // finish time. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
Metadata related to the progress of the Export operation. This is returned by the google.longrunning.Operation.metadata field.
func (*ExportMetadata) Descriptor
deprecated
func (*ExportMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ExportMetadata.ProtoReflect.Descriptor instead.
func (*ExportMetadata) GetCreateTime ¶
func (x *ExportMetadata) GetCreateTime() *timestamppb.Timestamp
func (*ExportMetadata) GetUpdateTime ¶
func (x *ExportMetadata) GetUpdateTime() *timestamppb.Timestamp
func (*ExportMetadata) ProtoMessage ¶
func (*ExportMetadata) ProtoMessage()
func (*ExportMetadata) ProtoReflect ¶
func (x *ExportMetadata) ProtoReflect() protoreflect.Message
func (*ExportMetadata) Reset ¶
func (x *ExportMetadata) Reset()
func (*ExportMetadata) String ¶
func (x *ExportMetadata) String() string
type ExportProductsRequest ¶ added in v1.19.0
type ExportProductsRequest struct { // Required. Resource name of a [Branch][google.cloud.retail.v2beta.Branch], // and `default_branch` for branch_id component is supported. For example // // `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The output location of the data. OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // A filtering expression to specify restrictions on returned events. // The expression is a sequence of terms. Each term applies a restriction to // the returned products. Use this expression to restrict results to a // specific time range, tag, or stock state or to filter products by product // type. // For example, `lastModifiedTime > "2012-04-23T18:25:43.511Z" // lastModifiedTime<"2012-04-23T18:25:43.511Z" productType=primary` // // We expect only four types of fields: // // * `lastModifiedTime`: This can be specified twice, once with a // less than operator and once with a greater than operator. The // `lastModifiedTime` restriction should result in one, contiguous, // valid, last-modified, time range. // // * `productType`: Supported values are `primary` and `variant`. The // Boolean operators `OR` and `NOT` are supported if the expression is // enclosed in parentheses and must be separated from the // `productType` values by a space. // // * `availability`: Supported values are `IN_STOCK`, `OUT_OF_STOCK`, // `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are // supported if the expression is enclosed in parentheses and must be // separated from the `availability` values by a space. // // * `Tag expressions`: Restricts output to products that match all of the // specified tags. Boolean operators `OR` and `NOT` are supported if the // expression is enclosed in parentheses and the operators are separated // from the tag values by a space. Also supported is '`-"tagA"`', which // is equivalent to '`NOT "tagA"`'. Tag values must be double-quoted, // UTF-8 encoded strings and have a size limit of 1,000 characters. // // Some examples of valid filters expressions: // // * Example 1: `lastModifiedTime > "2012-04-23T18:25:43.511Z" // lastModifiedTime < "2012-04-23T18:30:43.511Z"` // * Example 2: `lastModifiedTime > "2012-04-23T18:25:43.511Z" // productType = "variant"` // * Example 3: `tag=("Red" OR "Blue") tag="New-Arrival" // tag=(NOT "promotional") // productType = "primary" lastModifiedTime < // "2018-04-23T18:30:43.511Z"` // * Example 4: `lastModifiedTime > "2012-04-23T18:25:43.511Z"` // * Example 5: `availability = (IN_STOCK OR BACKORDER)` Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Request message for ExportProducts method.
func (*ExportProductsRequest) Descriptor
deprecated
added in
v1.19.0
func (*ExportProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportProductsRequest.ProtoReflect.Descriptor instead.
func (*ExportProductsRequest) GetFilter ¶ added in v1.19.0
func (x *ExportProductsRequest) GetFilter() string
func (*ExportProductsRequest) GetOutputConfig ¶ added in v1.19.0
func (x *ExportProductsRequest) GetOutputConfig() *OutputConfig
func (*ExportProductsRequest) GetParent ¶ added in v1.19.0
func (x *ExportProductsRequest) GetParent() string
func (*ExportProductsRequest) ProtoMessage ¶ added in v1.19.0
func (*ExportProductsRequest) ProtoMessage()
func (*ExportProductsRequest) ProtoReflect ¶ added in v1.19.0
func (x *ExportProductsRequest) ProtoReflect() protoreflect.Message
func (*ExportProductsRequest) Reset ¶ added in v1.19.0
func (x *ExportProductsRequest) Reset()
func (*ExportProductsRequest) String ¶ added in v1.19.0
func (x *ExportProductsRequest) String() string
type ExportProductsResponse ¶
type ExportProductsResponse struct { // A sample of errors encountered while processing the request. ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"` // This field is never set. ErrorsConfig *ExportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // Output result indicating where the data were exported to. OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"` // contains filtered or unexported fields }
Response of the ExportProductsRequest. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
func (*ExportProductsResponse) Descriptor
deprecated
func (*ExportProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportProductsResponse.ProtoReflect.Descriptor instead.
func (*ExportProductsResponse) GetErrorSamples ¶
func (x *ExportProductsResponse) GetErrorSamples() []*status.Status
func (*ExportProductsResponse) GetErrorsConfig ¶
func (x *ExportProductsResponse) GetErrorsConfig() *ExportErrorsConfig
func (*ExportProductsResponse) GetOutputResult ¶
func (x *ExportProductsResponse) GetOutputResult() *OutputResult
func (*ExportProductsResponse) ProtoMessage ¶
func (*ExportProductsResponse) ProtoMessage()
func (*ExportProductsResponse) ProtoReflect ¶
func (x *ExportProductsResponse) ProtoReflect() protoreflect.Message
func (*ExportProductsResponse) Reset ¶
func (x *ExportProductsResponse) Reset()
func (*ExportProductsResponse) String ¶
func (x *ExportProductsResponse) String() string
type ExportUserEventsRequest ¶ added in v1.19.0
type ExportUserEventsRequest struct { // Required. Resource name of a [Catalog][google.cloud.retail.v2beta.Catalog]. // For example `projects/1234/locations/global/catalogs/default_catalog` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The output location of the data. OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // A filtering expression to specify restrictions on returned events. // The expression is a sequence of terms. Each term applies a restriction to // the returned user events. Use this expression to restrict results to a // specific time range or to filter events by eventType. // For example, `eventTime > "2012-04-23T18:25:43.511Z" // eventsMissingCatalogItems eventTime<"2012-04-23T18:25:43.511Z" // eventType=search` // // We expect only three types of fields: // // * `eventTime`: This can be specified twice, once with a // less than operator and once with a greater than operator. The // `eventTime` restriction should result in one, contiguous, valid, // `eventTime` range. // // * `eventType`: Boolean operators `OR` and `NOT` are supported if the // expression is enclosed in parentheses and the operators are separated // from the tag values by a space. // // * `eventsMissingCatalogItems`: This restricts results // to events for which catalog items were not found in the catalog. The // default behavior is to return only those events for which catalog // items were found. // // Some examples of valid filters expressions: // // * Example 1: `eventTime > "2012-04-23T18:25:43.511Z" // eventTime < "2012-04-23T18:30:43.511Z"` // * Example 2: `eventTime > "2012-04-23T18:25:43.511Z" // eventType = detail-page-view` // * Example 3: `eventsMissingCatalogItems // eventType = (NOT search) eventTime < // "2018-04-23T18:30:43.511Z"` // * Example 4: `eventTime > "2012-04-23T18:25:43.511Z"` // * Example 5: `eventType = (detail-page-view OR search)` // * Example 6: `eventsMissingCatalogItems` Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Request message for the `ExportUserEvents` method.
func (*ExportUserEventsRequest) Descriptor
deprecated
added in
v1.19.0
func (*ExportUserEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportUserEventsRequest.ProtoReflect.Descriptor instead.
func (*ExportUserEventsRequest) GetFilter ¶ added in v1.19.0
func (x *ExportUserEventsRequest) GetFilter() string
func (*ExportUserEventsRequest) GetOutputConfig ¶ added in v1.19.0
func (x *ExportUserEventsRequest) GetOutputConfig() *OutputConfig
func (*ExportUserEventsRequest) GetParent ¶ added in v1.19.0
func (x *ExportUserEventsRequest) GetParent() string
func (*ExportUserEventsRequest) ProtoMessage ¶ added in v1.19.0
func (*ExportUserEventsRequest) ProtoMessage()
func (*ExportUserEventsRequest) ProtoReflect ¶ added in v1.19.0
func (x *ExportUserEventsRequest) ProtoReflect() protoreflect.Message
func (*ExportUserEventsRequest) Reset ¶ added in v1.19.0
func (x *ExportUserEventsRequest) Reset()
func (*ExportUserEventsRequest) String ¶ added in v1.19.0
func (x *ExportUserEventsRequest) String() string
type ExportUserEventsResponse ¶
type ExportUserEventsResponse struct { // A sample of errors encountered while processing the request. ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"` // This field is never set. ErrorsConfig *ExportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // Output result indicating where the data were exported to. OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"` // contains filtered or unexported fields }
Response of the ExportUserEventsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
func (*ExportUserEventsResponse) Descriptor
deprecated
func (*ExportUserEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportUserEventsResponse.ProtoReflect.Descriptor instead.
func (*ExportUserEventsResponse) GetErrorSamples ¶
func (x *ExportUserEventsResponse) GetErrorSamples() []*status.Status
func (*ExportUserEventsResponse) GetErrorsConfig ¶
func (x *ExportUserEventsResponse) GetErrorsConfig() *ExportErrorsConfig
func (*ExportUserEventsResponse) GetOutputResult ¶
func (x *ExportUserEventsResponse) GetOutputResult() *OutputResult
func (*ExportUserEventsResponse) ProtoMessage ¶
func (*ExportUserEventsResponse) ProtoMessage()
func (*ExportUserEventsResponse) ProtoReflect ¶
func (x *ExportUserEventsResponse) ProtoReflect() protoreflect.Message
func (*ExportUserEventsResponse) Reset ¶
func (x *ExportUserEventsResponse) Reset()
func (*ExportUserEventsResponse) String ¶
func (x *ExportUserEventsResponse) String() string
type FulfillmentInfo ¶
type FulfillmentInfo struct { // The fulfillment type, including commonly used types (such as pickup in // store and same day delivery), and custom types. Customers have to map // custom types to their display names before rendering UI. // // Supported values: // // * "pickup-in-store" // * "ship-to-store" // * "same-day-delivery" // * "next-day-delivery" // * "custom-type-1" // * "custom-type-2" // * "custom-type-3" // * "custom-type-4" // * "custom-type-5" // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The IDs for this [type][google.cloud.retail.v2beta.FulfillmentInfo.type], // such as the store IDs for // [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2beta.FulfillmentInfo.type] // or the region IDs for // [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2beta.FulfillmentInfo.type]. // // A maximum of 3000 values are allowed. Each value must be a string with a // length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such // as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is // returned. PlaceIds []string `protobuf:"bytes,2,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"` // contains filtered or unexported fields }
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.
func (*FulfillmentInfo) Descriptor
deprecated
func (*FulfillmentInfo) Descriptor() ([]byte, []int)
Deprecated: Use FulfillmentInfo.ProtoReflect.Descriptor instead.
func (*FulfillmentInfo) GetPlaceIds ¶
func (x *FulfillmentInfo) GetPlaceIds() []string
func (*FulfillmentInfo) GetType ¶
func (x *FulfillmentInfo) GetType() string
func (*FulfillmentInfo) ProtoMessage ¶
func (*FulfillmentInfo) ProtoMessage()
func (*FulfillmentInfo) ProtoReflect ¶
func (x *FulfillmentInfo) ProtoReflect() protoreflect.Message
func (*FulfillmentInfo) Reset ¶
func (x *FulfillmentInfo) Reset()
func (*FulfillmentInfo) String ¶
func (x *FulfillmentInfo) String() string
type GcsOutputResult ¶ added in v1.12.0
type GcsOutputResult struct { // The uri of Gcs output OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"` // contains filtered or unexported fields }
A Gcs output result.
func (*GcsOutputResult) Descriptor
deprecated
added in
v1.12.0
func (*GcsOutputResult) Descriptor() ([]byte, []int)
Deprecated: Use GcsOutputResult.ProtoReflect.Descriptor instead.
func (*GcsOutputResult) GetOutputUri ¶ added in v1.12.0
func (x *GcsOutputResult) GetOutputUri() string
func (*GcsOutputResult) ProtoMessage ¶ added in v1.12.0
func (*GcsOutputResult) ProtoMessage()
func (*GcsOutputResult) ProtoReflect ¶ added in v1.12.0
func (x *GcsOutputResult) ProtoReflect() protoreflect.Message
func (*GcsOutputResult) Reset ¶ added in v1.12.0
func (x *GcsOutputResult) Reset()
func (*GcsOutputResult) String ¶ added in v1.12.0
func (x *GcsOutputResult) String() string
type GcsSource ¶
type GcsSource struct { // Required. Google Cloud Storage URIs to input files. URI can be up to // 2000 characters long. URIs can match the full object path (for example, // `gs://bucket/directory/object.json`) or a pattern matching one or more // files, such as `gs://bucket/directory/*.json`. A request can // contain at most 100 files, and each file can be up to 2 GB. See // [Importing product // information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) // for the expected file format and setup instructions. InputUris []string `protobuf:"bytes,1,rep,name=input_uris,json=inputUris,proto3" json:"input_uris,omitempty"` // The schema to use when parsing the data from the source. // // Supported values for product imports: // // * `product` (default): One JSON // [Product][google.cloud.retail.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`: Using // https://support.google.com/analytics/answer/3437719. // // Supported values for control imports: // // * `control` (default): One JSON // [Control][google.cloud.retail.v2beta.Control] per line. // // Supported values for catalog attribute imports: // // * `catalog_attribute` (default): One CSV // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] per line. DataSchema string `protobuf:"bytes,2,opt,name=data_schema,json=dataSchema,proto3" json:"data_schema,omitempty"` // contains filtered or unexported fields }
Google Cloud Storage location for input content.
func (*GcsSource) Descriptor
deprecated
func (*GcsSource) GetDataSchema ¶
func (*GcsSource) GetInputUris ¶
func (*GcsSource) ProtoMessage ¶
func (*GcsSource) ProtoMessage()
func (*GcsSource) ProtoReflect ¶
func (x *GcsSource) ProtoReflect() protoreflect.Message
type GenerativeQuestionConfig ¶ added in v1.19.0
type GenerativeQuestionConfig struct { // Required. Resource name of the catalog. // Format: projects/{project}/locations/{location}/catalogs/{catalog} Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // Required. The facet to which the question is associated. Facet string `protobuf:"bytes,2,opt,name=facet,proto3" json:"facet,omitempty"` // Output only. The LLM generated question. GeneratedQuestion string `protobuf:"bytes,3,opt,name=generated_question,json=generatedQuestion,proto3" json:"generated_question,omitempty"` // Optional. The question that will be used at serving time. // Question can have a max length of 300 bytes. // When not populated, generated_question should be used. FinalQuestion string `protobuf:"bytes,4,opt,name=final_question,json=finalQuestion,proto3" json:"final_question,omitempty"` // Output only. Values that can be used to answer the question. ExampleValues []string `protobuf:"bytes,5,rep,name=example_values,json=exampleValues,proto3" json:"example_values,omitempty"` // Output only. The ratio of how often a question was asked. Frequency float32 `protobuf:"fixed32,6,opt,name=frequency,proto3" json:"frequency,omitempty"` // Optional. Whether the question is asked at serving time. AllowedInConversation bool `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for a single generated question.
func (*GenerativeQuestionConfig) Descriptor
deprecated
added in
v1.19.0
func (*GenerativeQuestionConfig) Descriptor() ([]byte, []int)
Deprecated: Use GenerativeQuestionConfig.ProtoReflect.Descriptor instead.
func (*GenerativeQuestionConfig) GetAllowedInConversation ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetAllowedInConversation() bool
func (*GenerativeQuestionConfig) GetCatalog ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetCatalog() string
func (*GenerativeQuestionConfig) GetExampleValues ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetExampleValues() []string
func (*GenerativeQuestionConfig) GetFacet ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetFacet() string
func (*GenerativeQuestionConfig) GetFinalQuestion ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetFinalQuestion() string
func (*GenerativeQuestionConfig) GetFrequency ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetFrequency() float32
func (*GenerativeQuestionConfig) GetGeneratedQuestion ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) GetGeneratedQuestion() string
func (*GenerativeQuestionConfig) ProtoMessage ¶ added in v1.19.0
func (*GenerativeQuestionConfig) ProtoMessage()
func (*GenerativeQuestionConfig) ProtoReflect ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) ProtoReflect() protoreflect.Message
func (*GenerativeQuestionConfig) Reset ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) Reset()
func (*GenerativeQuestionConfig) String ¶ added in v1.19.0
func (x *GenerativeQuestionConfig) String() string
type GenerativeQuestionServiceClient ¶ added in v1.19.0
type GenerativeQuestionServiceClient interface { // Manages overal generative question feature state -- enables toggling // feature on and off. UpdateGenerativeQuestionsFeatureConfig(ctx context.Context, in *UpdateGenerativeQuestionsFeatureConfigRequest, opts ...grpc.CallOption) (*GenerativeQuestionsFeatureConfig, error) // Manages overal generative question feature state -- enables toggling // feature on and off. GetGenerativeQuestionsFeatureConfig(ctx context.Context, in *GetGenerativeQuestionsFeatureConfigRequest, opts ...grpc.CallOption) (*GenerativeQuestionsFeatureConfig, error) // Returns all questions for a given catalog. ListGenerativeQuestionConfigs(ctx context.Context, in *ListGenerativeQuestionConfigsRequest, opts ...grpc.CallOption) (*ListGenerativeQuestionConfigsResponse, error) // Allows management of individual questions. UpdateGenerativeQuestionConfig(ctx context.Context, in *UpdateGenerativeQuestionConfigRequest, opts ...grpc.CallOption) (*GenerativeQuestionConfig, error) // Allows management of multiple questions. BatchUpdateGenerativeQuestionConfigs(ctx context.Context, in *BatchUpdateGenerativeQuestionConfigsRequest, opts ...grpc.CallOption) (*BatchUpdateGenerativeQuestionConfigsResponse, error) }
GenerativeQuestionServiceClient is the client API for GenerativeQuestionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGenerativeQuestionServiceClient ¶ added in v1.19.0
func NewGenerativeQuestionServiceClient(cc grpc.ClientConnInterface) GenerativeQuestionServiceClient
type GenerativeQuestionServiceServer ¶ added in v1.19.0
type GenerativeQuestionServiceServer interface { // Manages overal generative question feature state -- enables toggling // feature on and off. UpdateGenerativeQuestionsFeatureConfig(context.Context, *UpdateGenerativeQuestionsFeatureConfigRequest) (*GenerativeQuestionsFeatureConfig, error) // Manages overal generative question feature state -- enables toggling // feature on and off. GetGenerativeQuestionsFeatureConfig(context.Context, *GetGenerativeQuestionsFeatureConfigRequest) (*GenerativeQuestionsFeatureConfig, error) // Returns all questions for a given catalog. ListGenerativeQuestionConfigs(context.Context, *ListGenerativeQuestionConfigsRequest) (*ListGenerativeQuestionConfigsResponse, error) // Allows management of individual questions. UpdateGenerativeQuestionConfig(context.Context, *UpdateGenerativeQuestionConfigRequest) (*GenerativeQuestionConfig, error) // Allows management of multiple questions. BatchUpdateGenerativeQuestionConfigs(context.Context, *BatchUpdateGenerativeQuestionConfigsRequest) (*BatchUpdateGenerativeQuestionConfigsResponse, error) }
GenerativeQuestionServiceServer is the server API for GenerativeQuestionService service.
type GenerativeQuestionsFeatureConfig ¶ added in v1.19.0
type GenerativeQuestionsFeatureConfig struct { // Required. Resource name of the affected catalog. // Format: projects/{project}/locations/{location}/catalogs/{catalog} Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // Optional. Determines whether questions will be used at serving time. // Note: This feature cannot be enabled until initial data requirements are // satisfied. FeatureEnabled bool `protobuf:"varint,2,opt,name=feature_enabled,json=featureEnabled,proto3" json:"feature_enabled,omitempty"` // Optional. Minimum number of products in the response to trigger follow-up // questions. Value must be 0 or positive. MinimumProducts int32 `protobuf:"varint,3,opt,name=minimum_products,json=minimumProducts,proto3" json:"minimum_products,omitempty"` // contains filtered or unexported fields }
Configuration for overall generative question feature state.
func (*GenerativeQuestionsFeatureConfig) Descriptor
deprecated
added in
v1.19.0
func (*GenerativeQuestionsFeatureConfig) Descriptor() ([]byte, []int)
Deprecated: Use GenerativeQuestionsFeatureConfig.ProtoReflect.Descriptor instead.
func (*GenerativeQuestionsFeatureConfig) GetCatalog ¶ added in v1.19.0
func (x *GenerativeQuestionsFeatureConfig) GetCatalog() string
func (*GenerativeQuestionsFeatureConfig) GetFeatureEnabled ¶ added in v1.19.0
func (x *GenerativeQuestionsFeatureConfig) GetFeatureEnabled() bool
func (*GenerativeQuestionsFeatureConfig) GetMinimumProducts ¶ added in v1.19.0
func (x *GenerativeQuestionsFeatureConfig) GetMinimumProducts() int32
func (*GenerativeQuestionsFeatureConfig) ProtoMessage ¶ added in v1.19.0
func (*GenerativeQuestionsFeatureConfig) ProtoMessage()
func (*GenerativeQuestionsFeatureConfig) ProtoReflect ¶ added in v1.19.0
func (x *GenerativeQuestionsFeatureConfig) ProtoReflect() protoreflect.Message
func (*GenerativeQuestionsFeatureConfig) Reset ¶ added in v1.19.0
func (x *GenerativeQuestionsFeatureConfig) Reset()
func (*GenerativeQuestionsFeatureConfig) String ¶ added in v1.19.0
func (x *GenerativeQuestionsFeatureConfig) String() string
type GetAlertConfigRequest ¶ added in v1.19.0
type GetAlertConfigRequest struct { // Required. Full AlertConfig resource name. Format: // projects/{project_number}/alertConfig Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for [ProjectService.GetAlertConfig][google.cloud.retail.v2beta.ProjectService.GetAlertConfig] method.
func (*GetAlertConfigRequest) Descriptor
deprecated
added in
v1.19.0
func (*GetAlertConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAlertConfigRequest.ProtoReflect.Descriptor instead.
func (*GetAlertConfigRequest) GetName ¶ added in v1.19.0
func (x *GetAlertConfigRequest) GetName() string
func (*GetAlertConfigRequest) ProtoMessage ¶ added in v1.19.0
func (*GetAlertConfigRequest) ProtoMessage()
func (*GetAlertConfigRequest) ProtoReflect ¶ added in v1.19.0
func (x *GetAlertConfigRequest) ProtoReflect() protoreflect.Message
func (*GetAlertConfigRequest) Reset ¶ added in v1.19.0
func (x *GetAlertConfigRequest) Reset()
func (*GetAlertConfigRequest) String ¶ added in v1.19.0
func (x *GetAlertConfigRequest) String() string
type GetAttributesConfigRequest ¶
type GetAttributesConfigRequest struct { // Required. Full AttributesConfig resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.GetAttributesConfig][google.cloud.retail.v2beta.CatalogService.GetAttributesConfig] method.
func (*GetAttributesConfigRequest) Descriptor
deprecated
func (*GetAttributesConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAttributesConfigRequest.ProtoReflect.Descriptor instead.
func (*GetAttributesConfigRequest) GetName ¶
func (x *GetAttributesConfigRequest) GetName() string
func (*GetAttributesConfigRequest) ProtoMessage ¶
func (*GetAttributesConfigRequest) ProtoMessage()
func (*GetAttributesConfigRequest) ProtoReflect ¶
func (x *GetAttributesConfigRequest) ProtoReflect() protoreflect.Message
func (*GetAttributesConfigRequest) Reset ¶
func (x *GetAttributesConfigRequest) Reset()
func (*GetAttributesConfigRequest) String ¶
func (x *GetAttributesConfigRequest) String() string
type GetCompletionConfigRequest ¶
type GetCompletionConfigRequest struct { // Required. Full CompletionConfig resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.GetCompletionConfig][google.cloud.retail.v2beta.CatalogService.GetCompletionConfig] method.
func (*GetCompletionConfigRequest) Descriptor
deprecated
func (*GetCompletionConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCompletionConfigRequest.ProtoReflect.Descriptor instead.
func (*GetCompletionConfigRequest) GetName ¶
func (x *GetCompletionConfigRequest) GetName() string
func (*GetCompletionConfigRequest) ProtoMessage ¶
func (*GetCompletionConfigRequest) ProtoMessage()
func (*GetCompletionConfigRequest) ProtoReflect ¶
func (x *GetCompletionConfigRequest) ProtoReflect() protoreflect.Message
func (*GetCompletionConfigRequest) Reset ¶
func (x *GetCompletionConfigRequest) Reset()
func (*GetCompletionConfigRequest) String ¶
func (x *GetCompletionConfigRequest) String() string
type GetControlRequest ¶
type GetControlRequest struct { // Required. The resource name of the Control to get. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for GetControl method.
func (*GetControlRequest) Descriptor
deprecated
func (*GetControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetControlRequest.ProtoReflect.Descriptor instead.
func (*GetControlRequest) GetName ¶
func (x *GetControlRequest) GetName() string
func (*GetControlRequest) ProtoMessage ¶
func (*GetControlRequest) ProtoMessage()
func (*GetControlRequest) ProtoReflect ¶
func (x *GetControlRequest) ProtoReflect() protoreflect.Message
func (*GetControlRequest) Reset ¶
func (x *GetControlRequest) Reset()
func (*GetControlRequest) String ¶
func (x *GetControlRequest) String() string
type GetDefaultBranchRequest ¶
type GetDefaultBranchRequest struct { // The parent catalog resource name, such as // `projects/*/locations/global/catalogs/default_catalog`. Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // contains filtered or unexported fields }
Request message to show which branch is currently the default branch.
func (*GetDefaultBranchRequest) Descriptor
deprecated
func (*GetDefaultBranchRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDefaultBranchRequest.ProtoReflect.Descriptor instead.
func (*GetDefaultBranchRequest) GetCatalog ¶
func (x *GetDefaultBranchRequest) GetCatalog() string
func (*GetDefaultBranchRequest) ProtoMessage ¶
func (*GetDefaultBranchRequest) ProtoMessage()
func (*GetDefaultBranchRequest) ProtoReflect ¶
func (x *GetDefaultBranchRequest) ProtoReflect() protoreflect.Message
func (*GetDefaultBranchRequest) Reset ¶
func (x *GetDefaultBranchRequest) Reset()
func (*GetDefaultBranchRequest) String ¶
func (x *GetDefaultBranchRequest) String() string
type GetDefaultBranchResponse ¶
type GetDefaultBranchResponse struct { // Full resource name of the branch id currently set as default branch. Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` // The time when this branch is set to default. SetTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"` // This corresponds to // [SetDefaultBranchRequest.note][google.cloud.retail.v2beta.SetDefaultBranchRequest.note] // field, when this branch was set as default. Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
Response message of [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch].
func (*GetDefaultBranchResponse) Descriptor
deprecated
func (*GetDefaultBranchResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDefaultBranchResponse.ProtoReflect.Descriptor instead.
func (*GetDefaultBranchResponse) GetBranch ¶
func (x *GetDefaultBranchResponse) GetBranch() string
func (*GetDefaultBranchResponse) GetNote ¶
func (x *GetDefaultBranchResponse) GetNote() string
func (*GetDefaultBranchResponse) GetSetTime ¶
func (x *GetDefaultBranchResponse) GetSetTime() *timestamppb.Timestamp
func (*GetDefaultBranchResponse) ProtoMessage ¶
func (*GetDefaultBranchResponse) ProtoMessage()
func (*GetDefaultBranchResponse) ProtoReflect ¶
func (x *GetDefaultBranchResponse) ProtoReflect() protoreflect.Message
func (*GetDefaultBranchResponse) Reset ¶
func (x *GetDefaultBranchResponse) Reset()
func (*GetDefaultBranchResponse) String ¶
func (x *GetDefaultBranchResponse) String() string
type GetGenerativeQuestionsFeatureConfigRequest ¶ added in v1.19.0
type GetGenerativeQuestionsFeatureConfigRequest struct { // Required. Resource name of the parent catalog. // Format: projects/{project}/locations/{location}/catalogs/{catalog} Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // contains filtered or unexported fields }
Request for GetGenerativeQuestionsFeatureConfig method.
func (*GetGenerativeQuestionsFeatureConfigRequest) Descriptor
deprecated
added in
v1.19.0
func (*GetGenerativeQuestionsFeatureConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGenerativeQuestionsFeatureConfigRequest.ProtoReflect.Descriptor instead.
func (*GetGenerativeQuestionsFeatureConfigRequest) GetCatalog ¶ added in v1.19.0
func (x *GetGenerativeQuestionsFeatureConfigRequest) GetCatalog() string
func (*GetGenerativeQuestionsFeatureConfigRequest) ProtoMessage ¶ added in v1.19.0
func (*GetGenerativeQuestionsFeatureConfigRequest) ProtoMessage()
func (*GetGenerativeQuestionsFeatureConfigRequest) ProtoReflect ¶ added in v1.19.0
func (x *GetGenerativeQuestionsFeatureConfigRequest) ProtoReflect() protoreflect.Message
func (*GetGenerativeQuestionsFeatureConfigRequest) Reset ¶ added in v1.19.0
func (x *GetGenerativeQuestionsFeatureConfigRequest) Reset()
func (*GetGenerativeQuestionsFeatureConfigRequest) String ¶ added in v1.19.0
func (x *GetGenerativeQuestionsFeatureConfigRequest) String() string
type GetModelRequest ¶ added in v1.13.0
type GetModelRequest struct { // Required. The resource name of the // [Model][google.cloud.retail.v2beta.Model] to get. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for getting a model.
func (*GetModelRequest) Descriptor
deprecated
added in
v1.13.0
func (*GetModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.
func (*GetModelRequest) GetName ¶ added in v1.13.0
func (x *GetModelRequest) GetName() string
func (*GetModelRequest) ProtoMessage ¶ added in v1.13.0
func (*GetModelRequest) ProtoMessage()
func (*GetModelRequest) ProtoReflect ¶ added in v1.13.0
func (x *GetModelRequest) ProtoReflect() protoreflect.Message
func (*GetModelRequest) Reset ¶ added in v1.13.0
func (x *GetModelRequest) Reset()
func (*GetModelRequest) String ¶ added in v1.13.0
func (x *GetModelRequest) String() string
type GetProductRequest ¶
type GetProductRequest struct { // Required. Full resource name of // [Product][google.cloud.retail.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. // // If the requested [Product][google.cloud.retail.v2beta.Product] does not // exist, a NOT_FOUND error is returned. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] method.
func (*GetProductRequest) Descriptor
deprecated
func (*GetProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.
func (*GetProductRequest) GetName ¶
func (x *GetProductRequest) GetName() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) ProtoReflect ¶
func (x *GetProductRequest) ProtoReflect() protoreflect.Message
func (*GetProductRequest) Reset ¶
func (x *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (x *GetProductRequest) String() string
type GetServingConfigRequest ¶
type GetServingConfigRequest struct { // Required. The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for GetServingConfig method.
func (*GetServingConfigRequest) Descriptor
deprecated
func (*GetServingConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServingConfigRequest.ProtoReflect.Descriptor instead.
func (*GetServingConfigRequest) GetName ¶
func (x *GetServingConfigRequest) GetName() string
func (*GetServingConfigRequest) ProtoMessage ¶
func (*GetServingConfigRequest) ProtoMessage()
func (*GetServingConfigRequest) ProtoReflect ¶
func (x *GetServingConfigRequest) ProtoReflect() protoreflect.Message
func (*GetServingConfigRequest) Reset ¶
func (x *GetServingConfigRequest) Reset()
func (*GetServingConfigRequest) String ¶
func (x *GetServingConfigRequest) String() string
type Image ¶
type Image struct { // Required. URI of the image. // // This field must be a valid UTF-8 encoded URI with a length limit of 5,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). // Schema.org property [Product.image](https://schema.org/image). Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // Height of the image in number of pixels. // // This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is // returned. Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // Width of the image in number of pixels. // // This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is // returned. Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` // contains filtered or unexported fields }
Product[google.cloud.retail.v2beta.Product] image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type ImportCompletionDataRequest ¶
type ImportCompletionDataRequest struct { // Required. The catalog which the suggestions dataset belongs to. // // Format: `projects/1234/locations/global/catalogs/default_catalog`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The desired input location of the data. InputConfig *CompletionDataInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` // Pub/Sub topic for receiving notification. If this field is set, // when the import is finished, a notification is sent to // specified Pub/Sub topic. The message data is JSON string of a // [Operation][google.longrunning.Operation]. // Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
Request message for ImportCompletionData methods.
func (*ImportCompletionDataRequest) Descriptor
deprecated
func (*ImportCompletionDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportCompletionDataRequest.ProtoReflect.Descriptor instead.
func (*ImportCompletionDataRequest) GetInputConfig ¶
func (x *ImportCompletionDataRequest) GetInputConfig() *CompletionDataInputConfig
func (*ImportCompletionDataRequest) GetNotificationPubsubTopic ¶
func (x *ImportCompletionDataRequest) GetNotificationPubsubTopic() string
func (*ImportCompletionDataRequest) GetParent ¶
func (x *ImportCompletionDataRequest) GetParent() string
func (*ImportCompletionDataRequest) ProtoMessage ¶
func (*ImportCompletionDataRequest) ProtoMessage()
func (*ImportCompletionDataRequest) ProtoReflect ¶
func (x *ImportCompletionDataRequest) ProtoReflect() protoreflect.Message
func (*ImportCompletionDataRequest) Reset ¶
func (x *ImportCompletionDataRequest) Reset()
func (*ImportCompletionDataRequest) String ¶
func (x *ImportCompletionDataRequest) String() string
type ImportCompletionDataResponse ¶
type ImportCompletionDataResponse struct { // A sample of errors encountered while processing the request. ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"` // contains filtered or unexported fields }
Response of the ImportCompletionDataRequest[google.cloud.retail.v2beta.ImportCompletionDataRequest]. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is successful.
func (*ImportCompletionDataResponse) Descriptor
deprecated
func (*ImportCompletionDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportCompletionDataResponse.ProtoReflect.Descriptor instead.
func (*ImportCompletionDataResponse) GetErrorSamples ¶
func (x *ImportCompletionDataResponse) GetErrorSamples() []*status.Status
func (*ImportCompletionDataResponse) ProtoMessage ¶
func (*ImportCompletionDataResponse) ProtoMessage()
func (*ImportCompletionDataResponse) ProtoReflect ¶
func (x *ImportCompletionDataResponse) ProtoReflect() protoreflect.Message
func (*ImportCompletionDataResponse) Reset ¶
func (x *ImportCompletionDataResponse) Reset()
func (*ImportCompletionDataResponse) String ¶
func (x *ImportCompletionDataResponse) String() string
type ImportErrorsConfig ¶
type ImportErrorsConfig struct { // Required. Errors destination. // // Types that are assignable to Destination: // // *ImportErrorsConfig_GcsPrefix Destination isImportErrorsConfig_Destination `protobuf_oneof:"destination"` // contains filtered or unexported fields }
Configuration of destination for Import related errors.
func (*ImportErrorsConfig) Descriptor
deprecated
func (*ImportErrorsConfig) Descriptor() ([]byte, []int)
Deprecated: Use ImportErrorsConfig.ProtoReflect.Descriptor instead.
func (*ImportErrorsConfig) GetDestination ¶
func (m *ImportErrorsConfig) GetDestination() isImportErrorsConfig_Destination
func (*ImportErrorsConfig) GetGcsPrefix ¶
func (x *ImportErrorsConfig) GetGcsPrefix() string
func (*ImportErrorsConfig) ProtoMessage ¶
func (*ImportErrorsConfig) ProtoMessage()
func (*ImportErrorsConfig) ProtoReflect ¶
func (x *ImportErrorsConfig) ProtoReflect() protoreflect.Message
func (*ImportErrorsConfig) Reset ¶
func (x *ImportErrorsConfig) Reset()
func (*ImportErrorsConfig) String ¶
func (x *ImportErrorsConfig) String() string
type ImportErrorsConfig_GcsPrefix ¶
type ImportErrorsConfig_GcsPrefix struct { // Google Cloud Storage prefix for import errors. This must be an empty, // existing Cloud Storage directory. Import errors are written to // sharded files in this directory, one per line, as a JSON-encoded // `google.rpc.Status` message. GcsPrefix string `protobuf:"bytes,1,opt,name=gcs_prefix,json=gcsPrefix,proto3,oneof"` }
type ImportMetadata ¶
type ImportMetadata struct { // Operation create time. CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Operation last update time. If the operation is done, this is also the // finish time. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Count of entries that were processed successfully. SuccessCount int64 `protobuf:"varint,3,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // Count of entries that encountered errors while processing. FailureCount int64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` // Deprecated. This field is never set. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/import_config.proto. RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Pub/Sub topic for receiving notification. If this field is set, // when the import is finished, a notification is sent to // specified Pub/Sub topic. The message data is JSON string of a // [Operation][google.longrunning.Operation]. // Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. NotificationPubsubTopic string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.
func (*ImportMetadata) Descriptor
deprecated
func (*ImportMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ImportMetadata.ProtoReflect.Descriptor instead.
func (*ImportMetadata) GetCreateTime ¶
func (x *ImportMetadata) GetCreateTime() *timestamppb.Timestamp
func (*ImportMetadata) GetFailureCount ¶
func (x *ImportMetadata) GetFailureCount() int64
func (*ImportMetadata) GetNotificationPubsubTopic ¶
func (x *ImportMetadata) GetNotificationPubsubTopic() string
func (*ImportMetadata) GetRequestId
deprecated
func (x *ImportMetadata) GetRequestId() string
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/import_config.proto.
func (*ImportMetadata) GetSuccessCount ¶
func (x *ImportMetadata) GetSuccessCount() int64
func (*ImportMetadata) GetUpdateTime ¶
func (x *ImportMetadata) GetUpdateTime() *timestamppb.Timestamp
func (*ImportMetadata) ProtoMessage ¶
func (*ImportMetadata) ProtoMessage()
func (*ImportMetadata) ProtoReflect ¶
func (x *ImportMetadata) ProtoReflect() protoreflect.Message
func (*ImportMetadata) Reset ¶
func (x *ImportMetadata) Reset()
func (*ImportMetadata) String ¶
func (x *ImportMetadata) String() string
type ImportProductsRequest ¶
type ImportProductsRequest struct { // Required. // `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` // // If no updateMask is specified, requires products.create permission. // If updateMask is specified, requires products.update permission. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Deprecated. This field has no effect. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/import_config.proto. RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Required. The desired input location of the data. InputConfig *ProductInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` // The desired location of errors incurred during the Import. ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,3,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // Indicates which fields in the provided imported `products` to update. If // not set, all fields are updated. If provided, only the existing product // fields are updated. Missing products will not be created. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The mode of reconciliation between existing products and the products to be // imported. Defaults to // [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2beta.ImportProductsRequest.ReconciliationMode.INCREMENTAL]. ReconciliationMode ImportProductsRequest_ReconciliationMode `` /* 189-byte string literal not displayed */ // Full Pub/Sub topic name for receiving notification. If this field is set, // when the import is finished, a notification is sent to // specified Pub/Sub topic. The message data is JSON string of a // [Operation][google.longrunning.Operation]. // // Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has // to be within the same project as // [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. // Make sure that both // `cloud-retail-customer-data-access@system.gserviceaccount.com` and // `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` // have the `pubsub.topics.publish` IAM permission on the topic. // // Only supported when // [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] // is set to `FULL`. NotificationPubsubTopic string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
Request message for Import methods.
func (*ImportProductsRequest) Descriptor
deprecated
func (*ImportProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportProductsRequest.ProtoReflect.Descriptor instead.
func (*ImportProductsRequest) GetErrorsConfig ¶
func (x *ImportProductsRequest) GetErrorsConfig() *ImportErrorsConfig
func (*ImportProductsRequest) GetInputConfig ¶
func (x *ImportProductsRequest) GetInputConfig() *ProductInputConfig
func (*ImportProductsRequest) GetNotificationPubsubTopic ¶
func (x *ImportProductsRequest) GetNotificationPubsubTopic() string
func (*ImportProductsRequest) GetParent ¶
func (x *ImportProductsRequest) GetParent() string
func (*ImportProductsRequest) GetReconciliationMode ¶
func (x *ImportProductsRequest) GetReconciliationMode() ImportProductsRequest_ReconciliationMode
func (*ImportProductsRequest) GetRequestId
deprecated
func (x *ImportProductsRequest) GetRequestId() string
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/import_config.proto.
func (*ImportProductsRequest) GetUpdateMask ¶
func (x *ImportProductsRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*ImportProductsRequest) ProtoMessage ¶
func (*ImportProductsRequest) ProtoMessage()
func (*ImportProductsRequest) ProtoReflect ¶
func (x *ImportProductsRequest) ProtoReflect() protoreflect.Message
func (*ImportProductsRequest) Reset ¶
func (x *ImportProductsRequest) Reset()
func (*ImportProductsRequest) String ¶
func (x *ImportProductsRequest) String() string
type ImportProductsRequest_ReconciliationMode ¶
type ImportProductsRequest_ReconciliationMode int32
Indicates how imported products are reconciled with the existing products created or imported before.
const ( // Defaults to INCREMENTAL. ImportProductsRequest_RECONCILIATION_MODE_UNSPECIFIED ImportProductsRequest_ReconciliationMode = 0 // Inserts new products or updates existing products. ImportProductsRequest_INCREMENTAL ImportProductsRequest_ReconciliationMode = 1 // Calculates diff and replaces the entire product dataset. Existing // products may be deleted if they are not present in the source location. ImportProductsRequest_FULL ImportProductsRequest_ReconciliationMode = 2 )
func (ImportProductsRequest_ReconciliationMode) Descriptor ¶
func (ImportProductsRequest_ReconciliationMode) Descriptor() protoreflect.EnumDescriptor
func (ImportProductsRequest_ReconciliationMode) EnumDescriptor
deprecated
func (ImportProductsRequest_ReconciliationMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ImportProductsRequest_ReconciliationMode.Descriptor instead.
func (ImportProductsRequest_ReconciliationMode) Number ¶
func (x ImportProductsRequest_ReconciliationMode) Number() protoreflect.EnumNumber
func (ImportProductsRequest_ReconciliationMode) String ¶
func (x ImportProductsRequest_ReconciliationMode) String() string
func (ImportProductsRequest_ReconciliationMode) Type ¶
func (ImportProductsRequest_ReconciliationMode) Type() protoreflect.EnumType
type ImportProductsResponse ¶
type ImportProductsResponse struct { // A sample of errors encountered while processing the request. ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"` // Echoes the destination for the complete errors in the request if set. ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // contains filtered or unexported fields }
Response of the ImportProductsRequest[google.cloud.retail.v2beta.ImportProductsRequest]. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
func (*ImportProductsResponse) Descriptor
deprecated
func (*ImportProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportProductsResponse.ProtoReflect.Descriptor instead.
func (*ImportProductsResponse) GetErrorSamples ¶
func (x *ImportProductsResponse) GetErrorSamples() []*status.Status
func (*ImportProductsResponse) GetErrorsConfig ¶
func (x *ImportProductsResponse) GetErrorsConfig() *ImportErrorsConfig
func (*ImportProductsResponse) ProtoMessage ¶
func (*ImportProductsResponse) ProtoMessage()
func (*ImportProductsResponse) ProtoReflect ¶
func (x *ImportProductsResponse) ProtoReflect() protoreflect.Message
func (*ImportProductsResponse) Reset ¶
func (x *ImportProductsResponse) Reset()
func (*ImportProductsResponse) String ¶
func (x *ImportProductsResponse) String() string
type ImportUserEventsRequest ¶
type ImportUserEventsRequest struct { // Required. `projects/1234/locations/global/catalogs/default_catalog` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The desired input location of the data. InputConfig *UserEventInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` // The desired location of errors incurred during the Import. Cannot be set // for inline user event imports. ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,3,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // contains filtered or unexported fields }
Request message for the ImportUserEvents request.
func (*ImportUserEventsRequest) Descriptor
deprecated
func (*ImportUserEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportUserEventsRequest.ProtoReflect.Descriptor instead.
func (*ImportUserEventsRequest) GetErrorsConfig ¶
func (x *ImportUserEventsRequest) GetErrorsConfig() *ImportErrorsConfig
func (*ImportUserEventsRequest) GetInputConfig ¶
func (x *ImportUserEventsRequest) GetInputConfig() *UserEventInputConfig
func (*ImportUserEventsRequest) GetParent ¶
func (x *ImportUserEventsRequest) GetParent() string
func (*ImportUserEventsRequest) ProtoMessage ¶
func (*ImportUserEventsRequest) ProtoMessage()
func (*ImportUserEventsRequest) ProtoReflect ¶
func (x *ImportUserEventsRequest) ProtoReflect() protoreflect.Message
func (*ImportUserEventsRequest) Reset ¶
func (x *ImportUserEventsRequest) Reset()
func (*ImportUserEventsRequest) String ¶
func (x *ImportUserEventsRequest) String() string
type ImportUserEventsResponse ¶
type ImportUserEventsResponse struct { // A sample of errors encountered while processing the request. ErrorSamples []*status.Status `protobuf:"bytes,1,rep,name=error_samples,json=errorSamples,proto3" json:"error_samples,omitempty"` // Echoes the destination for the complete errors if this field was set in // the request. ErrorsConfig *ImportErrorsConfig `protobuf:"bytes,2,opt,name=errors_config,json=errorsConfig,proto3" json:"errors_config,omitempty"` // Aggregated statistics of user event import status. ImportSummary *UserEventImportSummary `protobuf:"bytes,3,opt,name=import_summary,json=importSummary,proto3" json:"import_summary,omitempty"` // contains filtered or unexported fields }
Response of the ImportUserEventsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
func (*ImportUserEventsResponse) Descriptor
deprecated
func (*ImportUserEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportUserEventsResponse.ProtoReflect.Descriptor instead.
func (*ImportUserEventsResponse) GetErrorSamples ¶
func (x *ImportUserEventsResponse) GetErrorSamples() []*status.Status
func (*ImportUserEventsResponse) GetErrorsConfig ¶
func (x *ImportUserEventsResponse) GetErrorsConfig() *ImportErrorsConfig
func (*ImportUserEventsResponse) GetImportSummary ¶
func (x *ImportUserEventsResponse) GetImportSummary() *UserEventImportSummary
func (*ImportUserEventsResponse) ProtoMessage ¶
func (*ImportUserEventsResponse) ProtoMessage()
func (*ImportUserEventsResponse) ProtoReflect ¶
func (x *ImportUserEventsResponse) ProtoReflect() protoreflect.Message
func (*ImportUserEventsResponse) Reset ¶
func (x *ImportUserEventsResponse) Reset()
func (*ImportUserEventsResponse) String ¶
func (x *ImportUserEventsResponse) String() string
type Interval ¶
type Interval struct { // The lower bound of the interval. If neither of the min fields are set, then // the lower bound is negative infinity. // // This field must not be larger than max. // Otherwise, an INVALID_ARGUMENT error is returned. // // Types that are assignable to Min: // // *Interval_Minimum // *Interval_ExclusiveMinimum Min isInterval_Min `protobuf_oneof:"min"` // The upper bound of the interval. If neither of the max fields are set, then // the upper bound is positive infinity. // // This field must be not smaller than min. // Otherwise, an INVALID_ARGUMENT error is returned. // // Types that are assignable to Max: // // *Interval_Maximum // *Interval_ExclusiveMaximum Max isInterval_Max `protobuf_oneof:"max"` // contains filtered or unexported fields }
A floating point interval.
func (*Interval) Descriptor
deprecated
func (*Interval) GetExclusiveMaximum ¶
func (*Interval) GetExclusiveMinimum ¶
func (*Interval) GetMaximum ¶
func (*Interval) GetMinimum ¶
func (*Interval) ProtoMessage ¶
func (*Interval) ProtoMessage()
func (*Interval) ProtoReflect ¶
func (x *Interval) ProtoReflect() protoreflect.Message
type Interval_ExclusiveMaximum ¶
type Interval_ExclusiveMaximum struct { // Exclusive upper bound. ExclusiveMaximum float64 `protobuf:"fixed64,4,opt,name=exclusive_maximum,json=exclusiveMaximum,proto3,oneof"` }
type Interval_ExclusiveMinimum ¶
type Interval_ExclusiveMinimum struct { // Exclusive lower bound. ExclusiveMinimum float64 `protobuf:"fixed64,2,opt,name=exclusive_minimum,json=exclusiveMinimum,proto3,oneof"` }
type Interval_Maximum ¶
type Interval_Maximum struct { // Inclusive upper bound. Maximum float64 `protobuf:"fixed64,3,opt,name=maximum,proto3,oneof"` }
type Interval_Minimum ¶
type Interval_Minimum struct { // Inclusive lower bound. Minimum float64 `protobuf:"fixed64,1,opt,name=minimum,proto3,oneof"` }
type ListCatalogsRequest ¶
type ListCatalogsRequest struct { // Required. The account resource name with an associated location. // // If the caller does not have permission to list // [Catalog][google.cloud.retail.v2beta.Catalog]s under this location, // regardless of whether or not this location exists, a PERMISSION_DENIED // error is returned. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of [Catalog][google.cloud.retail.v2beta.Catalog]s to return. // If unspecified, defaults to 50. The maximum allowed value is 1000. Values // above 1000 will be coerced to 1000. // // If this field is negative, an INVALID_ARGUMENT is returned. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token // [ListCatalogsResponse.next_page_token][google.cloud.retail.v2beta.ListCatalogsResponse.next_page_token], // received from a previous // [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] // must match the call that provided the page token. Otherwise, an // INVALID_ARGUMENT error is returned. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] method.
func (*ListCatalogsRequest) Descriptor
deprecated
func (*ListCatalogsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCatalogsRequest.ProtoReflect.Descriptor instead.
func (*ListCatalogsRequest) GetPageSize ¶
func (x *ListCatalogsRequest) GetPageSize() int32
func (*ListCatalogsRequest) GetPageToken ¶
func (x *ListCatalogsRequest) GetPageToken() string
func (*ListCatalogsRequest) GetParent ¶
func (x *ListCatalogsRequest) GetParent() string
func (*ListCatalogsRequest) ProtoMessage ¶
func (*ListCatalogsRequest) ProtoMessage()
func (*ListCatalogsRequest) ProtoReflect ¶
func (x *ListCatalogsRequest) ProtoReflect() protoreflect.Message
func (*ListCatalogsRequest) Reset ¶
func (x *ListCatalogsRequest) Reset()
func (*ListCatalogsRequest) String ¶
func (x *ListCatalogsRequest) String() string
type ListCatalogsResponse ¶
type ListCatalogsResponse struct { // All the customer's [Catalog][google.cloud.retail.v2beta.Catalog]s. Catalogs []*Catalog `protobuf:"bytes,1,rep,name=catalogs,proto3" json:"catalogs,omitempty"` // A token that can be sent as // [ListCatalogsRequest.page_token][google.cloud.retail.v2beta.ListCatalogsRequest.page_token] // to retrieve the next page. If this field is omitted, there are no // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for [CatalogService.ListCatalogs][google.cloud.retail.v2beta.CatalogService.ListCatalogs] method.
func (*ListCatalogsResponse) Descriptor
deprecated
func (*ListCatalogsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCatalogsResponse.ProtoReflect.Descriptor instead.
func (*ListCatalogsResponse) GetCatalogs ¶
func (x *ListCatalogsResponse) GetCatalogs() []*Catalog
func (*ListCatalogsResponse) GetNextPageToken ¶
func (x *ListCatalogsResponse) GetNextPageToken() string
func (*ListCatalogsResponse) ProtoMessage ¶
func (*ListCatalogsResponse) ProtoMessage()
func (*ListCatalogsResponse) ProtoReflect ¶
func (x *ListCatalogsResponse) ProtoReflect() protoreflect.Message
func (*ListCatalogsResponse) Reset ¶
func (x *ListCatalogsResponse) Reset()
func (*ListCatalogsResponse) String ¶
func (x *ListCatalogsResponse) String() string
type ListControlsRequest ¶
type ListControlsRequest struct { // Required. The catalog resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. Maximum number of results to return. If unspecified, defaults // to 50. Max allowed value is 1000. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A page token, received from a previous `ListControls` call. // Provide this to retrieve the subsequent page. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. A filter to apply on the list results. Supported features: // // * List all the products under the parent branch if // [filter][google.cloud.retail.v2beta.ListControlsRequest.filter] is unset. // - List controls that are used in a single ServingConfig: // 'serving_config = "boosted_home_page_cvr"' Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Request for ListControls method.
func (*ListControlsRequest) Descriptor
deprecated
func (*ListControlsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListControlsRequest.ProtoReflect.Descriptor instead.
func (*ListControlsRequest) GetFilter ¶
func (x *ListControlsRequest) GetFilter() string
func (*ListControlsRequest) GetPageSize ¶
func (x *ListControlsRequest) GetPageSize() int32
func (*ListControlsRequest) GetPageToken ¶
func (x *ListControlsRequest) GetPageToken() string
func (*ListControlsRequest) GetParent ¶
func (x *ListControlsRequest) GetParent() string
func (*ListControlsRequest) ProtoMessage ¶
func (*ListControlsRequest) ProtoMessage()
func (*ListControlsRequest) ProtoReflect ¶
func (x *ListControlsRequest) ProtoReflect() protoreflect.Message
func (*ListControlsRequest) Reset ¶
func (x *ListControlsRequest) Reset()
func (*ListControlsRequest) String ¶
func (x *ListControlsRequest) String() string
type ListControlsResponse ¶
type ListControlsResponse struct { // All the Controls for a given catalog. Controls []*Control `protobuf:"bytes,1,rep,name=controls,proto3" json:"controls,omitempty"` // Pagination token, if not returned indicates the last page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for ListControls method.
func (*ListControlsResponse) Descriptor
deprecated
func (*ListControlsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListControlsResponse.ProtoReflect.Descriptor instead.
func (*ListControlsResponse) GetControls ¶
func (x *ListControlsResponse) GetControls() []*Control
func (*ListControlsResponse) GetNextPageToken ¶
func (x *ListControlsResponse) GetNextPageToken() string
func (*ListControlsResponse) ProtoMessage ¶
func (*ListControlsResponse) ProtoMessage()
func (*ListControlsResponse) ProtoReflect ¶
func (x *ListControlsResponse) ProtoReflect() protoreflect.Message
func (*ListControlsResponse) Reset ¶
func (x *ListControlsResponse) Reset()
func (*ListControlsResponse) String ¶
func (x *ListControlsResponse) String() string
type ListGenerativeQuestionConfigsRequest ¶ added in v1.19.0
type ListGenerativeQuestionConfigsRequest struct { // Required. 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"` // contains filtered or unexported fields }
Request for ListQuestions method.
func (*ListGenerativeQuestionConfigsRequest) Descriptor
deprecated
added in
v1.19.0
func (*ListGenerativeQuestionConfigsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGenerativeQuestionConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListGenerativeQuestionConfigsRequest) GetParent ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsRequest) GetParent() string
func (*ListGenerativeQuestionConfigsRequest) ProtoMessage ¶ added in v1.19.0
func (*ListGenerativeQuestionConfigsRequest) ProtoMessage()
func (*ListGenerativeQuestionConfigsRequest) ProtoReflect ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsRequest) ProtoReflect() protoreflect.Message
func (*ListGenerativeQuestionConfigsRequest) Reset ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsRequest) Reset()
func (*ListGenerativeQuestionConfigsRequest) String ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsRequest) String() string
type ListGenerativeQuestionConfigsResponse ¶ added in v1.19.0
type ListGenerativeQuestionConfigsResponse struct { // All the questions for a given catalog. GenerativeQuestionConfigs []*GenerativeQuestionConfig `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
Response for ListQuestions method.
func (*ListGenerativeQuestionConfigsResponse) Descriptor
deprecated
added in
v1.19.0
func (*ListGenerativeQuestionConfigsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGenerativeQuestionConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsResponse) GetGenerativeQuestionConfigs() []*GenerativeQuestionConfig
func (*ListGenerativeQuestionConfigsResponse) ProtoMessage ¶ added in v1.19.0
func (*ListGenerativeQuestionConfigsResponse) ProtoMessage()
func (*ListGenerativeQuestionConfigsResponse) ProtoReflect ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsResponse) ProtoReflect() protoreflect.Message
func (*ListGenerativeQuestionConfigsResponse) Reset ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsResponse) Reset()
func (*ListGenerativeQuestionConfigsResponse) String ¶ added in v1.19.0
func (x *ListGenerativeQuestionConfigsResponse) String() string
type ListModelsRequest ¶
type ListModelsRequest struct { // Required. The parent for which to list models. // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. Maximum number of results to return. If unspecified, defaults // to 50. Max allowed value is 1000. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A page token, received from a previous `ListModels` // call. Provide this to retrieve the subsequent page. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request for listing models associated with a resource.
func (*ListModelsRequest) Descriptor
deprecated
func (*ListModelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.
func (*ListModelsRequest) GetPageSize ¶
func (x *ListModelsRequest) GetPageSize() int32
func (*ListModelsRequest) GetPageToken ¶
func (x *ListModelsRequest) GetPageToken() string
func (*ListModelsRequest) GetParent ¶
func (x *ListModelsRequest) GetParent() string
func (*ListModelsRequest) ProtoMessage ¶
func (*ListModelsRequest) ProtoMessage()
func (*ListModelsRequest) ProtoReflect ¶
func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
func (*ListModelsRequest) Reset ¶
func (x *ListModelsRequest) Reset()
func (*ListModelsRequest) String ¶
func (x *ListModelsRequest) String() string
type ListModelsResponse ¶
type ListModelsResponse struct { // List of Models. Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // Pagination token, if not returned indicates the last page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response to a ListModelRequest.
func (*ListModelsResponse) Descriptor
deprecated
func (*ListModelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.
func (*ListModelsResponse) GetModels ¶
func (x *ListModelsResponse) GetModels() []*Model
func (*ListModelsResponse) GetNextPageToken ¶
func (x *ListModelsResponse) GetNextPageToken() string
func (*ListModelsResponse) ProtoMessage ¶
func (*ListModelsResponse) ProtoMessage()
func (*ListModelsResponse) ProtoReflect ¶
func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
func (*ListModelsResponse) Reset ¶
func (x *ListModelsResponse) Reset()
func (*ListModelsResponse) String ¶
func (x *ListModelsResponse) String() string
type ListProductsRequest ¶
type ListProductsRequest struct { // Required. The parent branch resource name, such as // `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use // `default_branch` as the branch ID, to list products under the default // branch. // // If the caller does not have permission to list // [Product][google.cloud.retail.v2beta.Product]s under this branch, // regardless of whether or not this branch exists, a PERMISSION_DENIED error // is returned. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of [Product][google.cloud.retail.v2beta.Product]s to return. // If unspecified, defaults to 100. The maximum allowed value is 1000. Values // above 1000 will be coerced to 1000. // // If this field is negative, an INVALID_ARGUMENT error is returned. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token // [ListProductsResponse.next_page_token][google.cloud.retail.v2beta.ListProductsResponse.next_page_token], // received from a previous // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts] // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts] // must match the call that provided the page token. Otherwise, an // INVALID_ARGUMENT error is returned. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A filter to apply on the list results. Supported features: // // * List all the products under the parent branch if // [filter][google.cloud.retail.v2beta.ListProductsRequest.filter] is unset. // * List // [Product.Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s sharing the same // // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]. For example: // `primary_product_id = "some_product_id"` // // * List [Product][google.cloud.retail.v2beta.Product]s bundled in a // [Product.Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION] // [Product][google.cloud.retail.v2beta.Product]. // // For example: // `collection_product_id = "some_product_id"` // // * List [Product][google.cloud.retail.v2beta.Product]s with a partibular // type. For example: // // `type = "PRIMARY"` // `type = "VARIANT"` // `type = "COLLECTION"` // // If the field is unrecognizable, an INVALID_ARGUMENT error is returned. // // If the specified // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product] or // [Product.Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION] // [Product][google.cloud.retail.v2beta.Product] does not exist, a NOT_FOUND // error is returned. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // The fields of [Product][google.cloud.retail.v2beta.Product] to return in // the responses. If not set or empty, the following fields are returned: // // * [Product.name][google.cloud.retail.v2beta.Product.name] // * [Product.id][google.cloud.retail.v2beta.Product.id] // * [Product.title][google.cloud.retail.v2beta.Product.title] // * [Product.uri][google.cloud.retail.v2beta.Product.uri] // * [Product.images][google.cloud.retail.v2beta.Product.images] // * [Product.price_info][google.cloud.retail.v2beta.Product.price_info] // * [Product.brands][google.cloud.retail.v2beta.Product.brands] // // If "*" is provided, all fields are returned. // [Product.name][google.cloud.retail.v2beta.Product.name] is always returned // no matter what mask is set. // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts] method.
func (*ListProductsRequest) Descriptor
deprecated
func (*ListProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.
func (*ListProductsRequest) GetFilter ¶
func (x *ListProductsRequest) GetFilter() string
func (*ListProductsRequest) GetPageSize ¶
func (x *ListProductsRequest) GetPageSize() int32
func (*ListProductsRequest) GetPageToken ¶
func (x *ListProductsRequest) GetPageToken() string
func (*ListProductsRequest) GetParent ¶
func (x *ListProductsRequest) GetParent() string
func (*ListProductsRequest) GetReadMask ¶
func (x *ListProductsRequest) GetReadMask() *fieldmaskpb.FieldMask
func (*ListProductsRequest) ProtoMessage ¶
func (*ListProductsRequest) ProtoMessage()
func (*ListProductsRequest) ProtoReflect ¶
func (x *ListProductsRequest) ProtoReflect() protoreflect.Message
func (*ListProductsRequest) Reset ¶
func (x *ListProductsRequest) Reset()
func (*ListProductsRequest) String ¶
func (x *ListProductsRequest) String() string
type ListProductsResponse ¶
type ListProductsResponse struct { // The [Product][google.cloud.retail.v2beta.Product]s. Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // A token that can be sent as // [ListProductsRequest.page_token][google.cloud.retail.v2beta.ListProductsRequest.page_token] // to retrieve the next page. If this field is omitted, there are no // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts] method.
func (*ListProductsResponse) Descriptor
deprecated
func (*ListProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead.
func (*ListProductsResponse) GetNextPageToken ¶
func (x *ListProductsResponse) GetNextPageToken() string
func (*ListProductsResponse) GetProducts ¶
func (x *ListProductsResponse) GetProducts() []*Product
func (*ListProductsResponse) ProtoMessage ¶
func (*ListProductsResponse) ProtoMessage()
func (*ListProductsResponse) ProtoReflect ¶
func (x *ListProductsResponse) ProtoReflect() protoreflect.Message
func (*ListProductsResponse) Reset ¶
func (x *ListProductsResponse) Reset()
func (*ListProductsResponse) String ¶
func (x *ListProductsResponse) String() string
type ListServingConfigsRequest ¶
type ListServingConfigsRequest struct { // Required. The catalog resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. Maximum number of results to return. If unspecified, defaults // to 100. If a value greater than 100 is provided, at most 100 results are // returned. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A page token, received from a previous `ListServingConfigs` call. // Provide this to retrieve the subsequent page. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request for ListServingConfigs method.
func (*ListServingConfigsRequest) Descriptor
deprecated
func (*ListServingConfigsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServingConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListServingConfigsRequest) GetPageSize ¶
func (x *ListServingConfigsRequest) GetPageSize() int32
func (*ListServingConfigsRequest) GetPageToken ¶
func (x *ListServingConfigsRequest) GetPageToken() string
func (*ListServingConfigsRequest) GetParent ¶
func (x *ListServingConfigsRequest) GetParent() string
func (*ListServingConfigsRequest) ProtoMessage ¶
func (*ListServingConfigsRequest) ProtoMessage()
func (*ListServingConfigsRequest) ProtoReflect ¶
func (x *ListServingConfigsRequest) ProtoReflect() protoreflect.Message
func (*ListServingConfigsRequest) Reset ¶
func (x *ListServingConfigsRequest) Reset()
func (*ListServingConfigsRequest) String ¶
func (x *ListServingConfigsRequest) String() string
type ListServingConfigsResponse ¶
type ListServingConfigsResponse struct { // All the ServingConfigs for a given catalog. ServingConfigs []*ServingConfig `protobuf:"bytes,1,rep,name=serving_configs,json=servingConfigs,proto3" json:"serving_configs,omitempty"` // Pagination token, if not returned indicates the last page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for ListServingConfigs method.
func (*ListServingConfigsResponse) Descriptor
deprecated
func (*ListServingConfigsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServingConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListServingConfigsResponse) GetNextPageToken ¶
func (x *ListServingConfigsResponse) GetNextPageToken() string
func (*ListServingConfigsResponse) GetServingConfigs ¶
func (x *ListServingConfigsResponse) GetServingConfigs() []*ServingConfig
func (*ListServingConfigsResponse) ProtoMessage ¶
func (*ListServingConfigsResponse) ProtoMessage()
func (*ListServingConfigsResponse) ProtoReflect ¶
func (x *ListServingConfigsResponse) ProtoReflect() protoreflect.Message
func (*ListServingConfigsResponse) Reset ¶
func (x *ListServingConfigsResponse) Reset()
func (*ListServingConfigsResponse) String ¶
func (x *ListServingConfigsResponse) String() string
type LocalInventory ¶
type LocalInventory struct { // The place ID for the current set of inventory information. PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"` // Product price and cost information. // // Google Merchant Center property // [price](https://support.google.com/merchants/answer/6324371). PriceInfo *PriceInfo `protobuf:"bytes,2,opt,name=price_info,json=priceInfo,proto3" json:"price_info,omitempty"` // Additional local inventory attributes, for example, store name, promotion // tags, etc. // // This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT // error is returned: // // - At most 30 attributes are allowed. // - The key must be a UTF-8 encoded string with a length limit of 32 // characters. // - The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, // key0LikeThis or KEY_1_LIKE_THIS. // - The attribute values must be of the same type (text or number). // - Only 1 value is allowed for each attribute. // - For text values, the length limit is 256 UTF-8 characters. // - The attribute does not support search. The `searchable` field should be // unset or set to false. // - The max summed total bytes of custom attribute keys and values per // product is 5MiB. Attributes map[string]*CustomAttribute `` /* 161-byte string literal not displayed */ // Input only. Supported fulfillment types. Valid fulfillment type values // include commonly used types (such as pickup in store and same day // delivery), and custom types. Customers have to map custom types to their // display names before rendering UI. // // Supported values: // // * "pickup-in-store" // * "ship-to-store" // * "same-day-delivery" // * "next-day-delivery" // * "custom-type-1" // * "custom-type-2" // * "custom-type-3" // * "custom-type-4" // * "custom-type-5" // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // // All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is // returned. FulfillmentTypes []string `protobuf:"bytes,4,rep,name=fulfillment_types,json=fulfillmentTypes,proto3" json:"fulfillment_types,omitempty"` // contains filtered or unexported fields }
The inventory information at a place (e.g. a store) identified by a place ID.
func (*LocalInventory) Descriptor
deprecated
func (*LocalInventory) Descriptor() ([]byte, []int)
Deprecated: Use LocalInventory.ProtoReflect.Descriptor instead.
func (*LocalInventory) GetAttributes ¶
func (x *LocalInventory) GetAttributes() map[string]*CustomAttribute
func (*LocalInventory) GetFulfillmentTypes ¶
func (x *LocalInventory) GetFulfillmentTypes() []string
func (*LocalInventory) GetPlaceId ¶
func (x *LocalInventory) GetPlaceId() string
func (*LocalInventory) GetPriceInfo ¶
func (x *LocalInventory) GetPriceInfo() *PriceInfo
func (*LocalInventory) ProtoMessage ¶
func (*LocalInventory) ProtoMessage()
func (*LocalInventory) ProtoReflect ¶
func (x *LocalInventory) ProtoReflect() protoreflect.Message
func (*LocalInventory) Reset ¶
func (x *LocalInventory) Reset()
func (*LocalInventory) String ¶
func (x *LocalInventory) String() string
type MerchantCenterFeedFilter ¶ added in v1.12.0
type MerchantCenterFeedFilter struct { // Merchant Center primary feed ID. PrimaryFeedId int64 `protobuf:"varint,1,opt,name=primary_feed_id,json=primaryFeedId,proto3" json:"primary_feed_id,omitempty"` // Merchant Center primary feed name. The name is used for the display // purposes only. PrimaryFeedName string `protobuf:"bytes,2,opt,name=primary_feed_name,json=primaryFeedName,proto3" json:"primary_feed_name,omitempty"` // contains filtered or unexported fields }
Merchant Center Feed filter criterion.
func (*MerchantCenterFeedFilter) Descriptor
deprecated
added in
v1.12.0
func (*MerchantCenterFeedFilter) Descriptor() ([]byte, []int)
Deprecated: Use MerchantCenterFeedFilter.ProtoReflect.Descriptor instead.
func (*MerchantCenterFeedFilter) GetPrimaryFeedId ¶ added in v1.12.0
func (x *MerchantCenterFeedFilter) GetPrimaryFeedId() int64
func (*MerchantCenterFeedFilter) GetPrimaryFeedName ¶ added in v1.12.0
func (x *MerchantCenterFeedFilter) GetPrimaryFeedName() string
func (*MerchantCenterFeedFilter) ProtoMessage ¶ added in v1.12.0
func (*MerchantCenterFeedFilter) ProtoMessage()
func (*MerchantCenterFeedFilter) ProtoReflect ¶ added in v1.12.0
func (x *MerchantCenterFeedFilter) ProtoReflect() protoreflect.Message
func (*MerchantCenterFeedFilter) Reset ¶ added in v1.12.0
func (x *MerchantCenterFeedFilter) Reset()
func (*MerchantCenterFeedFilter) String ¶ added in v1.12.0
func (x *MerchantCenterFeedFilter) String() string
type MerchantCenterLink ¶
type MerchantCenterLink struct { // Required. The linked [Merchant Center account // ID](https://developers.google.com/shopping-content/guides/accountstatuses). // The account must be a standalone account or a sub-account of a MCA. MerchantCenterAccountId int64 `` /* 135-byte string literal not displayed */ // The branch ID (e.g. 0/1/2) within this catalog that products from // merchant_center_account_id are streamed to. When updating this field, an // empty value will use the currently configured default branch. However, // changing the default branch later on won't change the linked branch here. // // A single branch ID can only have one linked Merchant Center account ID. BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` // String representing the destination to import for, all if left empty. // List of possible values is given in [Included // destination](https://support.google.com/merchants/answer/7501026). // List of allowed string values: // "Shopping_ads", "Buy_on_google_listings", "Display_ads", "Local_inventory // _ads", "Free_listings", "Free_local_listings" // NOTE: The string values are case sensitive. Destinations []string `protobuf:"bytes,3,rep,name=destinations,proto3" json:"destinations,omitempty"` // Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 // code. List of values can be found // [here](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) // under the `region` tag. If left blank no region filtering will be // performed. // // Example value: `US`. RegionCode string `protobuf:"bytes,4,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` // Language of the title/description and other string attributes. Use language // tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). // ISO 639-1. // // This specifies the language of offers in Merchant Center that will be // accepted. If empty no language filtering will be performed. // // Example value: `en`. LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Criteria for the Merchant Center feeds to be ingested via the link. // All offers will be ingested if the list is empty. // Otherwise the offers will be ingested from selected feeds. Feeds []*MerchantCenterFeedFilter `protobuf:"bytes,6,rep,name=feeds,proto3" json:"feeds,omitempty"` // contains filtered or unexported fields }
Represents a link between a Merchant Center account and a branch. After a link is established, products from the linked Merchant Center account are streamed to the linked branch.
func (*MerchantCenterLink) Descriptor
deprecated
func (*MerchantCenterLink) Descriptor() ([]byte, []int)
Deprecated: Use MerchantCenterLink.ProtoReflect.Descriptor instead.
func (*MerchantCenterLink) GetBranchId ¶
func (x *MerchantCenterLink) GetBranchId() string
func (*MerchantCenterLink) GetDestinations ¶
func (x *MerchantCenterLink) GetDestinations() []string
func (*MerchantCenterLink) GetFeeds ¶ added in v1.12.0
func (x *MerchantCenterLink) GetFeeds() []*MerchantCenterFeedFilter
func (*MerchantCenterLink) GetLanguageCode ¶
func (x *MerchantCenterLink) GetLanguageCode() string
func (*MerchantCenterLink) GetMerchantCenterAccountId ¶
func (x *MerchantCenterLink) GetMerchantCenterAccountId() int64
func (*MerchantCenterLink) GetRegionCode ¶
func (x *MerchantCenterLink) GetRegionCode() string
func (*MerchantCenterLink) ProtoMessage ¶
func (*MerchantCenterLink) ProtoMessage()
func (*MerchantCenterLink) ProtoReflect ¶
func (x *MerchantCenterLink) ProtoReflect() protoreflect.Message
func (*MerchantCenterLink) Reset ¶
func (x *MerchantCenterLink) Reset()
func (*MerchantCenterLink) String ¶
func (x *MerchantCenterLink) String() string
type MerchantCenterLinkingConfig ¶
type MerchantCenterLinkingConfig struct { // Links between Merchant Center accounts and branches. Links []*MerchantCenterLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
Configures Merchant Center linking. Links contained in the config will be used to sync data from a Merchant Center account to a Cloud Retail branch.
func (*MerchantCenterLinkingConfig) Descriptor
deprecated
func (*MerchantCenterLinkingConfig) Descriptor() ([]byte, []int)
Deprecated: Use MerchantCenterLinkingConfig.ProtoReflect.Descriptor instead.
func (*MerchantCenterLinkingConfig) GetLinks ¶
func (x *MerchantCenterLinkingConfig) GetLinks() []*MerchantCenterLink
func (*MerchantCenterLinkingConfig) ProtoMessage ¶
func (*MerchantCenterLinkingConfig) ProtoMessage()
func (*MerchantCenterLinkingConfig) ProtoReflect ¶
func (x *MerchantCenterLinkingConfig) ProtoReflect() protoreflect.Message
func (*MerchantCenterLinkingConfig) Reset ¶
func (x *MerchantCenterLinkingConfig) Reset()
func (*MerchantCenterLinkingConfig) String ¶
func (x *MerchantCenterLinkingConfig) String() string
type Model ¶
type Model struct { // Required. The fully qualified resource name of the model. // // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` // catalog_id has char limit of 50. // recommendation_model_id has char limit of 40. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The display name of the model. // // Should be human readable, used to display Recommendation Models in the // Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024 // characters. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Optional. The training state that the model is in (e.g. // `TRAINING` or `PAUSED`). // // Since part of the cost of running the service // is frequency of training - this can be used to determine when to train // model in order to control cost. If not specified: the default value for // `CreateModel` method is `TRAINING`. The default value for // `UpdateModel` method is to keep the state the same as before. TrainingState Model_TrainingState `` /* 153-byte string literal not displayed */ // Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`. ServingState Model_ServingState `` /* 149-byte string literal not displayed */ // Output only. Timestamp the Recommendation Model was created at. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp the Recommendation Model was last updated. E.g. // if a Recommendation Model was paused - this would be the time the pause was // initiated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. The type of model e.g. `home-page`. // // Currently supported values: `recommended-for-you`, `others-you-may-like`, // `frequently-bought-together`, `page-optimization`, `similar-items`, // `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value). // // This field together with // [optimization_objective][google.cloud.retail.v2beta.Model.optimization_objective] // describe model metadata to use to control model training and serving. // See https://cloud.google.com/retail/docs/models // for more details on what the model metadata control and which combination // of parameters are valid. For invalid combinations of parameters (e.g. type // = `frequently-bought-together` and optimization_objective = `ctr`), you // receive an error 400 if you try to create/update a recommendation with // this set of knobs. Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` // Optional. The optimization objective e.g. `cvr`. // // Currently supported // values: `ctr`, `cvr`, `revenue-per-order`. // // If not specified, we choose default based on model type. // // Default depends on type of recommendation: // // `recommended-for-you` => `ctr` // // `others-you-may-like` => `ctr` // // `frequently-bought-together` => `revenue_per_order` // // This field together with // [optimization_objective][google.cloud.retail.v2beta.Model.type] // describe model metadata to use to control model training and serving. // See https://cloud.google.com/retail/docs/models // for more details on what the model metadata control and which combination // of parameters are valid. For invalid combinations of parameters (e.g. type // = `frequently-bought-together` and optimization_objective = `ctr`), you // receive an error 400 if you try to create/update a recommendation with // this set of knobs. OptimizationObjective string `protobuf:"bytes,8,opt,name=optimization_objective,json=optimizationObjective,proto3" json:"optimization_objective,omitempty"` // Optional. The state of periodic tuning. // // The period we use is 3 months - to do a // one-off tune earlier use the `TuneModel` method. Default value // is `PERIODIC_TUNING_ENABLED`. PeriodicTuningState Model_PeriodicTuningState `` /* 180-byte string literal not displayed */ // Output only. The timestamp when the latest successful tune finished. LastTuneTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_tune_time,json=lastTuneTime,proto3" json:"last_tune_time,omitempty"` // Output only. The tune operation associated with the model. // // Can be used to determine if there is an ongoing tune for this // recommendation. Empty field implies no tune is goig on. TuningOperation string `protobuf:"bytes,15,opt,name=tuning_operation,json=tuningOperation,proto3" json:"tuning_operation,omitempty"` // Output only. The state of data requirements for this model: `DATA_OK` and // `DATA_ERROR`. // // Recommendation model cannot be trained if the data is in // `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even // if serving state is `ACTIVE`: models were trained successfully before, but // cannot be refreshed because model no longer has sufficient // data for training. DataState Model_DataState `` /* 138-byte string literal not displayed */ // Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering // by attributes is enabled for the model. FilteringOption RecommendationsFilteringOption `` /* 171-byte string literal not displayed */ // Output only. The list of valid serving configs associated with the // PageOptimizationConfig. ServingConfigLists []*Model_ServingConfigList `protobuf:"bytes,19,rep,name=serving_config_lists,json=servingConfigLists,proto3" json:"serving_config_lists,omitempty"` // Optional. Additional model features config. ModelFeaturesConfig *Model_ModelFeaturesConfig `protobuf:"bytes,22,opt,name=model_features_config,json=modelFeaturesConfig,proto3" json:"model_features_config,omitempty"` // contains filtered or unexported fields }
Metadata that describes the training and serving parameters of a Model[google.cloud.retail.v2beta.Model]. A Model[google.cloud.retail.v2beta.Model] can be associated with a ServingConfig[google.cloud.retail.v2beta.ServingConfig] and then queried through the Predict API.
func (*Model) Descriptor
deprecated
func (*Model) GetCreateTime ¶
func (x *Model) GetCreateTime() *timestamppb.Timestamp
func (*Model) GetDataState ¶
func (x *Model) GetDataState() Model_DataState
func (*Model) GetDisplayName ¶
func (*Model) GetFilteringOption ¶
func (x *Model) GetFilteringOption() RecommendationsFilteringOption
func (*Model) GetLastTuneTime ¶
func (x *Model) GetLastTuneTime() *timestamppb.Timestamp
func (*Model) GetModelFeaturesConfig ¶ added in v1.17.0
func (x *Model) GetModelFeaturesConfig() *Model_ModelFeaturesConfig
func (*Model) GetOptimizationObjective ¶
func (*Model) GetPeriodicTuningState ¶
func (x *Model) GetPeriodicTuningState() Model_PeriodicTuningState
func (*Model) GetServingConfigLists ¶
func (x *Model) GetServingConfigLists() []*Model_ServingConfigList
func (*Model) GetServingState ¶
func (x *Model) GetServingState() Model_ServingState
func (*Model) GetTrainingState ¶
func (x *Model) GetTrainingState() Model_TrainingState
func (*Model) GetTuningOperation ¶
func (*Model) GetUpdateTime ¶
func (x *Model) GetUpdateTime() *timestamppb.Timestamp
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type ModelServiceClient ¶
type ModelServiceClient interface { // Creates a new model. CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Gets a model. GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) // Pauses the training of an existing model. PauseModel(ctx context.Context, in *PauseModelRequest, opts ...grpc.CallOption) (*Model, error) // Resumes the training of an existing model. ResumeModel(ctx context.Context, in *ResumeModelRequest, opts ...grpc.CallOption) (*Model, error) // Deletes an existing model. DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Lists all the models linked to this event store. ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) // Update of model metadata. Only fields that // currently can be updated are: `filtering_option` and // `periodic_tuning_state`. // If other values are provided, this API method ignores them. UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*Model, error) // Tunes an existing model. TuneModel(ctx context.Context, in *TuneModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) }
ModelServiceClient is the client API for ModelService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewModelServiceClient ¶
func NewModelServiceClient(cc grpc.ClientConnInterface) ModelServiceClient
type ModelServiceServer ¶
type ModelServiceServer interface { // Creates a new model. CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error) // Gets a model. GetModel(context.Context, *GetModelRequest) (*Model, error) // Pauses the training of an existing model. PauseModel(context.Context, *PauseModelRequest) (*Model, error) // Resumes the training of an existing model. ResumeModel(context.Context, *ResumeModelRequest) (*Model, error) // Deletes an existing model. DeleteModel(context.Context, *DeleteModelRequest) (*emptypb.Empty, error) // Lists all the models linked to this event store. ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) // Update of model metadata. Only fields that // currently can be updated are: `filtering_option` and // `periodic_tuning_state`. // If other values are provided, this API method ignores them. UpdateModel(context.Context, *UpdateModelRequest) (*Model, error) // Tunes an existing model. TuneModel(context.Context, *TuneModelRequest) (*longrunningpb.Operation, error) }
ModelServiceServer is the server API for ModelService service.
type Model_ContextProductsType ¶ added in v1.17.0
type Model_ContextProductsType int32
Use single or multiple context products for recommendations.
const ( // Unspecified default value, should never be explicitly set. // Defaults to // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. Model_CONTEXT_PRODUCTS_TYPE_UNSPECIFIED Model_ContextProductsType = 0 // Use only a single product as context for the recommendation. Typically // used on pages like add-to-cart or product details. Model_SINGLE_CONTEXT_PRODUCT Model_ContextProductsType = 1 // Use one or multiple products as context for the recommendation. Typically // used on shopping cart pages. Model_MULTIPLE_CONTEXT_PRODUCTS Model_ContextProductsType = 2 )
func (Model_ContextProductsType) Descriptor ¶ added in v1.17.0
func (Model_ContextProductsType) Descriptor() protoreflect.EnumDescriptor
func (Model_ContextProductsType) Enum ¶ added in v1.17.0
func (x Model_ContextProductsType) Enum() *Model_ContextProductsType
func (Model_ContextProductsType) EnumDescriptor
deprecated
added in
v1.17.0
func (Model_ContextProductsType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Model_ContextProductsType.Descriptor instead.
func (Model_ContextProductsType) Number ¶ added in v1.17.0
func (x Model_ContextProductsType) Number() protoreflect.EnumNumber
func (Model_ContextProductsType) String ¶ added in v1.17.0
func (x Model_ContextProductsType) String() string
func (Model_ContextProductsType) Type ¶ added in v1.17.0
func (Model_ContextProductsType) Type() protoreflect.EnumType
type Model_DataState ¶
type Model_DataState int32
Describes whether this model have sufficient training data to be continuously trained.
const ( // Unspecified default value, should never be explicitly set. Model_DATA_STATE_UNSPECIFIED Model_DataState = 0 // The model has sufficient training data. Model_DATA_OK Model_DataState = 1 // The model does not have sufficient training data. Error // messages can be queried via Stackdriver. Model_DATA_ERROR Model_DataState = 2 )
func (Model_DataState) Descriptor ¶
func (Model_DataState) Descriptor() protoreflect.EnumDescriptor
func (Model_DataState) Enum ¶
func (x Model_DataState) Enum() *Model_DataState
func (Model_DataState) EnumDescriptor
deprecated
func (Model_DataState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Model_DataState.Descriptor instead.
func (Model_DataState) Number ¶
func (x Model_DataState) Number() protoreflect.EnumNumber
func (Model_DataState) String ¶
func (x Model_DataState) String() string
func (Model_DataState) Type ¶
func (Model_DataState) Type() protoreflect.EnumType
type Model_FrequentlyBoughtTogetherFeaturesConfig ¶ added in v1.17.0
type Model_FrequentlyBoughtTogetherFeaturesConfig struct { // Optional. Specifies the context of the model when it is used in predict // requests. Can only be set for the `frequently-bought-together` type. If // it isn't specified, it defaults to // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. ContextProductsType Model_ContextProductsType `` /* 179-byte string literal not displayed */ // contains filtered or unexported fields }
Additional configs for the frequently-bought-together model type.
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) Descriptor
deprecated
added in
v1.17.0
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) Descriptor() ([]byte, []int)
Deprecated: Use Model_FrequentlyBoughtTogetherFeaturesConfig.ProtoReflect.Descriptor instead.
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) GetContextProductsType ¶ added in v1.17.0
func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) GetContextProductsType() Model_ContextProductsType
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoMessage ¶ added in v1.17.0
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoMessage()
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoReflect ¶ added in v1.17.0
func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoReflect() protoreflect.Message
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) Reset ¶ added in v1.17.0
func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) Reset()
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) String ¶ added in v1.17.0
func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) String() string
type Model_ModelFeaturesConfig ¶ added in v1.17.0
type Model_ModelFeaturesConfig struct { // Types that are assignable to TypeDedicatedConfig: // // *Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig TypeDedicatedConfig isModel_ModelFeaturesConfig_TypeDedicatedConfig `protobuf_oneof:"type_dedicated_config"` // contains filtered or unexported fields }
Additional model features config.
func (*Model_ModelFeaturesConfig) Descriptor
deprecated
added in
v1.17.0
func (*Model_ModelFeaturesConfig) Descriptor() ([]byte, []int)
Deprecated: Use Model_ModelFeaturesConfig.ProtoReflect.Descriptor instead.
func (*Model_ModelFeaturesConfig) GetFrequentlyBoughtTogetherConfig ¶ added in v1.17.0
func (x *Model_ModelFeaturesConfig) GetFrequentlyBoughtTogetherConfig() *Model_FrequentlyBoughtTogetherFeaturesConfig
func (*Model_ModelFeaturesConfig) GetTypeDedicatedConfig ¶ added in v1.17.0
func (m *Model_ModelFeaturesConfig) GetTypeDedicatedConfig() isModel_ModelFeaturesConfig_TypeDedicatedConfig
func (*Model_ModelFeaturesConfig) ProtoMessage ¶ added in v1.17.0
func (*Model_ModelFeaturesConfig) ProtoMessage()
func (*Model_ModelFeaturesConfig) ProtoReflect ¶ added in v1.17.0
func (x *Model_ModelFeaturesConfig) ProtoReflect() protoreflect.Message
func (*Model_ModelFeaturesConfig) Reset ¶ added in v1.17.0
func (x *Model_ModelFeaturesConfig) Reset()
func (*Model_ModelFeaturesConfig) String ¶ added in v1.17.0
func (x *Model_ModelFeaturesConfig) String() string
type Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig ¶ added in v1.17.0
type Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig struct { // Additional configs for frequently-bought-together models. FrequentlyBoughtTogetherConfig *Model_FrequentlyBoughtTogetherFeaturesConfig `protobuf:"bytes,1,opt,name=frequently_bought_together_config,json=frequentlyBoughtTogetherConfig,proto3,oneof"` }
type Model_PeriodicTuningState ¶
type Model_PeriodicTuningState int32
Describes whether periodic tuning is enabled for this model or not. Periodic tuning is scheduled at most every three months. You can start a tuning process manually by using the `TuneModel` method, which starts a tuning process immediately and resets the quarterly schedule. Enabling or disabling periodic tuning does not affect any current tuning processes.
const ( // Unspecified default value, should never be explicitly set. Model_PERIODIC_TUNING_STATE_UNSPECIFIED Model_PeriodicTuningState = 0 // The model has periodic tuning disabled. Tuning // can be reenabled by calling the `EnableModelPeriodicTuning` // method or by calling the `TuneModel` method. Model_PERIODIC_TUNING_DISABLED Model_PeriodicTuningState = 1 // The model cannot be tuned with periodic tuning OR the // `TuneModel` method. Hide the options in customer UI and // reject any requests through the backend self serve API. Model_ALL_TUNING_DISABLED Model_PeriodicTuningState = 3 // The model has periodic tuning enabled. Tuning // can be disabled by calling the `DisableModelPeriodicTuning` // method. Model_PERIODIC_TUNING_ENABLED Model_PeriodicTuningState = 2 )
func (Model_PeriodicTuningState) Descriptor ¶
func (Model_PeriodicTuningState) Descriptor() protoreflect.EnumDescriptor
func (Model_PeriodicTuningState) Enum ¶
func (x Model_PeriodicTuningState) Enum() *Model_PeriodicTuningState
func (Model_PeriodicTuningState) EnumDescriptor
deprecated
func (Model_PeriodicTuningState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Model_PeriodicTuningState.Descriptor instead.
func (Model_PeriodicTuningState) Number ¶
func (x Model_PeriodicTuningState) Number() protoreflect.EnumNumber
func (Model_PeriodicTuningState) String ¶
func (x Model_PeriodicTuningState) String() string
func (Model_PeriodicTuningState) Type ¶
func (Model_PeriodicTuningState) Type() protoreflect.EnumType
type Model_ServingConfigList ¶
type Model_ServingConfigList struct { // Optional. A set of valid serving configs that may be used for // `PAGE_OPTIMIZATION`. ServingConfigIds []string `protobuf:"bytes,1,rep,name=serving_config_ids,json=servingConfigIds,proto3" json:"serving_config_ids,omitempty"` // contains filtered or unexported fields }
Represents an ordered combination of valid serving configs, which can be used for `PAGE_OPTIMIZATION` recommendations.
func (*Model_ServingConfigList) Descriptor
deprecated
func (*Model_ServingConfigList) Descriptor() ([]byte, []int)
Deprecated: Use Model_ServingConfigList.ProtoReflect.Descriptor instead.
func (*Model_ServingConfigList) GetServingConfigIds ¶
func (x *Model_ServingConfigList) GetServingConfigIds() []string
func (*Model_ServingConfigList) ProtoMessage ¶
func (*Model_ServingConfigList) ProtoMessage()
func (*Model_ServingConfigList) ProtoReflect ¶
func (x *Model_ServingConfigList) ProtoReflect() protoreflect.Message
func (*Model_ServingConfigList) Reset ¶
func (x *Model_ServingConfigList) Reset()
func (*Model_ServingConfigList) String ¶
func (x *Model_ServingConfigList) String() string
type Model_ServingState ¶
type Model_ServingState int32
The serving state of the model.
const ( // Unspecified serving state. Model_SERVING_STATE_UNSPECIFIED Model_ServingState = 0 // The model is not serving. Model_INACTIVE Model_ServingState = 1 // The model is serving and can be queried. Model_ACTIVE Model_ServingState = 2 // The model is trained on tuned hyperparameters and can be // queried. Model_TUNED Model_ServingState = 3 )
func (Model_ServingState) Descriptor ¶
func (Model_ServingState) Descriptor() protoreflect.EnumDescriptor
func (Model_ServingState) Enum ¶
func (x Model_ServingState) Enum() *Model_ServingState
func (Model_ServingState) EnumDescriptor
deprecated
func (Model_ServingState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Model_ServingState.Descriptor instead.
func (Model_ServingState) Number ¶
func (x Model_ServingState) Number() protoreflect.EnumNumber
func (Model_ServingState) String ¶
func (x Model_ServingState) String() string
func (Model_ServingState) Type ¶
func (Model_ServingState) Type() protoreflect.EnumType
type Model_TrainingState ¶
type Model_TrainingState int32
The training state of the model.
const ( // Unspecified training state. Model_TRAINING_STATE_UNSPECIFIED Model_TrainingState = 0 // The model training is paused. Model_PAUSED Model_TrainingState = 1 // The model is training. Model_TRAINING Model_TrainingState = 2 )
func (Model_TrainingState) Descriptor ¶
func (Model_TrainingState) Descriptor() protoreflect.EnumDescriptor
func (Model_TrainingState) Enum ¶
func (x Model_TrainingState) Enum() *Model_TrainingState
func (Model_TrainingState) EnumDescriptor
deprecated
func (Model_TrainingState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Model_TrainingState.Descriptor instead.
func (Model_TrainingState) Number ¶
func (x Model_TrainingState) Number() protoreflect.EnumNumber
func (Model_TrainingState) String ¶
func (x Model_TrainingState) String() string
func (Model_TrainingState) Type ¶
func (Model_TrainingState) Type() protoreflect.EnumType
type OutputConfig ¶ added in v1.15.0
type OutputConfig struct { // The configuration of destination for holding output data. // // Types that are assignable to Destination: // // *OutputConfig_GcsDestination_ // *OutputConfig_BigqueryDestination Destination isOutputConfig_Destination `protobuf_oneof:"destination"` // contains filtered or unexported fields }
The output configuration setting.
func (*OutputConfig) Descriptor
deprecated
added in
v1.15.0
func (*OutputConfig) Descriptor() ([]byte, []int)
Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.
func (*OutputConfig) GetBigqueryDestination ¶ added in v1.15.0
func (x *OutputConfig) GetBigqueryDestination() *OutputConfig_BigQueryDestination
func (*OutputConfig) GetDestination ¶ added in v1.15.0
func (m *OutputConfig) GetDestination() isOutputConfig_Destination
func (*OutputConfig) GetGcsDestination ¶ added in v1.15.0
func (x *OutputConfig) GetGcsDestination() *OutputConfig_GcsDestination
func (*OutputConfig) ProtoMessage ¶ added in v1.15.0
func (*OutputConfig) ProtoMessage()
func (*OutputConfig) ProtoReflect ¶ added in v1.15.0
func (x *OutputConfig) ProtoReflect() protoreflect.Message
func (*OutputConfig) Reset ¶ added in v1.15.0
func (x *OutputConfig) Reset()
func (*OutputConfig) String ¶ added in v1.15.0
func (x *OutputConfig) String() string
type OutputConfig_BigQueryDestination ¶ added in v1.15.0
type OutputConfig_BigQueryDestination struct { // Required. The ID of a BigQuery Dataset. DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` // Required. The prefix of exported BigQuery tables. TableIdPrefix string `protobuf:"bytes,2,opt,name=table_id_prefix,json=tableIdPrefix,proto3" json:"table_id_prefix,omitempty"` // Required. Describes the table type. The following values are supported: // // * `table`: A BigQuery native table. // * `view`: A virtual table defined by a SQL query. TableType string `protobuf:"bytes,3,opt,name=table_type,json=tableType,proto3" json:"table_type,omitempty"` // contains filtered or unexported fields }
The BigQuery output destination configuration.
func (*OutputConfig_BigQueryDestination) Descriptor
deprecated
added in
v1.15.0
func (*OutputConfig_BigQueryDestination) Descriptor() ([]byte, []int)
Deprecated: Use OutputConfig_BigQueryDestination.ProtoReflect.Descriptor instead.
func (*OutputConfig_BigQueryDestination) GetDatasetId ¶ added in v1.15.0
func (x *OutputConfig_BigQueryDestination) GetDatasetId() string
func (*OutputConfig_BigQueryDestination) GetTableIdPrefix ¶ added in v1.15.0
func (x *OutputConfig_BigQueryDestination) GetTableIdPrefix() string
func (*OutputConfig_BigQueryDestination) GetTableType ¶ added in v1.15.0
func (x *OutputConfig_BigQueryDestination) GetTableType() string
func (*OutputConfig_BigQueryDestination) ProtoMessage ¶ added in v1.15.0
func (*OutputConfig_BigQueryDestination) ProtoMessage()
func (*OutputConfig_BigQueryDestination) ProtoReflect ¶ added in v1.15.0
func (x *OutputConfig_BigQueryDestination) ProtoReflect() protoreflect.Message
func (*OutputConfig_BigQueryDestination) Reset ¶ added in v1.15.0
func (x *OutputConfig_BigQueryDestination) Reset()
func (*OutputConfig_BigQueryDestination) String ¶ added in v1.15.0
func (x *OutputConfig_BigQueryDestination) String() string
type OutputConfig_BigqueryDestination ¶ added in v1.15.0
type OutputConfig_BigqueryDestination struct { // The BigQuery location where the output is to be written to. BigqueryDestination *OutputConfig_BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"` }
type OutputConfig_GcsDestination ¶ added in v1.15.0
type OutputConfig_GcsDestination struct { // Required. The output uri prefix for saving output data to json files. // Some mapping examples are as follows: // output_uri_prefix sample output(assuming the object is foo.json) // ======================== ============================================= // gs://bucket/ gs://bucket/foo.json // gs://bucket/folder/ gs://bucket/folder/foo.json // gs://bucket/folder/item_ gs://bucket/folder/item_foo.json OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` // contains filtered or unexported fields }
The Google Cloud Storage output destination configuration.
func (*OutputConfig_GcsDestination) Descriptor
deprecated
added in
v1.15.0
func (*OutputConfig_GcsDestination) Descriptor() ([]byte, []int)
Deprecated: Use OutputConfig_GcsDestination.ProtoReflect.Descriptor instead.
func (*OutputConfig_GcsDestination) GetOutputUriPrefix ¶ added in v1.15.0
func (x *OutputConfig_GcsDestination) GetOutputUriPrefix() string
func (*OutputConfig_GcsDestination) ProtoMessage ¶ added in v1.15.0
func (*OutputConfig_GcsDestination) ProtoMessage()
func (*OutputConfig_GcsDestination) ProtoReflect ¶ added in v1.15.0
func (x *OutputConfig_GcsDestination) ProtoReflect() protoreflect.Message
func (*OutputConfig_GcsDestination) Reset ¶ added in v1.15.0
func (x *OutputConfig_GcsDestination) Reset()
func (*OutputConfig_GcsDestination) String ¶ added in v1.15.0
func (x *OutputConfig_GcsDestination) String() string
type OutputConfig_GcsDestination_ ¶ added in v1.15.0
type OutputConfig_GcsDestination_ struct { // The Google Cloud Storage location where the output is to be written to. GcsDestination *OutputConfig_GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"` }
type OutputResult ¶
type OutputResult struct { // The BigQuery location where the result is stored. BigqueryResult []*BigQueryOutputResult `protobuf:"bytes,1,rep,name=bigquery_result,json=bigqueryResult,proto3" json:"bigquery_result,omitempty"` // The Google Cloud Storage location where the result is stored. GcsResult []*GcsOutputResult `protobuf:"bytes,2,rep,name=gcs_result,json=gcsResult,proto3" json:"gcs_result,omitempty"` // contains filtered or unexported fields }
Output result that stores the information about where the exported data is stored.
func (*OutputResult) Descriptor
deprecated
func (*OutputResult) Descriptor() ([]byte, []int)
Deprecated: Use OutputResult.ProtoReflect.Descriptor instead.
func (*OutputResult) GetBigqueryResult ¶
func (x *OutputResult) GetBigqueryResult() []*BigQueryOutputResult
func (*OutputResult) GetGcsResult ¶ added in v1.12.0
func (x *OutputResult) GetGcsResult() []*GcsOutputResult
func (*OutputResult) ProtoMessage ¶
func (*OutputResult) ProtoMessage()
func (*OutputResult) ProtoReflect ¶
func (x *OutputResult) ProtoReflect() protoreflect.Message
func (*OutputResult) Reset ¶
func (x *OutputResult) Reset()
func (*OutputResult) String ¶
func (x *OutputResult) String() string
type PauseModelRequest ¶
type PauseModelRequest struct { // Required. The name of the model to pause. // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for pausing training of a model.
func (*PauseModelRequest) Descriptor
deprecated
func (*PauseModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use PauseModelRequest.ProtoReflect.Descriptor instead.
func (*PauseModelRequest) GetName ¶
func (x *PauseModelRequest) GetName() string
func (*PauseModelRequest) ProtoMessage ¶
func (*PauseModelRequest) ProtoMessage()
func (*PauseModelRequest) ProtoReflect ¶
func (x *PauseModelRequest) ProtoReflect() protoreflect.Message
func (*PauseModelRequest) Reset ¶
func (x *PauseModelRequest) Reset()
func (*PauseModelRequest) String ¶
func (x *PauseModelRequest) String() string
type PredictRequest ¶
type PredictRequest struct { // Required. Full resource name of the format: // `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}` // or // `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`. // We recommend using the `servingConfigs` resource. `placements` is a legacy // resource. // The ID of the Recommendations AI serving config or placement. // Before you can request predictions from your model, you must create at // least one serving config or placement for it. For more information, see // [Manage serving configs] // (https://cloud.google.com/retail/docs/manage-configs). // // The full list of available serving configs can be seen at // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs Placement string `protobuf:"bytes,1,opt,name=placement,proto3" json:"placement,omitempty"` // Required. Context about the user, what they are looking at and what action // they took to trigger the predict request. Note that this user event detail // won't be ingested to userEvent logs. Thus, a separate userEvent write // request is required for event logging. // // Don't set // [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id] or // [UserInfo.user_id][google.cloud.retail.v2beta.UserInfo.user_id] to the same // fixed ID for different users. If you are trying to receive non-personalized // recommendations (not recommended; this can negatively impact model // performance), instead set // [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id] to // a random unique ID and leave // [UserInfo.user_id][google.cloud.retail.v2beta.UserInfo.user_id] unset. UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"` // Maximum number of results to return. Set this property to the number of // prediction results needed. If zero, the service will choose a reasonable // default. The maximum allowed value is 100. Values above 100 will be coerced // to 100. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // This field is not used; leave it unset. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/prediction_service.proto. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Filter for restricting prediction results with a length limit of 5,000 // characters. Accepts values for tags and the `filterOutOfStockItems` flag. // // - Tag expressions. Restricts predictions to products that match all of the // specified tags. Boolean operators `OR` and `NOT` are supported if the // expression is enclosed in parentheses, and must be separated from the // tag values by a space. `-"tagA"` is also supported and is equivalent to // `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded strings // with a size limit of 1,000 characters. // // Note: "Recently viewed" models don't support tag filtering at the // moment. // // - filterOutOfStockItems. Restricts predictions to products that do not // have a // stockState value of OUT_OF_STOCK. // // Examples: // // - tag=("Red" OR "Blue") tag="New-Arrival" tag=(NOT "promotional") // - filterOutOfStockItems tag=(-"promotional") // - filterOutOfStockItems // // If your filter blocks all prediction results, the API will return *no* // results. If instead you want empty result sets to return generic // (unfiltered) popular products, set `strictFiltering` to False in // `PredictRequest.params`. Note that the API will never return items with // storageStatus of "EXPIRED" or "DELETED" regardless of filter choices. // // If `filterSyntaxV2` is set to true under the `params` field, then // attribute-based expressions are expected instead of the above described // tag-based syntax. Examples: // // - (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) // - (availability: ANY("IN_STOCK")) AND // (colors: ANY("Red") OR categories: ANY("Phones")) // // For more information, see // [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs). Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` // Use validate only mode for this prediction query. If set to true, a // dummy model will be used that returns arbitrary products. // Note that the validate only mode should only be used for testing the API, // or if the model is not ready. ValidateOnly bool `protobuf:"varint,6,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` // Additional domain specific parameters for the predictions. // // Allowed values: // // - `returnProduct`: Boolean. If set to true, the associated product // object will be returned in the `results.metadata` field in the // prediction response. // - `returnScore`: Boolean. If set to true, the prediction 'score' // corresponding to each returned product will be set in the // `results.metadata` field in the prediction response. The given // 'score' indicates the probability of a product being clicked/purchased // given the user's context and history. // - `strictFiltering`: Boolean. True by default. If set to false, the service // will return generic (unfiltered) popular products instead of empty if // your filter blocks all prediction results. // - `priceRerankLevel`: String. Default empty. If set to be non-empty, then // it needs to be one of {'no-price-reranking', 'low-price-reranking', // 'medium-price-reranking', 'high-price-reranking'}. This gives // request-level control and adjusts prediction results based on product // price. // - `diversityLevel`: String. Default empty. If set to be non-empty, then // it needs to be one of {'no-diversity', 'low-diversity', // 'medium-diversity', 'high-diversity', 'auto-diversity'}. This gives // request-level control and adjusts prediction results based on product // category. // - `filterSyntaxV2`: Boolean. False by default. If set to true, the `filter` // field is interpreteted according to the new, attribute-based syntax. Params map[string]*structpb.Value `` /* 153-byte string literal not displayed */ // The labels applied to a resource must meet the following requirements: // // - Each resource can have multiple labels, up to a maximum of 64. // - Each label must be a key-value pair. // - Keys have a minimum length of 1 character and a maximum length of 63 // characters and cannot be empty. Values can be empty and have a maximum // length of 63 characters. // - Keys and values can contain only lowercase letters, numeric characters, // underscores, and dashes. All characters must use UTF-8 encoding, and // international characters are allowed. // - The key portion of a label must be unique. However, you can use the same // key with multiple resources. // - Keys must start with a lowercase letter or international character. // // See [Google Cloud // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // for more details. Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
Request message for Predict method.
func (*PredictRequest) Descriptor
deprecated
func (*PredictRequest) Descriptor() ([]byte, []int)
Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.
func (*PredictRequest) GetFilter ¶
func (x *PredictRequest) GetFilter() string
func (*PredictRequest) GetLabels ¶
func (x *PredictRequest) GetLabels() map[string]string
func (*PredictRequest) GetPageSize ¶
func (x *PredictRequest) GetPageSize() int32
func (*PredictRequest) GetPageToken
deprecated
func (x *PredictRequest) GetPageToken() string
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/prediction_service.proto.
func (*PredictRequest) GetPlacement ¶
func (x *PredictRequest) GetPlacement() string
func (*PredictRequest) GetUserEvent ¶
func (x *PredictRequest) GetUserEvent() *UserEvent
func (*PredictRequest) GetValidateOnly ¶
func (x *PredictRequest) GetValidateOnly() bool
func (*PredictRequest) ProtoMessage ¶
func (*PredictRequest) ProtoMessage()
func (*PredictRequest) ProtoReflect ¶
func (x *PredictRequest) ProtoReflect() protoreflect.Message
func (*PredictRequest) Reset ¶
func (x *PredictRequest) Reset()
func (*PredictRequest) String ¶
func (x *PredictRequest) String() string
type PredictResponse ¶
type PredictResponse struct { // A list of recommended products. The order represents the ranking (from the // most relevant product to the least). Results []*PredictResponse_PredictionResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // A unique attribution token. This should be included in the // [UserEvent][google.cloud.retail.v2beta.UserEvent] logs resulting from this // recommendation, which enables accurate attribution of recommendation model // performance. AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` // IDs of products in the request that were missing from the inventory. MissingIds []string `protobuf:"bytes,3,rep,name=missing_ids,json=missingIds,proto3" json:"missing_ids,omitempty"` // True if the validateOnly property was set in the request. ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` // contains filtered or unexported fields }
Response message for predict method.
func (*PredictResponse) Descriptor
deprecated
func (*PredictResponse) Descriptor() ([]byte, []int)
Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.
func (*PredictResponse) GetAttributionToken ¶
func (x *PredictResponse) GetAttributionToken() string
func (*PredictResponse) GetMissingIds ¶
func (x *PredictResponse) GetMissingIds() []string
func (*PredictResponse) GetResults ¶
func (x *PredictResponse) GetResults() []*PredictResponse_PredictionResult
func (*PredictResponse) GetValidateOnly ¶
func (x *PredictResponse) GetValidateOnly() bool
func (*PredictResponse) ProtoMessage ¶
func (*PredictResponse) ProtoMessage()
func (*PredictResponse) ProtoReflect ¶
func (x *PredictResponse) ProtoReflect() protoreflect.Message
func (*PredictResponse) Reset ¶
func (x *PredictResponse) Reset()
func (*PredictResponse) String ¶
func (x *PredictResponse) String() string
type PredictResponse_PredictionResult ¶
type PredictResponse_PredictionResult struct { // ID of the recommended product Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Additional product metadata / annotations. // // Possible values: // // - `product`: JSON representation of the product. Is set if // `returnProduct` is set to true in `PredictRequest.params`. // - `score`: Prediction score in double value. Is set if // `returnScore` is set to true in `PredictRequest.params`. Metadata map[string]*structpb.Value `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
PredictionResult represents the recommendation prediction results.
func (*PredictResponse_PredictionResult) Descriptor
deprecated
func (*PredictResponse_PredictionResult) Descriptor() ([]byte, []int)
Deprecated: Use PredictResponse_PredictionResult.ProtoReflect.Descriptor instead.
func (*PredictResponse_PredictionResult) GetId ¶
func (x *PredictResponse_PredictionResult) GetId() string
func (*PredictResponse_PredictionResult) GetMetadata ¶
func (x *PredictResponse_PredictionResult) GetMetadata() map[string]*structpb.Value
func (*PredictResponse_PredictionResult) ProtoMessage ¶
func (*PredictResponse_PredictionResult) ProtoMessage()
func (*PredictResponse_PredictionResult) ProtoReflect ¶
func (x *PredictResponse_PredictionResult) ProtoReflect() protoreflect.Message
func (*PredictResponse_PredictionResult) Reset ¶
func (x *PredictResponse_PredictionResult) Reset()
func (*PredictResponse_PredictionResult) String ¶
func (x *PredictResponse_PredictionResult) String() string
type PredictionServiceClient ¶
type PredictionServiceClient interface { // Makes a recommendation prediction. Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) }
PredictionServiceClient is the client API for PredictionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPredictionServiceClient ¶
func NewPredictionServiceClient(cc grpc.ClientConnInterface) PredictionServiceClient
type PredictionServiceServer ¶
type PredictionServiceServer interface { // Makes a recommendation prediction. Predict(context.Context, *PredictRequest) (*PredictResponse, error) }
PredictionServiceServer is the server API for PredictionService service.
type PriceInfo ¶
type PriceInfo struct { // The 3-letter currency code defined in [ISO // 4217](https://www.iso.org/iso-4217-currency-codes.html). // // If this field is an unrecognizable currency code, an INVALID_ARGUMENT // error is returned. // // The [Product.Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s with the same // [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id] // must share the same // [currency_code][google.cloud.retail.v2beta.PriceInfo.currency_code]. // Otherwise, a FAILED_PRECONDITION error is returned. CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` // Price of the product. // // Google Merchant Center property // [price](https://support.google.com/merchants/answer/6324371). Schema.org // property [Offer.price](https://schema.org/price). Price float32 `protobuf:"fixed32,2,opt,name=price,proto3" json:"price,omitempty"` // Price of the product without any discount. If zero, by default set to be // the [price][google.cloud.retail.v2beta.PriceInfo.price]. If set, // [original_price][google.cloud.retail.v2beta.PriceInfo.original_price] // should be greater than or equal to // [price][google.cloud.retail.v2beta.PriceInfo.price], otherwise an // INVALID_ARGUMENT error is thrown. OriginalPrice float32 `protobuf:"fixed32,3,opt,name=original_price,json=originalPrice,proto3" json:"original_price,omitempty"` // The costs associated with the sale of a particular product. Used for gross // profit reporting. // // * Profit = [price][google.cloud.retail.v2beta.PriceInfo.price] - // [cost][google.cloud.retail.v2beta.PriceInfo.cost] // // Google Merchant Center property // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895). Cost float32 `protobuf:"fixed32,4,opt,name=cost,proto3" json:"cost,omitempty"` // The timestamp when the [price][google.cloud.retail.v2beta.PriceInfo.price] // starts to be effective. This can be set as a future timestamp, and the // [price][google.cloud.retail.v2beta.PriceInfo.price] is only used for search // after // [price_effective_time][google.cloud.retail.v2beta.PriceInfo.price_effective_time]. // If so, the // [original_price][google.cloud.retail.v2beta.PriceInfo.original_price] must // be set and // [original_price][google.cloud.retail.v2beta.PriceInfo.original_price] is // used before // [price_effective_time][google.cloud.retail.v2beta.PriceInfo.price_effective_time]. // // Do not set if [price][google.cloud.retail.v2beta.PriceInfo.price] is always // effective because it will cause additional latency during search. PriceEffectiveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=price_effective_time,json=priceEffectiveTime,proto3" json:"price_effective_time,omitempty"` // The timestamp when the [price][google.cloud.retail.v2beta.PriceInfo.price] // stops to be effective. The // [price][google.cloud.retail.v2beta.PriceInfo.price] is used for search // before // [price_expire_time][google.cloud.retail.v2beta.PriceInfo.price_expire_time]. // If this field is set, the // [original_price][google.cloud.retail.v2beta.PriceInfo.original_price] must // be set and // [original_price][google.cloud.retail.v2beta.PriceInfo.original_price] is // used after // [price_expire_time][google.cloud.retail.v2beta.PriceInfo.price_expire_time]. // // Do not set if [price][google.cloud.retail.v2beta.PriceInfo.price] is always // effective because it will cause additional latency during search. PriceExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=price_expire_time,json=priceExpireTime,proto3" json:"price_expire_time,omitempty"` // Output only. The price range of all the child // [Product.Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s grouped together on the // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]. Only populated for // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]s. // // Note: This field is OUTPUT_ONLY for // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]. // Do not set this field in API requests. PriceRange *PriceInfo_PriceRange `protobuf:"bytes,7,opt,name=price_range,json=priceRange,proto3" json:"price_range,omitempty"` // contains filtered or unexported fields }
The price information of a Product[google.cloud.retail.v2beta.Product].
func (*PriceInfo) Descriptor
deprecated
func (*PriceInfo) GetCurrencyCode ¶
func (*PriceInfo) GetOriginalPrice ¶
func (*PriceInfo) GetPriceEffectiveTime ¶
func (x *PriceInfo) GetPriceEffectiveTime() *timestamppb.Timestamp
func (*PriceInfo) GetPriceExpireTime ¶
func (x *PriceInfo) GetPriceExpireTime() *timestamppb.Timestamp
func (*PriceInfo) GetPriceRange ¶
func (x *PriceInfo) GetPriceRange() *PriceInfo_PriceRange
func (*PriceInfo) ProtoMessage ¶
func (*PriceInfo) ProtoMessage()
func (*PriceInfo) ProtoReflect ¶
func (x *PriceInfo) ProtoReflect() protoreflect.Message
type PriceInfo_PriceRange ¶
type PriceInfo_PriceRange struct { // The inclusive // [Product.pricing_info.price][google.cloud.retail.v2beta.PriceInfo.price] // interval of all // [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product] having the same // [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id]. Price *Interval `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` // The inclusive // [Product.pricing_info.original_price][google.cloud.retail.v2beta.PriceInfo.original_price] // internal of all // [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product] having the same // [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id]. OriginalPrice *Interval `protobuf:"bytes,2,opt,name=original_price,json=originalPrice,proto3" json:"original_price,omitempty"` // contains filtered or unexported fields }
The price range of all [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] Product[google.cloud.retail.v2beta.Product] having the same [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id].
func (*PriceInfo_PriceRange) Descriptor
deprecated
func (*PriceInfo_PriceRange) Descriptor() ([]byte, []int)
Deprecated: Use PriceInfo_PriceRange.ProtoReflect.Descriptor instead.
func (*PriceInfo_PriceRange) GetOriginalPrice ¶
func (x *PriceInfo_PriceRange) GetOriginalPrice() *Interval
func (*PriceInfo_PriceRange) GetPrice ¶
func (x *PriceInfo_PriceRange) GetPrice() *Interval
func (*PriceInfo_PriceRange) ProtoMessage ¶
func (*PriceInfo_PriceRange) ProtoMessage()
func (*PriceInfo_PriceRange) ProtoReflect ¶
func (x *PriceInfo_PriceRange) ProtoReflect() protoreflect.Message
func (*PriceInfo_PriceRange) Reset ¶
func (x *PriceInfo_PriceRange) Reset()
func (*PriceInfo_PriceRange) String ¶
func (x *PriceInfo_PriceRange) String() string
type Product ¶
type Product struct { // Types that are assignable to Expiration: // // *Product_ExpireTime // *Product_Ttl Expiration isProduct_Expiration `protobuf_oneof:"expiration"` // Immutable. Full resource name of the product, such as // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Immutable. [Product][google.cloud.retail.v2beta.Product] identifier, which // is the final component of [name][google.cloud.retail.v2beta.Product.name]. // For example, this field is "id_1", if // [name][google.cloud.retail.v2beta.Product.name] is // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [id](https://support.google.com/merchants/answer/6324405). Schema.org // property [Product.sku](https://schema.org/sku). Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Immutable. The type of the product. Default to // [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] // if unset. Type Product_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.retail.v2beta.Product_Type" json:"type,omitempty"` // Variant group identifier. Must be an // [id][google.cloud.retail.v2beta.Product.id], with the same parent branch // with this product. Otherwise, an error is thrown. // // For [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]s, this field can only be // empty or set to the same value as // [id][google.cloud.retail.v2beta.Product.id]. // // For VARIANT [Product][google.cloud.retail.v2beta.Product]s, this field // cannot be empty. A maximum of 2,000 products are allowed to share the same // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]. Otherwise, an // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [item_group_id](https://support.google.com/merchants/answer/6324507). // Schema.org property // [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID). PrimaryProductId string `protobuf:"bytes,4,opt,name=primary_product_id,json=primaryProductId,proto3" json:"primary_product_id,omitempty"` // The [id][google.cloud.retail.v2beta.Product.id] of the collection members // when [type][google.cloud.retail.v2beta.Product.type] is // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]. // // Non-existent product ids are allowed. // The [type][google.cloud.retail.v2beta.Product.type] of the members must be // either [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] or // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] otherwise // an INVALID_ARGUMENT error is thrown. Should not set it for other types. A // maximum of 1000 values are allowed. Otherwise, an INVALID_ARGUMENT error is // return. CollectionMemberIds []string `protobuf:"bytes,5,rep,name=collection_member_ids,json=collectionMemberIds,proto3" json:"collection_member_ids,omitempty"` // The Global Trade Item Number (GTIN) of the product. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is // returned. // // Corresponding properties: Google Merchant Center property // [gtin](https://support.google.com/merchants/answer/6324461). // Schema.org property // [Product.isbn](https://schema.org/isbn), // [Product.gtin8](https://schema.org/gtin8), // [Product.gtin12](https://schema.org/gtin12), // [Product.gtin13](https://schema.org/gtin13), or // [Product.gtin14](https://schema.org/gtin14). // // If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned. Gtin string `protobuf:"bytes,6,opt,name=gtin,proto3" json:"gtin,omitempty"` // Product categories. This field is repeated for supporting one product // belonging to several parallel categories. Strongly recommended using the // full path for better search / recommendation quality. // // To represent full path of category, use '>' sign to separate different // hierarchies. If '>' is part of the category name, replace it with // other character(s). // // For example, if a shoes product belongs to both // ["Shoes & Accessories" -> "Shoes"] and // ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be // represented as: // // "categories": [ // "Shoes & Accessories > Shoes", // "Sports & Fitness > Athletic Clothing > Shoes" // ] // // Must be set for // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product] otherwise an INVALID_ARGUMENT // error is returned. // // At most 250 values are allowed per // [Product][google.cloud.retail.v2beta.Product] unless overridden through the // Google Cloud console. Empty values are not allowed. Each value must be a // UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [google_product_category][mc_google_product_category]. Schema.org property // [Product.category] (https://schema.org/category). // // [mc_google_product_category]: // https://support.google.com/merchants/answer/6324436 Categories []string `protobuf:"bytes,7,rep,name=categories,proto3" json:"categories,omitempty"` // Required. Product title. // // This field must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [title](https://support.google.com/merchants/answer/6324415). Schema.org // property [Product.name](https://schema.org/name). Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // The brands of the product. // // A maximum of 30 brands are allowed unless overridden through the Google // Cloud console. Each // brand must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [brand](https://support.google.com/merchants/answer/6324351). Schema.org // property [Product.brand](https://schema.org/brand). Brands []string `protobuf:"bytes,9,rep,name=brands,proto3" json:"brands,omitempty"` // Product description. // // This field must be a UTF-8 encoded string with a length limit of 5,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [description](https://support.google.com/merchants/answer/6324468). // Schema.org property [Product.description](https://schema.org/description). Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` // Language of the title/description and other string attributes. Use language // tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). // // For product prediction, this field is ignored and the model automatically // detects the text language. The // [Product][google.cloud.retail.v2beta.Product] can include text in different // languages, but duplicating [Product][google.cloud.retail.v2beta.Product]s // to provide text in multiple languages can result in degraded model // performance. // // For product search this field is in use. It defaults to "en-US" if unset. LanguageCode string `protobuf:"bytes,11,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Highly encouraged. Extra product attributes to be included. For example, // for products, this could include the store name, vendor, style, color, etc. // These are very strong signals for recommendation model, thus we highly // recommend providing the attributes here. // // Features that can take on one of a limited number of possible values. Two // types of features can be set are: // // Textual features. some examples would be the brand/maker of a product, or // country of a customer. Numerical features. Some examples would be the // height/weight of a product, or age of a customer. // // For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, // "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} // }`. // // This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT // error is returned: // // - Max entries count: 200. // - The key must be a UTF-8 encoded string with a length limit of 128 // characters. // - For indexable attribute, the key must match the pattern: // `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, `key0LikeThis` or // `KEY_1_LIKE_THIS`. // - For text attributes, at most 400 values are allowed. Empty values are not // allowed. Each value must be a non-empty UTF-8 encoded string with a // length limit of 256 characters. // - For number attributes, at most 400 values are allowed. Attributes map[string]*CustomAttribute `` /* 162-byte string literal not displayed */ // Custom tags associated with the product. // // At most 250 values are allowed per // [Product][google.cloud.retail.v2beta.Product]. This value must be a UTF-8 // encoded string with a length limit of 1,000 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // This tag can be used for filtering recommendation results by passing the // tag as part of the // [PredictRequest.filter][google.cloud.retail.v2beta.PredictRequest.filter]. // // Corresponding properties: Google Merchant Center property // [custom_label_0–4](https://support.google.com/merchants/answer/6324473). Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"` // Product price and cost information. // // Corresponding properties: Google Merchant Center property // [price](https://support.google.com/merchants/answer/6324371). PriceInfo *PriceInfo `protobuf:"bytes,14,opt,name=price_info,json=priceInfo,proto3" json:"price_info,omitempty"` // The rating of this product. Rating *Rating `protobuf:"bytes,15,opt,name=rating,proto3" json:"rating,omitempty"` // The timestamp when this [Product][google.cloud.retail.v2beta.Product] // becomes available for // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // Note that this is only applicable to // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], and // ignored for // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. AvailableTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=available_time,json=availableTime,proto3" json:"available_time,omitempty"` // The online availability of the // [Product][google.cloud.retail.v2beta.Product]. Default to // [Availability.IN_STOCK][google.cloud.retail.v2beta.Product.Availability.IN_STOCK]. // // For primary products with variants set the availability of the primary as // [Availability.OUT_OF_STOCK][google.cloud.retail.v2beta.Product.Availability.OUT_OF_STOCK] // and set the true availability at the variant level. This way the primary // product will be considered "in stock" as long as it has at least one // variant in stock. // // For primary products with no variants set the true availability at the // primary level. // // Corresponding properties: Google Merchant Center property // [availability](https://support.google.com/merchants/answer/6324448). // Schema.org property [Offer.availability](https://schema.org/availability). Availability Product_Availability `` /* 132-byte string literal not displayed */ // The available quantity of the item. AvailableQuantity *wrapperspb.Int32Value `protobuf:"bytes,20,opt,name=available_quantity,json=availableQuantity,proto3" json:"available_quantity,omitempty"` // Fulfillment information, such as the store IDs for in-store pickup or // region IDs for different shipping methods. // // All the elements must have distinct // [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type]. // Otherwise, an INVALID_ARGUMENT error is returned. FulfillmentInfo []*FulfillmentInfo `protobuf:"bytes,21,rep,name=fulfillment_info,json=fulfillmentInfo,proto3" json:"fulfillment_info,omitempty"` // Canonical URL directly linking to the product detail page. // // It is strongly recommended to provide a valid uri for the product, // otherwise the service performance could be significantly degraded. // // This field must be a UTF-8 encoded string with a length limit of 5,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [link](https://support.google.com/merchants/answer/6324416). Schema.org // property [Offer.url](https://schema.org/url). Uri string `protobuf:"bytes,22,opt,name=uri,proto3" json:"uri,omitempty"` // Product images for the product. We highly recommend putting the main // image first. // // A maximum of 300 images are allowed. // // Corresponding properties: Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). // Schema.org property [Product.image](https://schema.org/image). Images []*Image `protobuf:"bytes,23,rep,name=images,proto3" json:"images,omitempty"` // The target group associated with a given audience (e.g. male, veterans, // car owners, musicians, etc.) of the product. Audience *Audience `protobuf:"bytes,24,opt,name=audience,proto3" json:"audience,omitempty"` // The color of the product. // // Corresponding properties: Google Merchant Center property // [color](https://support.google.com/merchants/answer/6324487). Schema.org // property [Product.color](https://schema.org/color). ColorInfo *ColorInfo `protobuf:"bytes,25,opt,name=color_info,json=colorInfo,proto3" json:"color_info,omitempty"` // The size of the product. To represent different size systems or size types, // consider using this format: [[[size_system:]size_type:]size_value]. // // For example, in "US:MENS:M", "US" represents size system; "MENS" represents // size type; "M" represents size value. In "GIRLS:27", size system is empty; // "GIRLS" represents size type; "27" represents size value. In "32 inches", // both size system and size type are empty, while size value is "32 inches". // // A maximum of 20 values are allowed per // [Product][google.cloud.retail.v2beta.Product]. Each value must be a UTF-8 // encoded string with a length limit of 128 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [size](https://support.google.com/merchants/answer/6324492), // [size_type](https://support.google.com/merchants/answer/6324497), and // [size_system](https://support.google.com/merchants/answer/6324502). // Schema.org property [Product.size](https://schema.org/size). Sizes []string `protobuf:"bytes,26,rep,name=sizes,proto3" json:"sizes,omitempty"` // The material of the product. For example, "leather", "wooden". // // A maximum of 20 values are allowed. Each value must be a UTF-8 encoded // string with a length limit of 200 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [material](https://support.google.com/merchants/answer/6324410). Schema.org // property [Product.material](https://schema.org/material). Materials []string `protobuf:"bytes,27,rep,name=materials,proto3" json:"materials,omitempty"` // The pattern or graphic print of the product. For example, "striped", "polka // dot", "paisley". // // A maximum of 20 values are allowed per // [Product][google.cloud.retail.v2beta.Product]. Each value must be a UTF-8 // encoded string with a length limit of 128 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [pattern](https://support.google.com/merchants/answer/6324483). Schema.org // property [Product.pattern](https://schema.org/pattern). Patterns []string `protobuf:"bytes,28,rep,name=patterns,proto3" json:"patterns,omitempty"` // The condition of the product. Strongly encouraged to use the standard // values: "new", "refurbished", "used". // // A maximum of 1 value is allowed per // [Product][google.cloud.retail.v2beta.Product]. Each value must be a UTF-8 // encoded string with a length limit of 128 characters. Otherwise, an // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [condition](https://support.google.com/merchants/answer/6324469). // Schema.org property // [Offer.itemCondition](https://schema.org/itemCondition). Conditions []string `protobuf:"bytes,29,rep,name=conditions,proto3" json:"conditions,omitempty"` // The promotions applied to the product. A maximum of 10 values are allowed // per [Product][google.cloud.retail.v2beta.Product]. Only // [Promotion.promotion_id][google.cloud.retail.v2beta.Promotion.promotion_id] // will be used, other fields will be ignored if set. Promotions []*Promotion `protobuf:"bytes,34,rep,name=promotions,proto3" json:"promotions,omitempty"` // The timestamp when the product is published by the retailer for the first // time, which indicates the freshness of the products. Note that this field // is different from // [available_time][google.cloud.retail.v2beta.Product.available_time], given // it purely describes product freshness regardless of when it is available on // search and recommendation. PublishTime *timestamppb.Timestamp `protobuf:"bytes,33,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` // Indicates which fields in the // [Product][google.cloud.retail.v2beta.Product]s are returned in // [SearchResponse][google.cloud.retail.v2beta.SearchResponse]. // // Supported fields for all [type][google.cloud.retail.v2beta.Product.type]s: // // * [audience][google.cloud.retail.v2beta.Product.audience] // * [availability][google.cloud.retail.v2beta.Product.availability] // * [brands][google.cloud.retail.v2beta.Product.brands] // * [color_info][google.cloud.retail.v2beta.Product.color_info] // * [conditions][google.cloud.retail.v2beta.Product.conditions] // * [gtin][google.cloud.retail.v2beta.Product.gtin] // * [materials][google.cloud.retail.v2beta.Product.materials] // * [name][google.cloud.retail.v2beta.Product.name] // * [patterns][google.cloud.retail.v2beta.Product.patterns] // * [price_info][google.cloud.retail.v2beta.Product.price_info] // * [rating][google.cloud.retail.v2beta.Product.rating] // * [sizes][google.cloud.retail.v2beta.Product.sizes] // * [title][google.cloud.retail.v2beta.Product.title] // * [uri][google.cloud.retail.v2beta.Product.uri] // // Supported fields only for // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]: // // * [categories][google.cloud.retail.v2beta.Product.categories] // * [description][google.cloud.retail.v2beta.Product.description] // * [images][google.cloud.retail.v2beta.Product.images] // // Supported fields only for // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]: // // * Only the first image in // [images][google.cloud.retail.v2beta.Product.images] // // To mark [attributes][google.cloud.retail.v2beta.Product.attributes] as // retrievable, include paths of the form "attributes.key" where "key" is the // key of a custom attribute, as specified in // [attributes][google.cloud.retail.v2beta.Product.attributes]. // // For [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], the // following fields are always returned in // [SearchResponse][google.cloud.retail.v2beta.SearchResponse] by default: // // * [name][google.cloud.retail.v2beta.Product.name] // // For [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT], the // following fields are always returned in by default: // // * [name][google.cloud.retail.v2beta.Product.name] // * [color_info][google.cloud.retail.v2beta.Product.color_info] // // Note: Returning more fields in // [SearchResponse][google.cloud.retail.v2beta.SearchResponse] can increase // response payload size and serving latency. // // This field is deprecated. Use the retrievable site-wide control instead. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/product.proto. RetrievableFields *fieldmaskpb.FieldMask `protobuf:"bytes,30,opt,name=retrievable_fields,json=retrievableFields,proto3" json:"retrievable_fields,omitempty"` // Output only. Product variants grouped together on primary product which // share similar product attributes. It's automatically grouped by // [primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id] // for all the product variants. Only populated for // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]s. // // Note: This field is OUTPUT_ONLY for // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]. // Do not set this field in API requests. Variants []*Product `protobuf:"bytes,31,rep,name=variants,proto3" json:"variants,omitempty"` // Output only. A list of local inventories specific to different places. // // This field can be managed by // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] // and // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] // APIs if fine-grained, high-volume updates are necessary. LocalInventories []*LocalInventory `protobuf:"bytes,35,rep,name=local_inventories,json=localInventories,proto3" json:"local_inventories,omitempty"` // contains filtered or unexported fields }
Product captures all metadata information of items to be recommended or searched.
func (*Product) Descriptor
deprecated
func (*Product) GetAttributes ¶
func (x *Product) GetAttributes() map[string]*CustomAttribute
func (*Product) GetAudience ¶
func (*Product) GetAvailability ¶
func (x *Product) GetAvailability() Product_Availability
func (*Product) GetAvailableQuantity ¶
func (x *Product) GetAvailableQuantity() *wrapperspb.Int32Value
func (*Product) GetAvailableTime ¶
func (x *Product) GetAvailableTime() *timestamppb.Timestamp
func (*Product) GetCategories ¶
func (*Product) GetCollectionMemberIds ¶
func (*Product) GetColorInfo ¶
func (*Product) GetConditions ¶
func (*Product) GetDescription ¶
func (*Product) GetExpiration ¶
func (m *Product) GetExpiration() isProduct_Expiration
func (*Product) GetExpireTime ¶
func (x *Product) GetExpireTime() *timestamppb.Timestamp
func (*Product) GetFulfillmentInfo ¶
func (x *Product) GetFulfillmentInfo() []*FulfillmentInfo
func (*Product) GetLanguageCode ¶
func (*Product) GetLocalInventories ¶
func (x *Product) GetLocalInventories() []*LocalInventory
func (*Product) GetMaterials ¶
func (*Product) GetPatterns ¶
func (*Product) GetPriceInfo ¶
func (*Product) GetPrimaryProductId ¶
func (*Product) GetPromotions ¶
func (*Product) GetPublishTime ¶
func (x *Product) GetPublishTime() *timestamppb.Timestamp
func (*Product) GetRetrievableFields
deprecated
func (x *Product) GetRetrievableFields() *fieldmaskpb.FieldMask
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/product.proto.
func (*Product) GetTtl ¶
func (x *Product) GetTtl() *durationpb.Duration
func (*Product) GetType ¶
func (x *Product) GetType() Product_Type
func (*Product) GetVariants ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type ProductAttributeInterval ¶ added in v1.19.0
type ProductAttributeInterval struct { // The attribute name (e.g. "length") Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The numeric interval (e.g. [10, 20)) Interval *Interval `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` // contains filtered or unexported fields }
Product attribute name and numeric interval.
func (*ProductAttributeInterval) Descriptor
deprecated
added in
v1.19.0
func (*ProductAttributeInterval) Descriptor() ([]byte, []int)
Deprecated: Use ProductAttributeInterval.ProtoReflect.Descriptor instead.
func (*ProductAttributeInterval) GetInterval ¶ added in v1.19.0
func (x *ProductAttributeInterval) GetInterval() *Interval
func (*ProductAttributeInterval) GetName ¶ added in v1.19.0
func (x *ProductAttributeInterval) GetName() string
func (*ProductAttributeInterval) ProtoMessage ¶ added in v1.19.0
func (*ProductAttributeInterval) ProtoMessage()
func (*ProductAttributeInterval) ProtoReflect ¶ added in v1.19.0
func (x *ProductAttributeInterval) ProtoReflect() protoreflect.Message
func (*ProductAttributeInterval) Reset ¶ added in v1.19.0
func (x *ProductAttributeInterval) Reset()
func (*ProductAttributeInterval) String ¶ added in v1.19.0
func (x *ProductAttributeInterval) String() string
type ProductAttributeValue ¶ added in v1.19.0
type ProductAttributeValue struct { // The attribute name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The attribute value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`.
func (*ProductAttributeValue) Descriptor
deprecated
added in
v1.19.0
func (*ProductAttributeValue) Descriptor() ([]byte, []int)
Deprecated: Use ProductAttributeValue.ProtoReflect.Descriptor instead.
func (*ProductAttributeValue) GetName ¶ added in v1.19.0
func (x *ProductAttributeValue) GetName() string
func (*ProductAttributeValue) GetValue ¶ added in v1.19.0
func (x *ProductAttributeValue) GetValue() string
func (*ProductAttributeValue) ProtoMessage ¶ added in v1.19.0
func (*ProductAttributeValue) ProtoMessage()
func (*ProductAttributeValue) ProtoReflect ¶ added in v1.19.0
func (x *ProductAttributeValue) ProtoReflect() protoreflect.Message
func (*ProductAttributeValue) Reset ¶ added in v1.19.0
func (x *ProductAttributeValue) Reset()
func (*ProductAttributeValue) String ¶ added in v1.19.0
func (x *ProductAttributeValue) String() string
type ProductDetail ¶
type ProductDetail struct { // Required. [Product][google.cloud.retail.v2beta.Product] information. // // Required field(s): // // * [Product.id][google.cloud.retail.v2beta.Product.id] // // Optional override field(s): // // * [Product.price_info][google.cloud.retail.v2beta.Product.price_info] // // If any supported optional fields are provided, we will treat them as a full // override when looking up product information from the catalog. Thus, it is // important to ensure that the overriding fields are accurate and // complete. // // All other product fields are ignored and instead populated via catalog // lookup after event ingestion. Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` // Quantity of the product associated with the user event. // // For example, this field will be 2 if two products are added to the shopping // cart for `purchase-complete` event. Required for `add-to-cart` and // `purchase-complete` event types. Quantity *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
Detailed product information associated with a user event.
func (*ProductDetail) Descriptor
deprecated
func (*ProductDetail) Descriptor() ([]byte, []int)
Deprecated: Use ProductDetail.ProtoReflect.Descriptor instead.
func (*ProductDetail) GetProduct ¶
func (x *ProductDetail) GetProduct() *Product
func (*ProductDetail) GetQuantity ¶
func (x *ProductDetail) GetQuantity() *wrapperspb.Int32Value
func (*ProductDetail) ProtoMessage ¶
func (*ProductDetail) ProtoMessage()
func (*ProductDetail) ProtoReflect ¶
func (x *ProductDetail) ProtoReflect() protoreflect.Message
func (*ProductDetail) Reset ¶
func (x *ProductDetail) Reset()
func (*ProductDetail) String ¶
func (x *ProductDetail) String() string
type ProductInlineSource ¶
type ProductInlineSource struct { // Required. A list of products to update/create. Each product must have a // valid [Product.id][google.cloud.retail.v2beta.Product.id]. Recommended max // of 100 items. Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
The inline source for the input config for ImportProducts method.
func (*ProductInlineSource) Descriptor
deprecated
func (*ProductInlineSource) Descriptor() ([]byte, []int)
Deprecated: Use ProductInlineSource.ProtoReflect.Descriptor instead.
func (*ProductInlineSource) GetProducts ¶
func (x *ProductInlineSource) GetProducts() []*Product
func (*ProductInlineSource) ProtoMessage ¶
func (*ProductInlineSource) ProtoMessage()
func (*ProductInlineSource) ProtoReflect ¶
func (x *ProductInlineSource) ProtoReflect() protoreflect.Message
func (*ProductInlineSource) Reset ¶
func (x *ProductInlineSource) Reset()
func (*ProductInlineSource) String ¶
func (x *ProductInlineSource) String() string
type ProductInputConfig ¶
type ProductInputConfig struct { // Required. The source of the input. // // Types that are assignable to Source: // // *ProductInputConfig_ProductInlineSource // *ProductInputConfig_GcsSource // *ProductInputConfig_BigQuerySource Source isProductInputConfig_Source `protobuf_oneof:"source"` // contains filtered or unexported fields }
The input config source for products.
func (*ProductInputConfig) Descriptor
deprecated
func (*ProductInputConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProductInputConfig.ProtoReflect.Descriptor instead.
func (*ProductInputConfig) GetBigQuerySource ¶
func (x *ProductInputConfig) GetBigQuerySource() *BigQuerySource
func (*ProductInputConfig) GetGcsSource ¶
func (x *ProductInputConfig) GetGcsSource() *GcsSource
func (*ProductInputConfig) GetProductInlineSource ¶
func (x *ProductInputConfig) GetProductInlineSource() *ProductInlineSource
func (*ProductInputConfig) GetSource ¶
func (m *ProductInputConfig) GetSource() isProductInputConfig_Source
func (*ProductInputConfig) ProtoMessage ¶
func (*ProductInputConfig) ProtoMessage()
func (*ProductInputConfig) ProtoReflect ¶
func (x *ProductInputConfig) ProtoReflect() protoreflect.Message
func (*ProductInputConfig) Reset ¶
func (x *ProductInputConfig) Reset()
func (*ProductInputConfig) String ¶
func (x *ProductInputConfig) String() string
type ProductInputConfig_BigQuerySource ¶
type ProductInputConfig_BigQuerySource struct { // BigQuery input source. BigQuerySource *BigQuerySource `protobuf:"bytes,3,opt,name=big_query_source,json=bigQuerySource,proto3,oneof"` }
type ProductInputConfig_GcsSource ¶
type ProductInputConfig_GcsSource struct { // Google Cloud Storage location for the input content. GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"` }
type ProductInputConfig_ProductInlineSource ¶
type ProductInputConfig_ProductInlineSource struct { // The Inline source for the input content for products. ProductInlineSource *ProductInlineSource `protobuf:"bytes,1,opt,name=product_inline_source,json=productInlineSource,proto3,oneof"` }
type ProductLevelConfig ¶
type ProductLevelConfig struct { // The type of [Product][google.cloud.retail.v2beta.Product]s allowed to be // ingested into the catalog. Acceptable values are: // // * `primary` (default): You can ingest // [Product][google.cloud.retail.v2beta.Product]s of all types. When // // ingesting a [Product][google.cloud.retail.v2beta.Product], its type will // default to // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // if unset. // - `variant` (incompatible with Retail Search): You can only // ingest // [Product.Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s. This means // [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id] // cannot be empty. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // // If this field is `variant` and // [merchant_center_product_id_field][google.cloud.retail.v2beta.ProductLevelConfig.merchant_center_product_id_field] // is `itemGroupId`, an INVALID_ARGUMENT error is returned. // // See [Product // levels](https://cloud.google.com/retail/docs/catalog#product-levels) // for more details. IngestionProductType string `protobuf:"bytes,1,opt,name=ingestion_product_type,json=ingestionProductType,proto3" json:"ingestion_product_type,omitempty"` // Which field of [Merchant Center // Product](/bigquery-transfer/docs/merchant-center-products-schema) should be // imported as [Product.id][google.cloud.retail.v2beta.Product.id]. Acceptable // values are: // // - `offerId` (default): Import `offerId` as the product ID. // - `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail // API will choose one item from the ones with the same `itemGroupId`, and // use it to represent the item group. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // // If this field is `itemGroupId` and // [ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] // is `variant`, an INVALID_ARGUMENT error is returned. // // See [Product // levels](https://cloud.google.com/retail/docs/catalog#product-levels) // for more details. MerchantCenterProductIdField string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.
func (*ProductLevelConfig) Descriptor
deprecated
func (*ProductLevelConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProductLevelConfig.ProtoReflect.Descriptor instead.
func (*ProductLevelConfig) GetIngestionProductType ¶
func (x *ProductLevelConfig) GetIngestionProductType() string
func (*ProductLevelConfig) GetMerchantCenterProductIdField ¶
func (x *ProductLevelConfig) GetMerchantCenterProductIdField() string
func (*ProductLevelConfig) ProtoMessage ¶
func (*ProductLevelConfig) ProtoMessage()
func (*ProductLevelConfig) ProtoReflect ¶
func (x *ProductLevelConfig) ProtoReflect() protoreflect.Message
func (*ProductLevelConfig) Reset ¶
func (x *ProductLevelConfig) Reset()
func (*ProductLevelConfig) String ¶
func (x *ProductLevelConfig) String() string
type ProductServiceClient ¶
type ProductServiceClient interface { // Creates a [Product][google.cloud.retail.v2beta.Product]. CreateProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*Product, error) // Gets a [Product][google.cloud.retail.v2beta.Product]. GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) // Gets a list of [Product][google.cloud.retail.v2beta.Product]s. ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error) // Updates a [Product][google.cloud.retail.v2beta.Product]. UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*Product, error) // Deletes a [Product][google.cloud.retail.v2beta.Product]. DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Permanently deletes all selected // [Product][google.cloud.retail.v2beta.Product]s under a branch. // // This process is asynchronous. If the request is valid, the removal will be // enqueued and processed offline. Depending on the number of // [Product][google.cloud.retail.v2beta.Product]s, this operation could take // hours to complete. Before the operation completes, some // [Product][google.cloud.retail.v2beta.Product]s may still be returned by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, // this operation could take hours to complete. To get a sample of // [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set // [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] // to false. PurgeProducts(ctx context.Context, in *PurgeProductsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. // // Request processing may be synchronous. // Non-existing items are created. // // Note that it is possible for a subset of the // [Product][google.cloud.retail.v2beta.Product]s to be successfully updated. ImportProducts(ctx context.Context, in *ImportProductsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Exports multiple [Product][google.cloud.retail.v2beta.Product]s. ExportProducts(ctx context.Context, in *ExportProductsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Updates inventory information for a // [Product][google.cloud.retail.v2beta.Product] while respecting the last // update timestamps of each inventory field. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // fulfillment information. If the request is valid, the update is enqueued // and processed downstream. As a consequence, when a response is returned, // updates are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // When inventory is updated with // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // and // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct], // the specified inventory field value(s) overwrite any existing value(s) // while ignoring the last update time for this field. Furthermore, the last // update times for the specified inventory fields are overwritten by the // times of the // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // or // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // request. // // If no inventory fields are set in // [CreateProductRequest.product][google.cloud.retail.v2beta.CreateProductRequest.product], // then any pre-existing inventory information for this product is used. // // If no inventory fields are set in // [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask], // then any existing inventory information is preserved. // // Pre-existing inventory information can only be updated with // [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory], // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces], // and // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. // // The returned [Operation][google.longrunning.Operation]s is obsolete after // one day, and the [GetOperation][google.longrunning.Operations.GetOperation] // API returns `NOT_FOUND` afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates are not marked as [done][google.longrunning.Operation.done] until // they are obsolete. SetInventory(ctx context.Context, in *SetInventoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // We recommend that you use the // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] // method instead of the // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] // method. // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. // // Incrementally adds place IDs to // [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // fulfillment information. If the request is valid, the update will be // enqueued and processed downstream. As a consequence, when a response is // returned, the added place IDs are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. AddFulfillmentPlaces(ctx context.Context, in *AddFulfillmentPlacesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // We recommend that you use the // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] // method instead of the // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] // method. // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. // // Incrementally removes place IDs from a // [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // fulfillment information. If the request is valid, the update will be // enqueued and processed downstream. As a consequence, when a response is // returned, the removed place IDs are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. RemoveFulfillmentPlaces(ctx context.Context, in *RemoveFulfillmentPlacesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Updates local inventory information for a // [Product][google.cloud.retail.v2beta.Product] at a list of places, while // respecting the last update timestamps of each inventory field. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // inventory information. If the request is valid, the update will be enqueued // and processed downstream. As a consequence, when a response is returned, // updates are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // Local inventory information can only be modified using this method. // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // and // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // has no effect on local inventories. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. AddLocalInventories(ctx context.Context, in *AddLocalInventoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Remove local inventory information for a // [Product][google.cloud.retail.v2beta.Product] at a list of places at a // removal timestamp. // // This process is asynchronous. If the request is valid, the removal will be // enqueued and processed downstream. As a consequence, when a response is // returned, removals are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // Local inventory information can only be removed using this method. // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // and // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // has no effect on local inventories. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. RemoveLocalInventories(ctx context.Context, in *RemoveLocalInventoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) }
ProductServiceClient is the client API for ProductService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProductServiceClient ¶
func NewProductServiceClient(cc grpc.ClientConnInterface) ProductServiceClient
type ProductServiceServer ¶
type ProductServiceServer interface { // Creates a [Product][google.cloud.retail.v2beta.Product]. CreateProduct(context.Context, *CreateProductRequest) (*Product, error) // Gets a [Product][google.cloud.retail.v2beta.Product]. GetProduct(context.Context, *GetProductRequest) (*Product, error) // Gets a list of [Product][google.cloud.retail.v2beta.Product]s. ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error) // Updates a [Product][google.cloud.retail.v2beta.Product]. UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error) // Deletes a [Product][google.cloud.retail.v2beta.Product]. DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error) // Permanently deletes all selected // [Product][google.cloud.retail.v2beta.Product]s under a branch. // // This process is asynchronous. If the request is valid, the removal will be // enqueued and processed offline. Depending on the number of // [Product][google.cloud.retail.v2beta.Product]s, this operation could take // hours to complete. Before the operation completes, some // [Product][google.cloud.retail.v2beta.Product]s may still be returned by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, // this operation could take hours to complete. To get a sample of // [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set // [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] // to false. PurgeProducts(context.Context, *PurgeProductsRequest) (*longrunningpb.Operation, error) // Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. // // Request processing may be synchronous. // Non-existing items are created. // // Note that it is possible for a subset of the // [Product][google.cloud.retail.v2beta.Product]s to be successfully updated. ImportProducts(context.Context, *ImportProductsRequest) (*longrunningpb.Operation, error) // Exports multiple [Product][google.cloud.retail.v2beta.Product]s. ExportProducts(context.Context, *ExportProductsRequest) (*longrunningpb.Operation, error) // Updates inventory information for a // [Product][google.cloud.retail.v2beta.Product] while respecting the last // update timestamps of each inventory field. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // fulfillment information. If the request is valid, the update is enqueued // and processed downstream. As a consequence, when a response is returned, // updates are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // When inventory is updated with // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // and // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct], // the specified inventory field value(s) overwrite any existing value(s) // while ignoring the last update time for this field. Furthermore, the last // update times for the specified inventory fields are overwritten by the // times of the // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // or // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // request. // // If no inventory fields are set in // [CreateProductRequest.product][google.cloud.retail.v2beta.CreateProductRequest.product], // then any pre-existing inventory information for this product is used. // // If no inventory fields are set in // [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask], // then any existing inventory information is preserved. // // Pre-existing inventory information can only be updated with // [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory], // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces], // and // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. // // The returned [Operation][google.longrunning.Operation]s is obsolete after // one day, and the [GetOperation][google.longrunning.Operations.GetOperation] // API returns `NOT_FOUND` afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates are not marked as [done][google.longrunning.Operation.done] until // they are obsolete. SetInventory(context.Context, *SetInventoryRequest) (*longrunningpb.Operation, error) // We recommend that you use the // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] // method instead of the // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] // method. // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. // // Incrementally adds place IDs to // [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // fulfillment information. If the request is valid, the update will be // enqueued and processed downstream. As a consequence, when a response is // returned, the added place IDs are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. AddFulfillmentPlaces(context.Context, *AddFulfillmentPlacesRequest) (*longrunningpb.Operation, error) // We recommend that you use the // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] // method instead of the // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] // method. // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. // // Incrementally removes place IDs from a // [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // fulfillment information. If the request is valid, the update will be // enqueued and processed downstream. As a consequence, when a response is // returned, the removed place IDs are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. RemoveFulfillmentPlaces(context.Context, *RemoveFulfillmentPlacesRequest) (*longrunningpb.Operation, error) // Updates local inventory information for a // [Product][google.cloud.retail.v2beta.Product] at a list of places, while // respecting the last update timestamps of each inventory field. // // This process is asynchronous and does not require the // [Product][google.cloud.retail.v2beta.Product] to exist before updating // inventory information. If the request is valid, the update will be enqueued // and processed downstream. As a consequence, when a response is returned, // updates are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // Local inventory information can only be modified using this method. // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // and // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // has no effect on local inventories. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. AddLocalInventories(context.Context, *AddLocalInventoriesRequest) (*longrunningpb.Operation, error) // Remove local inventory information for a // [Product][google.cloud.retail.v2beta.Product] at a list of places at a // removal timestamp. // // This process is asynchronous. If the request is valid, the removal will be // enqueued and processed downstream. As a consequence, when a response is // returned, removals are not immediately manifested in the // [Product][google.cloud.retail.v2beta.Product] queried by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // or // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. // // Local inventory information can only be removed using this method. // [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] // and // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // has no effect on local inventories. // // The returned [Operation][google.longrunning.Operation]s will be obsolete // after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] // API will return NOT_FOUND afterwards. // // If conflicting updates are issued, the // [Operation][google.longrunning.Operation]s associated with the stale // updates will not be marked as [done][google.longrunning.Operation.done] // until being obsolete. RemoveLocalInventories(context.Context, *RemoveLocalInventoriesRequest) (*longrunningpb.Operation, error) }
ProductServiceServer is the server API for ProductService service.
type Product_Availability ¶
type Product_Availability int32
Product availability. If this field is unspecified, the product is assumed to be in stock.
const ( // Default product availability. Default to // [Availability.IN_STOCK][google.cloud.retail.v2beta.Product.Availability.IN_STOCK] // if unset. Product_AVAILABILITY_UNSPECIFIED Product_Availability = 0 // Product in stock. Product_IN_STOCK Product_Availability = 1 // Product out of stock. Product_OUT_OF_STOCK Product_Availability = 2 // Product that is in pre-order state. Product_PREORDER Product_Availability = 3 // Product that is back-ordered (i.e. temporarily out of stock). Product_BACKORDER Product_Availability = 4 )
func (Product_Availability) Descriptor ¶
func (Product_Availability) Descriptor() protoreflect.EnumDescriptor
func (Product_Availability) Enum ¶
func (x Product_Availability) Enum() *Product_Availability
func (Product_Availability) EnumDescriptor
deprecated
func (Product_Availability) EnumDescriptor() ([]byte, []int)
Deprecated: Use Product_Availability.Descriptor instead.
func (Product_Availability) Number ¶
func (x Product_Availability) Number() protoreflect.EnumNumber
func (Product_Availability) String ¶
func (x Product_Availability) String() string
func (Product_Availability) Type ¶
func (Product_Availability) Type() protoreflect.EnumType
type Product_ExpireTime ¶
type Product_ExpireTime struct { // Note that this field is applied in the following ways: // // * If the [Product][google.cloud.retail.v2beta.Product] is already expired // when it is uploaded, this product // // is not indexed for search. // // * If the [Product][google.cloud.retail.v2beta.Product] is not expired // when it is uploaded, only the // // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s // expireTime is respected, and // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s // expireTime is not used. // // In general, we suggest the users to delete the stale // products explicitly, instead of using this field to determine staleness. // // [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be // later than // [available_time][google.cloud.retail.v2beta.Product.available_time] and // [publish_time][google.cloud.retail.v2beta.Product.publish_time], // otherwise an INVALID_ARGUMENT error is thrown. // // Corresponding properties: Google Merchant Center property // [expiration_date](https://support.google.com/merchants/answer/6324499). ExpireTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=expire_time,json=expireTime,proto3,oneof"` }
type Product_Ttl ¶
type Product_Ttl struct { // Input only. The TTL (time to live) of the product. Note that this is only // applicable to // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], // and ignored for // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In // general, we suggest the users to delete the stale products explicitly, // instead of using this field to determine staleness. // // If it is set, it must be a non-negative value, and // [expire_time][google.cloud.retail.v2beta.Product.expire_time] is set as // current timestamp plus [ttl][google.cloud.retail.v2beta.Product.ttl]. The // derived [expire_time][google.cloud.retail.v2beta.Product.expire_time] is // returned in the output and [ttl][google.cloud.retail.v2beta.Product.ttl] // is left blank when retrieving the // [Product][google.cloud.retail.v2beta.Product]. // // If it is set, the product is not available for // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] // after current timestamp plus // [ttl][google.cloud.retail.v2beta.Product.ttl]. However, the product can // still be retrieved by // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] // and // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. Ttl *durationpb.Duration `protobuf:"bytes,17,opt,name=ttl,proto3,oneof"` }
type Product_Type ¶
type Product_Type int32
The type of this product.
const ( // Default value. Default to // [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] // if unset. Product_TYPE_UNSPECIFIED Product_Type = 0 // The primary type. // // As the primary unit for predicting, indexing and search serving, a // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product] is grouped with multiple // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s. Product_PRIMARY Product_Type = 1 // The variant type. // // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s usually share some common // attributes on the same // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]s, but they have variant // attributes like different colors, sizes and prices, etc. Product_VARIANT Product_Type = 2 // The collection type. Collection products are bundled // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]s or // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s that are sold together, // such as a jewelry set with necklaces, earrings and rings, etc. Product_COLLECTION Product_Type = 3 )
func (Product_Type) Descriptor ¶
func (Product_Type) Descriptor() protoreflect.EnumDescriptor
func (Product_Type) Enum ¶
func (x Product_Type) Enum() *Product_Type
func (Product_Type) EnumDescriptor
deprecated
func (Product_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Product_Type.Descriptor instead.
func (Product_Type) Number ¶
func (x Product_Type) Number() protoreflect.EnumNumber
func (Product_Type) String ¶
func (x Product_Type) String() string
func (Product_Type) Type ¶
func (Product_Type) Type() protoreflect.EnumType
type ProjectServiceClient ¶ added in v1.19.0
type ProjectServiceClient interface { // Get the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] of the // requested project. GetAlertConfig(ctx context.Context, in *GetAlertConfigRequest, opts ...grpc.CallOption) (*AlertConfig, error) // Update the alert config of the requested project. UpdateAlertConfig(ctx context.Context, in *UpdateAlertConfigRequest, opts ...grpc.CallOption) (*AlertConfig, error) }
ProjectServiceClient is the client API for ProjectService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProjectServiceClient ¶ added in v1.19.0
func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient
type ProjectServiceServer ¶ added in v1.19.0
type ProjectServiceServer interface { // Get the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] of the // requested project. GetAlertConfig(context.Context, *GetAlertConfigRequest) (*AlertConfig, error) // Update the alert config of the requested project. UpdateAlertConfig(context.Context, *UpdateAlertConfigRequest) (*AlertConfig, error) }
ProjectServiceServer is the server API for ProjectService service.
type Promotion ¶
type Promotion struct { // ID of the promotion. For example, "free gift". // // The value must be a UTF-8 encoded string with a length limit of 128 // characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example, // id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is // returned. // // Corresponds to Google Merchant Center property // [promotion_id](https://support.google.com/merchants/answer/7050148). PromotionId string `protobuf:"bytes,1,opt,name=promotion_id,json=promotionId,proto3" json:"promotion_id,omitempty"` // contains filtered or unexported fields }
Promotion information.
func (*Promotion) Descriptor
deprecated
func (*Promotion) GetPromotionId ¶
func (*Promotion) ProtoMessage ¶
func (*Promotion) ProtoMessage()
func (*Promotion) ProtoReflect ¶
func (x *Promotion) ProtoReflect() protoreflect.Message
type PurchaseTransaction ¶
type PurchaseTransaction struct { // The transaction ID with a length limit of 128 characters. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Required. Total non-zero revenue or grand total associated with the // transaction. This value include shipping, tax, or other adjustments to // total revenue that you want to include as part of your revenue // calculations. Revenue float32 `protobuf:"fixed32,2,opt,name=revenue,proto3" json:"revenue,omitempty"` // All the taxes associated with the transaction. Tax float32 `protobuf:"fixed32,3,opt,name=tax,proto3" json:"tax,omitempty"` // All the costs associated with the products. These can be manufacturing // costs, shipping expenses not borne by the end user, or any other costs, // such that: // // * Profit = // [revenue][google.cloud.retail.v2beta.PurchaseTransaction.revenue] - // [tax][google.cloud.retail.v2beta.PurchaseTransaction.tax] - // [cost][google.cloud.retail.v2beta.PurchaseTransaction.cost] Cost float32 `protobuf:"fixed32,4,opt,name=cost,proto3" json:"cost,omitempty"` // Required. Currency code. Use three-character ISO-4217 code. CurrencyCode string `protobuf:"bytes,5,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` // contains filtered or unexported fields }
A transaction represents the entire purchase transaction.
func (*PurchaseTransaction) Descriptor
deprecated
func (*PurchaseTransaction) Descriptor() ([]byte, []int)
Deprecated: Use PurchaseTransaction.ProtoReflect.Descriptor instead.
func (*PurchaseTransaction) GetCost ¶
func (x *PurchaseTransaction) GetCost() float32
func (*PurchaseTransaction) GetCurrencyCode ¶
func (x *PurchaseTransaction) GetCurrencyCode() string
func (*PurchaseTransaction) GetId ¶
func (x *PurchaseTransaction) GetId() string
func (*PurchaseTransaction) GetRevenue ¶
func (x *PurchaseTransaction) GetRevenue() float32
func (*PurchaseTransaction) GetTax ¶
func (x *PurchaseTransaction) GetTax() float32
func (*PurchaseTransaction) ProtoMessage ¶
func (*PurchaseTransaction) ProtoMessage()
func (*PurchaseTransaction) ProtoReflect ¶
func (x *PurchaseTransaction) ProtoReflect() protoreflect.Message
func (*PurchaseTransaction) Reset ¶
func (x *PurchaseTransaction) Reset()
func (*PurchaseTransaction) String ¶
func (x *PurchaseTransaction) String() string
type PurgeMetadata ¶
type PurgeMetadata struct {
// contains filtered or unexported fields
}
Metadata related to the progress of the Purge operation. This will be returned by the google.longrunning.Operation.metadata field.
func (*PurgeMetadata) Descriptor
deprecated
func (*PurgeMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PurgeMetadata.ProtoReflect.Descriptor instead.
func (*PurgeMetadata) ProtoMessage ¶
func (*PurgeMetadata) ProtoMessage()
func (*PurgeMetadata) ProtoReflect ¶
func (x *PurgeMetadata) ProtoReflect() protoreflect.Message
func (*PurgeMetadata) Reset ¶
func (x *PurgeMetadata) Reset()
func (*PurgeMetadata) String ¶
func (x *PurgeMetadata) String() string
type PurgeProductsMetadata ¶ added in v1.17.0
type PurgeProductsMetadata struct { // Operation create time. CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Operation last update time. If the operation is done, this is also the // finish time. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Count of entries that were deleted successfully. SuccessCount int64 `protobuf:"varint,3,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // Count of entries that encountered errors while processing. FailureCount int64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` // contains filtered or unexported fields }
Metadata related to the progress of the PurgeProducts operation. This will be returned by the google.longrunning.Operation.metadata field.
func (*PurgeProductsMetadata) Descriptor
deprecated
added in
v1.17.0
func (*PurgeProductsMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PurgeProductsMetadata.ProtoReflect.Descriptor instead.
func (*PurgeProductsMetadata) GetCreateTime ¶ added in v1.17.0
func (x *PurgeProductsMetadata) GetCreateTime() *timestamppb.Timestamp
func (*PurgeProductsMetadata) GetFailureCount ¶ added in v1.17.0
func (x *PurgeProductsMetadata) GetFailureCount() int64
func (*PurgeProductsMetadata) GetSuccessCount ¶ added in v1.17.0
func (x *PurgeProductsMetadata) GetSuccessCount() int64
func (*PurgeProductsMetadata) GetUpdateTime ¶ added in v1.17.0
func (x *PurgeProductsMetadata) GetUpdateTime() *timestamppb.Timestamp
func (*PurgeProductsMetadata) ProtoMessage ¶ added in v1.17.0
func (*PurgeProductsMetadata) ProtoMessage()
func (*PurgeProductsMetadata) ProtoReflect ¶ added in v1.17.0
func (x *PurgeProductsMetadata) ProtoReflect() protoreflect.Message
func (*PurgeProductsMetadata) Reset ¶ added in v1.17.0
func (x *PurgeProductsMetadata) Reset()
func (*PurgeProductsMetadata) String ¶ added in v1.17.0
func (x *PurgeProductsMetadata) String() string
type PurgeProductsRequest ¶ added in v1.17.0
type PurgeProductsRequest struct { // Required. The resource name of the branch under which the products are // created. The format is // `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The filter string to specify the products to be deleted with a // length limit of 5,000 characters. // // Empty string filter is not allowed. "*" implies delete all items in a // branch. // // The eligible fields for filtering are: // // * `availability`: Double quoted // [Product.availability][google.cloud.retail.v2beta.Product.availability] // string. // * `create_time` : in ISO 8601 "zulu" format. // // Supported syntax: // // - Comparators (">", "<", ">=", "<=", "="). // Examples: // - create_time <= "2015-02-13T17:05:46Z" // - availability = "IN_STOCK" // // - Conjunctions ("AND") // Examples: // - create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER" // // - Disjunctions ("OR") // Examples: // - create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" // // - Can support nested queries. // Examples: // - (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER") // OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK") // // * Filter Limits: // - Filter should not contain more than 6 conditions. // - Max nesting depth should not exceed 2 levels. // // Examples queries: // - Delete back order products created before a timestamp. // create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER" Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Actually perform the purge. // If `force` is set to false, the method will return the expected purge count // without deleting any products. Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
Request message for PurgeProducts method.
func (*PurgeProductsRequest) Descriptor
deprecated
added in
v1.17.0
func (*PurgeProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PurgeProductsRequest.ProtoReflect.Descriptor instead.
func (*PurgeProductsRequest) GetFilter ¶ added in v1.17.0
func (x *PurgeProductsRequest) GetFilter() string
func (*PurgeProductsRequest) GetForce ¶ added in v1.17.0
func (x *PurgeProductsRequest) GetForce() bool
func (*PurgeProductsRequest) GetParent ¶ added in v1.17.0
func (x *PurgeProductsRequest) GetParent() string
func (*PurgeProductsRequest) ProtoMessage ¶ added in v1.17.0
func (*PurgeProductsRequest) ProtoMessage()
func (*PurgeProductsRequest) ProtoReflect ¶ added in v1.17.0
func (x *PurgeProductsRequest) ProtoReflect() protoreflect.Message
func (*PurgeProductsRequest) Reset ¶ added in v1.17.0
func (x *PurgeProductsRequest) Reset()
func (*PurgeProductsRequest) String ¶ added in v1.17.0
func (x *PurgeProductsRequest) String() string
type PurgeProductsResponse ¶ added in v1.17.0
type PurgeProductsResponse struct { // The total count of products purged as a result of the operation. PurgeCount int64 `protobuf:"varint,1,opt,name=purge_count,json=purgeCount,proto3" json:"purge_count,omitempty"` // A sample of the product names that will be deleted. // Only populated if `force` is set to false. A max of 100 names will be // returned and the names are chosen at random. PurgeSample []string `protobuf:"bytes,2,rep,name=purge_sample,json=purgeSample,proto3" json:"purge_sample,omitempty"` // contains filtered or unexported fields }
Response of the PurgeProductsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.
func (*PurgeProductsResponse) Descriptor
deprecated
added in
v1.17.0
func (*PurgeProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PurgeProductsResponse.ProtoReflect.Descriptor instead.
func (*PurgeProductsResponse) GetPurgeCount ¶ added in v1.17.0
func (x *PurgeProductsResponse) GetPurgeCount() int64
func (*PurgeProductsResponse) GetPurgeSample ¶ added in v1.17.0
func (x *PurgeProductsResponse) GetPurgeSample() []string
func (*PurgeProductsResponse) ProtoMessage ¶ added in v1.17.0
func (*PurgeProductsResponse) ProtoMessage()
func (*PurgeProductsResponse) ProtoReflect ¶ added in v1.17.0
func (x *PurgeProductsResponse) ProtoReflect() protoreflect.Message
func (*PurgeProductsResponse) Reset ¶ added in v1.17.0
func (x *PurgeProductsResponse) Reset()
func (*PurgeProductsResponse) String ¶ added in v1.17.0
func (x *PurgeProductsResponse) String() string
type PurgeUserEventsRequest ¶
type PurgeUserEventsRequest struct { // Required. The resource name of the catalog under which the events are // created. The format is // `projects/${projectId}/locations/global/catalogs/${catalogId}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The filter string to specify the events to be deleted with a // length limit of 5,000 characters. Empty string filter is not allowed. The // eligible fields for filtering are: // // * `eventType`: Double quoted // [UserEvent.event_type][google.cloud.retail.v2beta.UserEvent.event_type] // string. // - `eventTime`: in ISO 8601 "zulu" format. // - `visitorId`: Double quoted string. Specifying this will delete all // events associated with a visitor. // - `userId`: Double quoted string. Specifying this will delete all events // associated with a user. // // Examples: // // - Deleting all events in a time range: // `eventTime > "2012-04-23T18:25:43.511Z" // eventTime < "2012-04-23T18:30:43.511Z"` // - Deleting specific eventType in time range: // `eventTime > "2012-04-23T18:25:43.511Z" eventType = "detail-page-view"` // - Deleting all events for a specific visitor: // `visitorId = "visitor1024"` // // The filtering fields are assumed to have an implicit AND. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Actually perform the purge. // If `force` is set to false, the method will return the expected purge count // without deleting any user events. Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
Request message for PurgeUserEvents method.
func (*PurgeUserEventsRequest) Descriptor
deprecated
func (*PurgeUserEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PurgeUserEventsRequest.ProtoReflect.Descriptor instead.
func (*PurgeUserEventsRequest) GetFilter ¶
func (x *PurgeUserEventsRequest) GetFilter() string
func (*PurgeUserEventsRequest) GetForce ¶
func (x *PurgeUserEventsRequest) GetForce() bool
func (*PurgeUserEventsRequest) GetParent ¶
func (x *PurgeUserEventsRequest) GetParent() string
func (*PurgeUserEventsRequest) ProtoMessage ¶
func (*PurgeUserEventsRequest) ProtoMessage()
func (*PurgeUserEventsRequest) ProtoReflect ¶
func (x *PurgeUserEventsRequest) ProtoReflect() protoreflect.Message
func (*PurgeUserEventsRequest) Reset ¶
func (x *PurgeUserEventsRequest) Reset()
func (*PurgeUserEventsRequest) String ¶
func (x *PurgeUserEventsRequest) String() string
type PurgeUserEventsResponse ¶
type PurgeUserEventsResponse struct { // The total count of events purged as a result of the operation. PurgedEventsCount int64 `protobuf:"varint,1,opt,name=purged_events_count,json=purgedEventsCount,proto3" json:"purged_events_count,omitempty"` // contains filtered or unexported fields }
Response of the PurgeUserEventsRequest. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.
func (*PurgeUserEventsResponse) Descriptor
deprecated
func (*PurgeUserEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PurgeUserEventsResponse.ProtoReflect.Descriptor instead.
func (*PurgeUserEventsResponse) GetPurgedEventsCount ¶
func (x *PurgeUserEventsResponse) GetPurgedEventsCount() int64
func (*PurgeUserEventsResponse) ProtoMessage ¶
func (*PurgeUserEventsResponse) ProtoMessage()
func (*PurgeUserEventsResponse) ProtoReflect ¶
func (x *PurgeUserEventsResponse) ProtoReflect() protoreflect.Message
func (*PurgeUserEventsResponse) Reset ¶
func (x *PurgeUserEventsResponse) Reset()
func (*PurgeUserEventsResponse) String ¶
func (x *PurgeUserEventsResponse) String() string
type Rating ¶
type Rating struct { // The total number of ratings. This value is independent of the value of // [rating_histogram][google.cloud.retail.v2beta.Rating.rating_histogram]. // // This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is // returned. RatingCount int32 `protobuf:"varint,1,opt,name=rating_count,json=ratingCount,proto3" json:"rating_count,omitempty"` // The average rating of the [Product][google.cloud.retail.v2beta.Product]. // // The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is // returned. AverageRating float32 `protobuf:"fixed32,2,opt,name=average_rating,json=averageRating,proto3" json:"average_rating,omitempty"` // List of rating counts per rating value (index = rating - 1). The list is // empty if there is no rating. If the list is non-empty, its size is // always 5. Otherwise, an INVALID_ARGUMENT error is returned. // // For example, [41, 14, 13, 47, 303]. It means that the // [Product][google.cloud.retail.v2beta.Product] got 41 ratings with 1 star, // 14 ratings with 2 star, and so on. RatingHistogram []int32 `protobuf:"varint,3,rep,packed,name=rating_histogram,json=ratingHistogram,proto3" json:"rating_histogram,omitempty"` // contains filtered or unexported fields }
The rating of a Product[google.cloud.retail.v2beta.Product].
func (*Rating) Descriptor
deprecated
func (*Rating) GetAverageRating ¶
func (*Rating) GetRatingCount ¶
func (*Rating) GetRatingHistogram ¶
func (*Rating) ProtoMessage ¶
func (*Rating) ProtoMessage()
func (*Rating) ProtoReflect ¶
func (x *Rating) ProtoReflect() protoreflect.Message
type RecommendationsFilteringOption ¶
type RecommendationsFilteringOption int32
If filtering for recommendations is enabled.
const ( // Value used when unset. // In this case, server behavior defaults to // [RECOMMENDATIONS_FILTERING_DISABLED][google.cloud.retail.v2beta.RecommendationsFilteringOption.RECOMMENDATIONS_FILTERING_DISABLED]. RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED RecommendationsFilteringOption = 0 // Recommendation filtering is disabled. RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_DISABLED RecommendationsFilteringOption = 1 // Recommendation filtering is enabled. RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_ENABLED RecommendationsFilteringOption = 3 )
func (RecommendationsFilteringOption) Descriptor ¶
func (RecommendationsFilteringOption) Descriptor() protoreflect.EnumDescriptor
func (RecommendationsFilteringOption) Enum ¶
func (x RecommendationsFilteringOption) Enum() *RecommendationsFilteringOption
func (RecommendationsFilteringOption) EnumDescriptor
deprecated
func (RecommendationsFilteringOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecommendationsFilteringOption.Descriptor instead.
func (RecommendationsFilteringOption) Number ¶
func (x RecommendationsFilteringOption) Number() protoreflect.EnumNumber
func (RecommendationsFilteringOption) String ¶
func (x RecommendationsFilteringOption) String() string
func (RecommendationsFilteringOption) Type ¶
func (RecommendationsFilteringOption) Type() protoreflect.EnumType
type RejoinUserEventsMetadata ¶
type RejoinUserEventsMetadata struct {
// contains filtered or unexported fields
}
Metadata for `RejoinUserEvents` method.
func (*RejoinUserEventsMetadata) Descriptor
deprecated
func (*RejoinUserEventsMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RejoinUserEventsMetadata.ProtoReflect.Descriptor instead.
func (*RejoinUserEventsMetadata) ProtoMessage ¶
func (*RejoinUserEventsMetadata) ProtoMessage()
func (*RejoinUserEventsMetadata) ProtoReflect ¶
func (x *RejoinUserEventsMetadata) ProtoReflect() protoreflect.Message
func (*RejoinUserEventsMetadata) Reset ¶
func (x *RejoinUserEventsMetadata) Reset()
func (*RejoinUserEventsMetadata) String ¶
func (x *RejoinUserEventsMetadata) String() string
type RejoinUserEventsRequest ¶
type RejoinUserEventsRequest struct { // Required. The parent catalog resource name, such as // `projects/1234/locations/global/catalogs/default_catalog`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The type of the user event rejoin to define the scope and range of the user // events to be rejoined with the latest product catalog. Defaults to // `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to // an invalid integer value. UserEventRejoinScope RejoinUserEventsRequest_UserEventRejoinScope `` /* 203-byte string literal not displayed */ // contains filtered or unexported fields }
Request message for RejoinUserEvents method.
func (*RejoinUserEventsRequest) Descriptor
deprecated
func (*RejoinUserEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RejoinUserEventsRequest.ProtoReflect.Descriptor instead.
func (*RejoinUserEventsRequest) GetParent ¶
func (x *RejoinUserEventsRequest) GetParent() string
func (*RejoinUserEventsRequest) GetUserEventRejoinScope ¶
func (x *RejoinUserEventsRequest) GetUserEventRejoinScope() RejoinUserEventsRequest_UserEventRejoinScope
func (*RejoinUserEventsRequest) ProtoMessage ¶
func (*RejoinUserEventsRequest) ProtoMessage()
func (*RejoinUserEventsRequest) ProtoReflect ¶
func (x *RejoinUserEventsRequest) ProtoReflect() protoreflect.Message
func (*RejoinUserEventsRequest) Reset ¶
func (x *RejoinUserEventsRequest) Reset()
func (*RejoinUserEventsRequest) String ¶
func (x *RejoinUserEventsRequest) String() string
type RejoinUserEventsRequest_UserEventRejoinScope ¶
type RejoinUserEventsRequest_UserEventRejoinScope int32
The scope of user events to be rejoined with the latest product catalog. If the rejoining aims at reducing number of unjoined events, set `UserEventRejoinScope` to `UNJOINED_EVENTS`. If the rejoining aims at correcting product catalog information in joined events, set `UserEventRejoinScope` to `JOINED_EVENTS`. If all events needs to be rejoined, set `UserEventRejoinScope` to `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED`.
const ( // Rejoin all events with the latest product catalog, including both joined // events and unjoined events. RejoinUserEventsRequest_USER_EVENT_REJOIN_SCOPE_UNSPECIFIED RejoinUserEventsRequest_UserEventRejoinScope = 0 // Only rejoin joined events with the latest product catalog. RejoinUserEventsRequest_JOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 1 // Only rejoin unjoined events with the latest product catalog. RejoinUserEventsRequest_UNJOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 2 )
func (RejoinUserEventsRequest_UserEventRejoinScope) Descriptor ¶
func (RejoinUserEventsRequest_UserEventRejoinScope) Descriptor() protoreflect.EnumDescriptor
func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor
deprecated
func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor() ([]byte, []int)
Deprecated: Use RejoinUserEventsRequest_UserEventRejoinScope.Descriptor instead.
func (RejoinUserEventsRequest_UserEventRejoinScope) Number ¶
func (x RejoinUserEventsRequest_UserEventRejoinScope) Number() protoreflect.EnumNumber
func (RejoinUserEventsRequest_UserEventRejoinScope) String ¶
func (x RejoinUserEventsRequest_UserEventRejoinScope) String() string
func (RejoinUserEventsRequest_UserEventRejoinScope) Type ¶
func (RejoinUserEventsRequest_UserEventRejoinScope) Type() protoreflect.EnumType
type RejoinUserEventsResponse ¶
type RejoinUserEventsResponse struct { // Number of user events that were joined with latest product catalog. RejoinedUserEventsCount int64 `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
Response message for `RejoinUserEvents` method.
func (*RejoinUserEventsResponse) Descriptor
deprecated
func (*RejoinUserEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use RejoinUserEventsResponse.ProtoReflect.Descriptor instead.
func (*RejoinUserEventsResponse) GetRejoinedUserEventsCount ¶
func (x *RejoinUserEventsResponse) GetRejoinedUserEventsCount() int64
func (*RejoinUserEventsResponse) ProtoMessage ¶
func (*RejoinUserEventsResponse) ProtoMessage()
func (*RejoinUserEventsResponse) ProtoReflect ¶
func (x *RejoinUserEventsResponse) ProtoReflect() protoreflect.Message
func (*RejoinUserEventsResponse) Reset ¶
func (x *RejoinUserEventsResponse) Reset()
func (*RejoinUserEventsResponse) String ¶
func (x *RejoinUserEventsResponse) String() string
type RemoveCatalogAttributeRequest ¶
type RemoveCatalogAttributeRequest struct { // Required. Full AttributesConfig resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"` // Required. The attribute name key of the // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to remove. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.RemoveCatalogAttribute][google.cloud.retail.v2beta.CatalogService.RemoveCatalogAttribute] method.
func (*RemoveCatalogAttributeRequest) Descriptor
deprecated
func (*RemoveCatalogAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCatalogAttributeRequest.ProtoReflect.Descriptor instead.
func (*RemoveCatalogAttributeRequest) GetAttributesConfig ¶
func (x *RemoveCatalogAttributeRequest) GetAttributesConfig() string
func (*RemoveCatalogAttributeRequest) GetKey ¶
func (x *RemoveCatalogAttributeRequest) GetKey() string
func (*RemoveCatalogAttributeRequest) ProtoMessage ¶
func (*RemoveCatalogAttributeRequest) ProtoMessage()
func (*RemoveCatalogAttributeRequest) ProtoReflect ¶
func (x *RemoveCatalogAttributeRequest) ProtoReflect() protoreflect.Message
func (*RemoveCatalogAttributeRequest) Reset ¶
func (x *RemoveCatalogAttributeRequest) Reset()
func (*RemoveCatalogAttributeRequest) String ¶
func (x *RemoveCatalogAttributeRequest) String() string
type RemoveControlRequest ¶
type RemoveControlRequest struct { // Required. The source ServingConfig resource name . Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` ServingConfig string `protobuf:"bytes,1,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"` // Required. The id of the control to apply. Assumed to be in the same catalog // as the serving config. ControlId string `protobuf:"bytes,2,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"` // contains filtered or unexported fields }
Request for RemoveControl method.
func (*RemoveControlRequest) Descriptor
deprecated
func (*RemoveControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveControlRequest.ProtoReflect.Descriptor instead.
func (*RemoveControlRequest) GetControlId ¶
func (x *RemoveControlRequest) GetControlId() string
func (*RemoveControlRequest) GetServingConfig ¶
func (x *RemoveControlRequest) GetServingConfig() string
func (*RemoveControlRequest) ProtoMessage ¶
func (*RemoveControlRequest) ProtoMessage()
func (*RemoveControlRequest) ProtoReflect ¶
func (x *RemoveControlRequest) ProtoReflect() protoreflect.Message
func (*RemoveControlRequest) Reset ¶
func (x *RemoveControlRequest) Reset()
func (*RemoveControlRequest) String ¶
func (x *RemoveControlRequest) String() string
type RemoveFulfillmentPlacesMetadata ¶
type RemoveFulfillmentPlacesMetadata struct {
// contains filtered or unexported fields
}
Metadata related to the progress of the RemoveFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] method.
func (*RemoveFulfillmentPlacesMetadata) Descriptor
deprecated
func (*RemoveFulfillmentPlacesMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFulfillmentPlacesMetadata.ProtoReflect.Descriptor instead.
func (*RemoveFulfillmentPlacesMetadata) ProtoMessage ¶
func (*RemoveFulfillmentPlacesMetadata) ProtoMessage()
func (*RemoveFulfillmentPlacesMetadata) ProtoReflect ¶
func (x *RemoveFulfillmentPlacesMetadata) ProtoReflect() protoreflect.Message
func (*RemoveFulfillmentPlacesMetadata) Reset ¶
func (x *RemoveFulfillmentPlacesMetadata) Reset()
func (*RemoveFulfillmentPlacesMetadata) String ¶
func (x *RemoveFulfillmentPlacesMetadata) String() string
type RemoveFulfillmentPlacesRequest ¶
type RemoveFulfillmentPlacesRequest 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.RemoveFulfillmentPlacesRequest.type], // such as the store IDs for "pickup-in-store" or the region IDs for // "same-day-delivery", to be removed for this // [type][google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest.type]. // // At least 1 value is required, and a maximum of 2000 values are allowed. // Each value must be a string with a length limit of 10 characters, matching // the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an // INVALID_ARGUMENT error is returned. PlaceIds []string `protobuf:"bytes,3,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"` // The time when the fulfillment updates are issued, used to prevent // out-of-order updates on fulfillment information. If not provided, the // internal system time will be used. RemoveTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.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.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] method.
func (*RemoveFulfillmentPlacesRequest) Descriptor
deprecated
func (*RemoveFulfillmentPlacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFulfillmentPlacesRequest.ProtoReflect.Descriptor instead.
func (*RemoveFulfillmentPlacesRequest) GetAllowMissing ¶
func (x *RemoveFulfillmentPlacesRequest) GetAllowMissing() bool
func (*RemoveFulfillmentPlacesRequest) GetPlaceIds ¶
func (x *RemoveFulfillmentPlacesRequest) GetPlaceIds() []string
func (*RemoveFulfillmentPlacesRequest) GetProduct ¶
func (x *RemoveFulfillmentPlacesRequest) GetProduct() string
func (*RemoveFulfillmentPlacesRequest) GetRemoveTime ¶
func (x *RemoveFulfillmentPlacesRequest) GetRemoveTime() *timestamppb.Timestamp
func (*RemoveFulfillmentPlacesRequest) GetType ¶
func (x *RemoveFulfillmentPlacesRequest) GetType() string
func (*RemoveFulfillmentPlacesRequest) ProtoMessage ¶
func (*RemoveFulfillmentPlacesRequest) ProtoMessage()
func (*RemoveFulfillmentPlacesRequest) ProtoReflect ¶
func (x *RemoveFulfillmentPlacesRequest) ProtoReflect() protoreflect.Message
func (*RemoveFulfillmentPlacesRequest) Reset ¶
func (x *RemoveFulfillmentPlacesRequest) Reset()
func (*RemoveFulfillmentPlacesRequest) String ¶
func (x *RemoveFulfillmentPlacesRequest) String() string
type RemoveFulfillmentPlacesResponse ¶
type RemoveFulfillmentPlacesResponse struct {
// contains filtered or unexported fields
}
Response of the RemoveFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] method.
func (*RemoveFulfillmentPlacesResponse) Descriptor
deprecated
func (*RemoveFulfillmentPlacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFulfillmentPlacesResponse.ProtoReflect.Descriptor instead.
func (*RemoveFulfillmentPlacesResponse) ProtoMessage ¶
func (*RemoveFulfillmentPlacesResponse) ProtoMessage()
func (*RemoveFulfillmentPlacesResponse) ProtoReflect ¶
func (x *RemoveFulfillmentPlacesResponse) ProtoReflect() protoreflect.Message
func (*RemoveFulfillmentPlacesResponse) Reset ¶
func (x *RemoveFulfillmentPlacesResponse) Reset()
func (*RemoveFulfillmentPlacesResponse) String ¶
func (x *RemoveFulfillmentPlacesResponse) String() string
type RemoveLocalInventoriesMetadata ¶
type RemoveLocalInventoriesMetadata struct {
// contains filtered or unexported fields
}
Metadata related to the progress of the RemoveLocalInventories operation. Currently empty because there is no meaningful metadata populated from the [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] method.
func (*RemoveLocalInventoriesMetadata) Descriptor
deprecated
func (*RemoveLocalInventoriesMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RemoveLocalInventoriesMetadata.ProtoReflect.Descriptor instead.
func (*RemoveLocalInventoriesMetadata) ProtoMessage ¶
func (*RemoveLocalInventoriesMetadata) ProtoMessage()
func (*RemoveLocalInventoriesMetadata) ProtoReflect ¶
func (x *RemoveLocalInventoriesMetadata) ProtoReflect() protoreflect.Message
func (*RemoveLocalInventoriesMetadata) Reset ¶
func (x *RemoveLocalInventoriesMetadata) Reset()
func (*RemoveLocalInventoriesMetadata) String ¶
func (x *RemoveLocalInventoriesMetadata) String() string
type RemoveLocalInventoriesRequest ¶
type RemoveLocalInventoriesRequest 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 place IDs to have their inventory deleted. // At most 3000 place IDs are allowed per request. PlaceIds []string `protobuf:"bytes,2,rep,name=place_ids,json=placeIds,proto3" json:"place_ids,omitempty"` // The time when the inventory deletions are issued. Used to prevent // out-of-order updates and deletions on local inventory fields. If not // provided, the internal system time will be used. RemoveTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=remove_time,json=removeTime,proto3" json:"remove_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2beta.Product] is // not found, the local inventory removal request will still be processed and // retained for at most 1 day and processed once the // [Product][google.cloud.retail.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,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] method.
func (*RemoveLocalInventoriesRequest) Descriptor
deprecated
func (*RemoveLocalInventoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveLocalInventoriesRequest.ProtoReflect.Descriptor instead.
func (*RemoveLocalInventoriesRequest) GetAllowMissing ¶
func (x *RemoveLocalInventoriesRequest) GetAllowMissing() bool
func (*RemoveLocalInventoriesRequest) GetPlaceIds ¶
func (x *RemoveLocalInventoriesRequest) GetPlaceIds() []string
func (*RemoveLocalInventoriesRequest) GetProduct ¶
func (x *RemoveLocalInventoriesRequest) GetProduct() string
func (*RemoveLocalInventoriesRequest) GetRemoveTime ¶
func (x *RemoveLocalInventoriesRequest) GetRemoveTime() *timestamppb.Timestamp
func (*RemoveLocalInventoriesRequest) ProtoMessage ¶
func (*RemoveLocalInventoriesRequest) ProtoMessage()
func (*RemoveLocalInventoriesRequest) ProtoReflect ¶
func (x *RemoveLocalInventoriesRequest) ProtoReflect() protoreflect.Message
func (*RemoveLocalInventoriesRequest) Reset ¶
func (x *RemoveLocalInventoriesRequest) Reset()
func (*RemoveLocalInventoriesRequest) String ¶
func (x *RemoveLocalInventoriesRequest) String() string
type RemoveLocalInventoriesResponse ¶
type RemoveLocalInventoriesResponse struct {
// contains filtered or unexported fields
}
Response of the [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] API. Currently empty because there is no meaningful response populated from the [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] method.
func (*RemoveLocalInventoriesResponse) Descriptor
deprecated
func (*RemoveLocalInventoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveLocalInventoriesResponse.ProtoReflect.Descriptor instead.
func (*RemoveLocalInventoriesResponse) ProtoMessage ¶
func (*RemoveLocalInventoriesResponse) ProtoMessage()
func (*RemoveLocalInventoriesResponse) ProtoReflect ¶
func (x *RemoveLocalInventoriesResponse) ProtoReflect() protoreflect.Message
func (*RemoveLocalInventoriesResponse) Reset ¶
func (x *RemoveLocalInventoriesResponse) Reset()
func (*RemoveLocalInventoriesResponse) String ¶
func (x *RemoveLocalInventoriesResponse) String() string
type ReplaceCatalogAttributeRequest ¶
type ReplaceCatalogAttributeRequest struct { // Required. Full AttributesConfig resource name. Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` AttributesConfig string `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"` // Required. The updated // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]. CatalogAttribute *CatalogAttribute `protobuf:"bytes,2,opt,name=catalog_attribute,json=catalogAttribute,proto3" json:"catalog_attribute,omitempty"` // Indicates which fields in the provided // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to update. // The following are NOT supported: // // * [CatalogAttribute.key][google.cloud.retail.v2beta.CatalogAttribute.key] // // If not set, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.ReplaceCatalogAttribute][google.cloud.retail.v2beta.CatalogService.ReplaceCatalogAttribute] method.
func (*ReplaceCatalogAttributeRequest) Descriptor
deprecated
func (*ReplaceCatalogAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReplaceCatalogAttributeRequest.ProtoReflect.Descriptor instead.
func (*ReplaceCatalogAttributeRequest) GetAttributesConfig ¶
func (x *ReplaceCatalogAttributeRequest) GetAttributesConfig() string
func (*ReplaceCatalogAttributeRequest) GetCatalogAttribute ¶
func (x *ReplaceCatalogAttributeRequest) GetCatalogAttribute() *CatalogAttribute
func (*ReplaceCatalogAttributeRequest) GetUpdateMask ¶
func (x *ReplaceCatalogAttributeRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*ReplaceCatalogAttributeRequest) ProtoMessage ¶
func (*ReplaceCatalogAttributeRequest) ProtoMessage()
func (*ReplaceCatalogAttributeRequest) ProtoReflect ¶
func (x *ReplaceCatalogAttributeRequest) ProtoReflect() protoreflect.Message
func (*ReplaceCatalogAttributeRequest) Reset ¶
func (x *ReplaceCatalogAttributeRequest) Reset()
func (*ReplaceCatalogAttributeRequest) String ¶
func (x *ReplaceCatalogAttributeRequest) String() string
type ResumeModelRequest ¶
type ResumeModelRequest struct { // Required. The name of the model to resume. // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for resuming training of a model.
func (*ResumeModelRequest) Descriptor
deprecated
func (*ResumeModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResumeModelRequest.ProtoReflect.Descriptor instead.
func (*ResumeModelRequest) GetName ¶
func (x *ResumeModelRequest) GetName() string
func (*ResumeModelRequest) ProtoMessage ¶
func (*ResumeModelRequest) ProtoMessage()
func (*ResumeModelRequest) ProtoReflect ¶
func (x *ResumeModelRequest) ProtoReflect() protoreflect.Message
func (*ResumeModelRequest) Reset ¶
func (x *ResumeModelRequest) Reset()
func (*ResumeModelRequest) String ¶
func (x *ResumeModelRequest) String() string
type Rule ¶
type Rule struct { // An action must be provided. // // Types that are assignable to Action: // // *Rule_BoostAction_ // *Rule_RedirectAction_ // *Rule_OnewaySynonymsAction_ // *Rule_DoNotAssociateAction_ // *Rule_ReplacementAction_ // *Rule_IgnoreAction_ // *Rule_FilterAction_ // *Rule_TwowaySynonymsAction_ // *Rule_ForceReturnFacetAction_ // *Rule_RemoveFacetAction_ Action isRule_Action `protobuf_oneof:"action"` // Required. The condition that triggers the rule. // If the condition is empty, the rule will always apply. Condition *Condition `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` // contains filtered or unexported fields }
A rule is a condition-action pair
* A condition defines when a rule is to be triggered. * An action specifies what occurs on that trigger. Currently rules only work for [controls][google.cloud.retail.v2beta.Control] with [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2beta.SolutionType.SOLUTION_TYPE_SEARCH].
func (*Rule) Descriptor
deprecated
func (*Rule) GetBoostAction ¶
func (x *Rule) GetBoostAction() *Rule_BoostAction
func (*Rule) GetCondition ¶
func (*Rule) GetDoNotAssociateAction ¶
func (x *Rule) GetDoNotAssociateAction() *Rule_DoNotAssociateAction
func (*Rule) GetFilterAction ¶
func (x *Rule) GetFilterAction() *Rule_FilterAction
func (*Rule) GetForceReturnFacetAction ¶ added in v1.17.0
func (x *Rule) GetForceReturnFacetAction() *Rule_ForceReturnFacetAction
func (*Rule) GetIgnoreAction ¶
func (x *Rule) GetIgnoreAction() *Rule_IgnoreAction
func (*Rule) GetOnewaySynonymsAction ¶
func (x *Rule) GetOnewaySynonymsAction() *Rule_OnewaySynonymsAction
func (*Rule) GetRedirectAction ¶
func (x *Rule) GetRedirectAction() *Rule_RedirectAction
func (*Rule) GetRemoveFacetAction ¶ added in v1.17.0
func (x *Rule) GetRemoveFacetAction() *Rule_RemoveFacetAction
func (*Rule) GetReplacementAction ¶
func (x *Rule) GetReplacementAction() *Rule_ReplacementAction
func (*Rule) GetTwowaySynonymsAction ¶
func (x *Rule) GetTwowaySynonymsAction() *Rule_TwowaySynonymsAction
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type Rule_BoostAction ¶
type Rule_BoostAction struct { // Strength of the condition boost, which must be in [-1, 1]. Negative // boost means demotion. Default is 0.0. // // Setting to 1.0 gives the item a big promotion. However, it does not // necessarily mean that the boosted item will be the top result at all // times, nor that other items will be excluded. Results could still be // shown even when none of them matches the condition. And results that // are significantly more relevant to the search query can still trump // your heavily favored but irrelevant items. // // Setting to -1.0 gives the item a big demotion. However, results that // are deeply relevant might still be shown. The item will have an // upstream battle to get a fairly high ranking, but it is not blocked out // completely. // // Setting to 0.0 means no boost applied. The boosting condition is // ignored. Boost float32 `protobuf:"fixed32,1,opt,name=boost,proto3" json:"boost,omitempty"` // The filter can have a max size of 5000 characters. // An expression which specifies which products to apply an action to. // The syntax and supported fields are the same as a filter expression. See // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] // for detail syntax and limitations. // // Examples: // // * To boost products with product ID "product_1" or "product_2", and // color // // "Red" or "Blue":<br> // *(id: ANY("product_1", "product_2"))<br>* // *AND<br>* // *(colorFamilies: ANY("Red", "Blue"))<br>* ProductsFilter string `protobuf:"bytes,2,opt,name=products_filter,json=productsFilter,proto3" json:"products_filter,omitempty"` // contains filtered or unexported fields }
A boost action to apply to results matching condition specified above.
func (*Rule_BoostAction) Descriptor
deprecated
func (*Rule_BoostAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_BoostAction.ProtoReflect.Descriptor instead.
func (*Rule_BoostAction) GetBoost ¶
func (x *Rule_BoostAction) GetBoost() float32
func (*Rule_BoostAction) GetProductsFilter ¶
func (x *Rule_BoostAction) GetProductsFilter() string
func (*Rule_BoostAction) ProtoMessage ¶
func (*Rule_BoostAction) ProtoMessage()
func (*Rule_BoostAction) ProtoReflect ¶
func (x *Rule_BoostAction) ProtoReflect() protoreflect.Message
func (*Rule_BoostAction) Reset ¶
func (x *Rule_BoostAction) Reset()
func (*Rule_BoostAction) String ¶
func (x *Rule_BoostAction) String() string
type Rule_BoostAction_ ¶
type Rule_BoostAction_ struct { // A boost action. BoostAction *Rule_BoostAction `protobuf:"bytes,2,opt,name=boost_action,json=boostAction,proto3,oneof"` }
type Rule_DoNotAssociateAction ¶
type Rule_DoNotAssociateAction struct { // Terms from the search query. // Will not consider do_not_associate_terms for search if in search query. // Can specify up to 100 terms. QueryTerms []string `protobuf:"bytes,2,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"` // Cannot contain duplicates or the query term. // Can specify up to 100 terms. DoNotAssociateTerms []string `protobuf:"bytes,3,rep,name=do_not_associate_terms,json=doNotAssociateTerms,proto3" json:"do_not_associate_terms,omitempty"` // Will be [deprecated = true] post migration; Terms []string `protobuf:"bytes,1,rep,name=terms,proto3" json:"terms,omitempty"` // contains filtered or unexported fields }
Prevents `query_term` from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".
func (*Rule_DoNotAssociateAction) Descriptor
deprecated
func (*Rule_DoNotAssociateAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_DoNotAssociateAction.ProtoReflect.Descriptor instead.
func (*Rule_DoNotAssociateAction) GetDoNotAssociateTerms ¶
func (x *Rule_DoNotAssociateAction) GetDoNotAssociateTerms() []string
func (*Rule_DoNotAssociateAction) GetQueryTerms ¶
func (x *Rule_DoNotAssociateAction) GetQueryTerms() []string
func (*Rule_DoNotAssociateAction) GetTerms ¶
func (x *Rule_DoNotAssociateAction) GetTerms() []string
func (*Rule_DoNotAssociateAction) ProtoMessage ¶
func (*Rule_DoNotAssociateAction) ProtoMessage()
func (*Rule_DoNotAssociateAction) ProtoReflect ¶
func (x *Rule_DoNotAssociateAction) ProtoReflect() protoreflect.Message
func (*Rule_DoNotAssociateAction) Reset ¶
func (x *Rule_DoNotAssociateAction) Reset()
func (*Rule_DoNotAssociateAction) String ¶
func (x *Rule_DoNotAssociateAction) String() string
type Rule_DoNotAssociateAction_ ¶
type Rule_DoNotAssociateAction_ struct { // Prevents term from being associated with other terms. DoNotAssociateAction *Rule_DoNotAssociateAction `protobuf:"bytes,7,opt,name=do_not_associate_action,json=doNotAssociateAction,proto3,oneof"` }
type Rule_FilterAction ¶
type Rule_FilterAction struct { // A filter to apply on the matching condition results. Supported features: // // * [filter][google.cloud.retail.v2beta.Rule.FilterAction.filter] must be // set. // * Filter syntax is identical to // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. // For more // // information, see [Filter](/retail/docs/filter-and-order#filter). // // * To filter products with product ID "product_1" or "product_2", and // color // // "Red" or "Blue":<br> // *(id: ANY("product_1", "product_2"))<br>* // *AND<br>* // *(colorFamilies: ANY("Red", "Blue"))<br>* Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
* Rule Condition:
- No [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] provided is a global match.
- 1 or more [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] provided are combined with OR operator.
* Action Input: The request query and filter that are applied to the retrieved products, in addition to any filters already provided with the SearchRequest. The AND operator is used to combine the query's existing filters with the filter rule(s). NOTE: May result in 0 results when filters conflict.
* Action Result: Filters the returned objects to be ONLY those that passed the filter.
func (*Rule_FilterAction) Descriptor
deprecated
func (*Rule_FilterAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_FilterAction.ProtoReflect.Descriptor instead.
func (*Rule_FilterAction) GetFilter ¶
func (x *Rule_FilterAction) GetFilter() string
func (*Rule_FilterAction) ProtoMessage ¶
func (*Rule_FilterAction) ProtoMessage()
func (*Rule_FilterAction) ProtoReflect ¶
func (x *Rule_FilterAction) ProtoReflect() protoreflect.Message
func (*Rule_FilterAction) Reset ¶
func (x *Rule_FilterAction) Reset()
func (*Rule_FilterAction) String ¶
func (x *Rule_FilterAction) String() string
type Rule_FilterAction_ ¶
type Rule_FilterAction_ struct { // Filters results. FilterAction *Rule_FilterAction `protobuf:"bytes,10,opt,name=filter_action,json=filterAction,proto3,oneof"` }
type Rule_ForceReturnFacetAction ¶ added in v1.17.0
type Rule_ForceReturnFacetAction struct { // Each instance corresponds to a force return attribute for the given // condition. There can't be more 15 instances here. FacetPositionAdjustments []*Rule_ForceReturnFacetAction_FacetPositionAdjustment `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
Force returns an attribute/facet in the request around a certain position or above.
- Rule Condition: Must specify non-empty [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] (for search only) or [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories] (for browse only), but can't specify both.
* Action Inputs: attribute name, position
* Action Result: Will force return a facet key around a certain position or above if the condition is satisfied.
Example: Suppose the query is "shoes", the [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] is "shoes", the [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name] is "size" and the [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position] is 8.
Two cases: a) The facet key "size" is not already in the top 8 slots, then the facet "size" will appear at a position close to 8. b) The facet key "size" in among the top 8 positions in the request, then it will stay at its current rank.
func (*Rule_ForceReturnFacetAction) Descriptor
deprecated
added in
v1.17.0
func (*Rule_ForceReturnFacetAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_ForceReturnFacetAction.ProtoReflect.Descriptor instead.
func (*Rule_ForceReturnFacetAction) GetFacetPositionAdjustments ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction) GetFacetPositionAdjustments() []*Rule_ForceReturnFacetAction_FacetPositionAdjustment
func (*Rule_ForceReturnFacetAction) ProtoMessage ¶ added in v1.17.0
func (*Rule_ForceReturnFacetAction) ProtoMessage()
func (*Rule_ForceReturnFacetAction) ProtoReflect ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction) ProtoReflect() protoreflect.Message
func (*Rule_ForceReturnFacetAction) Reset ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction) Reset()
func (*Rule_ForceReturnFacetAction) String ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction) String() string
type Rule_ForceReturnFacetAction_ ¶ added in v1.17.0
type Rule_ForceReturnFacetAction_ struct { // Force returns an attribute as a facet in the request. ForceReturnFacetAction *Rule_ForceReturnFacetAction `protobuf:"bytes,12,opt,name=force_return_facet_action,json=forceReturnFacetAction,proto3,oneof"` }
type Rule_ForceReturnFacetAction_FacetPositionAdjustment ¶ added in v1.17.0
type Rule_ForceReturnFacetAction_FacetPositionAdjustment struct { // The attribute name to force return as a facet. Each attribute name // should be a valid attribute name, be non-empty and contain at most 80 // characters long. AttributeName string `protobuf:"bytes,1,opt,name=attribute_name,json=attributeName,proto3" json:"attribute_name,omitempty"` // This is the position in the request as explained above. It should be // strictly positive be at most 100. Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` // contains filtered or unexported fields }
Each facet position adjustment consists of a single attribute name (i.e. facet key) along with a specified position.
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) Descriptor
deprecated
added in
v1.17.0
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) Descriptor() ([]byte, []int)
Deprecated: Use Rule_ForceReturnFacetAction_FacetPositionAdjustment.ProtoReflect.Descriptor instead.
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) GetAttributeName ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) GetAttributeName() string
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) GetPosition ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) GetPosition() int32
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) ProtoMessage ¶ added in v1.17.0
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) ProtoMessage()
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) ProtoReflect ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) ProtoReflect() protoreflect.Message
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) Reset ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) Reset()
func (*Rule_ForceReturnFacetAction_FacetPositionAdjustment) String ¶ added in v1.17.0
func (x *Rule_ForceReturnFacetAction_FacetPositionAdjustment) String() string
type Rule_IgnoreAction ¶
type Rule_IgnoreAction struct { // Terms to ignore in the search query. IgnoreTerms []string `protobuf:"bytes,1,rep,name=ignore_terms,json=ignoreTerms,proto3" json:"ignore_terms,omitempty"` // contains filtered or unexported fields }
Prevents a term in the query from being used in search. Example: Don't search for "shoddy".
func (*Rule_IgnoreAction) Descriptor
deprecated
func (*Rule_IgnoreAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_IgnoreAction.ProtoReflect.Descriptor instead.
func (*Rule_IgnoreAction) GetIgnoreTerms ¶
func (x *Rule_IgnoreAction) GetIgnoreTerms() []string
func (*Rule_IgnoreAction) ProtoMessage ¶
func (*Rule_IgnoreAction) ProtoMessage()
func (*Rule_IgnoreAction) ProtoReflect ¶
func (x *Rule_IgnoreAction) ProtoReflect() protoreflect.Message
func (*Rule_IgnoreAction) Reset ¶
func (x *Rule_IgnoreAction) Reset()
func (*Rule_IgnoreAction) String ¶
func (x *Rule_IgnoreAction) String() string
type Rule_IgnoreAction_ ¶
type Rule_IgnoreAction_ struct { // Ignores specific terms from query during search. IgnoreAction *Rule_IgnoreAction `protobuf:"bytes,9,opt,name=ignore_action,json=ignoreAction,proto3,oneof"` }
type Rule_OnewaySynonymsAction ¶
type Rule_OnewaySynonymsAction struct { // Terms from the search query. // Will treat synonyms as their synonyms. // Not themselves synonyms of the synonyms. // Can specify up to 100 terms. QueryTerms []string `protobuf:"bytes,3,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"` // Defines a set of synonyms. // Cannot contain duplicates. // Can specify up to 100 synonyms. Synonyms []string `protobuf:"bytes,4,rep,name=synonyms,proto3" json:"synonyms,omitempty"` // Will be [deprecated = true] post migration; OnewayTerms []string `protobuf:"bytes,2,rep,name=oneway_terms,json=onewayTerms,proto3" json:"oneway_terms,omitempty"` // contains filtered or unexported fields }
Maps a set of terms to a set of synonyms. Set of synonyms will be treated as synonyms of each query term only. `query_terms` will not be treated as synonyms of each other. Example: "sneakers" will use a synonym of "shoes". "shoes" will not use a synonym of "sneakers".
func (*Rule_OnewaySynonymsAction) Descriptor
deprecated
func (*Rule_OnewaySynonymsAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_OnewaySynonymsAction.ProtoReflect.Descriptor instead.
func (*Rule_OnewaySynonymsAction) GetOnewayTerms ¶
func (x *Rule_OnewaySynonymsAction) GetOnewayTerms() []string
func (*Rule_OnewaySynonymsAction) GetQueryTerms ¶
func (x *Rule_OnewaySynonymsAction) GetQueryTerms() []string
func (*Rule_OnewaySynonymsAction) GetSynonyms ¶
func (x *Rule_OnewaySynonymsAction) GetSynonyms() []string
func (*Rule_OnewaySynonymsAction) ProtoMessage ¶
func (*Rule_OnewaySynonymsAction) ProtoMessage()
func (*Rule_OnewaySynonymsAction) ProtoReflect ¶
func (x *Rule_OnewaySynonymsAction) ProtoReflect() protoreflect.Message
func (*Rule_OnewaySynonymsAction) Reset ¶
func (x *Rule_OnewaySynonymsAction) Reset()
func (*Rule_OnewaySynonymsAction) String ¶
func (x *Rule_OnewaySynonymsAction) String() string
type Rule_OnewaySynonymsAction_ ¶
type Rule_OnewaySynonymsAction_ struct { // Treats specific term as a synonym with a group of terms. // Group of terms will not be treated as synonyms with the specific term. OnewaySynonymsAction *Rule_OnewaySynonymsAction `protobuf:"bytes,6,opt,name=oneway_synonyms_action,json=onewaySynonymsAction,proto3,oneof"` }
type Rule_RedirectAction ¶
type Rule_RedirectAction struct { // URL must have length equal or less than 2000 characters. RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
Redirects a shopper to a specific page.
- Rule Condition: Must specify [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms].
- Action Input: Request Query
- Action Result: Redirects shopper to provided uri.
func (*Rule_RedirectAction) Descriptor
deprecated
func (*Rule_RedirectAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_RedirectAction.ProtoReflect.Descriptor instead.
func (*Rule_RedirectAction) GetRedirectUri ¶
func (x *Rule_RedirectAction) GetRedirectUri() string
func (*Rule_RedirectAction) ProtoMessage ¶
func (*Rule_RedirectAction) ProtoMessage()
func (*Rule_RedirectAction) ProtoReflect ¶
func (x *Rule_RedirectAction) ProtoReflect() protoreflect.Message
func (*Rule_RedirectAction) Reset ¶
func (x *Rule_RedirectAction) Reset()
func (*Rule_RedirectAction) String ¶
func (x *Rule_RedirectAction) String() string
type Rule_RedirectAction_ ¶
type Rule_RedirectAction_ struct { // Redirects a shopper to a specific page. RedirectAction *Rule_RedirectAction `protobuf:"bytes,3,opt,name=redirect_action,json=redirectAction,proto3,oneof"` }
type Rule_RemoveFacetAction ¶ added in v1.17.0
type Rule_RemoveFacetAction struct { // The attribute names (i.e. facet keys) to remove from the dynamic facets // (if present in the request). There can't be more 3 attribute names. // Each attribute name should be a valid attribute name, be non-empty and // contain at most 80 characters. AttributeNames []string `protobuf:"bytes,1,rep,name=attribute_names,json=attributeNames,proto3" json:"attribute_names,omitempty"` // contains filtered or unexported fields }
Removes an attribute/facet in the request if is present.
- Rule Condition: Must specify non-empty [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] (for search only) or [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories] (for browse only), but can't specify both.
* Action Input: attribute name
* Action Result: Will remove the attribute (as a facet) from the request if it is present.
Example: Suppose the query is "shoes", the [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] is "shoes" and the attribute name "size", then facet key "size" will be removed from the request (if it is present).
func (*Rule_RemoveFacetAction) Descriptor
deprecated
added in
v1.17.0
func (*Rule_RemoveFacetAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_RemoveFacetAction.ProtoReflect.Descriptor instead.
func (*Rule_RemoveFacetAction) GetAttributeNames ¶ added in v1.17.0
func (x *Rule_RemoveFacetAction) GetAttributeNames() []string
func (*Rule_RemoveFacetAction) ProtoMessage ¶ added in v1.17.0
func (*Rule_RemoveFacetAction) ProtoMessage()
func (*Rule_RemoveFacetAction) ProtoReflect ¶ added in v1.17.0
func (x *Rule_RemoveFacetAction) ProtoReflect() protoreflect.Message
func (*Rule_RemoveFacetAction) Reset ¶ added in v1.17.0
func (x *Rule_RemoveFacetAction) Reset()
func (*Rule_RemoveFacetAction) String ¶ added in v1.17.0
func (x *Rule_RemoveFacetAction) String() string
type Rule_RemoveFacetAction_ ¶ added in v1.17.0
type Rule_RemoveFacetAction_ struct { // Remove an attribute as a facet in the request (if present). RemoveFacetAction *Rule_RemoveFacetAction `protobuf:"bytes,13,opt,name=remove_facet_action,json=removeFacetAction,proto3,oneof"` }
type Rule_ReplacementAction ¶
type Rule_ReplacementAction struct { // Terms from the search query. // Will be replaced by replacement term. // Can specify up to 100 terms. QueryTerms []string `protobuf:"bytes,2,rep,name=query_terms,json=queryTerms,proto3" json:"query_terms,omitempty"` // Term that will be used for replacement. ReplacementTerm string `protobuf:"bytes,3,opt,name=replacement_term,json=replacementTerm,proto3" json:"replacement_term,omitempty"` // Will be [deprecated = true] post migration; Term string `protobuf:"bytes,1,opt,name=term,proto3" json:"term,omitempty"` // contains filtered or unexported fields }
Replaces a term in the query. Multiple replacement candidates can be specified. All `query_terms` will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".
func (*Rule_ReplacementAction) Descriptor
deprecated
func (*Rule_ReplacementAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_ReplacementAction.ProtoReflect.Descriptor instead.
func (*Rule_ReplacementAction) GetQueryTerms ¶
func (x *Rule_ReplacementAction) GetQueryTerms() []string
func (*Rule_ReplacementAction) GetReplacementTerm ¶
func (x *Rule_ReplacementAction) GetReplacementTerm() string
func (*Rule_ReplacementAction) GetTerm ¶
func (x *Rule_ReplacementAction) GetTerm() string
func (*Rule_ReplacementAction) ProtoMessage ¶
func (*Rule_ReplacementAction) ProtoMessage()
func (*Rule_ReplacementAction) ProtoReflect ¶
func (x *Rule_ReplacementAction) ProtoReflect() protoreflect.Message
func (*Rule_ReplacementAction) Reset ¶
func (x *Rule_ReplacementAction) Reset()
func (*Rule_ReplacementAction) String ¶
func (x *Rule_ReplacementAction) String() string
type Rule_ReplacementAction_ ¶
type Rule_ReplacementAction_ struct { // Replaces specific terms in the query. ReplacementAction *Rule_ReplacementAction `protobuf:"bytes,8,opt,name=replacement_action,json=replacementAction,proto3,oneof"` }
type Rule_TwowaySynonymsAction ¶
type Rule_TwowaySynonymsAction struct { // Defines a set of synonyms. // Can specify up to 100 synonyms. // Must specify at least 2 synonyms. Synonyms []string `protobuf:"bytes,1,rep,name=synonyms,proto3" json:"synonyms,omitempty"` // contains filtered or unexported fields }
Creates a set of terms that will be treated as synonyms of each other. Example: synonyms of "sneakers" and "shoes":
- "sneakers" will use a synonym of "shoes".
- "shoes" will use a synonym of "sneakers".
func (*Rule_TwowaySynonymsAction) Descriptor
deprecated
func (*Rule_TwowaySynonymsAction) Descriptor() ([]byte, []int)
Deprecated: Use Rule_TwowaySynonymsAction.ProtoReflect.Descriptor instead.
func (*Rule_TwowaySynonymsAction) GetSynonyms ¶
func (x *Rule_TwowaySynonymsAction) GetSynonyms() []string
func (*Rule_TwowaySynonymsAction) ProtoMessage ¶
func (*Rule_TwowaySynonymsAction) ProtoMessage()
func (*Rule_TwowaySynonymsAction) ProtoReflect ¶
func (x *Rule_TwowaySynonymsAction) ProtoReflect() protoreflect.Message
func (*Rule_TwowaySynonymsAction) Reset ¶
func (x *Rule_TwowaySynonymsAction) Reset()
func (*Rule_TwowaySynonymsAction) String ¶
func (x *Rule_TwowaySynonymsAction) String() string
type Rule_TwowaySynonymsAction_ ¶
type Rule_TwowaySynonymsAction_ struct { // Treats a set of terms as synonyms of one another. TwowaySynonymsAction *Rule_TwowaySynonymsAction `protobuf:"bytes,11,opt,name=twoway_synonyms_action,json=twowaySynonymsAction,proto3,oneof"` }
type SearchRequest ¶
type SearchRequest struct { // Required. The resource name of the Retail Search serving config, such as // `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` // or the name of the legacy placement resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. // This field is used to identify the serving config name and the set // of models that are used to make the search. Placement string `protobuf:"bytes,1,opt,name=placement,proto3" json:"placement,omitempty"` // The branch resource name, such as // `projects/*/locations/global/catalogs/default_catalog/branches/0`. // // Use "default_branch" as the branch ID or leave this field empty, to search // products under the default branch. Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` // Raw search query. // // If this field is empty, the request is considered a category browsing // request and returned results are based on // [filter][google.cloud.retail.v2beta.SearchRequest.filter] and // [page_categories][google.cloud.retail.v2beta.SearchRequest.page_categories]. Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // Required. A unique identifier for tracking visitors. For example, this // could be implemented with an HTTP cookie, which should be able to uniquely // identify a visitor on a single device. This unique identifier should not // change if the visitor logs in or out of the website. // // This should be the same identifier as // [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id]. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. VisitorId string `protobuf:"bytes,4,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"` // User information. UserInfo *UserInfo `protobuf:"bytes,5,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // Maximum number of [Product][google.cloud.retail.v2beta.Product]s to return. // If unspecified, defaults to a reasonable value. The maximum allowed value // is 120. Values above 120 will be coerced to 120. // // If this field is negative, an INVALID_ARGUMENT is returned. PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token // [SearchResponse.next_page_token][google.cloud.retail.v2beta.SearchResponse.next_page_token], // received from a previous // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] // must match the call that provided the page token. Otherwise, an // INVALID_ARGUMENT error is returned. PageToken string `protobuf:"bytes,8,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A 0-indexed integer that specifies the current offset (that is, starting // result location, amongst the [Product][google.cloud.retail.v2beta.Product]s // deemed by the API as relevant) in search results. This field is only // considered if // [page_token][google.cloud.retail.v2beta.SearchRequest.page_token] is unset. // // If this field is negative, an INVALID_ARGUMENT is returned. Offset int32 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"` // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the products being filtered. Filter // expression is case-sensitive. For more information, see // [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. Filter string `protobuf:"bytes,10,opt,name=filter,proto3" json:"filter,omitempty"` // The default filter that is applied when a user performs a search without // checking any filters on the search page. // // The filter applied to every search request when quality improvement such as // query expansion is needed. In the case a query does not have a sufficient // amount of results this filter will be used to determine whether or not to // enable the query expansion flow. The original filter will still be used for // the query expanded search. // This field is strongly recommended to achieve high search quality. // // For more information about filter syntax, see // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. CanonicalFilter string `protobuf:"bytes,28,opt,name=canonical_filter,json=canonicalFilter,proto3" json:"canonical_filter,omitempty"` // The order in which products are returned. Products can be ordered by // a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave // it unset if ordered by relevance. OrderBy expression is case-sensitive. For // more information, see // [Order](https://cloud.google.com/retail/docs/filter-and-order#order). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. OrderBy string `protobuf:"bytes,11,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // Facet specifications for faceted search. If empty, no facets are returned. // // A maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error // is returned. FacetSpecs []*SearchRequest_FacetSpec `protobuf:"bytes,12,rep,name=facet_specs,json=facetSpecs,proto3" json:"facet_specs,omitempty"` // Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic // to enable dynamic facets. Do not set this field. // // The specification for dynamically generated facets. Notice that only // textual facets can be dynamically generated. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/search_service.proto. DynamicFacetSpec *SearchRequest_DynamicFacetSpec `protobuf:"bytes,21,opt,name=dynamic_facet_spec,json=dynamicFacetSpec,proto3" json:"dynamic_facet_spec,omitempty"` // Boost specification to boost certain products. For more information, see // [Boost results](https://cloud.google.com/retail/docs/boosting). // // Notice that if both // [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids] // and // [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec] // are set, the boost conditions from both places are evaluated. If a search // request matches multiple boost conditions, the final boost score is equal // to the sum of the boost scores from all matched boost conditions. BoostSpec *SearchRequest_BoostSpec `protobuf:"bytes,13,opt,name=boost_spec,json=boostSpec,proto3" json:"boost_spec,omitempty"` // The query expansion specification that specifies the conditions under which // query expansion occurs. For more information, see [Query // expansion](https://cloud.google.com/retail/docs/result-size#query_expansion). QueryExpansionSpec *SearchRequest_QueryExpansionSpec `protobuf:"bytes,14,opt,name=query_expansion_spec,json=queryExpansionSpec,proto3" json:"query_expansion_spec,omitempty"` // The keys to fetch and rollup the matching // [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s attributes, // [FulfillmentInfo][google.cloud.retail.v2beta.FulfillmentInfo] or // [LocalInventory][google.cloud.retail.v2beta.LocalInventory]s attributes. // The attributes from all the matching // [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s or // [LocalInventory][google.cloud.retail.v2beta.LocalInventory]s are merged and // de-duplicated. Notice that rollup attributes will lead to extra query // latency. Maximum number of keys is 30. // // For [FulfillmentInfo][google.cloud.retail.v2beta.FulfillmentInfo], a // fulfillment type and a fulfillment ID must be provided in the format of // "fulfillmentType.fulfillmentId". E.g., in "pickupInStore.store123", // "pickupInStore" is fulfillment type and "store123" is the store ID. // // Supported keys are: // // - colorFamilies // - price // - originalPrice // - discount // - variantId // - inventory(place_id,price) // - inventory(place_id,original_price) // - inventory(place_id,attributes.key), where key is any key in the // [Product.local_inventories.attributes][google.cloud.retail.v2beta.LocalInventory.attributes] // map. // - attributes.key, where key is any key in the // [Product.attributes][google.cloud.retail.v2beta.Product.attributes] map. // - pickupInStore.id, where id is any // // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "pickup-in-store". // // * shipToStore.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "ship-to-store". // // * sameDayDelivery.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "same-day-delivery". // // * nextDayDelivery.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "next-day-delivery". // // * customFulfillment1.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "custom-type-1". // // * customFulfillment2.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "custom-type-2". // // * customFulfillment3.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "custom-type-3". // // * customFulfillment4.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "custom-type-4". // // * customFulfillment5.id, where id is any // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // for [FulfillmentInfo.type][google.cloud.retail.v2beta.FulfillmentInfo.type] // // "custom-type-5". // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. VariantRollupKeys []string `protobuf:"bytes,17,rep,name=variant_rollup_keys,json=variantRollupKeys,proto3" json:"variant_rollup_keys,omitempty"` // The categories associated with a category page. Must be set for category // navigation queries to achieve good search quality. The format should be // the same as // [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories]; // // To represent full path of category, use '>' sign to separate different // hierarchies. If '>' is part of the category name, replace it with // other character(s). // // Category pages include special pages such as sales or promotions. For // instance, a special sale page may have the category hierarchy: // "pageCategories" : ["Sales > 2017 Black Friday Deals"]. PageCategories []string `protobuf:"bytes,23,rep,name=page_categories,json=pageCategories,proto3" json:"page_categories,omitempty"` // The search mode of the search request. If not specified, a single search // request triggers both product search and faceted search. SearchMode SearchRequest_SearchMode `` /* 150-byte string literal not displayed */ // The specification for personalization. // // Notice that if both // [ServingConfig.personalization_spec][google.cloud.retail.v2beta.ServingConfig.personalization_spec] // and // [SearchRequest.personalization_spec][google.cloud.retail.v2beta.SearchRequest.personalization_spec] // are set. // [SearchRequest.personalization_spec][google.cloud.retail.v2beta.SearchRequest.personalization_spec] // will override // [ServingConfig.personalization_spec][google.cloud.retail.v2beta.ServingConfig.personalization_spec]. PersonalizationSpec *SearchRequest_PersonalizationSpec `protobuf:"bytes,32,opt,name=personalization_spec,json=personalizationSpec,proto3" json:"personalization_spec,omitempty"` // The labels applied to a resource must meet the following requirements: // // - Each resource can have multiple labels, up to a maximum of 64. // - Each label must be a key-value pair. // - Keys have a minimum length of 1 character and a maximum length of 63 // characters and cannot be empty. Values can be empty and have a maximum // length of 63 characters. // - Keys and values can contain only lowercase letters, numeric characters, // underscores, and dashes. All characters must use UTF-8 encoding, and // international characters are allowed. // - The key portion of a label must be unique. However, you can use the same // key with multiple resources. // - Keys must start with a lowercase letter or international character. // // For more information, see [Requirements for // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // in the Resource Manager documentation. Labels map[string]string `` /* 154-byte string literal not displayed */ // The spell correction specification that specifies the mode under // which spell correction will take effect. SpellCorrectionSpec *SearchRequest_SpellCorrectionSpec `` /* 127-byte string literal not displayed */ // The entity for customers that may run multiple different entities, domains, // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. // If this is set, it should be exactly matched with // [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get // search results boosted by entity. Entity string `protobuf:"bytes,38,opt,name=entity,proto3" json:"entity,omitempty"` // Optional. This field specifies all conversational related parameters // addition to traditional retail search. ConversationalSearchSpec *SearchRequest_ConversationalSearchSpec `` /* 136-byte string literal not displayed */ TileNavigationSpec *SearchRequest_TileNavigationSpec `protobuf:"bytes,41,opt,name=tile_navigation_spec,json=tileNavigationSpec,proto3" json:"tile_navigation_spec,omitempty"` // contains filtered or unexported fields }
Request message for [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] method.
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetBoostSpec ¶
func (x *SearchRequest) GetBoostSpec() *SearchRequest_BoostSpec
func (*SearchRequest) GetBranch ¶
func (x *SearchRequest) GetBranch() string
func (*SearchRequest) GetCanonicalFilter ¶
func (x *SearchRequest) GetCanonicalFilter() string
func (*SearchRequest) GetConversationalSearchSpec ¶ added in v1.19.0
func (x *SearchRequest) GetConversationalSearchSpec() *SearchRequest_ConversationalSearchSpec
func (*SearchRequest) GetDynamicFacetSpec
deprecated
func (x *SearchRequest) GetDynamicFacetSpec() *SearchRequest_DynamicFacetSpec
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/search_service.proto.
func (*SearchRequest) GetEntity ¶ added in v1.13.0
func (x *SearchRequest) GetEntity() string
func (*SearchRequest) GetFacetSpecs ¶
func (x *SearchRequest) GetFacetSpecs() []*SearchRequest_FacetSpec
func (*SearchRequest) GetFilter ¶
func (x *SearchRequest) GetFilter() string
func (*SearchRequest) GetLabels ¶
func (x *SearchRequest) GetLabels() map[string]string
func (*SearchRequest) GetOffset ¶
func (x *SearchRequest) GetOffset() int32
func (*SearchRequest) GetOrderBy ¶
func (x *SearchRequest) GetOrderBy() string
func (*SearchRequest) GetPageCategories ¶
func (x *SearchRequest) GetPageCategories() []string
func (*SearchRequest) GetPageSize ¶
func (x *SearchRequest) GetPageSize() int32
func (*SearchRequest) GetPageToken ¶
func (x *SearchRequest) GetPageToken() string
func (*SearchRequest) GetPersonalizationSpec ¶
func (x *SearchRequest) GetPersonalizationSpec() *SearchRequest_PersonalizationSpec
func (*SearchRequest) GetPlacement ¶
func (x *SearchRequest) GetPlacement() string
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) GetQueryExpansionSpec ¶
func (x *SearchRequest) GetQueryExpansionSpec() *SearchRequest_QueryExpansionSpec
func (*SearchRequest) GetSearchMode ¶
func (x *SearchRequest) GetSearchMode() SearchRequest_SearchMode
func (*SearchRequest) GetSpellCorrectionSpec ¶
func (x *SearchRequest) GetSpellCorrectionSpec() *SearchRequest_SpellCorrectionSpec
func (*SearchRequest) GetTileNavigationSpec ¶ added in v1.19.0
func (x *SearchRequest) GetTileNavigationSpec() *SearchRequest_TileNavigationSpec
func (*SearchRequest) GetUserInfo ¶
func (x *SearchRequest) GetUserInfo() *UserInfo
func (*SearchRequest) GetVariantRollupKeys ¶
func (x *SearchRequest) GetVariantRollupKeys() []string
func (*SearchRequest) GetVisitorId ¶
func (x *SearchRequest) GetVisitorId() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchRequest_BoostSpec ¶
type SearchRequest_BoostSpec struct { // Condition boost specifications. If a product matches multiple conditions // in the specifictions, boost scores from these specifications are all // applied and combined in a non-linear way. Maximum number of // specifications is 20. ConditionBoostSpecs []*SearchRequest_BoostSpec_ConditionBoostSpec `protobuf:"bytes,1,rep,name=condition_boost_specs,json=conditionBoostSpecs,proto3" json:"condition_boost_specs,omitempty"` // Whether to skip boostspec validation. If this field is set to true, // invalid // [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] // will be ignored and valid // [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] // will still be applied. SkipBoostSpecValidation *bool `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
Boost specification to boost certain items.
func (*SearchRequest_BoostSpec) Descriptor
deprecated
func (*SearchRequest_BoostSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_BoostSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_BoostSpec) GetConditionBoostSpecs ¶
func (x *SearchRequest_BoostSpec) GetConditionBoostSpecs() []*SearchRequest_BoostSpec_ConditionBoostSpec
func (*SearchRequest_BoostSpec) GetSkipBoostSpecValidation ¶
func (x *SearchRequest_BoostSpec) GetSkipBoostSpecValidation() bool
func (*SearchRequest_BoostSpec) ProtoMessage ¶
func (*SearchRequest_BoostSpec) ProtoMessage()
func (*SearchRequest_BoostSpec) ProtoReflect ¶
func (x *SearchRequest_BoostSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_BoostSpec) Reset ¶
func (x *SearchRequest_BoostSpec) Reset()
func (*SearchRequest_BoostSpec) String ¶
func (x *SearchRequest_BoostSpec) String() string
type SearchRequest_BoostSpec_ConditionBoostSpec ¶
type SearchRequest_BoostSpec_ConditionBoostSpec struct { // An expression which specifies a boost condition. The syntax and // supported fields are the same as a filter expression. See // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] // for detail syntax and limitations. // // Examples: // // * To boost products with product ID "product_1" or "product_2", and // color // // "Red" or "Blue": // * (id: ANY("product_1", "product_2")) AND (colorFamilies: // ANY("Red","Blue")) Condition string `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` // Strength of the condition boost, which should be in [-1, 1]. Negative // boost means demotion. Default is 0.0. // // Setting to 1.0 gives the item a big promotion. However, it does not // necessarily mean that the boosted item will be the top result at all // times, nor that other items will be excluded. Results could still be // shown even when none of them matches the condition. And results that // are significantly more relevant to the search query can still trump // your heavily favored but irrelevant items. // // Setting to -1.0 gives the item a big demotion. However, results that // are deeply relevant might still be shown. The item will have an // upstream battle to get a fairly high ranking, but it is not blocked out // completely. // // Setting to 0.0 means no boost applied. The boosting condition is // ignored. Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"` // contains filtered or unexported fields }
Boost applies to products which match a condition.
func (*SearchRequest_BoostSpec_ConditionBoostSpec) Descriptor
deprecated
func (*SearchRequest_BoostSpec_ConditionBoostSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_BoostSpec_ConditionBoostSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_BoostSpec_ConditionBoostSpec) GetBoost ¶
func (x *SearchRequest_BoostSpec_ConditionBoostSpec) GetBoost() float32
func (*SearchRequest_BoostSpec_ConditionBoostSpec) GetCondition ¶
func (x *SearchRequest_BoostSpec_ConditionBoostSpec) GetCondition() string
func (*SearchRequest_BoostSpec_ConditionBoostSpec) ProtoMessage ¶
func (*SearchRequest_BoostSpec_ConditionBoostSpec) ProtoMessage()
func (*SearchRequest_BoostSpec_ConditionBoostSpec) ProtoReflect ¶
func (x *SearchRequest_BoostSpec_ConditionBoostSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_BoostSpec_ConditionBoostSpec) Reset ¶
func (x *SearchRequest_BoostSpec_ConditionBoostSpec) Reset()
func (*SearchRequest_BoostSpec_ConditionBoostSpec) String ¶
func (x *SearchRequest_BoostSpec_ConditionBoostSpec) String() string
type SearchRequest_ConversationalSearchSpec ¶ added in v1.19.0
type SearchRequest_ConversationalSearchSpec struct { // This field specifies whether the customer would like to do conversational // search. If this field is set to true, conversational related extra // information will be returned from server side, including follow-up // question, answer options, etc. FollowupConversationRequested bool `` /* 151-byte string literal not displayed */ // This field specifies the conversation id, which maintains the state of // the conversation between client side and server side. Use the value from // the previous [ConversationalSearchResult.conversation_id][]. For the // initial request, this should be empty. ConversationId string `protobuf:"bytes,2,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` // This field specifies the current user answer during the conversational // search. This can be either user selected from suggested answers or user // input plain text. UserAnswer *SearchRequest_ConversationalSearchSpec_UserAnswer `protobuf:"bytes,3,opt,name=user_answer,json=userAnswer,proto3" json:"user_answer,omitempty"` // contains filtered or unexported fields }
This field specifies all conversational related parameters addition to traditional retail search.
func (*SearchRequest_ConversationalSearchSpec) Descriptor
deprecated
added in
v1.19.0
func (*SearchRequest_ConversationalSearchSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_ConversationalSearchSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_ConversationalSearchSpec) GetConversationId ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec) GetConversationId() string
func (*SearchRequest_ConversationalSearchSpec) GetFollowupConversationRequested ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec) GetFollowupConversationRequested() bool
func (*SearchRequest_ConversationalSearchSpec) GetUserAnswer ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec) GetUserAnswer() *SearchRequest_ConversationalSearchSpec_UserAnswer
func (*SearchRequest_ConversationalSearchSpec) ProtoMessage ¶ added in v1.19.0
func (*SearchRequest_ConversationalSearchSpec) ProtoMessage()
func (*SearchRequest_ConversationalSearchSpec) ProtoReflect ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_ConversationalSearchSpec) Reset ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec) Reset()
func (*SearchRequest_ConversationalSearchSpec) String ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec) String() string
type SearchRequest_ConversationalSearchSpec_UserAnswer ¶ added in v1.19.0
type SearchRequest_ConversationalSearchSpec_UserAnswer struct { // This field specifies the type of user answer. // // Types that are assignable to Type: // // *SearchRequest_ConversationalSearchSpec_UserAnswer_TextAnswer // *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer_ Type isSearchRequest_ConversationalSearchSpec_UserAnswer_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) Descriptor
deprecated
added in
v1.19.0
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_ConversationalSearchSpec_UserAnswer.ProtoReflect.Descriptor instead.
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) GetSelectedAnswer ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) GetSelectedAnswer() *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) GetTextAnswer ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) GetTextAnswer() string
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) GetType ¶ added in v1.19.0
func (m *SearchRequest_ConversationalSearchSpec_UserAnswer) GetType() isSearchRequest_ConversationalSearchSpec_UserAnswer_Type
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) ProtoMessage ¶ added in v1.19.0
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) ProtoMessage()
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) ProtoReflect ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) ProtoReflect() protoreflect.Message
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) Reset ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) Reset()
func (*SearchRequest_ConversationalSearchSpec_UserAnswer) String ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer) String() string
type SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer ¶ added in v1.19.0
type SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer struct { // This field is deprecated and should not be set. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/search_service.proto. ProductAttributeValues []*ProductAttributeValue `` /* 129-byte string literal not displayed */ // This field specifies the selected answer which is a attribute // key-value. ProductAttributeValue *ProductAttributeValue `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
This field specifies the selected answers during the conversational search.
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) Descriptor
deprecated
added in
v1.19.0
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer.ProtoReflect.Descriptor instead.
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) GetProductAttributeValue ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) GetProductAttributeValue() *ProductAttributeValue
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) GetProductAttributeValues
deprecated
added in
v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) GetProductAttributeValues() []*ProductAttributeValue
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/search_service.proto.
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) ProtoMessage ¶ added in v1.19.0
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) ProtoMessage()
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) ProtoReflect ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) ProtoReflect() protoreflect.Message
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) Reset ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) Reset()
func (*SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) String ¶ added in v1.19.0
func (x *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer) String() string
type SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer_ ¶ added in v1.19.0
type SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer_ struct { // This field specifies the selected attributes during the // conversational search. This should be a subset of // [ConversationalSearchResult.suggested_answers][]. SelectedAnswer *SearchRequest_ConversationalSearchSpec_UserAnswer_SelectedAnswer `protobuf:"bytes,2,opt,name=selected_answer,json=selectedAnswer,proto3,oneof"` }
type SearchRequest_ConversationalSearchSpec_UserAnswer_TextAnswer ¶ added in v1.19.0
type SearchRequest_ConversationalSearchSpec_UserAnswer_TextAnswer struct { // This field specifies the incremental input text from the user during // the conversational search. TextAnswer string `protobuf:"bytes,1,opt,name=text_answer,json=textAnswer,proto3,oneof"` }
type SearchRequest_DynamicFacetSpec ¶
type SearchRequest_DynamicFacetSpec struct { // Mode of the DynamicFacet feature. // Defaults to // [Mode.DISABLED][google.cloud.retail.v2beta.SearchRequest.DynamicFacetSpec.Mode.DISABLED] // if it's unset. Mode SearchRequest_DynamicFacetSpec_Mode `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
The specifications of dynamically generated facets.
func (*SearchRequest_DynamicFacetSpec) Descriptor
deprecated
func (*SearchRequest_DynamicFacetSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_DynamicFacetSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_DynamicFacetSpec) GetMode ¶
func (x *SearchRequest_DynamicFacetSpec) GetMode() SearchRequest_DynamicFacetSpec_Mode
func (*SearchRequest_DynamicFacetSpec) ProtoMessage ¶
func (*SearchRequest_DynamicFacetSpec) ProtoMessage()
func (*SearchRequest_DynamicFacetSpec) ProtoReflect ¶
func (x *SearchRequest_DynamicFacetSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_DynamicFacetSpec) Reset ¶
func (x *SearchRequest_DynamicFacetSpec) Reset()
func (*SearchRequest_DynamicFacetSpec) String ¶
func (x *SearchRequest_DynamicFacetSpec) String() string
type SearchRequest_DynamicFacetSpec_Mode ¶
type SearchRequest_DynamicFacetSpec_Mode int32
Enum to control DynamicFacet mode
const ( // Default value. SearchRequest_DynamicFacetSpec_MODE_UNSPECIFIED SearchRequest_DynamicFacetSpec_Mode = 0 // Disable Dynamic Facet. SearchRequest_DynamicFacetSpec_DISABLED SearchRequest_DynamicFacetSpec_Mode = 1 // Automatic mode built by Google Retail Search. SearchRequest_DynamicFacetSpec_ENABLED SearchRequest_DynamicFacetSpec_Mode = 2 )
func (SearchRequest_DynamicFacetSpec_Mode) Descriptor ¶
func (SearchRequest_DynamicFacetSpec_Mode) Descriptor() protoreflect.EnumDescriptor
func (SearchRequest_DynamicFacetSpec_Mode) Enum ¶
func (x SearchRequest_DynamicFacetSpec_Mode) Enum() *SearchRequest_DynamicFacetSpec_Mode
func (SearchRequest_DynamicFacetSpec_Mode) EnumDescriptor
deprecated
func (SearchRequest_DynamicFacetSpec_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchRequest_DynamicFacetSpec_Mode.Descriptor instead.
func (SearchRequest_DynamicFacetSpec_Mode) Number ¶
func (x SearchRequest_DynamicFacetSpec_Mode) Number() protoreflect.EnumNumber
func (SearchRequest_DynamicFacetSpec_Mode) String ¶
func (x SearchRequest_DynamicFacetSpec_Mode) String() string
func (SearchRequest_DynamicFacetSpec_Mode) Type ¶
func (SearchRequest_DynamicFacetSpec_Mode) Type() protoreflect.EnumType
type SearchRequest_FacetSpec ¶
type SearchRequest_FacetSpec struct { // Required. The facet key specification. FacetKey *SearchRequest_FacetSpec_FacetKey `protobuf:"bytes,1,opt,name=facet_key,json=facetKey,proto3" json:"facet_key,omitempty"` // Maximum of facet values that should be returned for this facet. If // unspecified, defaults to 50. The maximum allowed value is 300. Values // above 300 will be coerced to 300. // // If this field is negative, an INVALID_ARGUMENT is returned. Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // List of keys to exclude when faceting. // // By default, // [FacetKey.key][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.key] // is not excluded from the filter unless it is listed in this field. // // Listing a facet key in this field allows its values to appear as facet // results, even when they are filtered out of search results. Using this // field does not affect what search results are returned. // // For example, suppose there are 100 products with the color facet "Red" // and 200 products with the color facet "Blue". A query containing the // filter "colorFamilies:ANY("Red")" and having "colorFamilies" as // [FacetKey.key][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.key] // would by default return only "Red" products in the search results, and // also return "Red" with count 100 as the only color facet. Although there // are also blue products available, "Blue" would not be shown as an // available facet value. // // If "colorFamilies" is listed in "excludedFilterKeys", then the query // returns the facet values "Red" with count 100 and "Blue" with count // 200, because the "colorFamilies" key is now excluded from the filter. // Because this field doesn't affect search results, the search results // are still correctly filtered to return only "Red" products. // // A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error // is returned. ExcludedFilterKeys []string `protobuf:"bytes,3,rep,name=excluded_filter_keys,json=excludedFilterKeys,proto3" json:"excluded_filter_keys,omitempty"` // Enables dynamic position for this facet. If set to true, the position of // this facet among all facets in the response is determined by Google // Retail Search. It is ordered together with dynamic facets if dynamic // facets is enabled. If set to false, the position of this facet in the // response is the same as in the request, and it is ranked before // the facets with dynamic position enable and all dynamic facets. // // For example, you may always want to have rating facet returned in // the response, but it's not necessarily to always display the rating facet // at the top. In that case, you can set enable_dynamic_position to true so // that the position of rating facet in response is determined by // Google Retail Search. // // Another example, assuming you have the following facets in the request: // // * "rating", enable_dynamic_position = true // // * "price", enable_dynamic_position = false // // * "brands", enable_dynamic_position = false // // And also you have a dynamic facets enable, which generates a facet // "gender". Then, the final order of the facets in the response can be // ("price", "brands", "rating", "gender") or ("price", "brands", "gender", // "rating") depends on how Google Retail Search orders "gender" and // "rating" facets. However, notice that "price" and "brands" are always // ranked at first and second position because their enable_dynamic_position // values are false. EnableDynamicPosition bool `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
A facet specification to perform faceted search.
func (*SearchRequest_FacetSpec) Descriptor
deprecated
func (*SearchRequest_FacetSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_FacetSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_FacetSpec) GetEnableDynamicPosition ¶
func (x *SearchRequest_FacetSpec) GetEnableDynamicPosition() bool
func (*SearchRequest_FacetSpec) GetExcludedFilterKeys ¶
func (x *SearchRequest_FacetSpec) GetExcludedFilterKeys() []string
func (*SearchRequest_FacetSpec) GetFacetKey ¶
func (x *SearchRequest_FacetSpec) GetFacetKey() *SearchRequest_FacetSpec_FacetKey
func (*SearchRequest_FacetSpec) GetLimit ¶
func (x *SearchRequest_FacetSpec) GetLimit() int32
func (*SearchRequest_FacetSpec) ProtoMessage ¶
func (*SearchRequest_FacetSpec) ProtoMessage()
func (*SearchRequest_FacetSpec) ProtoReflect ¶
func (x *SearchRequest_FacetSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_FacetSpec) Reset ¶
func (x *SearchRequest_FacetSpec) Reset()
func (*SearchRequest_FacetSpec) String ¶
func (x *SearchRequest_FacetSpec) String() string
type SearchRequest_FacetSpec_FacetKey ¶
type SearchRequest_FacetSpec_FacetKey struct { // Required. Supported textual and numerical facet keys in // [Product][google.cloud.retail.v2beta.Product] object, over which the // facet values are computed. Facet key is case-sensitive. // // Allowed facet keys when // [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query] // is not specified: // // * textual_field = // - "brands" // - "categories" // - "genders" // - "ageGroups" // - "availability" // - "colorFamilies" // - "colors" // - "sizes" // - "materials" // - "patterns" // - "conditions" // - "attributes.key" // - "pickupInStore" // - "shipToStore" // - "sameDayDelivery" // - "nextDayDelivery" // - "customFulfillment1" // - "customFulfillment2" // - "customFulfillment3" // - "customFulfillment4" // - "customFulfillment5" // - "inventory(place_id,attributes.key)" // // * numerical_field = // - "price" // - "discount" // - "rating" // - "ratingCount" // - "attributes.key" // - "inventory(place_id,price)" // - "inventory(place_id,original_price)" // - "inventory(place_id,attributes.key)" Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Set only if values should be bucketized into intervals. Must be set // for facets with numerical values. Must not be set for facet with text // values. Maximum number of intervals is 40. // // For all numerical facet keys that appear in the list of products from // the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are // computed from their distribution weekly. If the model assigns a high // score to a numerical facet key and its intervals are not specified in // the search request, these percentiles become the bounds // for its intervals and are returned in the response. If the // facet key intervals are specified in the request, then the specified // intervals are returned instead. Intervals []*Interval `protobuf:"bytes,2,rep,name=intervals,proto3" json:"intervals,omitempty"` // Only get facet for the given restricted values. For example, when using // "pickupInStore" as key and set restricted values to // ["store123", "store456"], only facets for "store123" and "store456" are // returned. Only supported on predefined textual fields, custom textual // attributes and fulfillments. Maximum is 20. // // Must be set for the fulfillment facet keys: // // * pickupInStore // // * shipToStore // // * sameDayDelivery // // * nextDayDelivery // // * customFulfillment1 // // * customFulfillment2 // // * customFulfillment3 // // * customFulfillment4 // // * customFulfillment5 RestrictedValues []string `protobuf:"bytes,3,rep,name=restricted_values,json=restrictedValues,proto3" json:"restricted_values,omitempty"` // Only get facet values that start with the given string prefix. For // example, suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the // "categories" facet gives only "Women > Shoe" and "Women > Dress". // Only supported on textual fields. Maximum is 10. Prefixes []string `protobuf:"bytes,8,rep,name=prefixes,proto3" json:"prefixes,omitempty"` // Only get facet values that contains the given strings. For example, // suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the // "categories" facet gives only "Women > Shoe" and "Men > Shoe". // Only supported on textual fields. Maximum is 10. Contains []string `protobuf:"bytes,9,rep,name=contains,proto3" json:"contains,omitempty"` // True to make facet keys case insensitive when getting faceting // values with prefixes or contains; false otherwise. CaseInsensitive bool `protobuf:"varint,10,opt,name=case_insensitive,json=caseInsensitive,proto3" json:"case_insensitive,omitempty"` // The order in which // [SearchResponse.Facet.values][google.cloud.retail.v2beta.SearchResponse.Facet.values] // are returned. // // Allowed values are: // // * "count desc", which means order by // [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count] // descending. // // * "value desc", which means order by // [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value] // descending. // // Only applies to textual facets. // // If not set, textual values are sorted in [natural // order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical // intervals are sorted in the order given by // [FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]; // [FulfillmentInfo.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // are sorted in the order given by // [FacetSpec.FacetKey.restricted_values][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.restricted_values]. OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // The query that is used to compute facet for the given facet key. // When provided, it overrides the default behavior of facet // computation. The query syntax is the same as a filter expression. See // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] // for detail syntax and limitations. Notice that there is no limitation // on // [FacetKey.key][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.key] // when query is specified. // // In the response, // [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value] // is always "1" and // [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count] // is the number of results that match the query. // // For example, you can set a customized facet for "shipToStore", // where // [FacetKey.key][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.key] // is "customizedShipToStore", and // [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query] // is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")". // Then the facet counts the products that are both in stock and ship // to store "123". Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"` // Returns the min and max value for each numerical facet intervals. // Ignored for textual facets. ReturnMinMax bool `protobuf:"varint,11,opt,name=return_min_max,json=returnMinMax,proto3" json:"return_min_max,omitempty"` // contains filtered or unexported fields }
Specifies how a facet is computed.
func (*SearchRequest_FacetSpec_FacetKey) Descriptor
deprecated
func (*SearchRequest_FacetSpec_FacetKey) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_FacetSpec_FacetKey.ProtoReflect.Descriptor instead.
func (*SearchRequest_FacetSpec_FacetKey) GetCaseInsensitive ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetCaseInsensitive() bool
func (*SearchRequest_FacetSpec_FacetKey) GetContains ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetContains() []string
func (*SearchRequest_FacetSpec_FacetKey) GetIntervals ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetIntervals() []*Interval
func (*SearchRequest_FacetSpec_FacetKey) GetKey ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetKey() string
func (*SearchRequest_FacetSpec_FacetKey) GetOrderBy ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetOrderBy() string
func (*SearchRequest_FacetSpec_FacetKey) GetPrefixes ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetPrefixes() []string
func (*SearchRequest_FacetSpec_FacetKey) GetQuery ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetQuery() string
func (*SearchRequest_FacetSpec_FacetKey) GetRestrictedValues ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetRestrictedValues() []string
func (*SearchRequest_FacetSpec_FacetKey) GetReturnMinMax ¶
func (x *SearchRequest_FacetSpec_FacetKey) GetReturnMinMax() bool
func (*SearchRequest_FacetSpec_FacetKey) ProtoMessage ¶
func (*SearchRequest_FacetSpec_FacetKey) ProtoMessage()
func (*SearchRequest_FacetSpec_FacetKey) ProtoReflect ¶
func (x *SearchRequest_FacetSpec_FacetKey) ProtoReflect() protoreflect.Message
func (*SearchRequest_FacetSpec_FacetKey) Reset ¶
func (x *SearchRequest_FacetSpec_FacetKey) Reset()
func (*SearchRequest_FacetSpec_FacetKey) String ¶
func (x *SearchRequest_FacetSpec_FacetKey) String() string
type SearchRequest_PersonalizationSpec ¶
type SearchRequest_PersonalizationSpec struct { // Defaults to // [Mode.AUTO][google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec.Mode.AUTO]. Mode SearchRequest_PersonalizationSpec_Mode `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
The specification for personalization.
func (*SearchRequest_PersonalizationSpec) Descriptor
deprecated
func (*SearchRequest_PersonalizationSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_PersonalizationSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_PersonalizationSpec) GetMode ¶
func (x *SearchRequest_PersonalizationSpec) GetMode() SearchRequest_PersonalizationSpec_Mode
func (*SearchRequest_PersonalizationSpec) ProtoMessage ¶
func (*SearchRequest_PersonalizationSpec) ProtoMessage()
func (*SearchRequest_PersonalizationSpec) ProtoReflect ¶
func (x *SearchRequest_PersonalizationSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_PersonalizationSpec) Reset ¶
func (x *SearchRequest_PersonalizationSpec) Reset()
func (*SearchRequest_PersonalizationSpec) String ¶
func (x *SearchRequest_PersonalizationSpec) String() string
type SearchRequest_PersonalizationSpec_Mode ¶
type SearchRequest_PersonalizationSpec_Mode int32
The personalization mode of each search request.
const ( // Default value. In this case, server behavior defaults to // [Mode.AUTO][google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec.Mode.AUTO]. SearchRequest_PersonalizationSpec_MODE_UNSPECIFIED SearchRequest_PersonalizationSpec_Mode = 0 // Let CRS decide whether to use personalization based on quality of user // event data. SearchRequest_PersonalizationSpec_AUTO SearchRequest_PersonalizationSpec_Mode = 1 // Disable personalization. SearchRequest_PersonalizationSpec_DISABLED SearchRequest_PersonalizationSpec_Mode = 2 )
func (SearchRequest_PersonalizationSpec_Mode) Descriptor ¶
func (SearchRequest_PersonalizationSpec_Mode) Descriptor() protoreflect.EnumDescriptor
func (SearchRequest_PersonalizationSpec_Mode) EnumDescriptor
deprecated
func (SearchRequest_PersonalizationSpec_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchRequest_PersonalizationSpec_Mode.Descriptor instead.
func (SearchRequest_PersonalizationSpec_Mode) Number ¶
func (x SearchRequest_PersonalizationSpec_Mode) Number() protoreflect.EnumNumber
func (SearchRequest_PersonalizationSpec_Mode) String ¶
func (x SearchRequest_PersonalizationSpec_Mode) String() string
func (SearchRequest_PersonalizationSpec_Mode) Type ¶
func (SearchRequest_PersonalizationSpec_Mode) Type() protoreflect.EnumType
type SearchRequest_QueryExpansionSpec ¶
type SearchRequest_QueryExpansionSpec struct { // The condition under which query expansion should occur. Default to // [Condition.DISABLED][google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. Condition SearchRequest_QueryExpansionSpec_Condition `` /* 147-byte string literal not displayed */ // Whether to pin unexpanded results. If this field is set to true, // unexpanded products are always at the top of the search results, followed // by the expanded results. PinUnexpandedResults bool `protobuf:"varint,2,opt,name=pin_unexpanded_results,json=pinUnexpandedResults,proto3" json:"pin_unexpanded_results,omitempty"` // contains filtered or unexported fields }
Specification to determine under which conditions query expansion should occur.
func (*SearchRequest_QueryExpansionSpec) Descriptor
deprecated
func (*SearchRequest_QueryExpansionSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_QueryExpansionSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_QueryExpansionSpec) GetCondition ¶
func (x *SearchRequest_QueryExpansionSpec) GetCondition() SearchRequest_QueryExpansionSpec_Condition
func (*SearchRequest_QueryExpansionSpec) GetPinUnexpandedResults ¶
func (x *SearchRequest_QueryExpansionSpec) GetPinUnexpandedResults() bool
func (*SearchRequest_QueryExpansionSpec) ProtoMessage ¶
func (*SearchRequest_QueryExpansionSpec) ProtoMessage()
func (*SearchRequest_QueryExpansionSpec) ProtoReflect ¶
func (x *SearchRequest_QueryExpansionSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_QueryExpansionSpec) Reset ¶
func (x *SearchRequest_QueryExpansionSpec) Reset()
func (*SearchRequest_QueryExpansionSpec) String ¶
func (x *SearchRequest_QueryExpansionSpec) String() string
type SearchRequest_QueryExpansionSpec_Condition ¶
type SearchRequest_QueryExpansionSpec_Condition int32
Enum describing under which condition query expansion should occur.
const ( // Unspecified query expansion condition. In this case, server behavior // defaults to // [Condition.DISABLED][google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. SearchRequest_QueryExpansionSpec_CONDITION_UNSPECIFIED SearchRequest_QueryExpansionSpec_Condition = 0 // Disabled query expansion. Only the exact search query is used, even if // [SearchResponse.total_size][google.cloud.retail.v2beta.SearchResponse.total_size] // is zero. SearchRequest_QueryExpansionSpec_DISABLED SearchRequest_QueryExpansionSpec_Condition = 1 // Automatic query expansion built by Google Retail Search. SearchRequest_QueryExpansionSpec_AUTO SearchRequest_QueryExpansionSpec_Condition = 3 )
func (SearchRequest_QueryExpansionSpec_Condition) Descriptor ¶
func (SearchRequest_QueryExpansionSpec_Condition) Descriptor() protoreflect.EnumDescriptor
func (SearchRequest_QueryExpansionSpec_Condition) EnumDescriptor
deprecated
func (SearchRequest_QueryExpansionSpec_Condition) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchRequest_QueryExpansionSpec_Condition.Descriptor instead.
func (SearchRequest_QueryExpansionSpec_Condition) Number ¶
func (x SearchRequest_QueryExpansionSpec_Condition) Number() protoreflect.EnumNumber
func (SearchRequest_QueryExpansionSpec_Condition) String ¶
func (x SearchRequest_QueryExpansionSpec_Condition) String() string
func (SearchRequest_QueryExpansionSpec_Condition) Type ¶
func (SearchRequest_QueryExpansionSpec_Condition) Type() protoreflect.EnumType
type SearchRequest_SearchMode ¶
type SearchRequest_SearchMode int32
The search mode of each search request.
const ( // Default value. In this case both product search and faceted search will // be performed. Both // [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] // and // [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] // will be returned. SearchRequest_SEARCH_MODE_UNSPECIFIED SearchRequest_SearchMode = 0 // Only product search will be performed. The faceted search will be // disabled. // // Only // [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] // will be returned. // [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] // will not be returned, even if // [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] // or // [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2beta.SearchRequest.dynamic_facet_spec] // is set. SearchRequest_PRODUCT_SEARCH_ONLY SearchRequest_SearchMode = 1 // Only faceted search will be performed. The product search will be // disabled. // // When in this mode, one or both of // [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] // and // [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2beta.SearchRequest.dynamic_facet_spec] // should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only // [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] // will be returned. // [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] // will not be returned. SearchRequest_FACETED_SEARCH_ONLY SearchRequest_SearchMode = 2 )
func (SearchRequest_SearchMode) Descriptor ¶
func (SearchRequest_SearchMode) Descriptor() protoreflect.EnumDescriptor
func (SearchRequest_SearchMode) Enum ¶
func (x SearchRequest_SearchMode) Enum() *SearchRequest_SearchMode
func (SearchRequest_SearchMode) EnumDescriptor
deprecated
func (SearchRequest_SearchMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchRequest_SearchMode.Descriptor instead.
func (SearchRequest_SearchMode) Number ¶
func (x SearchRequest_SearchMode) Number() protoreflect.EnumNumber
func (SearchRequest_SearchMode) String ¶
func (x SearchRequest_SearchMode) String() string
func (SearchRequest_SearchMode) Type ¶
func (SearchRequest_SearchMode) Type() protoreflect.EnumType
type SearchRequest_SpellCorrectionSpec ¶
type SearchRequest_SpellCorrectionSpec struct { // The mode under which spell correction should take effect to // replace the original search query. Default to // [Mode.AUTO][google.cloud.retail.v2beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. Mode SearchRequest_SpellCorrectionSpec_Mode `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
The specification for query spell correction.
func (*SearchRequest_SpellCorrectionSpec) Descriptor
deprecated
func (*SearchRequest_SpellCorrectionSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_SpellCorrectionSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_SpellCorrectionSpec) GetMode ¶
func (x *SearchRequest_SpellCorrectionSpec) GetMode() SearchRequest_SpellCorrectionSpec_Mode
func (*SearchRequest_SpellCorrectionSpec) ProtoMessage ¶
func (*SearchRequest_SpellCorrectionSpec) ProtoMessage()
func (*SearchRequest_SpellCorrectionSpec) ProtoReflect ¶
func (x *SearchRequest_SpellCorrectionSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_SpellCorrectionSpec) Reset ¶
func (x *SearchRequest_SpellCorrectionSpec) Reset()
func (*SearchRequest_SpellCorrectionSpec) String ¶
func (x *SearchRequest_SpellCorrectionSpec) String() string
type SearchRequest_SpellCorrectionSpec_Mode ¶
type SearchRequest_SpellCorrectionSpec_Mode int32
Enum describing under which mode spell correction should occur.
const ( // Unspecified spell correction mode. In this case, server behavior // defaults to // [Mode.AUTO][google.cloud.retail.v2beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. SearchRequest_SpellCorrectionSpec_MODE_UNSPECIFIED SearchRequest_SpellCorrectionSpec_Mode = 0 // Google Retail Search will try to find a spell suggestion if there // is any and put in the // [SearchResponse.corrected_query][google.cloud.retail.v2beta.SearchResponse.corrected_query]. // The spell suggestion will not be used as the search query. SearchRequest_SpellCorrectionSpec_SUGGESTION_ONLY SearchRequest_SpellCorrectionSpec_Mode = 1 // Automatic spell correction built by Google Retail Search. Search will // be based on the corrected query if found. SearchRequest_SpellCorrectionSpec_AUTO SearchRequest_SpellCorrectionSpec_Mode = 2 )
func (SearchRequest_SpellCorrectionSpec_Mode) Descriptor ¶
func (SearchRequest_SpellCorrectionSpec_Mode) Descriptor() protoreflect.EnumDescriptor
func (SearchRequest_SpellCorrectionSpec_Mode) EnumDescriptor
deprecated
func (SearchRequest_SpellCorrectionSpec_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchRequest_SpellCorrectionSpec_Mode.Descriptor instead.
func (SearchRequest_SpellCorrectionSpec_Mode) Number ¶
func (x SearchRequest_SpellCorrectionSpec_Mode) Number() protoreflect.EnumNumber
func (SearchRequest_SpellCorrectionSpec_Mode) String ¶
func (x SearchRequest_SpellCorrectionSpec_Mode) String() string
func (SearchRequest_SpellCorrectionSpec_Mode) Type ¶
func (SearchRequest_SpellCorrectionSpec_Mode) Type() protoreflect.EnumType
type SearchRequest_TileNavigationSpec ¶ added in v1.19.0
type SearchRequest_TileNavigationSpec struct { // navigation. TileNavigationRequested bool `` /* 133-byte string literal not displayed */ // NOTE: This field is not being used for filtering search products. Client // side should also put all the applied tiles in // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. AppliedTiles []*Tile `protobuf:"bytes,2,rep,name=applied_tiles,json=appliedTiles,proto3" json:"applied_tiles,omitempty"` // contains filtered or unexported fields }
This field specifies tile navigation related parameters.
func (*SearchRequest_TileNavigationSpec) Descriptor
deprecated
added in
v1.19.0
func (*SearchRequest_TileNavigationSpec) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest_TileNavigationSpec.ProtoReflect.Descriptor instead.
func (*SearchRequest_TileNavigationSpec) GetAppliedTiles ¶ added in v1.19.0
func (x *SearchRequest_TileNavigationSpec) GetAppliedTiles() []*Tile
func (*SearchRequest_TileNavigationSpec) GetTileNavigationRequested ¶ added in v1.19.0
func (x *SearchRequest_TileNavigationSpec) GetTileNavigationRequested() bool
func (*SearchRequest_TileNavigationSpec) ProtoMessage ¶ added in v1.19.0
func (*SearchRequest_TileNavigationSpec) ProtoMessage()
func (*SearchRequest_TileNavigationSpec) ProtoReflect ¶ added in v1.19.0
func (x *SearchRequest_TileNavigationSpec) ProtoReflect() protoreflect.Message
func (*SearchRequest_TileNavigationSpec) Reset ¶ added in v1.19.0
func (x *SearchRequest_TileNavigationSpec) Reset()
func (*SearchRequest_TileNavigationSpec) String ¶ added in v1.19.0
func (x *SearchRequest_TileNavigationSpec) String() string
type SearchResponse ¶
type SearchResponse struct { // A list of matched items. The order represents the ranking. Results []*SearchResponse_SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // Results of facets requested by user. Facets []*SearchResponse_Facet `protobuf:"bytes,2,rep,name=facets,proto3" json:"facets,omitempty"` // The estimated total count of matched items irrespective of pagination. The // count of [results][google.cloud.retail.v2beta.SearchResponse.results] // returned by pagination may be less than the // [total_size][google.cloud.retail.v2beta.SearchResponse.total_size] that // matches. TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` // Contains the spell corrected query, if found. If the spell correction type // is AUTOMATIC, then the search results are based on corrected_query. // Otherwise the original query is used for search. CorrectedQuery string `protobuf:"bytes,4,opt,name=corrected_query,json=correctedQuery,proto3" json:"corrected_query,omitempty"` // A unique search token. This should be included in the // [UserEvent][google.cloud.retail.v2beta.UserEvent] logs resulting from this // search, which enables accurate attribution of search model performance. AttributionToken string `protobuf:"bytes,5,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` // A token that can be sent as // [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] // to retrieve the next page. If this field is omitted, there are no // subsequent pages. NextPageToken string `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // Query expansion information for the returned results. QueryExpansionInfo *SearchResponse_QueryExpansionInfo `protobuf:"bytes,7,opt,name=query_expansion_info,json=queryExpansionInfo,proto3" json:"query_expansion_info,omitempty"` // The URI of a customer-defined redirect page. If redirect action is // triggered, no search is performed, and only // [redirect_uri][google.cloud.retail.v2beta.SearchResponse.redirect_uri] and // [attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] // are set in the response. RedirectUri string `protobuf:"bytes,10,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // The fully qualified resource name of applied // [controls](https://cloud.google.com/retail/docs/serving-control-rules). AppliedControls []string `protobuf:"bytes,12,rep,name=applied_controls,json=appliedControls,proto3" json:"applied_controls,omitempty"` // The invalid // [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] // that are not applied during serving. InvalidConditionBoostSpecs []*SearchRequest_BoostSpec_ConditionBoostSpec `` /* 144-byte string literal not displayed */ // Metadata related to A/B testing [Experiment][] associated with this // response. Only exists when an experiment is triggered. ExperimentInfo []*ExperimentInfo `protobuf:"bytes,17,rep,name=experiment_info,json=experimentInfo,proto3" json:"experiment_info,omitempty"` // This field specifies all related information that is needed on client // side for UI rendering of conversational retail search. ConversationalSearchResult *SearchResponse_ConversationalSearchResult `` /* 142-byte string literal not displayed */ // be used in client side. TileNavigationResult *SearchResponse_TileNavigationResult `protobuf:"bytes,19,opt,name=tile_navigation_result,json=tileNavigationResult,proto3" json:"tile_navigation_result,omitempty"` // contains filtered or unexported fields }
Response message for [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] method.
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetAppliedControls ¶
func (x *SearchResponse) GetAppliedControls() []string
func (*SearchResponse) GetAttributionToken ¶
func (x *SearchResponse) GetAttributionToken() string
func (*SearchResponse) GetConversationalSearchResult ¶ added in v1.19.0
func (x *SearchResponse) GetConversationalSearchResult() *SearchResponse_ConversationalSearchResult
func (*SearchResponse) GetCorrectedQuery ¶
func (x *SearchResponse) GetCorrectedQuery() string
func (*SearchResponse) GetExperimentInfo ¶ added in v1.13.0
func (x *SearchResponse) GetExperimentInfo() []*ExperimentInfo
func (*SearchResponse) GetFacets ¶
func (x *SearchResponse) GetFacets() []*SearchResponse_Facet
func (*SearchResponse) GetInvalidConditionBoostSpecs ¶
func (x *SearchResponse) GetInvalidConditionBoostSpecs() []*SearchRequest_BoostSpec_ConditionBoostSpec
func (*SearchResponse) GetNextPageToken ¶
func (x *SearchResponse) GetNextPageToken() string
func (*SearchResponse) GetQueryExpansionInfo ¶
func (x *SearchResponse) GetQueryExpansionInfo() *SearchResponse_QueryExpansionInfo
func (*SearchResponse) GetRedirectUri ¶
func (x *SearchResponse) GetRedirectUri() string
func (*SearchResponse) GetResults ¶
func (x *SearchResponse) GetResults() []*SearchResponse_SearchResult
func (*SearchResponse) GetTileNavigationResult ¶ added in v1.19.0
func (x *SearchResponse) GetTileNavigationResult() *SearchResponse_TileNavigationResult
func (*SearchResponse) GetTotalSize ¶
func (x *SearchResponse) GetTotalSize() int32
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type SearchResponse_ConversationalSearchResult ¶ added in v1.19.0
type SearchResponse_ConversationalSearchResult struct { // Conversation UUID. This field will be stored in client side storage to // maintain the conversation session with server and will be used for next // search request's // [SearchRequest.ConversationalSearchSpec.conversation_id][google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.conversation_id] // to restore conversation state in server. ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` // The current refined query for the conversational search. This field // will be used in customer UI that the query in the search bar should be // replaced with the refined query. For example, if // [SearchRequest.query][google.cloud.retail.v2beta.SearchRequest.query] is // `dress` and next // [SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer][google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer] // is `red color`, which does not match any product attribute value filters, // the refined query will be `dress, red color`. RefinedQuery string `protobuf:"bytes,2,opt,name=refined_query,json=refinedQuery,proto3" json:"refined_query,omitempty"` // This field is deprecated but will be kept for backward compatibility. // There is expected to have only one additional filter and the value will // be the same to the same as field `additional_filter`. // // Deprecated: Marked as deprecated in google/cloud/retail/v2beta/search_service.proto. AdditionalFilters []*SearchResponse_ConversationalSearchResult_AdditionalFilter `protobuf:"bytes,3,rep,name=additional_filters,json=additionalFilters,proto3" json:"additional_filters,omitempty"` // The follow-up question. e.g., `What is the color?` FollowupQuestion string `protobuf:"bytes,4,opt,name=followup_question,json=followupQuestion,proto3" json:"followup_question,omitempty"` // The answer options provided to client for the follow-up question. SuggestedAnswers []*SearchResponse_ConversationalSearchResult_SuggestedAnswer `protobuf:"bytes,5,rep,name=suggested_answers,json=suggestedAnswers,proto3" json:"suggested_answers,omitempty"` // This is the incremental additional filters implied from the current // user answer. User should add the suggested addition filters to the // previous // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter], // and use the merged filter in the follow up search request. AdditionalFilter *SearchResponse_ConversationalSearchResult_AdditionalFilter `protobuf:"bytes,6,opt,name=additional_filter,json=additionalFilter,proto3" json:"additional_filter,omitempty"` // contains filtered or unexported fields }
This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
func (*SearchResponse_ConversationalSearchResult) Descriptor
deprecated
added in
v1.19.0
func (*SearchResponse_ConversationalSearchResult) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_ConversationalSearchResult.ProtoReflect.Descriptor instead.
func (*SearchResponse_ConversationalSearchResult) GetAdditionalFilter ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) GetAdditionalFilter() *SearchResponse_ConversationalSearchResult_AdditionalFilter
func (*SearchResponse_ConversationalSearchResult) GetAdditionalFilters
deprecated
added in
v1.19.0
func (x *SearchResponse_ConversationalSearchResult) GetAdditionalFilters() []*SearchResponse_ConversationalSearchResult_AdditionalFilter
Deprecated: Marked as deprecated in google/cloud/retail/v2beta/search_service.proto.
func (*SearchResponse_ConversationalSearchResult) GetConversationId ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) GetConversationId() string
func (*SearchResponse_ConversationalSearchResult) GetFollowupQuestion ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) GetFollowupQuestion() string
func (*SearchResponse_ConversationalSearchResult) GetRefinedQuery ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) GetRefinedQuery() string
func (*SearchResponse_ConversationalSearchResult) GetSuggestedAnswers ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) GetSuggestedAnswers() []*SearchResponse_ConversationalSearchResult_SuggestedAnswer
func (*SearchResponse_ConversationalSearchResult) ProtoMessage ¶ added in v1.19.0
func (*SearchResponse_ConversationalSearchResult) ProtoMessage()
func (*SearchResponse_ConversationalSearchResult) ProtoReflect ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) ProtoReflect() protoreflect.Message
func (*SearchResponse_ConversationalSearchResult) Reset ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) Reset()
func (*SearchResponse_ConversationalSearchResult) String ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult) String() string
type SearchResponse_ConversationalSearchResult_AdditionalFilter ¶ added in v1.19.0
type SearchResponse_ConversationalSearchResult_AdditionalFilter struct { // Product attribute value, including an attribute key and an // attribute value. Other types can be added here in the future. ProductAttributeValue *ProductAttributeValue `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
Additional filter that client side need to apply.
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) Descriptor
deprecated
added in
v1.19.0
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_ConversationalSearchResult_AdditionalFilter.ProtoReflect.Descriptor instead.
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) GetProductAttributeValue ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) GetProductAttributeValue() *ProductAttributeValue
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) ProtoMessage ¶ added in v1.19.0
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) ProtoMessage()
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) ProtoReflect ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) ProtoReflect() protoreflect.Message
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) Reset ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) Reset()
func (*SearchResponse_ConversationalSearchResult_AdditionalFilter) String ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_AdditionalFilter) String() string
type SearchResponse_ConversationalSearchResult_SuggestedAnswer ¶ added in v1.19.0
type SearchResponse_ConversationalSearchResult_SuggestedAnswer struct { // Product attribute value, including an attribute key and an // attribute value. Other types can be added here in the future. ProductAttributeValue *ProductAttributeValue `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
Suggested answers to the follow-up question.
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) Descriptor
deprecated
added in
v1.19.0
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_ConversationalSearchResult_SuggestedAnswer.ProtoReflect.Descriptor instead.
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) GetProductAttributeValue ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) GetProductAttributeValue() *ProductAttributeValue
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) ProtoMessage ¶ added in v1.19.0
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) ProtoMessage()
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) ProtoReflect ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) ProtoReflect() protoreflect.Message
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) Reset ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) Reset()
func (*SearchResponse_ConversationalSearchResult_SuggestedAnswer) String ¶ added in v1.19.0
func (x *SearchResponse_ConversationalSearchResult_SuggestedAnswer) String() string
type SearchResponse_Facet ¶
type SearchResponse_Facet struct { // The key for this facet. E.g., "colorFamilies" or "price" or // "attributes.attr1". Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The facet values for this field. Values []*SearchResponse_Facet_FacetValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // Whether the facet is dynamically generated. DynamicFacet bool `protobuf:"varint,3,opt,name=dynamic_facet,json=dynamicFacet,proto3" json:"dynamic_facet,omitempty"` // contains filtered or unexported fields }
A facet result.
func (*SearchResponse_Facet) Descriptor
deprecated
func (*SearchResponse_Facet) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_Facet.ProtoReflect.Descriptor instead.
func (*SearchResponse_Facet) GetDynamicFacet ¶
func (x *SearchResponse_Facet) GetDynamicFacet() bool
func (*SearchResponse_Facet) GetKey ¶
func (x *SearchResponse_Facet) GetKey() string
func (*SearchResponse_Facet) GetValues ¶
func (x *SearchResponse_Facet) GetValues() []*SearchResponse_Facet_FacetValue
func (*SearchResponse_Facet) ProtoMessage ¶
func (*SearchResponse_Facet) ProtoMessage()
func (*SearchResponse_Facet) ProtoReflect ¶
func (x *SearchResponse_Facet) ProtoReflect() protoreflect.Message
func (*SearchResponse_Facet) Reset ¶
func (x *SearchResponse_Facet) Reset()
func (*SearchResponse_Facet) String ¶
func (x *SearchResponse_Facet) String() string
type SearchResponse_Facet_FacetValue ¶
type SearchResponse_Facet_FacetValue struct { // A facet value which contains values. // // Types that are assignable to FacetValue: // // *SearchResponse_Facet_FacetValue_Value // *SearchResponse_Facet_FacetValue_Interval FacetValue isSearchResponse_Facet_FacetValue_FacetValue `protobuf_oneof:"facet_value"` // Number of items that have this facet value. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // The minimum value in the // [FacetValue.interval][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.interval]. // Only supported on numerical facets and returned if // [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.return_min_max] // is true. MinValue float64 `protobuf:"fixed64,5,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` // The maximum value in the // [FacetValue.interval][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.interval]. // Only supported on numerical facets and returned if // [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.return_min_max] // is true. MaxValue float64 `protobuf:"fixed64,6,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` // contains filtered or unexported fields }
A facet value which contains value names and their count.
func (*SearchResponse_Facet_FacetValue) Descriptor
deprecated
func (*SearchResponse_Facet_FacetValue) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_Facet_FacetValue.ProtoReflect.Descriptor instead.
func (*SearchResponse_Facet_FacetValue) GetCount ¶
func (x *SearchResponse_Facet_FacetValue) GetCount() int64
func (*SearchResponse_Facet_FacetValue) GetFacetValue ¶
func (m *SearchResponse_Facet_FacetValue) GetFacetValue() isSearchResponse_Facet_FacetValue_FacetValue
func (*SearchResponse_Facet_FacetValue) GetInterval ¶
func (x *SearchResponse_Facet_FacetValue) GetInterval() *Interval
func (*SearchResponse_Facet_FacetValue) GetMaxValue ¶
func (x *SearchResponse_Facet_FacetValue) GetMaxValue() float64
func (*SearchResponse_Facet_FacetValue) GetMinValue ¶
func (x *SearchResponse_Facet_FacetValue) GetMinValue() float64
func (*SearchResponse_Facet_FacetValue) GetValue ¶
func (x *SearchResponse_Facet_FacetValue) GetValue() string
func (*SearchResponse_Facet_FacetValue) ProtoMessage ¶
func (*SearchResponse_Facet_FacetValue) ProtoMessage()
func (*SearchResponse_Facet_FacetValue) ProtoReflect ¶
func (x *SearchResponse_Facet_FacetValue) ProtoReflect() protoreflect.Message
func (*SearchResponse_Facet_FacetValue) Reset ¶
func (x *SearchResponse_Facet_FacetValue) Reset()
func (*SearchResponse_Facet_FacetValue) String ¶
func (x *SearchResponse_Facet_FacetValue) String() string
type SearchResponse_Facet_FacetValue_Interval ¶
type SearchResponse_Facet_FacetValue_Interval struct { // Interval value for a facet, such as [10, 20) for facet "price". Interval *Interval `protobuf:"bytes,2,opt,name=interval,proto3,oneof"` }
type SearchResponse_Facet_FacetValue_Value ¶
type SearchResponse_Facet_FacetValue_Value struct { // Text value of a facet, such as "Black" for facet "colorFamilies". Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"` }
type SearchResponse_QueryExpansionInfo ¶
type SearchResponse_QueryExpansionInfo struct { // Bool describing whether query expansion has occurred. ExpandedQuery bool `protobuf:"varint,1,opt,name=expanded_query,json=expandedQuery,proto3" json:"expanded_query,omitempty"` // Number of pinned results. This field will only be set when expansion // happens and // [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec.pin_unexpanded_results] // is set to true. PinnedResultCount int64 `protobuf:"varint,2,opt,name=pinned_result_count,json=pinnedResultCount,proto3" json:"pinned_result_count,omitempty"` // contains filtered or unexported fields }
Information describing query expansion including whether expansion has occurred.
func (*SearchResponse_QueryExpansionInfo) Descriptor
deprecated
func (*SearchResponse_QueryExpansionInfo) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_QueryExpansionInfo.ProtoReflect.Descriptor instead.
func (*SearchResponse_QueryExpansionInfo) GetExpandedQuery ¶
func (x *SearchResponse_QueryExpansionInfo) GetExpandedQuery() bool
func (*SearchResponse_QueryExpansionInfo) GetPinnedResultCount ¶
func (x *SearchResponse_QueryExpansionInfo) GetPinnedResultCount() int64
func (*SearchResponse_QueryExpansionInfo) ProtoMessage ¶
func (*SearchResponse_QueryExpansionInfo) ProtoMessage()
func (*SearchResponse_QueryExpansionInfo) ProtoReflect ¶
func (x *SearchResponse_QueryExpansionInfo) ProtoReflect() protoreflect.Message
func (*SearchResponse_QueryExpansionInfo) Reset ¶
func (x *SearchResponse_QueryExpansionInfo) Reset()
func (*SearchResponse_QueryExpansionInfo) String ¶
func (x *SearchResponse_QueryExpansionInfo) String() string
type SearchResponse_SearchResult ¶
type SearchResponse_SearchResult struct { // [Product.id][google.cloud.retail.v2beta.Product.id] of the searched // [Product][google.cloud.retail.v2beta.Product]. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The product data snippet in the search response. Only // [Product.name][google.cloud.retail.v2beta.Product.name] is guaranteed to // be populated. // // [Product.variants][google.cloud.retail.v2beta.Product.variants] contains // the product variants that match the search query. If there are multiple // product variants matching the query, top 5 most relevant product variants // are returned and ordered by relevancy. // // If relevancy can be deternmined, use // [matching_variant_fields][google.cloud.retail.v2beta.SearchResponse.SearchResult.matching_variant_fields] // to look up matched product variants fields. If relevancy cannot be // determined, e.g. when searching "shoe" all products in a shoe product can // be a match, 5 product variants are returned but order is meaningless. Product *Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` // The count of matched // [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product]s. MatchingVariantCount int32 `protobuf:"varint,3,opt,name=matching_variant_count,json=matchingVariantCount,proto3" json:"matching_variant_count,omitempty"` // If a [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product] matches the search query, // this map indicates which [Product][google.cloud.retail.v2beta.Product] // fields are matched. The key is the // [Product.name][google.cloud.retail.v2beta.Product.name], the value is a // field mask of the matched [Product][google.cloud.retail.v2beta.Product] // fields. If matched attributes cannot be determined, this map will be // empty. // // For example, a key "sku1" with field mask // "products.color_info" indicates there is a match between // "sku1" [ColorInfo][google.cloud.retail.v2beta.ColorInfo] and the query. MatchingVariantFields map[string]*fieldmaskpb.FieldMask `` /* 214-byte string literal not displayed */ // The rollup matching // [variant][google.cloud.retail.v2beta.Product.Type.VARIANT] // [Product][google.cloud.retail.v2beta.Product] attributes. The key is one // of the // [SearchRequest.variant_rollup_keys][google.cloud.retail.v2beta.SearchRequest.variant_rollup_keys]. // The values are the merged and de-duplicated // [Product][google.cloud.retail.v2beta.Product] attributes. Notice that the // rollup values are respect filter. For example, when filtering by // "colorFamilies:ANY(\"red\")" and rollup "colorFamilies", only "red" is // returned. // // For textual and numerical attributes, the rollup values is a list of // string or double values with type // [google.protobuf.ListValue][google.protobuf.ListValue]. For example, if // there are two variants with colors "red" and "blue", the rollup values // are // // { key: "colorFamilies" // value { // list_value { // values { string_value: "red" } // values { string_value: "blue" } // } // } // } // // For [FulfillmentInfo][google.cloud.retail.v2beta.FulfillmentInfo], the // rollup values is a double value with type // [google.protobuf.Value][google.protobuf.Value]. For example, // `{key: "pickupInStore.store1" value { number_value: 10 }}` means a there // are 10 variants in this product are available in the store "store1". VariantRollupValues map[string]*structpb.Value `` /* 208-byte string literal not displayed */ // Specifies previous events related to this product for this user based on // [UserEvent][google.cloud.retail.v2beta.UserEvent] with same // [SearchRequest.visitor_id][google.cloud.retail.v2beta.SearchRequest.visitor_id] // or [UserInfo.user_id][google.cloud.retail.v2beta.UserInfo.user_id]. // // This is set only when // [SearchRequest.PersonalizationSpec.mode][google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec.mode] // is // [SearchRequest.PersonalizationSpec.Mode.AUTO][google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec.Mode.AUTO]. // // Possible values: // // * `purchased`: Indicates that this product has been purchased before. PersonalLabels []string `protobuf:"bytes,7,rep,name=personal_labels,json=personalLabels,proto3" json:"personal_labels,omitempty"` // contains filtered or unexported fields }
Represents the search results.
func (*SearchResponse_SearchResult) Descriptor
deprecated
func (*SearchResponse_SearchResult) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_SearchResult.ProtoReflect.Descriptor instead.
func (*SearchResponse_SearchResult) GetId ¶
func (x *SearchResponse_SearchResult) GetId() string
func (*SearchResponse_SearchResult) GetMatchingVariantCount ¶
func (x *SearchResponse_SearchResult) GetMatchingVariantCount() int32
func (*SearchResponse_SearchResult) GetMatchingVariantFields ¶
func (x *SearchResponse_SearchResult) GetMatchingVariantFields() map[string]*fieldmaskpb.FieldMask
func (*SearchResponse_SearchResult) GetPersonalLabels ¶
func (x *SearchResponse_SearchResult) GetPersonalLabels() []string
func (*SearchResponse_SearchResult) GetProduct ¶
func (x *SearchResponse_SearchResult) GetProduct() *Product
func (*SearchResponse_SearchResult) GetVariantRollupValues ¶
func (x *SearchResponse_SearchResult) GetVariantRollupValues() map[string]*structpb.Value
func (*SearchResponse_SearchResult) ProtoMessage ¶
func (*SearchResponse_SearchResult) ProtoMessage()
func (*SearchResponse_SearchResult) ProtoReflect ¶
func (x *SearchResponse_SearchResult) ProtoReflect() protoreflect.Message
func (*SearchResponse_SearchResult) Reset ¶
func (x *SearchResponse_SearchResult) Reset()
func (*SearchResponse_SearchResult) String ¶
func (x *SearchResponse_SearchResult) String() string
type SearchResponse_TileNavigationResult ¶ added in v1.19.0
type SearchResponse_TileNavigationResult struct { // engagement. Tiles []*Tile `protobuf:"bytes,1,rep,name=tiles,proto3" json:"tiles,omitempty"` // contains filtered or unexported fields }
This field specifies all related information for tile navigation that will be used in client side.
func (*SearchResponse_TileNavigationResult) Descriptor
deprecated
added in
v1.19.0
func (*SearchResponse_TileNavigationResult) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse_TileNavigationResult.ProtoReflect.Descriptor instead.
func (*SearchResponse_TileNavigationResult) GetTiles ¶ added in v1.19.0
func (x *SearchResponse_TileNavigationResult) GetTiles() []*Tile
func (*SearchResponse_TileNavigationResult) ProtoMessage ¶ added in v1.19.0
func (*SearchResponse_TileNavigationResult) ProtoMessage()
func (*SearchResponse_TileNavigationResult) ProtoReflect ¶ added in v1.19.0
func (x *SearchResponse_TileNavigationResult) ProtoReflect() protoreflect.Message
func (*SearchResponse_TileNavigationResult) Reset ¶ added in v1.19.0
func (x *SearchResponse_TileNavigationResult) Reset()
func (*SearchResponse_TileNavigationResult) String ¶ added in v1.19.0
func (x *SearchResponse_TileNavigationResult) String() string
type SearchServiceClient ¶
type SearchServiceClient interface { // Performs a search. // // This feature is only available for users who have Retail Search enabled. // Enable Retail Search on Cloud Console before using this feature. Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) }
SearchServiceClient is the client API for SearchService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSearchServiceClient ¶
func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient
type SearchServiceServer ¶
type SearchServiceServer interface { // Performs a search. // // This feature is only available for users who have Retail Search enabled. // Enable Retail Search on Cloud Console before using this feature. Search(context.Context, *SearchRequest) (*SearchResponse, error) }
SearchServiceServer is the server API for SearchService service.
type SearchSolutionUseCase ¶
type SearchSolutionUseCase int32
The use case of Cloud Retail Search.
const ( // The value when it's unspecified. In this case, server behavior defaults to // [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH]. SearchSolutionUseCase_SEARCH_SOLUTION_USE_CASE_UNSPECIFIED SearchSolutionUseCase = 0 // Search use case. Expects the traffic has a non-empty // [query][google.cloud.retail.v2beta.SearchRequest.query]. SearchSolutionUseCase_SEARCH_SOLUTION_USE_CASE_SEARCH SearchSolutionUseCase = 1 // Browse use case. Expects the traffic has an empty // [query][google.cloud.retail.v2beta.SearchRequest.query]. SearchSolutionUseCase_SEARCH_SOLUTION_USE_CASE_BROWSE SearchSolutionUseCase = 2 )
func (SearchSolutionUseCase) Descriptor ¶
func (SearchSolutionUseCase) Descriptor() protoreflect.EnumDescriptor
func (SearchSolutionUseCase) Enum ¶
func (x SearchSolutionUseCase) Enum() *SearchSolutionUseCase
func (SearchSolutionUseCase) EnumDescriptor
deprecated
func (SearchSolutionUseCase) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchSolutionUseCase.Descriptor instead.
func (SearchSolutionUseCase) Number ¶
func (x SearchSolutionUseCase) Number() protoreflect.EnumNumber
func (SearchSolutionUseCase) String ¶
func (x SearchSolutionUseCase) String() string
func (SearchSolutionUseCase) Type ¶
func (SearchSolutionUseCase) Type() protoreflect.EnumType
type ServingConfig ¶
type ServingConfig struct { // Immutable. Fully qualified name // `projects/*/locations/global/catalogs/*/servingConfig/*` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The human readable serving config display name. Used in Retail // UI. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The id of the model in the same // [Catalog][google.cloud.retail.v2beta.Catalog] to use at serving time. // Currently only RecommendationModels are supported: // https://cloud.google.com/retail/recommendations-ai/docs/create-models // Can be changed but only to a compatible model (e.g. // others-you-may-like CTR to others-you-may-like CVR). // // Required when // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. ModelId string `protobuf:"bytes,3,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"` // How much price ranking we want in serving results. // Price reranking causes product items with a similar // recommendation probability to be ordered by price, with the // highest-priced items first. This setting could result in a decrease in // click-through and conversion rates. // // Allowed values are: // // * `no-price-reranking` // * `low-price-reranking` // * `medium-price-reranking` // * `high-price-reranking` // // If not specified, we choose default based on model type. Default value: // `no-price-reranking`. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. PriceRerankingLevel string `protobuf:"bytes,4,opt,name=price_reranking_level,json=priceRerankingLevel,proto3" json:"price_reranking_level,omitempty"` // Facet specifications for faceted search. If empty, no facets are returned. // The ids refer to the ids of [Control][google.cloud.retail.v2beta.Control] // resources with only the Facet control set. These controls are assumed to be // in the same [Catalog][google.cloud.retail.v2beta.Catalog] as the // [ServingConfig][google.cloud.retail.v2beta.ServingConfig]. // A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error // is returned. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. FacetControlIds []string `protobuf:"bytes,5,rep,name=facet_control_ids,json=facetControlIds,proto3" json:"facet_control_ids,omitempty"` // The specification for dynamically generated facets. Notice that only // textual facets can be dynamically generated. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. DynamicFacetSpec *SearchRequest_DynamicFacetSpec `protobuf:"bytes,6,opt,name=dynamic_facet_spec,json=dynamicFacetSpec,proto3" json:"dynamic_facet_spec,omitempty"` // Condition boost specifications. If a product matches multiple conditions // in the specifications, boost scores from these specifications are all // applied and combined in a non-linear way. Maximum number of // specifications is 100. // // Notice that if both // [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids] // and // [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec] // are set, the boost conditions from both places are evaluated. If a search // request matches multiple boost conditions, the final boost score is equal // to the sum of the boost scores from all matched boost conditions. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. BoostControlIds []string `protobuf:"bytes,7,rep,name=boost_control_ids,json=boostControlIds,proto3" json:"boost_control_ids,omitempty"` // Condition filter specifications. If a product matches multiple conditions // in the specifications, filters from these specifications are all // applied and combined via the AND operator. Maximum number of // specifications is 100. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. FilterControlIds []string `protobuf:"bytes,9,rep,name=filter_control_ids,json=filterControlIds,proto3" json:"filter_control_ids,omitempty"` // Condition redirect specifications. Only the first triggered redirect action // is applied, even if multiple apply. Maximum number of specifications is // 1000. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. RedirectControlIds []string `protobuf:"bytes,10,rep,name=redirect_control_ids,json=redirectControlIds,proto3" json:"redirect_control_ids,omitempty"` // Condition synonyms specifications. If multiple syonyms conditions match, // all matching synonyms control in the list will execute. Order of controls // in the list will not matter. Maximum number of specifications is // 100. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. TwowaySynonymsControlIds []string `` /* 138-byte string literal not displayed */ // Condition oneway synonyms specifications. If multiple oneway synonyms // conditions match, all matching oneway synonyms controls in the list will // execute. Order of controls in the list will not matter. Maximum number of // specifications is 100. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. OnewaySynonymsControlIds []string `` /* 138-byte string literal not displayed */ // Condition do not associate specifications. If multiple do not associate // conditions match, all matching do not associate controls in the list will // execute. // - Order does not matter. // - Maximum number of specifications is 100. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. DoNotAssociateControlIds []string `` /* 140-byte string literal not displayed */ // Condition replacement specifications. // - Applied according to the order in the list. // - A previously replaced term can not be re-replaced. // - Maximum number of specifications is 100. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. ReplacementControlIds []string `` /* 127-byte string literal not displayed */ // Condition ignore specifications. If multiple ignore // conditions match, all matching ignore controls in the list will // execute. // - Order does not matter. // - Maximum number of specifications is 100. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. IgnoreControlIds []string `protobuf:"bytes,15,rep,name=ignore_control_ids,json=ignoreControlIds,proto3" json:"ignore_control_ids,omitempty"` // How much diversity to use in recommendation model results e.g. // `medium-diversity` or `high-diversity`. Currently supported values: // // * `no-diversity` // * `low-diversity` // * `medium-diversity` // * `high-diversity` // * `auto-diversity` // // If not specified, we choose default based on recommendation model // type. Default value: `no-diversity`. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. DiversityLevel string `protobuf:"bytes,8,opt,name=diversity_level,json=diversityLevel,proto3" json:"diversity_level,omitempty"` // What kind of diversity to use - data driven or rule based. If unset, the // server behavior defaults to // [RULE_BASED_DIVERSITY][google.cloud.retail.v2beta.ServingConfig.DiversityType.RULE_BASED_DIVERSITY]. DiversityType ServingConfig_DiversityType `` /* 162-byte string literal not displayed */ // Whether to add additional category filters on the `similar-items` model. // If not specified, we enable it by default. // // Allowed values are: // // - `no-category-match`: No additional filtering of original results from // the model and the customer's filters. // - `relaxed-category-match`: Only keep results with categories that match // at least one item categories in the PredictRequests's context item. // - If customer also sends filters in the PredictRequest, then the results // will satisfy both conditions (user given and category match). // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. EnableCategoryFilterLevel string `` /* 141-byte string literal not displayed */ // When the flag is enabled, the products in the denylist will not be filtered // out in the recommendation filtering results. IgnoreRecsDenylist bool `protobuf:"varint,24,opt,name=ignore_recs_denylist,json=ignoreRecsDenylist,proto3" json:"ignore_recs_denylist,omitempty"` // The specification for personalization spec. // // Can only be set if // [solution_types][google.cloud.retail.v2beta.ServingConfig.solution_types] // is // [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_SEARCH]. // // Notice that if both // [ServingConfig.personalization_spec][google.cloud.retail.v2beta.ServingConfig.personalization_spec] // and // [SearchRequest.personalization_spec][google.cloud.retail.v2beta.SearchRequest.personalization_spec] // are set. // [SearchRequest.personalization_spec][google.cloud.retail.v2beta.SearchRequest.personalization_spec] // will override // [ServingConfig.personalization_spec][google.cloud.retail.v2beta.ServingConfig.personalization_spec]. PersonalizationSpec *SearchRequest_PersonalizationSpec `protobuf:"bytes,21,opt,name=personalization_spec,json=personalizationSpec,proto3" json:"personalization_spec,omitempty"` // Required. Immutable. Specifies the solution types that a serving config can // be associated with. Currently we support setting only one type of solution. SolutionTypes []SolutionType `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).
func (*ServingConfig) Descriptor
deprecated
func (*ServingConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServingConfig.ProtoReflect.Descriptor instead.
func (*ServingConfig) GetBoostControlIds ¶
func (x *ServingConfig) GetBoostControlIds() []string
func (*ServingConfig) GetDisplayName ¶
func (x *ServingConfig) GetDisplayName() string
func (*ServingConfig) GetDiversityLevel ¶
func (x *ServingConfig) GetDiversityLevel() string
func (*ServingConfig) GetDiversityType ¶
func (x *ServingConfig) GetDiversityType() ServingConfig_DiversityType
func (*ServingConfig) GetDoNotAssociateControlIds ¶
func (x *ServingConfig) GetDoNotAssociateControlIds() []string
func (*ServingConfig) GetDynamicFacetSpec ¶
func (x *ServingConfig) GetDynamicFacetSpec() *SearchRequest_DynamicFacetSpec
func (*ServingConfig) GetEnableCategoryFilterLevel ¶
func (x *ServingConfig) GetEnableCategoryFilterLevel() string
func (*ServingConfig) GetFacetControlIds ¶
func (x *ServingConfig) GetFacetControlIds() []string
func (*ServingConfig) GetFilterControlIds ¶
func (x *ServingConfig) GetFilterControlIds() []string
func (*ServingConfig) GetIgnoreControlIds ¶
func (x *ServingConfig) GetIgnoreControlIds() []string
func (*ServingConfig) GetIgnoreRecsDenylist ¶ added in v1.17.0
func (x *ServingConfig) GetIgnoreRecsDenylist() bool
func (*ServingConfig) GetModelId ¶
func (x *ServingConfig) GetModelId() string
func (*ServingConfig) GetName ¶
func (x *ServingConfig) GetName() string
func (*ServingConfig) GetOnewaySynonymsControlIds ¶
func (x *ServingConfig) GetOnewaySynonymsControlIds() []string
func (*ServingConfig) GetPersonalizationSpec ¶
func (x *ServingConfig) GetPersonalizationSpec() *SearchRequest_PersonalizationSpec
func (*ServingConfig) GetPriceRerankingLevel ¶
func (x *ServingConfig) GetPriceRerankingLevel() string
func (*ServingConfig) GetRedirectControlIds ¶
func (x *ServingConfig) GetRedirectControlIds() []string
func (*ServingConfig) GetReplacementControlIds ¶
func (x *ServingConfig) GetReplacementControlIds() []string
func (*ServingConfig) GetSolutionTypes ¶
func (x *ServingConfig) GetSolutionTypes() []SolutionType
func (*ServingConfig) GetTwowaySynonymsControlIds ¶
func (x *ServingConfig) GetTwowaySynonymsControlIds() []string
func (*ServingConfig) ProtoMessage ¶
func (*ServingConfig) ProtoMessage()
func (*ServingConfig) ProtoReflect ¶
func (x *ServingConfig) ProtoReflect() protoreflect.Message
func (*ServingConfig) Reset ¶
func (x *ServingConfig) Reset()
func (*ServingConfig) String ¶
func (x *ServingConfig) String() string
type ServingConfigServiceClient ¶
type ServingConfigServiceClient interface { // Creates a ServingConfig. // // A maximum of 100 [ServingConfig][google.cloud.retail.v2beta.ServingConfig]s // are allowed in a [Catalog][google.cloud.retail.v2beta.Catalog], otherwise // a FAILED_PRECONDITION error is returned. CreateServingConfig(ctx context.Context, in *CreateServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error) // Deletes a ServingConfig. // // Returns a NotFound error if the ServingConfig does not exist. DeleteServingConfig(ctx context.Context, in *DeleteServingConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Updates a ServingConfig. UpdateServingConfig(ctx context.Context, in *UpdateServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error) // Gets a ServingConfig. // // Returns a NotFound error if the ServingConfig does not exist. GetServingConfig(ctx context.Context, in *GetServingConfigRequest, opts ...grpc.CallOption) (*ServingConfig, error) // Lists all ServingConfigs linked to this catalog. ListServingConfigs(ctx context.Context, in *ListServingConfigsRequest, opts ...grpc.CallOption) (*ListServingConfigsResponse, error) // Enables a Control on the specified ServingConfig. // The control is added in the last position of the list of controls // it belongs to (e.g. if it's a facet spec control it will be applied // in the last position of servingConfig.facetSpecIds) // Returns a ALREADY_EXISTS error if the control has already been applied. // Returns a FAILED_PRECONDITION error if the addition could exceed maximum // number of control allowed for that type of control. AddControl(ctx context.Context, in *AddControlRequest, opts ...grpc.CallOption) (*ServingConfig, error) // Disables a Control on the specified ServingConfig. // The control is removed from the ServingConfig. // Returns a NOT_FOUND error if the Control is not enabled for the // ServingConfig. RemoveControl(ctx context.Context, in *RemoveControlRequest, opts ...grpc.CallOption) (*ServingConfig, error) }
ServingConfigServiceClient is the client API for ServingConfigService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServingConfigServiceClient ¶
func NewServingConfigServiceClient(cc grpc.ClientConnInterface) ServingConfigServiceClient
type ServingConfigServiceServer ¶
type ServingConfigServiceServer interface { // Creates a ServingConfig. // // A maximum of 100 [ServingConfig][google.cloud.retail.v2beta.ServingConfig]s // are allowed in a [Catalog][google.cloud.retail.v2beta.Catalog], otherwise // a FAILED_PRECONDITION error is returned. CreateServingConfig(context.Context, *CreateServingConfigRequest) (*ServingConfig, error) // Deletes a ServingConfig. // // Returns a NotFound error if the ServingConfig does not exist. DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*emptypb.Empty, error) // Updates a ServingConfig. UpdateServingConfig(context.Context, *UpdateServingConfigRequest) (*ServingConfig, error) // Gets a ServingConfig. // // Returns a NotFound error if the ServingConfig does not exist. GetServingConfig(context.Context, *GetServingConfigRequest) (*ServingConfig, error) // Lists all ServingConfigs linked to this catalog. ListServingConfigs(context.Context, *ListServingConfigsRequest) (*ListServingConfigsResponse, error) // Enables a Control on the specified ServingConfig. // The control is added in the last position of the list of controls // it belongs to (e.g. if it's a facet spec control it will be applied // in the last position of servingConfig.facetSpecIds) // Returns a ALREADY_EXISTS error if the control has already been applied. // Returns a FAILED_PRECONDITION error if the addition could exceed maximum // number of control allowed for that type of control. AddControl(context.Context, *AddControlRequest) (*ServingConfig, error) // Disables a Control on the specified ServingConfig. // The control is removed from the ServingConfig. // Returns a NOT_FOUND error if the Control is not enabled for the // ServingConfig. RemoveControl(context.Context, *RemoveControlRequest) (*ServingConfig, error) }
ServingConfigServiceServer is the server API for ServingConfigService service.
type ServingConfig_DiversityType ¶
type ServingConfig_DiversityType int32
What type of diversity - data or rule based.
const ( // Default value. ServingConfig_DIVERSITY_TYPE_UNSPECIFIED ServingConfig_DiversityType = 0 // Rule based diversity. ServingConfig_RULE_BASED_DIVERSITY ServingConfig_DiversityType = 2 // Data driven diversity. ServingConfig_DATA_DRIVEN_DIVERSITY ServingConfig_DiversityType = 3 )
func (ServingConfig_DiversityType) Descriptor ¶
func (ServingConfig_DiversityType) Descriptor() protoreflect.EnumDescriptor
func (ServingConfig_DiversityType) Enum ¶
func (x ServingConfig_DiversityType) Enum() *ServingConfig_DiversityType
func (ServingConfig_DiversityType) EnumDescriptor
deprecated
func (ServingConfig_DiversityType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServingConfig_DiversityType.Descriptor instead.
func (ServingConfig_DiversityType) Number ¶
func (x ServingConfig_DiversityType) Number() protoreflect.EnumNumber
func (ServingConfig_DiversityType) String ¶
func (x ServingConfig_DiversityType) String() string
func (ServingConfig_DiversityType) Type ¶
func (ServingConfig_DiversityType) Type() protoreflect.EnumType
type SetDefaultBranchRequest ¶
type SetDefaultBranchRequest struct { // Full resource name of the catalog, such as // `projects/*/locations/global/catalogs/default_catalog`. Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // The final component of the resource name of a branch. // // This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT // error is returned. // // If there are no sufficient active products in the targeted branch and // [force][google.cloud.retail.v2beta.SetDefaultBranchRequest.force] is not // set, a FAILED_PRECONDITION error is returned. BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` // Some note on this request, this can be retrieved by // [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch] // before next valid default branch set occurs. // // This field must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"` // If set to true, it permits switching to a branch with // [branch_id][google.cloud.retail.v2beta.SetDefaultBranchRequest.branch_id] // even if it has no sufficient active products. Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
Request message to set a specified branch as new default_branch.
func (*SetDefaultBranchRequest) Descriptor
deprecated
func (*SetDefaultBranchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDefaultBranchRequest.ProtoReflect.Descriptor instead.
func (*SetDefaultBranchRequest) GetBranchId ¶
func (x *SetDefaultBranchRequest) GetBranchId() string
func (*SetDefaultBranchRequest) GetCatalog ¶
func (x *SetDefaultBranchRequest) GetCatalog() string
func (*SetDefaultBranchRequest) GetForce ¶
func (x *SetDefaultBranchRequest) GetForce() bool
func (*SetDefaultBranchRequest) GetNote ¶
func (x *SetDefaultBranchRequest) GetNote() string
func (*SetDefaultBranchRequest) ProtoMessage ¶
func (*SetDefaultBranchRequest) ProtoMessage()
func (*SetDefaultBranchRequest) ProtoReflect ¶
func (x *SetDefaultBranchRequest) ProtoReflect() protoreflect.Message
func (*SetDefaultBranchRequest) Reset ¶
func (x *SetDefaultBranchRequest) Reset()
func (*SetDefaultBranchRequest) String ¶
func (x *SetDefaultBranchRequest) String() string
type SetInventoryMetadata ¶
type SetInventoryMetadata struct {
// contains filtered or unexported fields
}
Metadata related to the progress of the SetInventory operation. Currently empty because there is no meaningful metadata populated from the [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory] method.
func (*SetInventoryMetadata) Descriptor
deprecated
func (*SetInventoryMetadata) Descriptor() ([]byte, []int)
Deprecated: Use SetInventoryMetadata.ProtoReflect.Descriptor instead.
func (*SetInventoryMetadata) ProtoMessage ¶
func (*SetInventoryMetadata) ProtoMessage()
func (*SetInventoryMetadata) ProtoReflect ¶
func (x *SetInventoryMetadata) ProtoReflect() protoreflect.Message
func (*SetInventoryMetadata) Reset ¶
func (x *SetInventoryMetadata) Reset()
func (*SetInventoryMetadata) String ¶
func (x *SetInventoryMetadata) String() string
type SetInventoryRequest ¶
type SetInventoryRequest struct { // Required. The inventory information to update. The allowable fields to // update are: // // * [Product.price_info][google.cloud.retail.v2beta.Product.price_info] // * [Product.availability][google.cloud.retail.v2beta.Product.availability] // * [Product.available_quantity][google.cloud.retail.v2beta.Product.available_quantity] // * [Product.fulfillment_info][google.cloud.retail.v2beta.Product.fulfillment_info] // The updated inventory fields must be specified in // [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask]. // // If // [SetInventoryRequest.inventory.name][google.cloud.retail.v2beta.Product.name] // is empty or invalid, an INVALID_ARGUMENT error is returned. // // If the caller does not have permission to update the // [Product][google.cloud.retail.v2beta.Product] named in // [Product.name][google.cloud.retail.v2beta.Product.name], regardless of // whether or not it exists, a PERMISSION_DENIED error is returned. // // If the [Product][google.cloud.retail.v2beta.Product] to update does not // have existing inventory information, the provided inventory information // will be inserted. // // If the [Product][google.cloud.retail.v2beta.Product] to update has existing // inventory information, the provided inventory information will be merged // while respecting the last update time for each inventory field, using the // provided or default value for // [SetInventoryRequest.set_time][google.cloud.retail.v2beta.SetInventoryRequest.set_time]. // // The caller can replace place IDs for a subset of fulfillment types in the // following ways: // // * Adds "fulfillment_info" in // [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask] // * Specifies only the desired fulfillment types and corresponding place IDs // to update in // [SetInventoryRequest.inventory.fulfillment_info][google.cloud.retail.v2beta.Product.fulfillment_info] // // The caller can clear all place IDs from a subset of fulfillment types in // the following ways: // // * Adds "fulfillment_info" in // [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask] // * Specifies only the desired fulfillment types to clear in // [SetInventoryRequest.inventory.fulfillment_info][google.cloud.retail.v2beta.Product.fulfillment_info] // * Checks that only the desired fulfillment info types have empty // [SetInventoryRequest.inventory.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids] // // The last update time is recorded for the following inventory fields: // * [Product.price_info][google.cloud.retail.v2beta.Product.price_info] // * [Product.availability][google.cloud.retail.v2beta.Product.availability] // * [Product.available_quantity][google.cloud.retail.v2beta.Product.available_quantity] // * [Product.fulfillment_info][google.cloud.retail.v2beta.Product.fulfillment_info] // // If a full overwrite of inventory information while ignoring timestamps is // needed, // [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] // should be invoked instead. Inventory *Product `protobuf:"bytes,1,opt,name=inventory,proto3" json:"inventory,omitempty"` // Indicates which inventory fields in the provided // [Product][google.cloud.retail.v2beta.Product] to update. // // At least one field must be provided. // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned and the entire update will be ignored. SetMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=set_mask,json=setMask,proto3" json:"set_mask,omitempty"` // The time when the request is issued, used to prevent // out-of-order updates on inventory fields with the last update time // recorded. If not provided, the internal system time will be used. SetTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=set_time,json=setTime,proto3" json:"set_time,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2beta.Product] with // name [Product.name][google.cloud.retail.v2beta.Product.name] is not found, // the inventory update will still be processed and retained for at most 1 day // until the [Product][google.cloud.retail.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,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory] method.
func (*SetInventoryRequest) Descriptor
deprecated
func (*SetInventoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetInventoryRequest.ProtoReflect.Descriptor instead.
func (*SetInventoryRequest) GetAllowMissing ¶
func (x *SetInventoryRequest) GetAllowMissing() bool
func (*SetInventoryRequest) GetInventory ¶
func (x *SetInventoryRequest) GetInventory() *Product
func (*SetInventoryRequest) GetSetMask ¶
func (x *SetInventoryRequest) GetSetMask() *fieldmaskpb.FieldMask
func (*SetInventoryRequest) GetSetTime ¶
func (x *SetInventoryRequest) GetSetTime() *timestamppb.Timestamp
func (*SetInventoryRequest) ProtoMessage ¶
func (*SetInventoryRequest) ProtoMessage()
func (*SetInventoryRequest) ProtoReflect ¶
func (x *SetInventoryRequest) ProtoReflect() protoreflect.Message
func (*SetInventoryRequest) Reset ¶
func (x *SetInventoryRequest) Reset()
func (*SetInventoryRequest) String ¶
func (x *SetInventoryRequest) String() string
type SetInventoryResponse ¶
type SetInventoryResponse struct {
// contains filtered or unexported fields
}
Response of the SetInventoryRequest. Currently empty because there is no meaningful response populated from the [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory] method.
func (*SetInventoryResponse) Descriptor
deprecated
func (*SetInventoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetInventoryResponse.ProtoReflect.Descriptor instead.
func (*SetInventoryResponse) ProtoMessage ¶
func (*SetInventoryResponse) ProtoMessage()
func (*SetInventoryResponse) ProtoReflect ¶
func (x *SetInventoryResponse) ProtoReflect() protoreflect.Message
func (*SetInventoryResponse) Reset ¶
func (x *SetInventoryResponse) Reset()
func (*SetInventoryResponse) String ¶
func (x *SetInventoryResponse) String() string
type SolutionType ¶
type SolutionType int32
The type of solution.
const ( // Default value. SolutionType_SOLUTION_TYPE_UNSPECIFIED SolutionType = 0 // Used for Recommendations AI. SolutionType_SOLUTION_TYPE_RECOMMENDATION SolutionType = 1 // Used for Retail Search. SolutionType_SOLUTION_TYPE_SEARCH SolutionType = 2 )
func (SolutionType) Descriptor ¶
func (SolutionType) Descriptor() protoreflect.EnumDescriptor
func (SolutionType) Enum ¶
func (x SolutionType) Enum() *SolutionType
func (SolutionType) EnumDescriptor
deprecated
func (SolutionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SolutionType.Descriptor instead.
func (SolutionType) Number ¶
func (x SolutionType) Number() protoreflect.EnumNumber
func (SolutionType) String ¶
func (x SolutionType) String() string
func (SolutionType) Type ¶
func (SolutionType) Type() protoreflect.EnumType
type Tile ¶ added in v1.19.0
type Tile struct { // The attribute key and value for the tile. // // Types that are assignable to ProductAttribute: // // *Tile_ProductAttributeValue // *Tile_ProductAttributeInterval ProductAttribute isTile_ProductAttribute `protobuf_oneof:"product_attribute"` // The representative product id for this tile. RepresentativeProductId string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.
func (*Tile) Descriptor
deprecated
added in
v1.19.0
func (*Tile) GetProductAttribute ¶ added in v1.19.0
func (m *Tile) GetProductAttribute() isTile_ProductAttribute
func (*Tile) GetProductAttributeInterval ¶ added in v1.19.0
func (x *Tile) GetProductAttributeInterval() *ProductAttributeInterval
func (*Tile) GetProductAttributeValue ¶ added in v1.19.0
func (x *Tile) GetProductAttributeValue() *ProductAttributeValue
func (*Tile) GetRepresentativeProductId ¶ added in v1.19.0
func (*Tile) ProtoMessage ¶ added in v1.19.0
func (*Tile) ProtoMessage()
func (*Tile) ProtoReflect ¶ added in v1.19.0
func (x *Tile) ProtoReflect() protoreflect.Message
type Tile_ProductAttributeInterval ¶ added in v1.19.0
type Tile_ProductAttributeInterval struct { // The product attribute key-numeric interval. ProductAttributeInterval *ProductAttributeInterval `protobuf:"bytes,2,opt,name=product_attribute_interval,json=productAttributeInterval,proto3,oneof"` }
type Tile_ProductAttributeValue ¶ added in v1.19.0
type Tile_ProductAttributeValue struct { // The product attribute key-value. ProductAttributeValue *ProductAttributeValue `protobuf:"bytes,1,opt,name=product_attribute_value,json=productAttributeValue,proto3,oneof"` }
type TuneModelMetadata ¶
type TuneModelMetadata struct { // The resource name of the model that this tune applies to. // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
Metadata associated with a tune operation.
func (*TuneModelMetadata) Descriptor
deprecated
func (*TuneModelMetadata) Descriptor() ([]byte, []int)
Deprecated: Use TuneModelMetadata.ProtoReflect.Descriptor instead.
func (*TuneModelMetadata) GetModel ¶
func (x *TuneModelMetadata) GetModel() string
func (*TuneModelMetadata) ProtoMessage ¶
func (*TuneModelMetadata) ProtoMessage()
func (*TuneModelMetadata) ProtoReflect ¶
func (x *TuneModelMetadata) ProtoReflect() protoreflect.Message
func (*TuneModelMetadata) Reset ¶
func (x *TuneModelMetadata) Reset()
func (*TuneModelMetadata) String ¶
func (x *TuneModelMetadata) String() string
type TuneModelRequest ¶
type TuneModelRequest struct { // Required. The resource name of the model to tune. // Format: // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request to manually start a tuning process now (instead of waiting for the periodically scheduled tuning to happen).
func (*TuneModelRequest) Descriptor
deprecated
func (*TuneModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use TuneModelRequest.ProtoReflect.Descriptor instead.
func (*TuneModelRequest) GetName ¶
func (x *TuneModelRequest) GetName() string
func (*TuneModelRequest) ProtoMessage ¶
func (*TuneModelRequest) ProtoMessage()
func (*TuneModelRequest) ProtoReflect ¶
func (x *TuneModelRequest) ProtoReflect() protoreflect.Message
func (*TuneModelRequest) Reset ¶
func (x *TuneModelRequest) Reset()
func (*TuneModelRequest) String ¶
func (x *TuneModelRequest) String() string
type TuneModelResponse ¶
type TuneModelResponse struct {
// contains filtered or unexported fields
}
Response associated with a tune operation.
func (*TuneModelResponse) Descriptor
deprecated
func (*TuneModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use TuneModelResponse.ProtoReflect.Descriptor instead.
func (*TuneModelResponse) ProtoMessage ¶
func (*TuneModelResponse) ProtoMessage()
func (*TuneModelResponse) ProtoReflect ¶
func (x *TuneModelResponse) ProtoReflect() protoreflect.Message
func (*TuneModelResponse) Reset ¶
func (x *TuneModelResponse) Reset()
func (*TuneModelResponse) String ¶
func (x *TuneModelResponse) String() string
type UnimplementedAnalyticsServiceServer ¶ added in v1.15.0
type UnimplementedAnalyticsServiceServer struct { }
UnimplementedAnalyticsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAnalyticsServiceServer) ExportAnalyticsMetrics ¶ added in v1.15.0
func (*UnimplementedAnalyticsServiceServer) ExportAnalyticsMetrics(context.Context, *ExportAnalyticsMetricsRequest) (*longrunningpb.Operation, error)
type UnimplementedCatalogServiceServer ¶
type UnimplementedCatalogServiceServer struct { }
UnimplementedCatalogServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCatalogServiceServer) AddCatalogAttribute ¶
func (*UnimplementedCatalogServiceServer) AddCatalogAttribute(context.Context, *AddCatalogAttributeRequest) (*AttributesConfig, error)
func (*UnimplementedCatalogServiceServer) BatchRemoveCatalogAttributes ¶
func (*UnimplementedCatalogServiceServer) BatchRemoveCatalogAttributes(context.Context, *BatchRemoveCatalogAttributesRequest) (*BatchRemoveCatalogAttributesResponse, error)
func (*UnimplementedCatalogServiceServer) GetAttributesConfig ¶
func (*UnimplementedCatalogServiceServer) GetAttributesConfig(context.Context, *GetAttributesConfigRequest) (*AttributesConfig, error)
func (*UnimplementedCatalogServiceServer) GetCompletionConfig ¶
func (*UnimplementedCatalogServiceServer) GetCompletionConfig(context.Context, *GetCompletionConfigRequest) (*CompletionConfig, error)
func (*UnimplementedCatalogServiceServer) GetDefaultBranch ¶
func (*UnimplementedCatalogServiceServer) GetDefaultBranch(context.Context, *GetDefaultBranchRequest) (*GetDefaultBranchResponse, error)
func (*UnimplementedCatalogServiceServer) ListCatalogs ¶
func (*UnimplementedCatalogServiceServer) ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
func (*UnimplementedCatalogServiceServer) RemoveCatalogAttribute ¶
func (*UnimplementedCatalogServiceServer) RemoveCatalogAttribute(context.Context, *RemoveCatalogAttributeRequest) (*AttributesConfig, error)
func (*UnimplementedCatalogServiceServer) ReplaceCatalogAttribute ¶
func (*UnimplementedCatalogServiceServer) ReplaceCatalogAttribute(context.Context, *ReplaceCatalogAttributeRequest) (*AttributesConfig, error)
func (*UnimplementedCatalogServiceServer) SetDefaultBranch ¶
func (*UnimplementedCatalogServiceServer) SetDefaultBranch(context.Context, *SetDefaultBranchRequest) (*emptypb.Empty, error)
func (*UnimplementedCatalogServiceServer) UpdateAttributesConfig ¶
func (*UnimplementedCatalogServiceServer) UpdateAttributesConfig(context.Context, *UpdateAttributesConfigRequest) (*AttributesConfig, error)
func (*UnimplementedCatalogServiceServer) UpdateCatalog ¶
func (*UnimplementedCatalogServiceServer) UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error)
func (*UnimplementedCatalogServiceServer) UpdateCompletionConfig ¶
func (*UnimplementedCatalogServiceServer) UpdateCompletionConfig(context.Context, *UpdateCompletionConfigRequest) (*CompletionConfig, error)
type UnimplementedCompletionServiceServer ¶
type UnimplementedCompletionServiceServer struct { }
UnimplementedCompletionServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCompletionServiceServer) CompleteQuery ¶
func (*UnimplementedCompletionServiceServer) CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error)
func (*UnimplementedCompletionServiceServer) ImportCompletionData ¶
func (*UnimplementedCompletionServiceServer) ImportCompletionData(context.Context, *ImportCompletionDataRequest) (*longrunningpb.Operation, error)
type UnimplementedControlServiceServer ¶
type UnimplementedControlServiceServer struct { }
UnimplementedControlServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedControlServiceServer) CreateControl ¶
func (*UnimplementedControlServiceServer) CreateControl(context.Context, *CreateControlRequest) (*Control, error)
func (*UnimplementedControlServiceServer) DeleteControl ¶
func (*UnimplementedControlServiceServer) DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error)
func (*UnimplementedControlServiceServer) GetControl ¶
func (*UnimplementedControlServiceServer) GetControl(context.Context, *GetControlRequest) (*Control, error)
func (*UnimplementedControlServiceServer) ListControls ¶
func (*UnimplementedControlServiceServer) ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error)
func (*UnimplementedControlServiceServer) UpdateControl ¶
func (*UnimplementedControlServiceServer) UpdateControl(context.Context, *UpdateControlRequest) (*Control, error)
type UnimplementedGenerativeQuestionServiceServer ¶ added in v1.19.0
type UnimplementedGenerativeQuestionServiceServer struct { }
UnimplementedGenerativeQuestionServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGenerativeQuestionServiceServer) BatchUpdateGenerativeQuestionConfigs ¶ added in v1.19.0
func (*UnimplementedGenerativeQuestionServiceServer) BatchUpdateGenerativeQuestionConfigs(context.Context, *BatchUpdateGenerativeQuestionConfigsRequest) (*BatchUpdateGenerativeQuestionConfigsResponse, error)
func (*UnimplementedGenerativeQuestionServiceServer) GetGenerativeQuestionsFeatureConfig ¶ added in v1.19.0
func (*UnimplementedGenerativeQuestionServiceServer) GetGenerativeQuestionsFeatureConfig(context.Context, *GetGenerativeQuestionsFeatureConfigRequest) (*GenerativeQuestionsFeatureConfig, error)
func (*UnimplementedGenerativeQuestionServiceServer) ListGenerativeQuestionConfigs ¶ added in v1.19.0
func (*UnimplementedGenerativeQuestionServiceServer) ListGenerativeQuestionConfigs(context.Context, *ListGenerativeQuestionConfigsRequest) (*ListGenerativeQuestionConfigsResponse, error)
func (*UnimplementedGenerativeQuestionServiceServer) UpdateGenerativeQuestionConfig ¶ added in v1.19.0
func (*UnimplementedGenerativeQuestionServiceServer) UpdateGenerativeQuestionConfig(context.Context, *UpdateGenerativeQuestionConfigRequest) (*GenerativeQuestionConfig, error)
func (*UnimplementedGenerativeQuestionServiceServer) UpdateGenerativeQuestionsFeatureConfig ¶ added in v1.19.0
func (*UnimplementedGenerativeQuestionServiceServer) UpdateGenerativeQuestionsFeatureConfig(context.Context, *UpdateGenerativeQuestionsFeatureConfigRequest) (*GenerativeQuestionsFeatureConfig, error)
type UnimplementedModelServiceServer ¶
type UnimplementedModelServiceServer struct { }
UnimplementedModelServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedModelServiceServer) CreateModel ¶
func (*UnimplementedModelServiceServer) CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error)
func (*UnimplementedModelServiceServer) DeleteModel ¶
func (*UnimplementedModelServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*emptypb.Empty, error)
func (*UnimplementedModelServiceServer) GetModel ¶ added in v1.13.0
func (*UnimplementedModelServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
func (*UnimplementedModelServiceServer) ListModels ¶
func (*UnimplementedModelServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
func (*UnimplementedModelServiceServer) PauseModel ¶
func (*UnimplementedModelServiceServer) PauseModel(context.Context, *PauseModelRequest) (*Model, error)
func (*UnimplementedModelServiceServer) ResumeModel ¶
func (*UnimplementedModelServiceServer) ResumeModel(context.Context, *ResumeModelRequest) (*Model, error)
func (*UnimplementedModelServiceServer) TuneModel ¶
func (*UnimplementedModelServiceServer) TuneModel(context.Context, *TuneModelRequest) (*longrunningpb.Operation, error)
func (*UnimplementedModelServiceServer) UpdateModel ¶
func (*UnimplementedModelServiceServer) UpdateModel(context.Context, *UpdateModelRequest) (*Model, error)
type UnimplementedPredictionServiceServer ¶
type UnimplementedPredictionServiceServer struct { }
UnimplementedPredictionServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPredictionServiceServer) Predict ¶
func (*UnimplementedPredictionServiceServer) Predict(context.Context, *PredictRequest) (*PredictResponse, error)
type UnimplementedProductServiceServer ¶
type UnimplementedProductServiceServer struct { }
UnimplementedProductServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProductServiceServer) AddFulfillmentPlaces ¶
func (*UnimplementedProductServiceServer) AddFulfillmentPlaces(context.Context, *AddFulfillmentPlacesRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) AddLocalInventories ¶
func (*UnimplementedProductServiceServer) AddLocalInventories(context.Context, *AddLocalInventoriesRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) CreateProduct ¶
func (*UnimplementedProductServiceServer) CreateProduct(context.Context, *CreateProductRequest) (*Product, error)
func (*UnimplementedProductServiceServer) DeleteProduct ¶
func (*UnimplementedProductServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*emptypb.Empty, error)
func (*UnimplementedProductServiceServer) ExportProducts ¶ added in v1.19.0
func (*UnimplementedProductServiceServer) ExportProducts(context.Context, *ExportProductsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) GetProduct ¶
func (*UnimplementedProductServiceServer) GetProduct(context.Context, *GetProductRequest) (*Product, error)
func (*UnimplementedProductServiceServer) ImportProducts ¶
func (*UnimplementedProductServiceServer) ImportProducts(context.Context, *ImportProductsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) ListProducts ¶
func (*UnimplementedProductServiceServer) ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error)
func (*UnimplementedProductServiceServer) PurgeProducts ¶ added in v1.17.0
func (*UnimplementedProductServiceServer) PurgeProducts(context.Context, *PurgeProductsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) RemoveFulfillmentPlaces ¶
func (*UnimplementedProductServiceServer) RemoveFulfillmentPlaces(context.Context, *RemoveFulfillmentPlacesRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) RemoveLocalInventories ¶
func (*UnimplementedProductServiceServer) RemoveLocalInventories(context.Context, *RemoveLocalInventoriesRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) SetInventory ¶
func (*UnimplementedProductServiceServer) SetInventory(context.Context, *SetInventoryRequest) (*longrunningpb.Operation, error)
func (*UnimplementedProductServiceServer) UpdateProduct ¶
func (*UnimplementedProductServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error)
type UnimplementedProjectServiceServer ¶ added in v1.19.0
type UnimplementedProjectServiceServer struct { }
UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProjectServiceServer) GetAlertConfig ¶ added in v1.19.0
func (*UnimplementedProjectServiceServer) GetAlertConfig(context.Context, *GetAlertConfigRequest) (*AlertConfig, error)
func (*UnimplementedProjectServiceServer) UpdateAlertConfig ¶ added in v1.19.0
func (*UnimplementedProjectServiceServer) UpdateAlertConfig(context.Context, *UpdateAlertConfigRequest) (*AlertConfig, error)
type UnimplementedSearchServiceServer ¶
type UnimplementedSearchServiceServer struct { }
UnimplementedSearchServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSearchServiceServer) Search ¶
func (*UnimplementedSearchServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
type UnimplementedServingConfigServiceServer ¶
type UnimplementedServingConfigServiceServer struct { }
UnimplementedServingConfigServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServingConfigServiceServer) AddControl ¶
func (*UnimplementedServingConfigServiceServer) AddControl(context.Context, *AddControlRequest) (*ServingConfig, error)
func (*UnimplementedServingConfigServiceServer) CreateServingConfig ¶
func (*UnimplementedServingConfigServiceServer) CreateServingConfig(context.Context, *CreateServingConfigRequest) (*ServingConfig, error)
func (*UnimplementedServingConfigServiceServer) DeleteServingConfig ¶
func (*UnimplementedServingConfigServiceServer) DeleteServingConfig(context.Context, *DeleteServingConfigRequest) (*emptypb.Empty, error)
func (*UnimplementedServingConfigServiceServer) GetServingConfig ¶
func (*UnimplementedServingConfigServiceServer) GetServingConfig(context.Context, *GetServingConfigRequest) (*ServingConfig, error)
func (*UnimplementedServingConfigServiceServer) ListServingConfigs ¶
func (*UnimplementedServingConfigServiceServer) ListServingConfigs(context.Context, *ListServingConfigsRequest) (*ListServingConfigsResponse, error)
func (*UnimplementedServingConfigServiceServer) RemoveControl ¶
func (*UnimplementedServingConfigServiceServer) RemoveControl(context.Context, *RemoveControlRequest) (*ServingConfig, error)
func (*UnimplementedServingConfigServiceServer) UpdateServingConfig ¶
func (*UnimplementedServingConfigServiceServer) UpdateServingConfig(context.Context, *UpdateServingConfigRequest) (*ServingConfig, error)
type UnimplementedUserEventServiceServer ¶
type UnimplementedUserEventServiceServer struct { }
UnimplementedUserEventServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserEventServiceServer) CollectUserEvent ¶
func (*UnimplementedUserEventServiceServer) CollectUserEvent(context.Context, *CollectUserEventRequest) (*httpbody.HttpBody, error)
func (*UnimplementedUserEventServiceServer) ExportUserEvents ¶ added in v1.19.0
func (*UnimplementedUserEventServiceServer) ExportUserEvents(context.Context, *ExportUserEventsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedUserEventServiceServer) ImportUserEvents ¶
func (*UnimplementedUserEventServiceServer) ImportUserEvents(context.Context, *ImportUserEventsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedUserEventServiceServer) PurgeUserEvents ¶
func (*UnimplementedUserEventServiceServer) PurgeUserEvents(context.Context, *PurgeUserEventsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedUserEventServiceServer) RejoinUserEvents ¶
func (*UnimplementedUserEventServiceServer) RejoinUserEvents(context.Context, *RejoinUserEventsRequest) (*longrunningpb.Operation, error)
func (*UnimplementedUserEventServiceServer) WriteUserEvent ¶
func (*UnimplementedUserEventServiceServer) WriteUserEvent(context.Context, *WriteUserEventRequest) (*UserEvent, error)
type UpdateAlertConfigRequest ¶ added in v1.19.0
type UpdateAlertConfigRequest struct { // Required. The [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to // update. // // If the caller does not have permission to update the // [AlertConfig][google.cloud.retail.v2beta.AlertConfig], then a // PERMISSION_DENIED error is returned. // // If the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to update does // not exist, a NOT_FOUND error is returned. AlertConfig *AlertConfig `protobuf:"bytes,1,opt,name=alert_config,json=alertConfig,proto3" json:"alert_config,omitempty"` // Indicates which fields in the provided // [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to update. If not // set, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for [ProjectService.UpdateAlertConfig][google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig] method.
func (*UpdateAlertConfigRequest) Descriptor
deprecated
added in
v1.19.0
func (*UpdateAlertConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAlertConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateAlertConfigRequest) GetAlertConfig ¶ added in v1.19.0
func (x *UpdateAlertConfigRequest) GetAlertConfig() *AlertConfig
func (*UpdateAlertConfigRequest) GetUpdateMask ¶ added in v1.19.0
func (x *UpdateAlertConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateAlertConfigRequest) ProtoMessage ¶ added in v1.19.0
func (*UpdateAlertConfigRequest) ProtoMessage()
func (*UpdateAlertConfigRequest) ProtoReflect ¶ added in v1.19.0
func (x *UpdateAlertConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateAlertConfigRequest) Reset ¶ added in v1.19.0
func (x *UpdateAlertConfigRequest) Reset()
func (*UpdateAlertConfigRequest) String ¶ added in v1.19.0
func (x *UpdateAlertConfigRequest) String() string
type UpdateAttributesConfigRequest ¶
type UpdateAttributesConfigRequest struct { // Required. The // [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] to update. AttributesConfig *AttributesConfig `protobuf:"bytes,1,opt,name=attributes_config,json=attributesConfig,proto3" json:"attributes_config,omitempty"` // Indicates which fields in the provided // [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] to update. // The following is the only supported field: // // * [AttributesConfig.catalog_attributes][google.cloud.retail.v2beta.AttributesConfig.catalog_attributes] // // If not set, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.UpdateAttributesConfig][google.cloud.retail.v2beta.CatalogService.UpdateAttributesConfig] method.
func (*UpdateAttributesConfigRequest) Descriptor
deprecated
func (*UpdateAttributesConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAttributesConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateAttributesConfigRequest) GetAttributesConfig ¶
func (x *UpdateAttributesConfigRequest) GetAttributesConfig() *AttributesConfig
func (*UpdateAttributesConfigRequest) GetUpdateMask ¶
func (x *UpdateAttributesConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateAttributesConfigRequest) ProtoMessage ¶
func (*UpdateAttributesConfigRequest) ProtoMessage()
func (*UpdateAttributesConfigRequest) ProtoReflect ¶
func (x *UpdateAttributesConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateAttributesConfigRequest) Reset ¶
func (x *UpdateAttributesConfigRequest) Reset()
func (*UpdateAttributesConfigRequest) String ¶
func (x *UpdateAttributesConfigRequest) String() string
type UpdateCatalogRequest ¶
type UpdateCatalogRequest struct { // Required. The [Catalog][google.cloud.retail.v2beta.Catalog] to update. // // If the caller does not have permission to update the // [Catalog][google.cloud.retail.v2beta.Catalog], regardless of whether or not // it exists, a PERMISSION_DENIED error is returned. // // If the [Catalog][google.cloud.retail.v2beta.Catalog] to update does not // exist, a NOT_FOUND error is returned. Catalog *Catalog `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` // Indicates which fields in the provided // [Catalog][google.cloud.retail.v2beta.Catalog] to update. // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.UpdateCatalog][google.cloud.retail.v2beta.CatalogService.UpdateCatalog] method.
func (*UpdateCatalogRequest) Descriptor
deprecated
func (*UpdateCatalogRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCatalogRequest.ProtoReflect.Descriptor instead.
func (*UpdateCatalogRequest) GetCatalog ¶
func (x *UpdateCatalogRequest) GetCatalog() *Catalog
func (*UpdateCatalogRequest) GetUpdateMask ¶
func (x *UpdateCatalogRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateCatalogRequest) ProtoMessage ¶
func (*UpdateCatalogRequest) ProtoMessage()
func (*UpdateCatalogRequest) ProtoReflect ¶
func (x *UpdateCatalogRequest) ProtoReflect() protoreflect.Message
func (*UpdateCatalogRequest) Reset ¶
func (x *UpdateCatalogRequest) Reset()
func (*UpdateCatalogRequest) String ¶
func (x *UpdateCatalogRequest) String() string
type UpdateCompletionConfigRequest ¶
type UpdateCompletionConfigRequest struct { // Required. The // [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig] to update. // // If the caller does not have permission to update the // [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig], then a // PERMISSION_DENIED error is returned. // // If the [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig] to // update does not exist, a NOT_FOUND error is returned. CompletionConfig *CompletionConfig `protobuf:"bytes,1,opt,name=completion_config,json=completionConfig,proto3" json:"completion_config,omitempty"` // Indicates which fields in the provided // [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig] to update. // The following are the only supported fields: // // * [CompletionConfig.matching_order][google.cloud.retail.v2beta.CompletionConfig.matching_order] // * [CompletionConfig.max_suggestions][google.cloud.retail.v2beta.CompletionConfig.max_suggestions] // * [CompletionConfig.min_prefix_length][google.cloud.retail.v2beta.CompletionConfig.min_prefix_length] // * [CompletionConfig.auto_learning][google.cloud.retail.v2beta.CompletionConfig.auto_learning] // // If not set, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for [CatalogService.UpdateCompletionConfig][google.cloud.retail.v2beta.CatalogService.UpdateCompletionConfig] method.
func (*UpdateCompletionConfigRequest) Descriptor
deprecated
func (*UpdateCompletionConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCompletionConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateCompletionConfigRequest) GetCompletionConfig ¶
func (x *UpdateCompletionConfigRequest) GetCompletionConfig() *CompletionConfig
func (*UpdateCompletionConfigRequest) GetUpdateMask ¶
func (x *UpdateCompletionConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateCompletionConfigRequest) ProtoMessage ¶
func (*UpdateCompletionConfigRequest) ProtoMessage()
func (*UpdateCompletionConfigRequest) ProtoReflect ¶
func (x *UpdateCompletionConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateCompletionConfigRequest) Reset ¶
func (x *UpdateCompletionConfigRequest) Reset()
func (*UpdateCompletionConfigRequest) String ¶
func (x *UpdateCompletionConfigRequest) String() string
type UpdateControlRequest ¶
type UpdateControlRequest struct { // Required. The Control to update. Control *Control `protobuf:"bytes,1,opt,name=control,proto3" json:"control,omitempty"` // Indicates which fields in the provided // [Control][google.cloud.retail.v2beta.Control] to update. The following are // NOT supported: // // * [Control.name][google.cloud.retail.v2beta.Control.name] // // If not set or empty, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for UpdateControl method.
func (*UpdateControlRequest) Descriptor
deprecated
func (*UpdateControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateControlRequest.ProtoReflect.Descriptor instead.
func (*UpdateControlRequest) GetControl ¶
func (x *UpdateControlRequest) GetControl() *Control
func (*UpdateControlRequest) GetUpdateMask ¶
func (x *UpdateControlRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateControlRequest) ProtoMessage ¶
func (*UpdateControlRequest) ProtoMessage()
func (*UpdateControlRequest) ProtoReflect ¶
func (x *UpdateControlRequest) ProtoReflect() protoreflect.Message
func (*UpdateControlRequest) Reset ¶
func (x *UpdateControlRequest) Reset()
func (*UpdateControlRequest) String ¶
func (x *UpdateControlRequest) String() string
type UpdateGenerativeQuestionConfigRequest ¶ added in v1.19.0
type UpdateGenerativeQuestionConfigRequest struct { // Required. The question to update. GenerativeQuestionConfig *GenerativeQuestionConfig `` /* 135-byte string literal not displayed */ // Optional. Indicates which fields in the provided // [GenerativeQuestionConfig][google.cloud.retail.v2beta.GenerativeQuestionConfig] // to update. The following are NOT supported: // // * [GenerativeQuestionConfig.frequency][google.cloud.retail.v2beta.GenerativeQuestionConfig.frequency] // // If not set or empty, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for UpdateGenerativeQuestionConfig method.
func (*UpdateGenerativeQuestionConfigRequest) Descriptor
deprecated
added in
v1.19.0
func (*UpdateGenerativeQuestionConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGenerativeQuestionConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateGenerativeQuestionConfigRequest) GetGenerativeQuestionConfig ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionConfigRequest) GetGenerativeQuestionConfig() *GenerativeQuestionConfig
func (*UpdateGenerativeQuestionConfigRequest) GetUpdateMask ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateGenerativeQuestionConfigRequest) ProtoMessage ¶ added in v1.19.0
func (*UpdateGenerativeQuestionConfigRequest) ProtoMessage()
func (*UpdateGenerativeQuestionConfigRequest) ProtoReflect ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateGenerativeQuestionConfigRequest) Reset ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionConfigRequest) Reset()
func (*UpdateGenerativeQuestionConfigRequest) String ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionConfigRequest) String() string
type UpdateGenerativeQuestionsFeatureConfigRequest ¶ added in v1.19.0
type UpdateGenerativeQuestionsFeatureConfigRequest struct { // Required. The configuration managing the feature state. GenerativeQuestionsFeatureConfig *GenerativeQuestionsFeatureConfig `` /* 161-byte string literal not displayed */ // Optional. Indicates which fields in the provided // [GenerativeQuestionsFeatureConfig][google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig] // to update. If not set or empty, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for UpdateGenerativeQuestionsFeatureConfig method.
func (*UpdateGenerativeQuestionsFeatureConfigRequest) Descriptor
deprecated
added in
v1.19.0
func (*UpdateGenerativeQuestionsFeatureConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGenerativeQuestionsFeatureConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateGenerativeQuestionsFeatureConfigRequest) GetGenerativeQuestionsFeatureConfig ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionsFeatureConfigRequest) GetGenerativeQuestionsFeatureConfig() *GenerativeQuestionsFeatureConfig
func (*UpdateGenerativeQuestionsFeatureConfigRequest) GetUpdateMask ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionsFeatureConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateGenerativeQuestionsFeatureConfigRequest) ProtoMessage ¶ added in v1.19.0
func (*UpdateGenerativeQuestionsFeatureConfigRequest) ProtoMessage()
func (*UpdateGenerativeQuestionsFeatureConfigRequest) ProtoReflect ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionsFeatureConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateGenerativeQuestionsFeatureConfigRequest) Reset ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionsFeatureConfigRequest) Reset()
func (*UpdateGenerativeQuestionsFeatureConfigRequest) String ¶ added in v1.19.0
func (x *UpdateGenerativeQuestionsFeatureConfigRequest) String() string
type UpdateModelRequest ¶
type UpdateModelRequest struct { // Required. The body of the updated // [Model][google.cloud.retail.v2beta.Model]. Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // Optional. Indicates which fields in the provided 'model' to // update. If not set, by default updates all fields. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for updating an existing model.
func (*UpdateModelRequest) Descriptor
deprecated
func (*UpdateModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead.
func (*UpdateModelRequest) GetModel ¶
func (x *UpdateModelRequest) GetModel() *Model
func (*UpdateModelRequest) GetUpdateMask ¶
func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateModelRequest) ProtoMessage ¶
func (*UpdateModelRequest) ProtoMessage()
func (*UpdateModelRequest) ProtoReflect ¶
func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message
func (*UpdateModelRequest) Reset ¶
func (x *UpdateModelRequest) Reset()
func (*UpdateModelRequest) String ¶
func (x *UpdateModelRequest) String() string
type UpdateProductRequest ¶
type UpdateProductRequest struct { // Required. The product to update/create. // // If the caller does not have permission to update the // [Product][google.cloud.retail.v2beta.Product], regardless of whether or not // it exists, a PERMISSION_DENIED error is returned. // // If the [Product][google.cloud.retail.v2beta.Product] to update does not // exist and // [allow_missing][google.cloud.retail.v2beta.UpdateProductRequest.allow_missing] // is not set, a NOT_FOUND error is returned. Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` // Indicates which fields in the provided // [Product][google.cloud.retail.v2beta.Product] to update. The immutable and // output only fields are NOT supported. If not set, all supported fields (the // fields that are neither immutable nor output only) are updated. // // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error // is returned. // // The attribute key can be updated by setting the mask path as // "attributes.${key_name}". If a key name is present in the mask but not in // the patching product from the request, this key will be deleted after the // update. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // If set to true, and the [Product][google.cloud.retail.v2beta.Product] is // not found, a new [Product][google.cloud.retail.v2beta.Product] will be // created. In this situation, `update_mask` is ignored. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` // contains filtered or unexported fields }
Request message for [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] method.
func (*UpdateProductRequest) Descriptor
deprecated
func (*UpdateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.
func (*UpdateProductRequest) GetAllowMissing ¶
func (x *UpdateProductRequest) GetAllowMissing() bool
func (*UpdateProductRequest) GetProduct ¶
func (x *UpdateProductRequest) GetProduct() *Product
func (*UpdateProductRequest) GetUpdateMask ¶
func (x *UpdateProductRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateProductRequest) ProtoMessage ¶
func (*UpdateProductRequest) ProtoMessage()
func (*UpdateProductRequest) ProtoReflect ¶
func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
func (*UpdateProductRequest) Reset ¶
func (x *UpdateProductRequest) Reset()
func (*UpdateProductRequest) String ¶
func (x *UpdateProductRequest) String() string
type UpdateServingConfigRequest ¶
type UpdateServingConfigRequest struct { // Required. The ServingConfig to update. ServingConfig *ServingConfig `protobuf:"bytes,1,opt,name=serving_config,json=servingConfig,proto3" json:"serving_config,omitempty"` // Indicates which fields in the provided // [ServingConfig][google.cloud.retail.v2beta.ServingConfig] to update. The // following are NOT supported: // // * [ServingConfig.name][google.cloud.retail.v2beta.ServingConfig.name] // // If not set, all supported fields are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request for UpdateServingConfig method.
func (*UpdateServingConfigRequest) Descriptor
deprecated
func (*UpdateServingConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServingConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateServingConfigRequest) GetServingConfig ¶
func (x *UpdateServingConfigRequest) GetServingConfig() *ServingConfig
func (*UpdateServingConfigRequest) GetUpdateMask ¶
func (x *UpdateServingConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateServingConfigRequest) ProtoMessage ¶
func (*UpdateServingConfigRequest) ProtoMessage()
func (*UpdateServingConfigRequest) ProtoReflect ¶
func (x *UpdateServingConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateServingConfigRequest) Reset ¶
func (x *UpdateServingConfigRequest) Reset()
func (*UpdateServingConfigRequest) String ¶
func (x *UpdateServingConfigRequest) String() string
type UserEvent ¶
type UserEvent struct { // Required. User event type. Allowed values are: // // - `add-to-cart`: Products being added to cart. // - `remove-from-cart`: Products being removed from cart. // - `category-page-view`: Special pages such as sale or promotion pages // viewed. // - `detail-page-view`: Products detail page viewed. // - `home-page-view`: Homepage viewed. // - `promotion-offered`: Promotion is offered to a user. // - `promotion-not-offered`: Promotion is not offered to a user. // - `purchase-complete`: User finishing a purchase. // - `search`: Product search. // - `shopping-cart-page-view`: User viewing a shopping cart. EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` // Required. A unique identifier for tracking visitors. // // For example, this could be implemented with an HTTP cookie, which should be // able to uniquely identify a visitor on a single device. This unique // identifier should not change if the visitor log in/out of the website. // // Don't set the field to the same fixed ID for different users. This mixes // the event history of those users together, which results in degraded model // quality. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // The field should not contain PII or user-data. We recommend to use Google // Analytics [Client // ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) // for this field. VisitorId string `protobuf:"bytes,2,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"` // A unique identifier for tracking a visitor session with a length limit of // 128 bytes. A session is an aggregation of an end user behavior in a time // span. // // A general guideline to populate the sesion_id: // 1. If user has no activity for 30 min, a new session_id should be assigned. // 2. The session_id should be unique across users, suggest use uuid or add // visitor_id as prefix. SessionId string `protobuf:"bytes,21,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Only required for // [UserEventService.ImportUserEvents][google.cloud.retail.v2beta.UserEventService.ImportUserEvents] // method. Timestamp of when the user event happened. EventTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // A list of identifiers for the independent experiment groups this user event // belongs to. This is used to distinguish between user events associated with // different experiment setups (e.g. using Retail API, using different // recommendation models). ExperimentIds []string `protobuf:"bytes,4,rep,name=experiment_ids,json=experimentIds,proto3" json:"experiment_ids,omitempty"` // Highly recommended for user events that are the result of // [PredictionService.Predict][google.cloud.retail.v2beta.PredictionService.Predict]. // This field enables accurate attribution of recommendation model // performance. // // The value must be a valid // [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] // for user events that are the result of // [PredictionService.Predict][google.cloud.retail.v2beta.PredictionService.Predict]. // The value must be a valid // [SearchResponse.attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] // for user events that are the result of // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // // This token enables us to accurately attribute page view or purchase back to // the event and the particular predict response containing this // clicked/purchased product. If user clicks on product K in the // recommendation results, pass // [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] // as a URL parameter to product K's page. When recording events on product // K's page, log the // [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] // to this field. AttributionToken string `protobuf:"bytes,5,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` // The main product details related to the event. // // This field is optional except for the following event types: // // * `add-to-cart` // * `detail-page-view` // * `purchase-complete` // // In a `search` event, this field represents the products returned to the end // user on the current page (the end user may have not finished browsing the // whole page yet). When a new page is returned to the end user, after // pagination/filtering/ordering even for the same query, a new `search` event // with different // [product_details][google.cloud.retail.v2beta.UserEvent.product_details] is // desired. The end user may have not finished browsing the whole page yet. ProductDetails []*ProductDetail `protobuf:"bytes,6,rep,name=product_details,json=productDetails,proto3" json:"product_details,omitempty"` // The main auto-completion details related to the event. // // This field should be set for `search` event when autocomplete function is // enabled and the user clicks a suggestion for search. CompletionDetail *CompletionDetail `protobuf:"bytes,22,opt,name=completion_detail,json=completionDetail,proto3" json:"completion_detail,omitempty"` // Extra user event features to include in the recommendation model. // // If you provide custom attributes for ingested user events, also include // them in the user events that you associate with prediction requests. Custom // attribute formatting must be consistent between imported events and events // provided with prediction requests. This lets the Retail API use // those custom attributes when training models and serving predictions, which // helps improve recommendation quality. // // This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT // error is returned: // // - The key must be a UTF-8 encoded string with a length limit of 5,000 // characters. // - For text attributes, at most 400 values are allowed. Empty values are not // allowed. Each value must be a UTF-8 encoded string with a length limit of // 256 characters. // - For number attributes, at most 400 values are allowed. // // For product recommendations, an example of extra user information is // traffic_channel, which is how a user arrives at the site. Users can arrive // at the site by coming to the site directly, coming through Google // search, or in other ways. Attributes map[string]*CustomAttribute `` /* 161-byte string literal not displayed */ // The ID or name of the associated shopping cart. This ID is used // to associate multiple items added or present in the cart before purchase. // // This can only be set for `add-to-cart`, `purchase-complete`, or // `shopping-cart-page-view` events. CartId string `protobuf:"bytes,8,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` // A transaction represents the entire purchase transaction. // // Required for `purchase-complete` events. Other event types should not set // this field. Otherwise, an INVALID_ARGUMENT error is returned. PurchaseTransaction *PurchaseTransaction `protobuf:"bytes,9,opt,name=purchase_transaction,json=purchaseTransaction,proto3" json:"purchase_transaction,omitempty"` // The user's search query. // // See [SearchRequest.query][google.cloud.retail.v2beta.SearchRequest.query] // for definition. // // The value must be a UTF-8 encoded string with a length limit of 5,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // At least one of // [search_query][google.cloud.retail.v2beta.UserEvent.search_query] or // [page_categories][google.cloud.retail.v2beta.UserEvent.page_categories] is // required for `search` events. Other event types should not set this field. // Otherwise, an INVALID_ARGUMENT error is returned. SearchQuery string `protobuf:"bytes,10,opt,name=search_query,json=searchQuery,proto3" json:"search_query,omitempty"` // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the products being filtered. // // See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] // for definition and syntax. // // The value must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. Filter string `protobuf:"bytes,16,opt,name=filter,proto3" json:"filter,omitempty"` // The order in which products are returned. // // See // [SearchRequest.order_by][google.cloud.retail.v2beta.SearchRequest.order_by] // for definition and syntax. // // The value must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // This can only be set for `search` events. Other event types should not set // this field. Otherwise, an INVALID_ARGUMENT error is returned. OrderBy string `protobuf:"bytes,17,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // An integer that specifies the current offset for pagination (the 0-indexed // starting location, amongst the products deemed by the API as relevant). // // See [SearchRequest.offset][google.cloud.retail.v2beta.SearchRequest.offset] // for definition. // // If this field is negative, an INVALID_ARGUMENT is returned. // // This can only be set for `search` events. Other event types should not set // this field. Otherwise, an INVALID_ARGUMENT error is returned. Offset int32 `protobuf:"varint,18,opt,name=offset,proto3" json:"offset,omitempty"` // The categories associated with a category page. // // To represent full path of category, use '>' sign to separate different // hierarchies. If '>' is part of the category name, replace it with // other character(s). // // Category pages include special pages such as sales or promotions. For // instance, a special sale page may have the category hierarchy: // "pageCategories" : ["Sales > 2017 Black Friday Deals"]. // // Required for `category-page-view` events. At least one of // [search_query][google.cloud.retail.v2beta.UserEvent.search_query] or // [page_categories][google.cloud.retail.v2beta.UserEvent.page_categories] is // required for `search` events. Other event types should not set this field. // Otherwise, an INVALID_ARGUMENT error is returned. PageCategories []string `protobuf:"bytes,11,rep,name=page_categories,json=pageCategories,proto3" json:"page_categories,omitempty"` // User information. UserInfo *UserInfo `protobuf:"bytes,12,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // Complete URL (window.location.href) of the user's current page. // // When using the client side event reporting with JavaScript pixel and Google // Tag Manager, this value is filled in automatically. Maximum length 5,000 // characters. Uri string `protobuf:"bytes,13,opt,name=uri,proto3" json:"uri,omitempty"` // The referrer URL of the current page. // // When using the client side event reporting with JavaScript pixel and Google // Tag Manager, this value is filled in automatically. ReferrerUri string `protobuf:"bytes,14,opt,name=referrer_uri,json=referrerUri,proto3" json:"referrer_uri,omitempty"` // A unique ID of a web page view. // // This should be kept the same for all user events triggered from the same // pageview. For example, an item detail page view could trigger multiple // events as the user is browsing the page. The `pageViewId` property should // be kept the same for all these events so that they can be grouped together // properly. // // When using the client side event reporting with JavaScript pixel and Google // Tag Manager, this value is filled in automatically. PageViewId string `protobuf:"bytes,15,opt,name=page_view_id,json=pageViewId,proto3" json:"page_view_id,omitempty"` // The entity for customers that may run multiple different entities, domains, // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. // We recommend that you set this field to get better per-entity search, // completion, and prediction results. Entity string `protobuf:"bytes,23,opt,name=entity,proto3" json:"entity,omitempty"` // contains filtered or unexported fields }
UserEvent captures all metadata information Retail API needs to know about how end users interact with customers' website.
func (*UserEvent) Descriptor
deprecated
func (*UserEvent) GetAttributes ¶
func (x *UserEvent) GetAttributes() map[string]*CustomAttribute
func (*UserEvent) GetAttributionToken ¶
func (*UserEvent) GetCompletionDetail ¶
func (x *UserEvent) GetCompletionDetail() *CompletionDetail
func (*UserEvent) GetEventTime ¶
func (x *UserEvent) GetEventTime() *timestamppb.Timestamp
func (*UserEvent) GetEventType ¶
func (*UserEvent) GetExperimentIds ¶
func (*UserEvent) GetOrderBy ¶
func (*UserEvent) GetPageCategories ¶
func (*UserEvent) GetPageViewId ¶
func (*UserEvent) GetProductDetails ¶
func (x *UserEvent) GetProductDetails() []*ProductDetail
func (*UserEvent) GetPurchaseTransaction ¶
func (x *UserEvent) GetPurchaseTransaction() *PurchaseTransaction
func (*UserEvent) GetReferrerUri ¶
func (*UserEvent) GetSearchQuery ¶
func (*UserEvent) GetSessionId ¶
func (*UserEvent) GetUserInfo ¶
func (*UserEvent) GetVisitorId ¶
func (*UserEvent) ProtoMessage ¶
func (*UserEvent) ProtoMessage()
func (*UserEvent) ProtoReflect ¶
func (x *UserEvent) ProtoReflect() protoreflect.Message
type UserEventImportSummary ¶
type UserEventImportSummary struct { // Count of user events imported with complete existing catalog information. JoinedEventsCount int64 `protobuf:"varint,1,opt,name=joined_events_count,json=joinedEventsCount,proto3" json:"joined_events_count,omitempty"` // Count of user events imported, but with catalog information not found // in the imported catalog. UnjoinedEventsCount int64 `protobuf:"varint,2,opt,name=unjoined_events_count,json=unjoinedEventsCount,proto3" json:"unjoined_events_count,omitempty"` // contains filtered or unexported fields }
A summary of import result. The UserEventImportSummary summarizes the import status for user events.
func (*UserEventImportSummary) Descriptor
deprecated
func (*UserEventImportSummary) Descriptor() ([]byte, []int)
Deprecated: Use UserEventImportSummary.ProtoReflect.Descriptor instead.
func (*UserEventImportSummary) GetJoinedEventsCount ¶
func (x *UserEventImportSummary) GetJoinedEventsCount() int64
func (*UserEventImportSummary) GetUnjoinedEventsCount ¶
func (x *UserEventImportSummary) GetUnjoinedEventsCount() int64
func (*UserEventImportSummary) ProtoMessage ¶
func (*UserEventImportSummary) ProtoMessage()
func (*UserEventImportSummary) ProtoReflect ¶
func (x *UserEventImportSummary) ProtoReflect() protoreflect.Message
func (*UserEventImportSummary) Reset ¶
func (x *UserEventImportSummary) Reset()
func (*UserEventImportSummary) String ¶
func (x *UserEventImportSummary) String() string
type UserEventInlineSource ¶
type UserEventInlineSource struct { // Required. A list of user events to import. Recommended max of 10k items. UserEvents []*UserEvent `protobuf:"bytes,1,rep,name=user_events,json=userEvents,proto3" json:"user_events,omitempty"` // contains filtered or unexported fields }
The inline source for the input config for ImportUserEvents method.
func (*UserEventInlineSource) Descriptor
deprecated
func (*UserEventInlineSource) Descriptor() ([]byte, []int)
Deprecated: Use UserEventInlineSource.ProtoReflect.Descriptor instead.
func (*UserEventInlineSource) GetUserEvents ¶
func (x *UserEventInlineSource) GetUserEvents() []*UserEvent
func (*UserEventInlineSource) ProtoMessage ¶
func (*UserEventInlineSource) ProtoMessage()
func (*UserEventInlineSource) ProtoReflect ¶
func (x *UserEventInlineSource) ProtoReflect() protoreflect.Message
func (*UserEventInlineSource) Reset ¶
func (x *UserEventInlineSource) Reset()
func (*UserEventInlineSource) String ¶
func (x *UserEventInlineSource) String() string
type UserEventInputConfig ¶
type UserEventInputConfig struct { // The source of the input. // // Types that are assignable to Source: // // *UserEventInputConfig_UserEventInlineSource // *UserEventInputConfig_GcsSource // *UserEventInputConfig_BigQuerySource Source isUserEventInputConfig_Source `protobuf_oneof:"source"` // contains filtered or unexported fields }
The input config source for user events.
func (*UserEventInputConfig) Descriptor
deprecated
func (*UserEventInputConfig) Descriptor() ([]byte, []int)
Deprecated: Use UserEventInputConfig.ProtoReflect.Descriptor instead.
func (*UserEventInputConfig) GetBigQuerySource ¶
func (x *UserEventInputConfig) GetBigQuerySource() *BigQuerySource
func (*UserEventInputConfig) GetGcsSource ¶
func (x *UserEventInputConfig) GetGcsSource() *GcsSource
func (*UserEventInputConfig) GetSource ¶
func (m *UserEventInputConfig) GetSource() isUserEventInputConfig_Source
func (*UserEventInputConfig) GetUserEventInlineSource ¶
func (x *UserEventInputConfig) GetUserEventInlineSource() *UserEventInlineSource
func (*UserEventInputConfig) ProtoMessage ¶
func (*UserEventInputConfig) ProtoMessage()
func (*UserEventInputConfig) ProtoReflect ¶
func (x *UserEventInputConfig) ProtoReflect() protoreflect.Message
func (*UserEventInputConfig) Reset ¶
func (x *UserEventInputConfig) Reset()
func (*UserEventInputConfig) String ¶
func (x *UserEventInputConfig) String() string
type UserEventInputConfig_BigQuerySource ¶
type UserEventInputConfig_BigQuerySource struct { // Required. BigQuery input source. BigQuerySource *BigQuerySource `protobuf:"bytes,3,opt,name=big_query_source,json=bigQuerySource,proto3,oneof"` }
type UserEventInputConfig_GcsSource ¶
type UserEventInputConfig_GcsSource struct { // Required. Google Cloud Storage location for the input content. GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"` }
type UserEventInputConfig_UserEventInlineSource ¶
type UserEventInputConfig_UserEventInlineSource struct { // Required. The Inline source for the input content for UserEvents. UserEventInlineSource *UserEventInlineSource `protobuf:"bytes,1,opt,name=user_event_inline_source,json=userEventInlineSource,proto3,oneof"` }
type UserEventServiceClient ¶
type UserEventServiceClient interface { // Writes a single user event. WriteUserEvent(ctx context.Context, in *WriteUserEventRequest, opts ...grpc.CallOption) (*UserEvent, error) // Writes a single user event from the browser. This uses a GET request to // due to browser restriction of POST-ing to a 3rd party domain. // // This method is used only by the Retail API JavaScript pixel and Google Tag // Manager. Users should not call this method directly. CollectUserEvent(ctx context.Context, in *CollectUserEventRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) // Deletes permanently all user events specified by the filter provided. // Depending on the number of events specified by the filter, this operation // could take hours or days to complete. To test a filter, use the list // command first. PurgeUserEvents(ctx context.Context, in *PurgeUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Bulk import of User events. Request processing might be // synchronous. Events that already exist are skipped. // Use this method for backfilling historical user events. // // `Operation.response` is of type `ImportResponse`. Note that it is // possible for a subset of the items to be successfully inserted. // `Operation.metadata` is of type `ImportMetadata`. ImportUserEvents(ctx context.Context, in *ImportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Exports user events. // // `Operation.response` is of type `ExportResponse`. // `Operation.metadata` is of type `ExportMetadata`. ExportUserEvents(ctx context.Context, in *ExportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Starts a user-event rejoin operation with latest product catalog. Events // are not annotated with detailed product information for products that are // missing from the catalog when the user event is ingested. These // events are stored as unjoined events with limited usage on training and // serving. You can use this method to start a join operation on specified // events with the latest version of product catalog. You can also use this // method to correct events joined with the wrong product catalog. A rejoin // operation can take hours or days to complete. RejoinUserEvents(ctx context.Context, in *RejoinUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) }
UserEventServiceClient is the client API for UserEventService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserEventServiceClient ¶
func NewUserEventServiceClient(cc grpc.ClientConnInterface) UserEventServiceClient
type UserEventServiceServer ¶
type UserEventServiceServer interface { // Writes a single user event. WriteUserEvent(context.Context, *WriteUserEventRequest) (*UserEvent, error) // Writes a single user event from the browser. This uses a GET request to // due to browser restriction of POST-ing to a 3rd party domain. // // This method is used only by the Retail API JavaScript pixel and Google Tag // Manager. Users should not call this method directly. CollectUserEvent(context.Context, *CollectUserEventRequest) (*httpbody.HttpBody, error) // Deletes permanently all user events specified by the filter provided. // Depending on the number of events specified by the filter, this operation // could take hours or days to complete. To test a filter, use the list // command first. PurgeUserEvents(context.Context, *PurgeUserEventsRequest) (*longrunningpb.Operation, error) // Bulk import of User events. Request processing might be // synchronous. Events that already exist are skipped. // Use this method for backfilling historical user events. // // `Operation.response` is of type `ImportResponse`. Note that it is // possible for a subset of the items to be successfully inserted. // `Operation.metadata` is of type `ImportMetadata`. ImportUserEvents(context.Context, *ImportUserEventsRequest) (*longrunningpb.Operation, error) // Exports user events. // // `Operation.response` is of type `ExportResponse`. // `Operation.metadata` is of type `ExportMetadata`. ExportUserEvents(context.Context, *ExportUserEventsRequest) (*longrunningpb.Operation, error) // Starts a user-event rejoin operation with latest product catalog. Events // are not annotated with detailed product information for products that are // missing from the catalog when the user event is ingested. These // events are stored as unjoined events with limited usage on training and // serving. You can use this method to start a join operation on specified // events with the latest version of product catalog. You can also use this // method to correct events joined with the wrong product catalog. A rejoin // operation can take hours or days to complete. RejoinUserEvents(context.Context, *RejoinUserEventsRequest) (*longrunningpb.Operation, error) }
UserEventServiceServer is the server API for UserEventService service.
type UserInfo ¶
type UserInfo struct { // Highly recommended for logged-in users. Unique identifier for logged-in // user, such as a user name. Don't set for anonymous users. // // Always use a hashed value for this ID. // // Don't set the field to the same fixed ID for different users. This mixes // the event history of those users together, which results in degraded // model quality. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The end user's IP address. This field is used to extract location // information for personalization. // // This field must be either an IPv4 address (e.g. "104.133.9.80") or an IPv6 // address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334"). Otherwise, an // INVALID_ARGUMENT error is returned. // // This should not be set when: // // * setting // [SearchRequest.user_info][google.cloud.retail.v2beta.SearchRequest.user_info]. // * using the JavaScript tag in // [UserEventService.CollectUserEvent][google.cloud.retail.v2beta.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2beta.UserInfo.direct_user_request] // is set. IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` // User agent as included in the HTTP header. Required for getting // [SearchResponse.sponsored_results][google.cloud.retail.v2beta.SearchResponse.sponsored_results]. // // The field must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // This should not be set when using the client side event reporting with // GTM or JavaScript tag in // [UserEventService.CollectUserEvent][google.cloud.retail.v2beta.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2beta.UserInfo.direct_user_request] // is set. UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // True if the request is made directly from the end user, in which case the // [ip_address][google.cloud.retail.v2beta.UserInfo.ip_address] and // [user_agent][google.cloud.retail.v2beta.UserInfo.user_agent] can be // populated from the HTTP request. This flag should be set only if the API // request is made directly from the end user such as a mobile app (and not if // a gateway or a server is processing and pushing the user events). // // This should not be set when using the JavaScript tag in // [UserEventService.CollectUserEvent][google.cloud.retail.v2beta.UserEventService.CollectUserEvent]. DirectUserRequest bool `protobuf:"varint,4,opt,name=direct_user_request,json=directUserRequest,proto3" json:"direct_user_request,omitempty"` // contains filtered or unexported fields }
Information of an end user.
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetDirectUserRequest ¶
func (*UserInfo) GetIpAddress ¶
func (*UserInfo) GetUserAgent ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type WriteUserEventRequest ¶
type WriteUserEventRequest struct { // Required. The parent catalog resource name, such as // `projects/1234/locations/global/catalogs/default_catalog`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. User event to write. UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"` // If set to true, the user event will be written asynchronously after // validation, and the API will respond without waiting for the write. // Therefore, silent failures can occur even if the API returns success. In // case of silent failures, error messages can be found in Stackdriver logs. WriteAsync bool `protobuf:"varint,3,opt,name=write_async,json=writeAsync,proto3" json:"write_async,omitempty"` // contains filtered or unexported fields }
Request message for WriteUserEvent method.
func (*WriteUserEventRequest) Descriptor
deprecated
func (*WriteUserEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteUserEventRequest.ProtoReflect.Descriptor instead.
func (*WriteUserEventRequest) GetParent ¶
func (x *WriteUserEventRequest) GetParent() string
func (*WriteUserEventRequest) GetUserEvent ¶
func (x *WriteUserEventRequest) GetUserEvent() *UserEvent
func (*WriteUserEventRequest) GetWriteAsync ¶ added in v1.12.0
func (x *WriteUserEventRequest) GetWriteAsync() bool
func (*WriteUserEventRequest) ProtoMessage ¶
func (*WriteUserEventRequest) ProtoMessage()
func (*WriteUserEventRequest) ProtoReflect ¶
func (x *WriteUserEventRequest) ProtoReflect() protoreflect.Message
func (*WriteUserEventRequest) Reset ¶
func (x *WriteUserEventRequest) Reset()
func (*WriteUserEventRequest) String ¶
func (x *WriteUserEventRequest) String() string
Source Files ¶
- analytics_service.pb.go
- catalog.pb.go
- catalog_service.pb.go
- common.pb.go
- completion_service.pb.go
- control.pb.go
- control_service.pb.go
- export_config.pb.go
- generative_question.pb.go
- generative_question_service.pb.go
- import_config.pb.go
- model.pb.go
- model_service.pb.go
- prediction_service.pb.go
- product.pb.go
- product_service.pb.go
- project.pb.go
- project_service.pb.go
- promotion.pb.go
- purge_config.pb.go
- search_service.pb.go
- serving_config.pb.go
- serving_config_service.pb.go
- user_event.pb.go
- user_event_service.pb.go