google.cloud.dialogflow.v2.OriginalDetectIntentRequest
*/
class OriginalDetectIntentRequest extends \Google\Protobuf\Internal\Message
{
/**
* The source of this request, e.g., `google`, `facebook`, `slack`. It is set
* by Dialogflow-owned servers.
*
* Generated from protobuf field string source = 1;
*/
private $source = '';
/**
* Optional. This field is set to the value of `QueryParameters.payload` field
* passed in the request.
*
* Generated from protobuf field .google.protobuf.Struct payload = 3;
*/
private $payload = null;
public function __construct() {
\GPBMetadata\Google\Cloud\Dialogflow\V2\Webhook::initOnce();
parent::__construct();
}
/**
* The source of this request, e.g., `google`, `facebook`, `slack`. It is set
* by Dialogflow-owned servers.
*
* Generated from protobuf field string source = 1;
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* The source of this request, e.g., `google`, `facebook`, `slack`. It is set
* by Dialogflow-owned servers.
*
* Generated from protobuf field string source = 1;
* @param string $var
* @return $this
*/
public function setSource($var)
{
GPBUtil::checkString($var, True);
$this->source = $var;
return $this;
}
/**
* Optional. This field is set to the value of `QueryParameters.payload` field
* passed in the request.
*
* Generated from protobuf field .google.protobuf.Struct payload = 3;
* @return \Google\Protobuf\Struct
*/
public function getPayload()
{
return $this->payload;
}
/**
* Optional. This field is set to the value of `QueryParameters.payload` field
* passed in the request.
*
* Generated from protobuf field .google.protobuf.Struct payload = 3;
* @param \Google\Protobuf\Struct $var
* @return $this
*/
public function setPayload($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
$this->payload = $var;
return $this;
}
}