Class ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.SearchRequest
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.
Inheritance
ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.SearchRequest
Inherited Members
Namespace: Google.Apis.CloudRetail.v2
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.SearchRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2SearchResponse>, IClientServiceRequest<GoogleCloudRetailV2SearchResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService, GoogleCloudRetailV2SearchRequest, string)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service, GoogleCloudRetailV2SearchRequest body, string placement)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2SearchRequest | body | |
string | placement |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Placement
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.
Declaration
[RequestParameter("placement", RequestParameterType.Path)]
public virtual string Placement { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Search parameter list.
Declaration
protected override void InitParameters()