REST Resource: categories

Resource: Category

A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see categories.list.

JSON representation
{
  "displayName": string,
  "categoryId": string,
  "serviceTypes": [
    {
      object (ServiceType)
    }
  ],
  "moreHoursTypes": [
    {
      object (MoreHoursType)
    }
  ]
}
Fields
displayName

string

. The human-readable name of the category. This is set when reading the location. When modifying the location, categoryId must be set.

Note: This field is used in responses only. Any value specified here in a request is ignored.

categoryId

string

. A stable ID (provided by Google) for this category. The categoryId must be specified when modifying the category (when creating or updating a location).

Note: This field is used in responses only. Any value specified here in a request is ignored.

serviceTypes[]

object (ServiceType)

. A list of all the service types that are available for this business category.

Note: This field is used in responses only. Any value specified here in a request is ignored.

moreHoursTypes[]

object (MoreHoursType)

Output only. More hours types that are available for this business category.

ServiceType

A message describing a service type that the business offers.

JSON representation
{
  "serviceTypeId": string,
  "displayName": string
}
Fields
serviceTypeId

string

Output only. A stable ID (provided by Google) for this service type.

displayName

string

Output only. The human-readable display name for the service type.

MoreHoursType

More hours types that a business can offers, in addition to its regular hours.

JSON representation
{
  "hoursTypeId": string,
  "displayName": string,
  "localizedDisplayName": string
}
Fields
hoursTypeId

string

Output only. A stable ID provided by Google for this hours type.

displayName

string

Output only. The human-readable English display name for the hours type.

localizedDisplayName

string

Output only. The human-readable localized display name for the hours type.

Methods

batchGet

Returns a list of business categories for the provided language and GConcept ids.

list

Returns a list of business categories.