1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\MyBusinessPlaceActions\Resource; 19 20use Google\Service\MyBusinessPlaceActions\ListPlaceActionTypeMetadataResponse; 21 22/** 23 * The "placeActionTypeMetadata" collection of methods. 24 * Typical usage is: 25 * <code> 26 * $mybusinessplaceactionsService = new Google\Service\MyBusinessPlaceActions(...); 27 * $placeActionTypeMetadata = $mybusinessplaceactionsService->placeActionTypeMetadata; 28 * </code> 29 */ 30class PlaceActionTypeMetadata extends \Google\Service\Resource 31{ 32 /** 33 * Returns the list of available place action types for a location or country. 34 * (placeActionTypeMetadata.listPlaceActionTypeMetadata) 35 * 36 * @param array $optParams Optional parameters. 37 * 38 * @opt_param string filter Optional. A filter constraining the place action 39 * types to return metadata for. The response includes entries that match the 40 * filter. We support only the following filters: 1. location=XYZ where XYZ is a 41 * string indicating the resource name of a location, in the format 42 * `locations/{location_id}`. 2. region_code=XYZ where XYZ is a Unicode CLDR 43 * region code to find available action types. If no filter is provided, all 44 * place action types are returned. 45 * @opt_param string languageCode Optional. The IETF BCP-47 code of language to 46 * get display names in. If this language is not available, they will be 47 * provided in English. 48 * @opt_param int pageSize Optional. How many action types to include per page. 49 * Default is 10, minimum is 1. 50 * @opt_param string pageToken Optional. If specified, the next page of place 51 * action type metadata is retrieved. The `pageToken` is returned when a call to 52 * `placeActionTypeMetadata.list` returns more results than can fit into the 53 * requested page size. 54 * @return ListPlaceActionTypeMetadataResponse 55 */ 56 public function listPlaceActionTypeMetadata($optParams = []) 57 { 58 $params = []; 59 $params = array_merge($params, $optParams); 60 return $this->call('list', [$params], ListPlaceActionTypeMetadataResponse::class); 61 } 62} 63 64// Adding a class alias for backwards compatibility with the previous class name. 65class_alias(PlaceActionTypeMetadata::class, 'Google_Service_MyBusinessPlaceActions_Resource_PlaceActionTypeMetadata'); 66