google.cloud.dialogflow.v2.Intent.Message */ class Intent_Message extends \Google\Protobuf\Internal\Message { /** * Optional. The platform that this message is intended for. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6; */ private $platform = 0; protected $message; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); parent::__construct(); } /** * The text response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Text text = 1; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_Text */ public function getText() { return $this->readOneof(1); } /** * The text response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Text text = 1; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_Text $var * @return $this */ public function setText($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Text::class); $this->writeOneof(1, $var); return $this; } /** * The image response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 2; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_Image */ public function getImage() { return $this->readOneof(2); } /** * The image response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 2; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_Image $var * @return $this */ public function setImage($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Image::class); $this->writeOneof(2, $var); return $this; } /** * The quick replies response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_QuickReplies */ public function getQuickReplies() { return $this->readOneof(3); } /** * The quick replies response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_QuickReplies $var * @return $this */ public function setQuickReplies($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_QuickReplies::class); $this->writeOneof(3, $var); return $this; } /** * The card response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Card card = 4; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_Card */ public function getCard() { return $this->readOneof(4); } /** * The card response. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Card card = 4; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_Card $var * @return $this */ public function setCard($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Card::class); $this->writeOneof(4, $var); return $this; } /** * Returns a response containing a custom, platform-specific payload. * See the Intent.Message.Platform type for a description of the * structure that may be required for your platform. * * Generated from protobuf field .google.protobuf.Struct payload = 5; * @return \Google\Protobuf\Struct */ public function getPayload() { return $this->readOneof(5); } /** * Returns a response containing a custom, platform-specific payload. * See the Intent.Message.Platform type for a description of the * structure that may be required for your platform. * * Generated from protobuf field .google.protobuf.Struct payload = 5; * @param \Google\Protobuf\Struct $var * @return $this */ public function setPayload($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->writeOneof(5, $var); return $this; } /** * The voice and text-only responses for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_SimpleResponses */ public function getSimpleResponses() { return $this->readOneof(7); } /** * The voice and text-only responses for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_SimpleResponses $var * @return $this */ public function setSimpleResponses($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_SimpleResponses::class); $this->writeOneof(7, $var); return $this; } /** * The basic card response for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard */ public function getBasicCard() { return $this->readOneof(8); } /** * The basic card response for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard $var * @return $this */ public function setBasicCard($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard::class); $this->writeOneof(8, $var); return $this; } /** * The suggestion chips for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_Suggestions */ public function getSuggestions() { return $this->readOneof(9); } /** * The suggestion chips for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_Suggestions $var * @return $this */ public function setSuggestions($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Suggestions::class); $this->writeOneof(9, $var); return $this; } /** * The link out suggestion chip for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_LinkOutSuggestion */ public function getLinkOutSuggestion() { return $this->readOneof(10); } /** * The link out suggestion chip for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_LinkOutSuggestion $var * @return $this */ public function setLinkOutSuggestion($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_LinkOutSuggestion::class); $this->writeOneof(10, $var); return $this; } /** * The list card response for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_ListSelect */ public function getListSelect() { return $this->readOneof(11); } /** * The list card response for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_ListSelect $var * @return $this */ public function setListSelect($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_ListSelect::class); $this->writeOneof(11, $var); return $this; } /** * The carousel card response for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12; * @return \Google\Cloud\Dialogflow\V2\Intent_Message_CarouselSelect */ public function getCarouselSelect() { return $this->readOneof(12); } /** * The carousel card response for Actions on Google. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12; * @param \Google\Cloud\Dialogflow\V2\Intent_Message_CarouselSelect $var * @return $this */ public function setCarouselSelect($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_CarouselSelect::class); $this->writeOneof(12, $var); return $this; } /** * Optional. The platform that this message is intended for. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6; * @return int */ public function getPlatform() { return $this->platform; } /** * Optional. The platform that this message is intended for. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6; * @param int $var * @return $this */ public function setPlatform($var) { GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Platform::class); $this->platform = $var; return $this; } /** * @return string */ public function getMessage() { return $this->whichOneof("message"); } }