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\SemanticTile\Resource;
19
20use Google\Service\SemanticTile\TerrainTile;
21
22/**
23 * The "terraintiles" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $vectortileService = new Google\Service\SemanticTile(...);
27 *   $terraintiles = $vectortileService->terraintiles;
28 *  </code>
29 */
30class Terraintiles extends \Google\Service\Resource
31{
32  /**
33   * Gets a terrain tile by its tile resource name. (terraintiles.get)
34   *
35   * @param string $name Required. Resource name of the tile. The tile resource
36   * name is prefixed by its collection ID `terraintiles/` followed by the
37   * resource ID, which encodes the tile's global x and y coordinates and zoom
38   * level as `@,,z`. For example, `terraintiles/@1,2,3z`.
39   * @param array $optParams Optional parameters.
40   *
41   * @opt_param int altitudePrecisionCentimeters The precision of terrain
42   * altitudes in centimeters. Possible values: between 1 (cm level precision) and
43   * 1,000,000 (10-kilometer level precision).
44   * @opt_param string clientInfo.apiClient API client name and version. For
45   * example, the SDK calling the API. The exact format is up to the client.
46   * @opt_param string clientInfo.applicationId Application ID, such as the
47   * package name on Android and the bundle identifier on iOS platforms.
48   * @opt_param string clientInfo.applicationVersion Application version number,
49   * such as "1.2.3". The exact format is application-dependent.
50   * @opt_param string clientInfo.deviceModel Device model as reported by the
51   * device. The exact format is platform-dependent.
52   * @opt_param string clientInfo.operatingSystem Operating system name and
53   * version as reported by the OS. For example, "Mac OS X 10.10.4". The exact
54   * format is platform-dependent.
55   * @opt_param string clientInfo.platform Platform where the application is
56   * running.
57   * @opt_param string clientInfo.userId Required. A client-generated user ID. The
58   * ID should be generated and persisted during the first user session or
59   * whenever a pre-existing ID is not found. The exact format is up to the
60   * client. This must be non-empty in a GetFeatureTileRequest (whether via the
61   * header or GetFeatureTileRequest.client_info).
62   * @opt_param int maxElevationResolutionCells The maximum allowed resolution for
63   * the returned elevation heightmap. Possible values: between 1 and 1024 (and
64   * not less than min_elevation_resolution_cells). Over-sized heightmaps will be
65   * non-uniformly down-sampled such that each edge is no longer than this value.
66   * Non-uniformity is chosen to maximise the amount of preserved data. For
67   * example: Original resolution: 100px (width) * 30px (height)
68   * max_elevation_resolution: 30 New resolution: 30px (width) * 30px (height)
69   * @opt_param int minElevationResolutionCells api-linter: core::0131::request-
70   * unknown-fields=disabled aip.dev/not-precedent: Maintaining existing request
71   * parameter pattern. The minimum allowed resolution for the returned elevation
72   * heightmap. Possible values: between 0 and 1024 (and not more than
73   * max_elevation_resolution_cells). Zero is supported for backward
74   * compatibility. Under-sized heightmaps will be non-uniformly up-sampled such
75   * that each edge is no shorter than this value. Non-uniformity is chosen to
76   * maximise the amount of preserved data. For example: Original resolution: 30px
77   * (width) * 10px (height) min_elevation_resolution: 30 New resolution: 30px
78   * (width) * 30px (height)
79   * @opt_param string terrainFormats Terrain formats that the client understands.
80   * @return TerrainTile
81   */
82  public function get($name, $optParams = [])
83  {
84    $params = ['name' => $name];
85    $params = array_merge($params, $optParams);
86    return $this->call('get', [$params], TerrainTile::class);
87  }
88}
89
90// Adding a class alias for backwards compatibility with the previous class name.
91class_alias(Terraintiles::class, 'Google_Service_SemanticTile_Resource_Terraintiles');
92