[f9c482b] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Dialogflow;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudDialogflowCxV3Fulfillment extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'setParameterActions';
|
---|
| 23 | protected $advancedSettingsType = GoogleCloudDialogflowCxV3AdvancedSettings::class;
|
---|
| 24 | protected $advancedSettingsDataType = '';
|
---|
| 25 | protected $conditionalCasesType = GoogleCloudDialogflowCxV3FulfillmentConditionalCases::class;
|
---|
| 26 | protected $conditionalCasesDataType = 'array';
|
---|
| 27 | /**
|
---|
| 28 | * @var bool
|
---|
| 29 | */
|
---|
| 30 | public $enableGenerativeFallback;
|
---|
| 31 | protected $messagesType = GoogleCloudDialogflowCxV3ResponseMessage::class;
|
---|
| 32 | protected $messagesDataType = 'array';
|
---|
| 33 | /**
|
---|
| 34 | * @var bool
|
---|
| 35 | */
|
---|
| 36 | public $returnPartialResponses;
|
---|
| 37 | protected $setParameterActionsType = GoogleCloudDialogflowCxV3FulfillmentSetParameterAction::class;
|
---|
| 38 | protected $setParameterActionsDataType = 'array';
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $tag;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $webhook;
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * @param GoogleCloudDialogflowCxV3AdvancedSettings
|
---|
| 50 | */
|
---|
| 51 | public function setAdvancedSettings(GoogleCloudDialogflowCxV3AdvancedSettings $advancedSettings)
|
---|
| 52 | {
|
---|
| 53 | $this->advancedSettings = $advancedSettings;
|
---|
| 54 | }
|
---|
| 55 | /**
|
---|
| 56 | * @return GoogleCloudDialogflowCxV3AdvancedSettings
|
---|
| 57 | */
|
---|
| 58 | public function getAdvancedSettings()
|
---|
| 59 | {
|
---|
| 60 | return $this->advancedSettings;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @param GoogleCloudDialogflowCxV3FulfillmentConditionalCases[]
|
---|
| 64 | */
|
---|
| 65 | public function setConditionalCases($conditionalCases)
|
---|
| 66 | {
|
---|
| 67 | $this->conditionalCases = $conditionalCases;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @return GoogleCloudDialogflowCxV3FulfillmentConditionalCases[]
|
---|
| 71 | */
|
---|
| 72 | public function getConditionalCases()
|
---|
| 73 | {
|
---|
| 74 | return $this->conditionalCases;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @param bool
|
---|
| 78 | */
|
---|
| 79 | public function setEnableGenerativeFallback($enableGenerativeFallback)
|
---|
| 80 | {
|
---|
| 81 | $this->enableGenerativeFallback = $enableGenerativeFallback;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @return bool
|
---|
| 85 | */
|
---|
| 86 | public function getEnableGenerativeFallback()
|
---|
| 87 | {
|
---|
| 88 | return $this->enableGenerativeFallback;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @param GoogleCloudDialogflowCxV3ResponseMessage[]
|
---|
| 92 | */
|
---|
| 93 | public function setMessages($messages)
|
---|
| 94 | {
|
---|
| 95 | $this->messages = $messages;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @return GoogleCloudDialogflowCxV3ResponseMessage[]
|
---|
| 99 | */
|
---|
| 100 | public function getMessages()
|
---|
| 101 | {
|
---|
| 102 | return $this->messages;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param bool
|
---|
| 106 | */
|
---|
| 107 | public function setReturnPartialResponses($returnPartialResponses)
|
---|
| 108 | {
|
---|
| 109 | $this->returnPartialResponses = $returnPartialResponses;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return bool
|
---|
| 113 | */
|
---|
| 114 | public function getReturnPartialResponses()
|
---|
| 115 | {
|
---|
| 116 | return $this->returnPartialResponses;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param GoogleCloudDialogflowCxV3FulfillmentSetParameterAction[]
|
---|
| 120 | */
|
---|
| 121 | public function setSetParameterActions($setParameterActions)
|
---|
| 122 | {
|
---|
| 123 | $this->setParameterActions = $setParameterActions;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return GoogleCloudDialogflowCxV3FulfillmentSetParameterAction[]
|
---|
| 127 | */
|
---|
| 128 | public function getSetParameterActions()
|
---|
| 129 | {
|
---|
| 130 | return $this->setParameterActions;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param string
|
---|
| 134 | */
|
---|
| 135 | public function setTag($tag)
|
---|
| 136 | {
|
---|
| 137 | $this->tag = $tag;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return string
|
---|
| 141 | */
|
---|
| 142 | public function getTag()
|
---|
| 143 | {
|
---|
| 144 | return $this->tag;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @param string
|
---|
| 148 | */
|
---|
| 149 | public function setWebhook($webhook)
|
---|
| 150 | {
|
---|
| 151 | $this->webhook = $webhook;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @return string
|
---|
| 155 | */
|
---|
| 156 | public function getWebhook()
|
---|
| 157 | {
|
---|
| 158 | return $this->webhook;
|
---|
| 159 | }
|
---|
| 160 | }
|
---|
| 161 |
|
---|
| 162 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 163 | class_alias(GoogleCloudDialogflowCxV3Fulfillment::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3Fulfillment');
|
---|