google.cloud.dialogflow.v2.SuggestionInput */ 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//locations//answerRecords/` where is an alphanumeric string. * * Generated from protobuf field string answer_record = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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//locations//answerRecords/` where 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//locations//answerRecords/` where is an alphanumeric string. * * Generated from protobuf field string answer_record = 1 [(.google.api.field_behavior) = REQUIRED]; * @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//locations//answerRecords/` where is an alphanumeric string. * * Generated from protobuf field string answer_record = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ public function setAnswerRecord($var) { GPBUtil::checkString($var, True); $this->answer_record = $var; return $this; } }