Class ProjectsResource.LocationsResource.CatalogsResource
The "catalogs" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRetail.v2alpha
Assembly: Google.Apis.CloudRetail.v2alpha.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource
Constructors
CatalogsResource(IClientService)
Constructs a new resource.
Declaration
public CatalogsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
AttributesConfig
Gets the AttributesConfig resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.AttributesConfigResource AttributesConfig { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.AttributesConfigResource |
Branches
Gets the Branches resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.BranchesResource Branches { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource |
CompletionData
Gets the CompletionData resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.CompletionDataResource CompletionData { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.CompletionDataResource |
Controls
Gets the Controls resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ControlsResource Controls { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ControlsResource |
GenerativeQuestion
Gets the GenerativeQuestion resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.GenerativeQuestionResource GenerativeQuestion { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.GenerativeQuestionResource |
GenerativeQuestions
Gets the GenerativeQuestions resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.GenerativeQuestionsResource GenerativeQuestions { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.GenerativeQuestionsResource |
MerchantCenterAccountLinks
Gets the MerchantCenterAccountLinks resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.MerchantCenterAccountLinksResource MerchantCenterAccountLinks { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.MerchantCenterAccountLinksResource |
Models
Gets the Models resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ModelsResource Models { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ModelsResource |
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.OperationsResource |
Placements
Gets the Placements resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource Placements { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource |
ServingConfigs
Gets the ServingConfigs resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource ServingConfigs { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource |
UserEvents
Gets the UserEvents resource.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource UserEvents { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource |
Methods
CompleteQuery(string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.CompleteQueryRequest CompleteQuery(string catalog)
Parameters
Type | Name | Description |
---|---|---|
string | catalog | Required. Catalog for which the completion is performed. Full resource name of catalog, such as
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.CompleteQueryRequest |
ExportAnalyticsMetrics(GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest, string)
Exports analytics metrics. Operation.response
is of type ExportAnalyticsMetricsResponse
.
Operation.metadata
is of type ExportMetadata
.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ExportAnalyticsMetricsRequest ExportAnalyticsMetrics(GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest body, string catalog)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest | body | The body of the request. |
string | catalog | Required. Full resource name of the parent catalog. Expected format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ExportAnalyticsMetricsRequest |
GetAttributesConfig(string)
Gets an AttributesConfig.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.GetAttributesConfigRequest GetAttributesConfig(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Full AttributesConfig resource name. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.GetAttributesConfigRequest |
GetCompletionConfig(string)
Gets a CompletionConfig.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.GetCompletionConfigRequest GetCompletionConfig(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Full CompletionConfig resource name. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.GetCompletionConfigRequest |
GetDefaultBranch(string)
Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.GetDefaultBranchRequest GetDefaultBranch(string catalog)
Parameters
Type | Name | Description |
---|---|---|
string | catalog | The parent catalog resource name, such as |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.GetDefaultBranchRequest |
GetGenerativeQuestionFeature(string)
Manages overal generative question feature state -- enables toggling feature on and off.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.GetGenerativeQuestionFeatureRequest GetGenerativeQuestionFeature(string catalog)
Parameters
Type | Name | Description |
---|---|---|
string | catalog | Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.GetGenerativeQuestionFeatureRequest |
List(string)
Lists all the Catalogs associated with the project.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The account resource name with an associated location. If the caller does not have permission to list Catalogs under this location, regardless of whether or not this location exists, a PERMISSION_DENIED error is returned. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ListRequest |
Patch(GoogleCloudRetailV2alphaCatalog, string)
Updates the Catalogs.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.PatchRequest Patch(GoogleCloudRetailV2alphaCatalog body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaCatalog | body | The body of the request. |
string | name | Required. Immutable. The fully qualified resource name of the catalog. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.PatchRequest |
SetDefaultBranch(GoogleCloudRetailV2alphaSetDefaultBranchRequest, string)
Set a specified branch id as default branch. API methods such as SearchService.Search,
ProductService.GetProduct, 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 to
projects/*/locations/*/catalogs/*/branches/default_branch
is equivalent to setting
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 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}.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.SetDefaultBranchRequest SetDefaultBranch(GoogleCloudRetailV2alphaSetDefaultBranchRequest body, string catalog)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaSetDefaultBranchRequest | body | The body of the request. |
string | catalog | Full resource name of the catalog, such as |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.SetDefaultBranchRequest |
UpdateAttributesConfig(GoogleCloudRetailV2alphaAttributesConfig, string)
Updates the 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.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.UpdateAttributesConfigRequest UpdateAttributesConfig(GoogleCloudRetailV2alphaAttributesConfig body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaAttributesConfig | body | The body of the request. |
string | name | Required. Immutable. The fully qualified resource name of the attribute config. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.UpdateAttributesConfigRequest |
UpdateCompletionConfig(GoogleCloudRetailV2alphaCompletionConfig, string)
Updates the CompletionConfigs.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.UpdateCompletionConfigRequest UpdateCompletionConfig(GoogleCloudRetailV2alphaCompletionConfig body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaCompletionConfig | body | The body of the request. |
string | name | Required. Immutable. Fully qualified name |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.UpdateCompletionConfigRequest |
UpdateGenerativeQuestion(GoogleCloudRetailV2alphaGenerativeQuestionConfig, string)
Allows management of individual questions.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.UpdateGenerativeQuestionRequest UpdateGenerativeQuestion(GoogleCloudRetailV2alphaGenerativeQuestionConfig body, string catalog)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaGenerativeQuestionConfig | body | The body of the request. |
string | catalog | Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.UpdateGenerativeQuestionRequest |
UpdateGenerativeQuestionFeature(GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig, string)
Manages overal generative question feature state -- enables toggling feature on and off.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.UpdateGenerativeQuestionFeatureRequest UpdateGenerativeQuestionFeature(GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig body, string catalog)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig | body | The body of the request. |
string | catalog | Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.UpdateGenerativeQuestionFeatureRequest |