Skip to content

Commit 3740cb1

Browse files
1 parent 95ba0e8 commit 3740cb1

10 files changed

Lines changed: 432 additions & 42 deletions

src/DeveloperKnowledge.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class DeveloperKnowledge extends \Google\Service
3939
"https://www.googleapis.com/auth/cloud-platform";
4040

4141
public $documents;
42+
public $v1alpha;
4243
public $rootUrlTemplate;
4344

4445
/**
@@ -73,6 +74,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
7374
'type' => 'string',
7475
'repeated' => true,
7576
],
77+
'view' => [
78+
'location' => 'query',
79+
'type' => 'string',
80+
],
7681
],
7782
],'get' => [
7883
'path' => 'v1alpha/{+name}',
@@ -83,11 +88,19 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
8388
'type' => 'string',
8489
'required' => true,
8590
],
91+
'view' => [
92+
'location' => 'query',
93+
'type' => 'string',
94+
],
8695
],
8796
],'searchDocumentChunks' => [
8897
'path' => 'v1alpha/documents:searchDocumentChunks',
8998
'httpMethod' => 'GET',
9099
'parameters' => [
100+
'filter' => [
101+
'location' => 'query',
102+
'type' => 'string',
103+
],
91104
'pageSize' => [
92105
'location' => 'query',
93106
'type' => 'integer',
@@ -105,6 +118,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
105118
]
106119
]
107120
);
121+
$this->v1alpha = new DeveloperKnowledge\Resource\V1alpha(
122+
$this,
123+
$this->serviceName,
124+
'v1alpha',
125+
[
126+
'methods' => [
127+
'answerQuery' => [
128+
'path' => 'v1alpha:answerQuery',
129+
'httpMethod' => 'POST',
130+
'parameters' => [],
131+
],
132+
]
133+
]
134+
);
108135
}
109136
}
110137

src/DeveloperKnowledge/Answer.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
namespace Google\Service\DeveloperKnowledge;
19+
20+
class Answer extends \Google\Model
21+
{
22+
/**
23+
* The text of the answer.
24+
*
25+
* @var string
26+
*/
27+
public $answerText;
28+
29+
/**
30+
* The text of the answer.
31+
*
32+
* @param string $answerText
33+
*/
34+
public function setAnswerText($answerText)
35+
{
36+
$this->answerText = $answerText;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getAnswerText()
42+
{
43+
return $this->answerText;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(Answer::class, 'Google_Service_DeveloperKnowledge_Answer');
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
namespace Google\Service\DeveloperKnowledge;
19+
20+
class AnswerQueryRequest extends \Google\Model
21+
{
22+
/**
23+
* Required. The query to answer.
24+
*
25+
* @var string
26+
*/
27+
public $query;
28+
29+
/**
30+
* Required. The query to answer.
31+
*
32+
* @param string $query
33+
*/
34+
public function setQuery($query)
35+
{
36+
$this->query = $query;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getQuery()
42+
{
43+
return $this->query;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(AnswerQueryRequest::class, 'Google_Service_DeveloperKnowledge_AnswerQueryRequest');
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
namespace Google\Service\DeveloperKnowledge;
19+
20+
class AnswerQueryResponse extends \Google\Model
21+
{
22+
protected $answerType = Answer::class;
23+
protected $answerDataType = '';
24+
25+
/**
26+
* The answer to the query.
27+
*
28+
* @param Answer $answer
29+
*/
30+
public function setAnswer(Answer $answer)
31+
{
32+
$this->answer = $answer;
33+
}
34+
/**
35+
* @return Answer
36+
*/
37+
public function getAnswer()
38+
{
39+
return $this->answer;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(AnswerQueryResponse::class, 'Google_Service_DeveloperKnowledge_AnswerQueryResponse');

src/DeveloperKnowledge/BatchGetDocumentsResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BatchGetDocumentsResponse extends \Google\Collection
2424
protected $documentsDataType = 'array';
2525

2626
/**
27-
* Documents requested.
27+
* Contains the documents requested.
2828
*
2929
* @param Document[] $documents
3030
*/

0 commit comments

Comments
 (0)