Class AttributesResource.ListRequest
Returns the list of attributes that would be available for a location with the given primary category and country.
Inheritance
Inherited Members
Namespace: Google.Apis.MyBusinessBusinessInformation.v1
Assembly: Google.Apis.MyBusinessBusinessInformation.v1.dll
Syntax
public class AttributesResource.ListRequest : MyBusinessBusinessInformationBaseServiceRequest<ListAttributeMetadataResponse>, IClientServiceRequest<ListAttributeMetadataResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService)
Constructs a new List request.
Declaration
public ListRequest(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
CategoryName
Optional. The primary category stable ID to find available attributes. Must be of the format
categories/{category_id} (e.g., categories/gcid:restaurant). Required if parent is not set and
show_all is false.
Declaration
[RequestParameter("categoryName", RequestParameterType.Query)]
public virtual string CategoryName { 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
Optional. The BCP 47 code of language to get attribute display names in. If this language is not available, they will be provided in English.
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
How many attributes to include per page. Default is 200, minimum is 1.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
If specified, the next page of attribute metadata is retrieved.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
Optional. Resource name of the location to look up available attributes. If this field is set,
category_name, region_code, language_code and show_all are not required and must not be set.
Format: locations/{location_id} (e.g., locations/1234567890).
Declaration
[RequestParameter("parent", RequestParameterType.Query)]
public virtual string Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RegionCode
Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if parent is not
set.
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
ShowAll
Optional. If set to true, metadata for all available attributes are returned, disregarding parent and
category_name fields. language_code and region_code are required when show_all is set to true.
Declaration
[RequestParameter("showAll", RequestParameterType.Query)]
public virtual bool? ShowAll { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()