Class CategoriesResource.ListRequest
Returns a list of business categories. Search will match the category name but not the category ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant').
Inheritance
Inherited Members
Namespace: Google.Apis.MyBusinessBusinessInformation.v1
Assembly: Google.Apis.MyBusinessBusinessInformation.v1.dll
Syntax
public class CategoriesResource.ListRequest : MyBusinessBusinessInformationBaseServiceRequest<ListCategoriesResponse>, IClientServiceRequest<ListCategoriesResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService)
Constructs a new List request.
Declaration
public ListRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Filter
Optional. Filter string from user. The only field that supported is displayName
. Eg:
filter=displayName=foo
.
Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LanguageCode
Required. The BCP 47 code of language.
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PageSize
Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
Optional. If specified, the next page of categories will be fetched.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RegionCode
Required. The ISO 3166-1 alpha-2 country code.
Declaration
[RequestParameter("regionCode", RequestParameterType.Query)]
public virtual string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
View
Required. Specifies which parts to the Category resource should be returned in the response.
Declaration
[RequestParameter("view", RequestParameterType.Query)]
public virtual CategoriesResource.ListRequest.ViewEnum? View { get; set; }
Property Value
Type | Description |
---|---|
CategoriesResource.ListRequest.ViewEnum? |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()