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 18/** 19 * Service definition for Kgsearch (v1). 20 * 21 * <p> 22 * Searches the Google Knowledge Graph for entities.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/knowledge-graph/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_Kgsearch extends Google_Service 32{ 33 34 35 public $entities; 36 37 /** 38 * Constructs the internal representation of the Kgsearch service. 39 * 40 * @param Google_Client $client 41 */ 42 public function __construct(Google_Client $client) 43 { 44 parent::__construct($client); 45 $this->rootUrl = 'https://kgsearch.googleapis.com/'; 46 $this->servicePath = ''; 47 $this->batchPath = 'batch'; 48 $this->version = 'v1'; 49 $this->serviceName = 'kgsearch'; 50 51 $this->entities = new Google_Service_Kgsearch_Resource_Entities( 52 $this, 53 $this->serviceName, 54 'entities', 55 array( 56 'methods' => array( 57 'search' => array( 58 'path' => 'v1/entities:search', 59 'httpMethod' => 'GET', 60 'parameters' => array( 61 'languages' => array( 62 'location' => 'query', 63 'type' => 'string', 64 'repeated' => true, 65 ), 66 'ids' => array( 67 'location' => 'query', 68 'type' => 'string', 69 'repeated' => true, 70 ), 71 'limit' => array( 72 'location' => 'query', 73 'type' => 'integer', 74 ), 75 'prefix' => array( 76 'location' => 'query', 77 'type' => 'boolean', 78 ), 79 'query' => array( 80 'location' => 'query', 81 'type' => 'string', 82 ), 83 'types' => array( 84 'location' => 'query', 85 'type' => 'string', 86 'repeated' => true, 87 ), 88 'indent' => array( 89 'location' => 'query', 90 'type' => 'boolean', 91 ), 92 ), 93 ), 94 ) 95 ) 96 ); 97 } 98} 99