Flatlogic Bot 2e0e56a927 2
2025-10-05 18:08:48 +00:00

88 lines
2.9 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/dialogflow/v2/participant.proto
namespace Google\Cloud\Dialogflow\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Represents the selection of a suggestion.
*
* Generated from protobuf message <code>google.cloud.dialogflow.v2.SuggestionInput</code>
*/
class SuggestionInput extends \Google\Protobuf\Internal\Message
{
/**
* Required. The ID of a suggestion selected by the human agent.
* The suggestion(s) were generated in a previous call to
* request Dialogflow assist.
* The format is:
* `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
* ID>` where <Answer Record ID> is an alphanumeric string.
*
* Generated from protobuf field <code>string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected $answer_record = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $answer_record
* Required. The ID of a suggestion selected by the human agent.
* The suggestion(s) were generated in a previous call to
* request Dialogflow assist.
* The format is:
* `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
* ID>` where <Answer Record ID> is an alphanumeric string.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Participant::initOnce();
parent::__construct($data);
}
/**
* Required. The ID of a suggestion selected by the human agent.
* The suggestion(s) were generated in a previous call to
* request Dialogflow assist.
* The format is:
* `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
* ID>` where <Answer Record ID> is an alphanumeric string.
*
* Generated from protobuf field <code>string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public function getAnswerRecord()
{
return $this->answer_record;
}
/**
* Required. The ID of a suggestion selected by the human agent.
* The suggestion(s) were generated in a previous call to
* request Dialogflow assist.
* The format is:
* `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
* ID>` where <Answer Record ID> is an alphanumeric string.
*
* Generated from protobuf field <code>string answer_record = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public function setAnswerRecord($var)
{
GPBUtil::checkString($var, True);
$this->answer_record = $var;
return $this;
}
}