Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions src/Dialogflow/GoogleCloudDialogflowV2CompanionSuggestion.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Dialogflow;

class GoogleCloudDialogflowV2CompanionSuggestion extends \Google\Collection
{
protected $collection_key = 'guidances';
protected $guidancesType = GoogleCloudDialogflowV2CompanionSuggestionGuidance::class;
protected $guidancesDataType = 'array';

/**
* @param GoogleCloudDialogflowV2CompanionSuggestionGuidance[] $guidances
*/
public function setGuidances($guidances)
{
$this->guidances = $guidances;
}
/**
* @return GoogleCloudDialogflowV2CompanionSuggestionGuidance[]
*/
public function getGuidances()
{
return $this->guidances;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDialogflowV2CompanionSuggestion::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2CompanionSuggestion');
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Dialogflow;

class GoogleCloudDialogflowV2CompanionSuggestionGuidance extends \Google\Collection
{
protected $collection_key = 'triggeringToolCallAnswerRecords';
/**
* @var string
*/
public $explanation;
protected $groundingMetadataType = GoogleCloudDialogflowV2GroundingMetadata::class;
protected $groundingMetadataDataType = '';
protected $instructionSourceType = GoogleCloudDialogflowV2GuidanceInstruction::class;
protected $instructionSourceDataType = '';
protected $knowledgeSourcesType = GoogleCloudDialogflowV2CompanionSuggestionGuidanceKnowledgeSource::class;
protected $knowledgeSourcesDataType = 'array';
/**
* @var string
*/
public $suggestedAction;
/**
* @var string
*/
public $suggestedReply;
protected $toolCallsType = GoogleCloudDialogflowV2ToolCallSuggestion::class;
protected $toolCallsDataType = 'array';
/**
* @var string[]
*/
public $triggeringToolCallAnswerRecords;

/**
* @param string $explanation
*/
public function setExplanation($explanation)
{
$this->explanation = $explanation;
}
/**
* @return string
*/
public function getExplanation()
{
return $this->explanation;
}
/**
* @param GoogleCloudDialogflowV2GroundingMetadata $groundingMetadata
*/
public function setGroundingMetadata(GoogleCloudDialogflowV2GroundingMetadata $groundingMetadata)
{
$this->groundingMetadata = $groundingMetadata;
}
/**
* @return GoogleCloudDialogflowV2GroundingMetadata
*/
public function getGroundingMetadata()
{
return $this->groundingMetadata;
}
/**
* @param GoogleCloudDialogflowV2GuidanceInstruction $instructionSource
*/
public function setInstructionSource(GoogleCloudDialogflowV2GuidanceInstruction $instructionSource)
{
$this->instructionSource = $instructionSource;
}
/**
* @return GoogleCloudDialogflowV2GuidanceInstruction
*/
public function getInstructionSource()
{
return $this->instructionSource;
}
/**
* @param GoogleCloudDialogflowV2CompanionSuggestionGuidanceKnowledgeSource[] $knowledgeSources
*/
public function setKnowledgeSources($knowledgeSources)
{
$this->knowledgeSources = $knowledgeSources;
}
/**
* @return GoogleCloudDialogflowV2CompanionSuggestionGuidanceKnowledgeSource[]
*/
public function getKnowledgeSources()
{
return $this->knowledgeSources;
}
/**
* @param string $suggestedAction
*/
public function setSuggestedAction($suggestedAction)
{
$this->suggestedAction = $suggestedAction;
}
/**
* @return string
*/
public function getSuggestedAction()
{
return $this->suggestedAction;
}
/**
* @param string $suggestedReply
*/
public function setSuggestedReply($suggestedReply)
{
$this->suggestedReply = $suggestedReply;
}
/**
* @return string
*/
public function getSuggestedReply()
{
return $this->suggestedReply;
}
/**
* @param GoogleCloudDialogflowV2ToolCallSuggestion[] $toolCalls
*/
public function setToolCalls($toolCalls)
{
$this->toolCalls = $toolCalls;
}
/**
* @return GoogleCloudDialogflowV2ToolCallSuggestion[]
*/
public function getToolCalls()
{
return $this->toolCalls;
}
/**
* @param string[] $triggeringToolCallAnswerRecords
*/
public function setTriggeringToolCallAnswerRecords($triggeringToolCallAnswerRecords)
{
$this->triggeringToolCallAnswerRecords = $triggeringToolCallAnswerRecords;
}
/**
* @return string[]
*/
public function getTriggeringToolCallAnswerRecords()
{
return $this->triggeringToolCallAnswerRecords;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDialogflowV2CompanionSuggestionGuidance::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2CompanionSuggestionGuidance');
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Dialogflow;

class GoogleCloudDialogflowV2CompanionSuggestionGuidanceKnowledgeSource extends \Google\Model
{
/**
* @var string
*/
public $knowledgeArticleTitle;
/**
* @var string
*/
public $knowledgeArticleUrl;
/**
* @var string
*/
public $knowledgeSnippet;

/**
* @param string $knowledgeArticleTitle
*/
public function setKnowledgeArticleTitle($knowledgeArticleTitle)
{
$this->knowledgeArticleTitle = $knowledgeArticleTitle;
}
/**
* @return string
*/
public function getKnowledgeArticleTitle()
{
return $this->knowledgeArticleTitle;
}
/**
* @param string $knowledgeArticleUrl
*/
public function setKnowledgeArticleUrl($knowledgeArticleUrl)
{
$this->knowledgeArticleUrl = $knowledgeArticleUrl;
}
/**
* @return string
*/
public function getKnowledgeArticleUrl()
{
return $this->knowledgeArticleUrl;
}
/**
* @param string $knowledgeSnippet
*/
public function setKnowledgeSnippet($knowledgeSnippet)
{
$this->knowledgeSnippet = $knowledgeSnippet;
}
/**
* @return string
*/
public function getKnowledgeSnippet()
{
return $this->knowledgeSnippet;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDialogflowV2CompanionSuggestionGuidanceKnowledgeSource::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2CompanionSuggestionGuidanceKnowledgeSource');
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Dialogflow;

class GoogleCloudDialogflowV2GenerateCompanionSuggestionsResponse extends \Google\Model
{
/**
* @var string
*/
public $answerRecord;
protected $companionSuggestionType = GoogleCloudDialogflowV2CompanionSuggestion::class;
protected $companionSuggestionDataType = '';
/**
* @var string
*/
public $latestMessage;
/**
* @var int
*/
public $suggestionIndex;

/**
* @param string $answerRecord
*/
public function setAnswerRecord($answerRecord)
{
$this->answerRecord = $answerRecord;
}
/**
* @return string
*/
public function getAnswerRecord()
{
return $this->answerRecord;
}
/**
* @param GoogleCloudDialogflowV2CompanionSuggestion $companionSuggestion
*/
public function setCompanionSuggestion(GoogleCloudDialogflowV2CompanionSuggestion $companionSuggestion)
{
$this->companionSuggestion = $companionSuggestion;
}
/**
* @return GoogleCloudDialogflowV2CompanionSuggestion
*/
public function getCompanionSuggestion()
{
return $this->companionSuggestion;
}
/**
* @param string $latestMessage
*/
public function setLatestMessage($latestMessage)
{
$this->latestMessage = $latestMessage;
}
/**
* @return string
*/
public function getLatestMessage()
{
return $this->latestMessage;
}
/**
* @param int $suggestionIndex
*/
public function setSuggestionIndex($suggestionIndex)
{
$this->suggestionIndex = $suggestionIndex;
}
/**
* @return int
*/
public function getSuggestionIndex()
{
return $this->suggestionIndex;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDialogflowV2GenerateCompanionSuggestionsResponse::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2GenerateCompanionSuggestionsResponse');
Loading
Loading