From d499964dd7fdb97558fc09bff6510dc3239e99a6 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 21 Jan 2020 11:53:19 -0500 Subject: [PATCH 1/2] feat: update dialogflow clients --- Dialogflow/metadata/V2/Agent.php | 234 +++---- Dialogflow/metadata/V2/AudioConfig.php | 129 ++-- Dialogflow/metadata/V2/Context.php | 152 ++--- Dialogflow/metadata/V2/EntityType.php | 325 +++++----- Dialogflow/metadata/V2/Intent.php | 570 +++++++++++------- Dialogflow/metadata/V2/Session.php | 279 +++++---- Dialogflow/metadata/V2/SessionEntityType.php | 179 +++--- Dialogflow/metadata/V2/Webhook.php | 27 +- Dialogflow/src/V2/Agent.php | 72 +-- Dialogflow/src/V2/Agent/MatchMode.php | 2 +- .../src/V2/BatchCreateEntitiesRequest.php | 18 +- .../src/V2/BatchDeleteEntitiesRequest.php | 26 +- .../src/V2/BatchDeleteEntityTypesRequest.php | 12 +- .../src/V2/BatchDeleteIntentsRequest.php | 12 +- .../src/V2/BatchUpdateEntitiesRequest.php | 24 +- .../src/V2/BatchUpdateEntityTypesRequest.php | 18 +- .../src/V2/BatchUpdateIntentsRequest.php | 24 +- Dialogflow/src/V2/Context.php | 38 +- Dialogflow/src/V2/CreateContextRequest.php | 12 +- Dialogflow/src/V2/CreateEntityTypeRequest.php | 18 +- Dialogflow/src/V2/CreateIntentRequest.php | 24 +- .../src/V2/CreateSessionEntityTypeRequest.php | 12 +- Dialogflow/src/V2/DeleteAgentRequest.php | 6 +- .../src/V2/DeleteAllContextsRequest.php | 6 +- Dialogflow/src/V2/DeleteContextRequest.php | 6 +- Dialogflow/src/V2/DeleteEntityTypeRequest.php | 6 +- Dialogflow/src/V2/DeleteIntentRequest.php | 6 +- .../src/V2/DeleteSessionEntityTypeRequest.php | 6 +- Dialogflow/src/V2/DetectIntentRequest.php | 30 +- Dialogflow/src/V2/EntityType.php | 58 +- Dialogflow/src/V2/EntityType/Entity.php | 20 +- Dialogflow/src/V2/EntityType/Kind.php | 12 +- Dialogflow/src/V2/EntityTypesGrpcClient.php | 6 +- Dialogflow/src/V2/EventInput.php | 18 +- Dialogflow/src/V2/ExportAgentRequest.php | 24 +- Dialogflow/src/V2/ExportAgentResponse.php | 42 +- Dialogflow/src/V2/Gapic/AgentsGapicClient.php | 33 +- .../src/V2/Gapic/EntityTypesGapicClient.php | 8 +- .../Gapic/SessionEntityTypesGapicClient.php | 24 + Dialogflow/src/V2/GetAgentRequest.php | 6 +- Dialogflow/src/V2/GetContextRequest.php | 6 +- Dialogflow/src/V2/GetEntityTypeRequest.php | 12 +- Dialogflow/src/V2/GetIntentRequest.php | 18 +- .../src/V2/GetSessionEntityTypeRequest.php | 6 +- Dialogflow/src/V2/ImportAgentRequest.php | 48 +- Dialogflow/src/V2/InputAudioConfig.php | 184 +++++- Dialogflow/src/V2/Intent.php | 152 ++--- Dialogflow/src/V2/Intent/Message.php | 90 ++- .../src/V2/Intent/Message/BasicCard.php | 24 +- .../V2/Intent/Message/BasicCard/Button.php | 6 +- .../V2/Intent/Message/BrowseCarouselCard.php | 113 ++++ .../BrowseCarouselCardItem.php | 214 +++++++ .../BrowseCarouselCardItem/OpenUrlAction.php | 108 ++++ .../OpenUrlAction/UrlTypeHint.php | 65 ++ .../ImageDisplayOptions.php | 89 +++ Dialogflow/src/V2/Intent/Message/Card.php | 24 +- .../src/V2/Intent/Message/Card/Button.php | 14 +- .../src/V2/Intent/Message/CarouselSelect.php | 6 +- .../V2/Intent/Message/CarouselSelect/Item.php | 24 +- .../V2/Intent/Message/ColumnProperties.php | 104 ++++ .../ColumnProperties/HorizontalAlignment.php | 71 +++ Dialogflow/src/V2/Intent/Message/Image.php | 12 +- .../V2/Intent/Message/LinkOutSuggestion.php | 12 +- .../src/V2/Intent/Message/ListSelect.php | 46 +- .../src/V2/Intent/Message/ListSelect/Item.php | 24 +- .../src/V2/Intent/Message/MediaContent.php | 104 ++++ .../MediaContent/ResponseMediaObject.php | 203 +++++++ .../MediaContent/ResponseMediaType.php | 57 ++ .../src/V2/Intent/Message/QuickReplies.php | 12 +- .../src/V2/Intent/Message/SelectItemInfo.php | 12 +- .../src/V2/Intent/Message/SimpleResponse.php | 6 +- .../src/V2/Intent/Message/SimpleResponses.php | 6 +- .../src/V2/Intent/Message/Suggestion.php | 6 +- .../src/V2/Intent/Message/Suggestions.php | 6 +- .../src/V2/Intent/Message/TableCard.php | 240 ++++++++ .../src/V2/Intent/Message/TableCardCell.php | 70 +++ .../src/V2/Intent/Message/TableCardRow.php | 104 ++++ Dialogflow/src/V2/Intent/Message/Text.php | 6 +- Dialogflow/src/V2/Intent/Parameter.php | 36 +- Dialogflow/src/V2/Intent/TrainingPhrase.php | 18 +- .../src/V2/Intent/TrainingPhrase/Part.php | 18 +- .../V2/Intent_Message_BrowseCarouselCard.php | 16 + ...wseCarouselCard_BrowseCarouselCardItem.php | 16 + ...d_BrowseCarouselCardItem_OpenUrlAction.php | 16 + ...uselCardItem_OpenUrlAction_UrlTypeHint.php | 16 + ...BrowseCarouselCard_ImageDisplayOptions.php | 16 + .../V2/Intent_Message_ColumnProperties.php | 16 + ...e_ColumnProperties_HorizontalAlignment.php | 16 + .../src/V2/Intent_Message_MediaContent.php | 16 + ...ssage_MediaContent_ResponseMediaObject.php | 16 + ...Message_MediaContent_ResponseMediaType.php | 16 + .../src/V2/Intent_Message_TableCard.php | 16 + .../src/V2/Intent_Message_TableCardCell.php | 16 + .../src/V2/Intent_Message_TableCardRow.php | 16 + Dialogflow/src/V2/ListContextsRequest.php | 18 +- Dialogflow/src/V2/ListEntityTypesRequest.php | 24 +- Dialogflow/src/V2/ListIntentsRequest.php | 30 +- .../src/V2/ListSessionEntityTypesRequest.php | 18 +- Dialogflow/src/V2/OutputAudioEncoding.php | 2 +- Dialogflow/src/V2/QueryParameters.php | 42 +- Dialogflow/src/V2/QueryResult.php | 36 +- Dialogflow/src/V2/RestoreAgentRequest.php | 48 +- Dialogflow/src/V2/SearchAgentsRequest.php | 20 +- .../src/V2/SentimentAnalysisRequestConfig.php | 6 +- Dialogflow/src/V2/SessionEntityType.php | 30 +- .../SessionEntityType/EntityOverrideMode.php | 6 +- .../src/V2/SessionEntityTypesGrpcClient.php | 24 + Dialogflow/src/V2/SetAgentRequest.php | 12 +- Dialogflow/src/V2/SpeechContext.php | 162 +++++ Dialogflow/src/V2/SpeechWordInfo.php | 205 +++++++ .../src/V2/StreamingDetectIntentRequest.php | 81 ++- .../src/V2/StreamingRecognitionResult.php | 80 +++ Dialogflow/src/V2/TextInput.php | 12 +- Dialogflow/src/V2/TrainAgentRequest.php | 6 +- Dialogflow/src/V2/UpdateContextRequest.php | 12 +- Dialogflow/src/V2/UpdateEntityTypeRequest.php | 18 +- Dialogflow/src/V2/UpdateIntentRequest.php | 24 +- .../src/V2/UpdateSessionEntityTypeRequest.php | 12 +- Dialogflow/src/V2/VoiceSelectionParams.php | 20 +- Dialogflow/src/V2/WebhookResponse.php | 60 ++ Dialogflow/synth.metadata | 12 +- Dialogflow/synth.py | 2 +- .../tests/Unit/V2/EntityTypesClientTest.php | 6 + 123 files changed, 4488 insertions(+), 1648 deletions(-) create mode 100644 Dialogflow/src/V2/Intent/Message/BrowseCarouselCard.php create mode 100644 Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem.php create mode 100644 Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction.php create mode 100644 Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction/UrlTypeHint.php create mode 100644 Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/ImageDisplayOptions.php create mode 100644 Dialogflow/src/V2/Intent/Message/ColumnProperties.php create mode 100644 Dialogflow/src/V2/Intent/Message/ColumnProperties/HorizontalAlignment.php create mode 100644 Dialogflow/src/V2/Intent/Message/MediaContent.php create mode 100644 Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaObject.php create mode 100644 Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaType.php create mode 100644 Dialogflow/src/V2/Intent/Message/TableCard.php create mode 100644 Dialogflow/src/V2/Intent/Message/TableCardCell.php create mode 100644 Dialogflow/src/V2/Intent/Message/TableCardRow.php create mode 100644 Dialogflow/src/V2/Intent_Message_BrowseCarouselCard.php create mode 100644 Dialogflow/src/V2/Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem.php create mode 100644 Dialogflow/src/V2/Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction.php create mode 100644 Dialogflow/src/V2/Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint.php create mode 100644 Dialogflow/src/V2/Intent_Message_BrowseCarouselCard_ImageDisplayOptions.php create mode 100644 Dialogflow/src/V2/Intent_Message_ColumnProperties.php create mode 100644 Dialogflow/src/V2/Intent_Message_ColumnProperties_HorizontalAlignment.php create mode 100644 Dialogflow/src/V2/Intent_Message_MediaContent.php create mode 100644 Dialogflow/src/V2/Intent_Message_MediaContent_ResponseMediaObject.php create mode 100644 Dialogflow/src/V2/Intent_Message_MediaContent_ResponseMediaType.php create mode 100644 Dialogflow/src/V2/Intent_Message_TableCard.php create mode 100644 Dialogflow/src/V2/Intent_Message_TableCardCell.php create mode 100644 Dialogflow/src/V2/Intent_Message_TableCardRow.php create mode 100644 Dialogflow/src/V2/SpeechContext.php create mode 100644 Dialogflow/src/V2/SpeechWordInfo.php diff --git a/Dialogflow/metadata/V2/Agent.php b/Dialogflow/metadata/V2/Agent.php index e67276a52058..882627214423 100644 --- a/Dialogflow/metadata/V2/Agent.php +++ b/Dialogflow/metadata/V2/Agent.php @@ -15,114 +15,146 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0afe170a26676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0a881f0a26676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f6167656e742e70726f746f121a676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76321a23676f6f676c652f6c6f6e6772756e6e696e" . - "672f6f7065726174696f6e732e70726f746f1a1b676f6f676c652f70726f" . - "746f6275662f656d7074792e70726f746f1a20676f6f676c652f70726f74" . - "6f6275662f6669656c645f6d61736b2e70726f746f1a17676f6f676c652f" . - "6170692f636c69656e742e70726f746f22c4050a054167656e74120e0a06" . - "706172656e7418012001280912140a0c646973706c61795f6e616d651802" . - "20012809121d0a1564656661756c745f6c616e67756167655f636f646518" . - "032001280912200a18737570706f727465645f6c616e67756167655f636f" . - "64657318042003280912110a0974696d655f7a6f6e651805200128091213" . - "0a0b6465736372697074696f6e18062001280912120a0a6176617461725f" . - "75726918072001280912160a0e656e61626c655f6c6f6767696e67180820" . - "012808123f0a0a6d617463685f6d6f646518092001280e322b2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e4167656e742e4d" . - "617463684d6f646512200a18636c617373696669636174696f6e5f746872" . - "6573686f6c64180a2001280212410a0b6170695f76657273696f6e180e20" . - "01280e322c2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e4167656e742e41706956657273696f6e12340a0474696572180f20" . - "01280e32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e4167656e742e5469657222560a094d617463684d6f6465121a0a16" . - "4d415443485f4d4f44455f554e535045434946494544100012150a114d41" . - "5443485f4d4f44455f485942524944100112160a124d415443485f4d4f44" . - "455f4d4c5f4f4e4c591002226c0a0a41706956657273696f6e121b0a1741" . - "50495f56455253494f4e5f554e535045434946494544100012120a0e4150" . - "495f56455253494f4e5f5631100112120a0e4150495f56455253494f4e5f" . - "5632100212190a154150495f56455253494f4e5f56325f424554415f3110" . - "03225e0a045469657212140a10544945525f554e53504543494649454410" . - "0012110a0d544945525f5354414e44415244100112130a0f544945525f45" . - "4e5445525052495345100212180a14544945525f454e5445525052495345" . - "5f504c5553100322210a0f4765744167656e7452657175657374120e0a06" . - "706172656e7418012001280922740a0f5365744167656e74526571756573" . - "7412300a056167656e7418012001280b32212e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e4167656e74122f0a0b7570646174" . - "655f6d61736b18022001280b321a2e676f6f676c652e70726f746f627566" . - "2e4669656c644d61736b22240a1244656c6574654167656e745265717565" . - "7374120e0a06706172656e74180120012809224c0a135365617263684167" . - "656e747352657175657374120e0a06706172656e7418012001280912110a" . - "09706167655f73697a6518022001280512120a0a706167655f746f6b656e" . - "18032001280922620a145365617263684167656e7473526573706f6e7365" . - "12310a066167656e747318012003280b32212e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e4167656e7412170a0f6e6578745f" . - "706167655f746f6b656e18022001280922230a11547261696e4167656e74" . - "52657175657374120e0a06706172656e7418012001280922370a12457870" . - "6f72744167656e7452657175657374120e0a06706172656e741801200128" . - "0912110a096167656e745f757269180220012809224c0a134578706f7274" . - "4167656e74526573706f6e736512130a096167656e745f75726918012001" . - "2809480012170a0d6167656e745f636f6e74656e7418022001280c480042" . - "070a056167656e74225b0a12496d706f72744167656e7452657175657374" . - "120e0a06706172656e7418012001280912130a096167656e745f75726918" . + "616c6f67666c6f772e76321a17676f6f676c652f6170692f636c69656e74" . + "2e70726f746f1a1f676f6f676c652f6170692f6669656c645f6265686176" . + "696f722e70726f746f1a19676f6f676c652f6170692f7265736f75726365" . + "2e70726f746f1a23676f6f676c652f6c6f6e6772756e6e696e672f6f7065" . + "726174696f6e732e70726f746f1a1b676f6f676c652f70726f746f627566" . + "2f656d7074792e70726f746f1a20676f6f676c652f70726f746f6275662f" . + "6669656c645f6d61736b2e70726f746f22f0060a054167656e7412430a06" . + "706172656e741801200128094233e04102fa412d0a2b636c6f7564726573" . + "6f757263656d616e616765722e676f6f676c65617069732e636f6d2f5072" . + "6f6a65637412190a0c646973706c61795f6e616d651802200128094203e0" . + "410212220a1564656661756c745f6c616e67756167655f636f6465180320" . + "0128094203e0410212250a18737570706f727465645f6c616e6775616765" . + "5f636f6465731804200328094203e0410112160a0974696d655f7a6f6e65" . + "1805200128094203e0410212180a0b6465736372697074696f6e18062001" . + "28094203e0410112170a0a6176617461725f7572691807200128094203e0" . + "4101121b0a0e656e61626c655f6c6f6767696e671808200128084203e041" . + "0112440a0a6d617463685f6d6f646518092001280e322b2e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e4167656e742e4d6174" . + "63684d6f64654203e0410112250a18636c617373696669636174696f6e5f" . + "7468726573686f6c64180a200128024203e0410112460a0b6170695f7665" . + "7273696f6e180e2001280e322c2e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e4167656e742e41706956657273696f6e4203e0" . + "410112390a0474696572180f2001280e32262e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e4167656e742e546965724203e041" . + "0122560a094d617463684d6f6465121a0a164d415443485f4d4f44455f55" . + "4e535045434946494544100012150a114d415443485f4d4f44455f485942" . + "524944100112160a124d415443485f4d4f44455f4d4c5f4f4e4c59100222" . + "6c0a0a41706956657273696f6e121b0a174150495f56455253494f4e5f55" . + "4e535045434946494544100012120a0e4150495f56455253494f4e5f5631" . + "100112120a0e4150495f56455253494f4e5f5632100212190a154150495f" . + "56455253494f4e5f56325f424554415f311003225e0a045469657212140a" . + "10544945525f554e535045434946494544100012110a0d544945525f5354" . + "414e44415244100112130a0f544945525f454e5445525052495345100212" . + "180a14544945525f454e54455250524953455f504c555310033a3eea413b" . + "0a1f6469616c6f67666c6f772e676f6f676c65617069732e636f6d2f4167" . + "656e74121870726f6a656374732f7b70726f6a6563747d2f6167656e7422" . + "560a0f4765744167656e745265717565737412430a06706172656e741801" . + "200128094233e04102fa412d0a2b636c6f75647265736f757263656d616e" . + "616765722e676f6f676c65617069732e636f6d2f50726f6a656374227e0a" . + "0f5365744167656e745265717565737412350a056167656e741801200128" . + "0b32212e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e4167656e744203e0410212340a0b7570646174655f6d61736b18022001" . + "280b321a2e676f6f676c652e70726f746f6275662e4669656c644d61736b" . + "4203e0410122590a1244656c6574654167656e745265717565737412430a" . + "06706172656e741801200128094233e04102fa412d0a2b636c6f75647265" . + "736f757263656d616e616765722e676f6f676c65617069732e636f6d2f50" . + "726f6a6563742286010a135365617263684167656e747352657175657374" . + "12430a06706172656e741801200128094233e04102fa412d0a2b636c6f75" . + "647265736f757263656d616e616765722e676f6f676c65617069732e636f" . + "6d2f50726f6a65637412160a09706167655f73697a651802200128054203" . + "e0410112120a0a706167655f746f6b656e18032001280922620a14536561" . + "7263684167656e7473526573706f6e736512310a066167656e7473180120" . + "03280b32212e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e4167656e7412170a0f6e6578745f706167655f746f6b656e180220" . + "01280922580a11547261696e4167656e745265717565737412430a067061" . + "72656e741801200128094233e04102fa412d0a2b636c6f75647265736f75" . + "7263656d616e616765722e676f6f676c65617069732e636f6d2f50726f6a" . + "65637422710a124578706f72744167656e745265717565737412430a0670" . + "6172656e741801200128094233e04102fa412d0a2b636c6f75647265736f" . + "757263656d616e616765722e676f6f676c65617069732e636f6d2f50726f" . + "6a65637412160a096167656e745f7572691802200128094203e04102224c" . + "0a134578706f72744167656e74526573706f6e736512130a096167656e74" . + "5f757269180120012809480012170a0d6167656e745f636f6e74656e7418" . + "022001280c480042070a056167656e742290010a12496d706f7274416765" . + "6e745265717565737412430a06706172656e741801200128094233e04102" . + "fa412d0a2b636c6f75647265736f757263656d616e616765722e676f6f67" . + "6c65617069732e636f6d2f50726f6a65637412130a096167656e745f7572" . + "69180220012809480012170a0d6167656e745f636f6e74656e7418032001" . + "280c480042070a056167656e742291010a13526573746f72654167656e74" . + "5265717565737412430a06706172656e741801200128094233e04102fa41" . + "2d0a2b636c6f75647265736f757263656d616e616765722e676f6f676c65" . + "617069732e636f6d2f50726f6a65637412130a096167656e745f75726918" . "0220012809480012170a0d6167656e745f636f6e74656e7418032001280c" . - "480042070a056167656e74225c0a13526573746f72654167656e74526571" . - "75657374120e0a06706172656e7418012001280912130a096167656e745f" . - "757269180220012809480012170a0d6167656e745f636f6e74656e741803" . - "2001280c480042070a056167656e7432f7090a064167656e74731281010a" . - "084765744167656e74122b2e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e4765744167656e74526571756573741a212e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e4167656e7422" . - "2582d3e493021f121d2f76322f7b706172656e743d70726f6a656374732f" . - "2a7d2f6167656e74128e010a085365744167656e74122b2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e5365744167656e7452" . - "6571756573741a212e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e4167656e74223282d3e493022c22232f76322f7b6167656e" . - "742e706172656e743d70726f6a656374732f2a7d2f6167656e743a056167" . - "656e74127c0a0b44656c6574654167656e74122e2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e44656c6574654167656e7452" . - "6571756573741a162e676f6f676c652e70726f746f6275662e456d707479" . - "222582d3e493021f2a1d2f76322f7b706172656e743d70726f6a65637473" . - "2f2a7d2f6167656e74129f010a0c5365617263684167656e7473122f2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53656172" . - "63684167656e7473526571756573741a302e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e5365617263684167656e7473526573" . - "706f6e7365222c82d3e493022612242f76322f7b706172656e743d70726f" . - "6a656374732f2a7d2f6167656e743a736561726368128a010a0a54726169" . - "6e4167656e74122d2e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e547261696e4167656e74526571756573741a1d2e676f6f67" . - "6c652e6c6f6e6772756e6e696e672e4f7065726174696f6e222e82d3e493" . - "022822232f76322f7b706172656e743d70726f6a656374732f2a7d2f6167" . - "656e743a747261696e3a012a128d010a0b4578706f72744167656e74122e" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4578" . - "706f72744167656e74526571756573741a1d2e676f6f676c652e6c6f6e67" . - "72756e6e696e672e4f7065726174696f6e222f82d3e493022922242f7632" . - "2f7b706172656e743d70726f6a656374732f2a7d2f6167656e743a657870" . - "6f72743a012a128d010a0b496d706f72744167656e74122e2e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e496d706f72744167" . - "656e74526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e" . - "672e4f7065726174696f6e222f82d3e493022922242f76322f7b70617265" . - "6e743d70726f6a656374732f2a7d2f6167656e743a696d706f72743a012a" . - "1290010a0c526573746f72654167656e74122f2e676f6f676c652e636c6f" . - "75642e6469616c6f67666c6f772e76322e526573746f72654167656e7452" . + "480042070a056167656e74328f0c0a064167656e7473128a010a08476574" . + "4167656e74122b2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . + "772e76322e4765744167656e74526571756573741a212e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e4167656e74222e82d3e4" . + "93021f121d2f76322f7b706172656e743d70726f6a656374732f2a7d2f61" . + "67656e74da4106706172656e741296010a085365744167656e74122b2e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53657441" . + "67656e74526571756573741a212e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e4167656e74223a82d3e493022c22232f76322f" . + "7b6167656e742e706172656e743d70726f6a656374732f2a7d2f6167656e" . + "743a056167656e74da41056167656e741285010a0b44656c657465416765" . + "6e74122e2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e44656c6574654167656e74526571756573741a162e676f6f676c652e" . + "70726f746f6275662e456d707479222e82d3e493021f2a1d2f76322f7b70" . + "6172656e743d70726f6a656374732f2a7d2f6167656e74da410670617265" . + "6e7412a8010a0c5365617263684167656e7473122f2e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e5365617263684167656e74" . + "73526571756573741a302e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e5365617263684167656e7473526573706f6e73652235" . + "82d3e493022612242f76322f7b706172656e743d70726f6a656374732f2a" . + "7d2f6167656e743a736561726368da4106706172656e7412c5010a0a5472" . + "61696e4167656e74122d2e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e547261696e4167656e74526571756573741a1d2e676f" . + "6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e226982d3" . + "e493022822232f76322f7b706172656e743d70726f6a656374732f2a7d2f" . + "6167656e743a747261696e3a012ada4106706172656e74ca412f0a15676f" . + "6f676c652e70726f746f6275662e456d7074791216676f6f676c652e7072" . + "6f746f6275662e53747275637412e2010a0b4578706f72744167656e7412" . + "2e2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e45" . + "78706f72744167656e74526571756573741a1d2e676f6f676c652e6c6f6e" . + "6772756e6e696e672e4f7065726174696f6e22830182d3e493022922242f" . + "76322f7b706172656e743d70726f6a656374732f2a7d2f6167656e743a65" . + "78706f72743a012ada4106706172656e74ca41480a2e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e4578706f72744167656e74" . + "526573706f6e73651216676f6f676c652e70726f746f6275662e53747275" . + "637412bf010a0b496d706f72744167656e74122e2e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e496d706f72744167656e7452" . "6571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f70" . - "65726174696f6e223082d3e493022a22252f76322f7b706172656e743d70" . - "726f6a656374732f2a7d2f6167656e743a726573746f72653a012a1a78ca" . - "41196469616c6f67666c6f772e676f6f676c65617069732e636f6dd24159" . - "68747470733a2f2f7777772e676f6f676c65617069732e636f6d2f617574" . - "682f636c6f75642d706c6174666f726d2c68747470733a2f2f7777772e67" . - "6f6f676c65617069732e636f6d2f617574682f6469616c6f67666c6f7742" . - "99010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e7632420a4167656e7450726f746f50015a44676f6f676c652e676f6c" . - "616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c" . - "6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f801" . - "01a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c" . - "6f772e5632620670726f746f33" + "65726174696f6e226182d3e493022922242f76322f7b706172656e743d70" . + "726f6a656374732f2a7d2f6167656e743a696d706f72743a012aca412f0a" . + "15676f6f676c652e70726f746f6275662e456d7074791216676f6f676c65" . + "2e70726f746f6275662e53747275637412c2010a0c526573746f72654167" . + "656e74122f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e526573746f72654167656e74526571756573741a1d2e676f6f676c" . + "652e6c6f6e6772756e6e696e672e4f7065726174696f6e226282d3e49302" . + "2a22252f76322f7b706172656e743d70726f6a656374732f2a7d2f616765" . + "6e743a726573746f72653a012aca412f0a15676f6f676c652e70726f746f" . + "6275662e456d7074791216676f6f676c652e70726f746f6275662e537472" . + "7563741a78ca41196469616c6f67666c6f772e676f6f676c65617069732e" . + "636f6dd2415968747470733a2f2f7777772e676f6f676c65617069732e63" . + "6f6d2f617574682f636c6f75642d706c6174666f726d2c68747470733a2f" . + "2f7777772e676f6f676c65617069732e636f6d2f617574682f6469616c6f" . + "67666c6f774299010a1e636f6d2e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e7632420a4167656e7450726f746f50015a44676f6f67" . + "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . + "7069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67" . + "666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e4469" . + "616c6f67666c6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/AudioConfig.php b/Dialogflow/metadata/V2/AudioConfig.php index 84aae1fe0d76..b3f7aef850f0 100644 --- a/Dialogflow/metadata/V2/AudioConfig.php +++ b/Dialogflow/metadata/V2/AudioConfig.php @@ -14,67 +14,82 @@ public static function initOnce() { if (static::$is_initialized == true) { return; } + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aaf0d0a2d676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0ab3100a2d676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f617564696f5f636f6e6669672e70726f746f121a676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76321a1c676f6f676c652f617069" . - "2f616e6e6f746174696f6e732e70726f746f22fe010a10496e7075744175" . - "64696f436f6e66696712410a0e617564696f5f656e636f64696e67180120" . - "01280e32292e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e417564696f456e636f64696e6712190a1173616d706c655f726174" . - "655f686572747a18022001280512150a0d6c616e67756167655f636f6465" . - "18032001280912140a0c7068726173655f68696e74731804200328091245" . - "0a0d6d6f64656c5f76617269616e74180a2001280e322e2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e5370656563684d6f64" . - "656c56617269616e7412180a1073696e676c655f7574746572616e636518" . - "082001280822660a14566f69636553656c656374696f6e506172616d7312" . - "0c0a046e616d6518012001280912400a0b73736d6c5f67656e6465721802" . - "2001280e322b2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e53736d6c566f69636547656e64657222b3010a1653796e746865" . - "73697a65537065656368436f6e66696712150a0d737065616b696e675f72" . - "617465180120012801120d0a05706974636818022001280112160a0e766f" . - "6c756d655f6761696e5f6462180320012801121a0a12656666656374735f" . - "70726f66696c655f6964180520032809123f0a05766f6963651804200128" . - "0b32302e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e566f69636553656c656374696f6e506172616d7322cd010a114f757470" . - "7574417564696f436f6e66696712470a0e617564696f5f656e636f64696e" . - "6718012001280e322f2e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e4f7574707574417564696f456e636f64696e6712190a11" . - "73616d706c655f726174655f686572747a18022001280512540a1873796e" . - "74686573697a655f7370656563685f636f6e66696718032001280b32322e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53796e" . - "74686573697a65537065656368436f6e6669672afb010a0d417564696f45" . - "6e636f64696e67121e0a1a415544494f5f454e434f44494e475f554e5350" . - "454349464945441000121c0a18415544494f5f454e434f44494e475f4c49" . - "4e4541525f3136100112170a13415544494f5f454e434f44494e475f464c" . - "4143100212180a14415544494f5f454e434f44494e475f4d554c41571003" . - "12160a12415544494f5f454e434f44494e475f414d52100412190a154155" . - "44494f5f454e434f44494e475f414d525f57421005121b0a17415544494f" . - "5f454e434f44494e475f4f47475f4f505553100612290a25415544494f5f" . - "454e434f44494e475f53504545585f574954485f4845414445525f425954" . - "4510072a760a125370656563684d6f64656c56617269616e7412240a2053" . - "50454543485f4d4f44454c5f56415249414e545f554e5350454349464945" . - "44100012160a125553455f424553545f415641494c41424c45100112100a" . - "0c5553455f5354414e44415244100212100a0c5553455f454e48414e4345" . - "4410032a8d010a0f53736d6c566f69636547656e64657212210a1d53534d" . - "4c5f564f4943455f47454e4445525f554e5350454349464945441000121a" . - "0a1653534d4c5f564f4943455f47454e4445525f4d414c451001121c0a18" . - "53534d4c5f564f4943455f47454e4445525f46454d414c451002121d0a19" . - "53534d4c5f564f4943455f47454e4445525f4e45555452414c10032aa401" . - "0a134f7574707574417564696f456e636f64696e6712250a214f55545055" . - "545f415544494f5f454e434f44494e475f554e5350454349464945441000" . - "12230a1f4f55545055545f415544494f5f454e434f44494e475f4c494e45" . - "41525f31361001121d0a194f55545055545f415544494f5f454e434f4449" . - "4e475f4d5033100212220a1e4f55545055545f415544494f5f454e434f44" . - "494e475f4f47475f4f5055531003429f010a1e636f6d2e676f6f676c652e" . - "636c6f75642e6469616c6f67666c6f772e76324210417564696f436f6e66" . - "696750726f746f50015a44676f6f676c652e676f6c616e672e6f72672f67" . - "656e70726f746f2f676f6f676c65617069732f636c6f75642f6469616c6f" . - "67666c6f772f76323b6469616c6f67666c6f77f80101a202024446aa021a" . - "476f6f676c652e436c6f75642e4469616c6f67666c6f772e563262067072" . - "6f746f33" + "6c6f75642e6469616c6f67666c6f772e76321a19676f6f676c652f617069" . + "2f7265736f757263652e70726f746f1a1e676f6f676c652f70726f746f62" . + "75662f6475726174696f6e2e70726f746f1a1c676f6f676c652f6170692f" . + "616e6e6f746174696f6e732e70726f746f222f0a0d537065656368436f6e" . + "74657874120f0a0770687261736573180120032809120d0a05626f6f7374" . + "1802200128022292010a0e537065656368576f7264496e666f120c0a0477" . + "6f7264180320012809122f0a0c73746172745f6f66667365741801200128" . + "0b32192e676f6f676c652e70726f746f6275662e4475726174696f6e122d" . + "0a0a656e645f6f666673657418022001280b32192e676f6f676c652e7072" . + "6f746f6275662e4475726174696f6e12120a0a636f6e666964656e636518" . + "04200128022281030a10496e707574417564696f436f6e66696712410a0e" . + "617564696f5f656e636f64696e6718012001280e32292e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e417564696f456e636f64" . + "696e6712190a1173616d706c655f726174655f686572747a180220012805" . + "12150a0d6c616e67756167655f636f6465180320012809121d0a10656e61" . + "626c655f776f72645f696e666f180d200128084203e04101121b0a0c7068" . + "726173655f68696e747318042003280942051801e0410112470a0f737065" . + "6563685f636f6e7465787473180b2003280b32292e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e537065656368436f6e746578" . + "744203e0410112120a056d6f64656c1807200128094203e0410112450a0d" . + "6d6f64656c5f76617269616e74180a2001280e322e2e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e5370656563684d6f64656c" . + "56617269616e7412180a1073696e676c655f7574746572616e6365180820" . + "01280822660a14566f69636553656c656374696f6e506172616d73120c0a" . + "046e616d6518012001280912400a0b73736d6c5f67656e64657218022001" . + "280e322b2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e53736d6c566f69636547656e64657222b3010a1653796e7468657369" . + "7a65537065656368436f6e66696712150a0d737065616b696e675f726174" . + "65180120012801120d0a05706974636818022001280112160a0e766f6c75" . + "6d655f6761696e5f6462180320012801121a0a12656666656374735f7072" . + "6f66696c655f6964180520032809123f0a05766f69636518042001280b32" . + "302e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e56" . + "6f69636553656c656374696f6e506172616d7322cd010a114f7574707574" . + "417564696f436f6e66696712470a0e617564696f5f656e636f64696e6718" . + "012001280e322f2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . + "772e76322e4f7574707574417564696f456e636f64696e6712190a117361" . + "6d706c655f726174655f686572747a18022001280512540a1873796e7468" . + "6573697a655f7370656563685f636f6e66696718032001280b32322e676f" . + "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53796e7468" . + "6573697a65537065656368436f6e6669672afb010a0d417564696f456e63" . + "6f64696e67121e0a1a415544494f5f454e434f44494e475f554e53504543" . + "49464945441000121c0a18415544494f5f454e434f44494e475f4c494e45" . + "41525f3136100112170a13415544494f5f454e434f44494e475f464c4143" . + "100212180a14415544494f5f454e434f44494e475f4d554c415710031216" . + "0a12415544494f5f454e434f44494e475f414d52100412190a1541554449" . + "4f5f454e434f44494e475f414d525f57421005121b0a17415544494f5f45" . + "4e434f44494e475f4f47475f4f505553100612290a25415544494f5f454e" . + "434f44494e475f53504545585f574954485f4845414445525f4259544510" . + "072a760a125370656563684d6f64656c56617269616e7412240a20535045" . + "4543485f4d4f44454c5f56415249414e545f554e53504543494649454410" . + "0012160a125553455f424553545f415641494c41424c45100112100a0c55" . + "53455f5354414e44415244100212100a0c5553455f454e48414e43454410" . + "032a8d010a0f53736d6c566f69636547656e64657212210a1d53534d4c5f" . + "564f4943455f47454e4445525f554e5350454349464945441000121a0a16" . + "53534d4c5f564f4943455f47454e4445525f4d414c451001121c0a185353" . + "4d4c5f564f4943455f47454e4445525f46454d414c451002121d0a195353" . + "4d4c5f564f4943455f47454e4445525f4e45555452414c10032aa4010a13" . + "4f7574707574417564696f456e636f64696e6712250a214f55545055545f" . + "415544494f5f454e434f44494e475f554e53504543494649454410001223" . + "0a1f4f55545055545f415544494f5f454e434f44494e475f4c494e454152" . + "5f31361001121d0a194f55545055545f415544494f5f454e434f44494e47" . + "5f4d5033100212220a1e4f55545055545f415544494f5f454e434f44494e" . + "475f4f47475f4f5055531003429f010a1e636f6d2e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76324210417564696f436f6e666967" . + "50726f746f50015a44676f6f676c652e676f6c616e672e6f72672f67656e" . + "70726f746f2f676f6f676c65617069732f636c6f75642f6469616c6f6766" . + "6c6f772f76323b6469616c6f67666c6f77f80101a202024446aa021a476f" . + "6f676c652e436c6f75642e4469616c6f67666c6f772e5632620670726f74" . + "6f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Context.php b/Dialogflow/metadata/V2/Context.php index 2a9abaa217d5..aaeb7ac6a465 100644 --- a/Dialogflow/metadata/V2/Context.php +++ b/Dialogflow/metadata/V2/Context.php @@ -15,82 +15,94 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ab4100a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0af0120a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f636f6e746578742e70726f746f121a676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76321a1b676f6f676c652f70726f746f627566" . - "2f656d7074792e70726f746f1a20676f6f676c652f70726f746f6275662f" . - "6669656c645f6d61736b2e70726f746f1a1c676f6f676c652f70726f746f" . - "6275662f7374727563742e70726f746f1a17676f6f676c652f6170692f63" . - "6c69656e742e70726f746f225c0a07436f6e74657874120c0a046e616d65" . - "18012001280912160a0e6c6966657370616e5f636f756e74180220012805" . - "122b0a0a706172616d657465727318032001280b32172e676f6f676c652e" . - "70726f746f6275662e537472756374224c0a134c697374436f6e74657874" . - "7352657175657374120e0a06706172656e7418012001280912110a097061" . - "67655f73697a6518022001280512120a0a706167655f746f6b656e180320" . - "01280922660a144c697374436f6e7465787473526573706f6e736512350a" . - "08636f6e746578747318012003280b32232e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e436f6e7465787412170a0f6e657874" . - "5f706167655f746f6b656e18022001280922210a11476574436f6e746578" . - "7452657175657374120c0a046e616d65180120012809225c0a1443726561" . - "7465436f6e7465787452657175657374120e0a06706172656e7418012001" . - "280912340a07636f6e7465787418022001280b32232e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e436f6e74657874227d0a14" . - "557064617465436f6e746578745265717565737412340a07636f6e746578" . - "7418012001280b32232e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e436f6e74657874122f0a0b7570646174655f6d61736b18" . - "022001280b321a2e676f6f676c652e70726f746f6275662e4669656c644d" . - "61736b22240a1444656c657465436f6e7465787452657175657374120c0a" . - "046e616d65180120012809222a0a1844656c657465416c6c436f6e746578" . - "747352657175657374120e0a06706172656e7418012001280932e9080a08" . - "436f6e746578747312ac010a0c4c697374436f6e7465787473122f2e676f" . - "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4c69737443" . - "6f6e7465787473526571756573741a302e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e4c697374436f6e746578747352657370" . - "6f6e7365223982d3e493023312312f76322f7b706172656e743d70726f6a" . - "656374732f2a2f6167656e742f73657373696f6e732f2a7d2f636f6e7465" . - "787473129b010a0a476574436f6e74657874122d2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e476574436f6e746578745265" . + "6469616c6f67666c6f772e76321a17676f6f676c652f6170692f636c6965" . + "6e742e70726f746f1a1f676f6f676c652f6170692f6669656c645f626568" . + "6176696f722e70726f746f1a19676f6f676c652f6170692f7265736f7572" . + "63652e70726f746f1a1b676f6f676c652f70726f746f6275662f656d7074" . + "792e70726f746f1a20676f6f676c652f70726f746f6275662f6669656c64" . + "5f6d61736b2e70726f746f1a1c676f6f676c652f70726f746f6275662f73" . + "74727563742e70726f746f22d3010a07436f6e7465787412110a046e616d" . + "651801200128094203e04102121b0a0e6c6966657370616e5f636f756e74" . + "1802200128054203e0410112300a0a706172616d65746572731803200128" . + "0b32172e676f6f676c652e70726f746f6275662e5374727563744203e041" . + "013a66ea41630a216469616c6f67666c6f772e676f6f676c65617069732e" . + "636f6d2f436f6e74657874123e70726f6a656374732f7b70726f6a656374" . + "7d2f6167656e742f73657373696f6e732f7b73657373696f6e7d2f636f6e" . + "74657874732f7b636f6e746578747d225b0a134c697374436f6e74657874" . + "735265717565737412130a06706172656e741801200128094203e0410212" . + "160a09706167655f73697a651802200128054203e0410112170a0a706167" . + "655f746f6b656e1803200128094203e0410122660a144c697374436f6e74" . + "65787473526573706f6e736512350a08636f6e746578747318012003280b" . + "32232e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "436f6e7465787412170a0f6e6578745f706167655f746f6b656e18022001" . + "2809224c0a11476574436f6e746578745265717565737412370a046e616d" . + "651801200128094229e04102fa41230a216469616c6f67666c6f772e676f" . + "6f676c65617069732e636f6d2f436f6e7465787422660a14437265617465" . + "436f6e746578745265717565737412130a06706172656e74180120012809" . + "4203e0410212390a07636f6e7465787418022001280b32232e676f6f676c" . + "652e636c6f75642e6469616c6f67666c6f772e76322e436f6e7465787442" . + "03e041022287010a14557064617465436f6e746578745265717565737412" . + "390a07636f6e7465787418012001280b32232e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e436f6e746578744203e041021234" . + "0a0b7570646174655f6d61736b18022001280b321a2e676f6f676c652e70" . + "726f746f6275662e4669656c644d61736b4203e04101224f0a1444656c65" . + "7465436f6e746578745265717565737412370a046e616d65180120012809" . + "4229e04102fa41230a216469616c6f67666c6f772e676f6f676c65617069" . + "732e636f6d2f436f6e74657874222f0a1844656c657465416c6c436f6e74" . + "657874735265717565737412130a06706172656e741801200128094203e0" . + "410232f2080a08436f6e746578747312b5010a0c4c697374436f6e746578" . + "7473122f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e4c697374436f6e7465787473526571756573741a302e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e4c697374436f6e7465" . + "787473526573706f6e7365224282d3e493023312312f76322f7b70617265" . + "6e743d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a" . + "7d2f636f6e7465787473da4106706172656e74129b010a0a476574436f6e" . + "74657874122d2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e476574436f6e74657874526571756573741a232e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e436f6e746578742239" . + "82d3e493023312312f76322f7b6e616d653d70726f6a656374732f2a2f61" . + "67656e742f73657373696f6e732f2a2f636f6e74657874732f2a7d12aa01" . + "0a0d437265617465436f6e7465787412302e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e437265617465436f6e746578745265" . "71756573741a232e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e436f6e74657874223982d3e493023312312f76322f7b6e616d" . - "653d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a2f" . - "636f6e74657874732f2a7d12aa010a0d437265617465436f6e7465787412" . - "302e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e43" . - "7265617465436f6e74657874526571756573741a232e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e436f6e74657874224282d3" . - "e493023c22312f76322f7b706172656e743d70726f6a656374732f2a2f61" . - "67656e742f73657373696f6e732f2a7d2f636f6e74657874733a07636f6e" . - "7465787412b2010a0d557064617465436f6e7465787412302e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e557064617465436f" . - "6e74657874526571756573741a232e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e436f6e74657874224a82d3e493024432392f" . - "76322f7b636f6e746578742e6e616d653d70726f6a656374732f2a2f6167" . - "656e742f73657373696f6e732f2a2f636f6e74657874732f2a7d3a07636f" . - "6e746578741294010a0d44656c657465436f6e7465787412302e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e44656c65746543" . - "6f6e74657874526571756573741a162e676f6f676c652e70726f746f6275" . - "662e456d707479223982d3e49302332a312f76322f7b6e616d653d70726f" . - "6a656374732f2a2f6167656e742f73657373696f6e732f2a2f636f6e7465" . - "7874732f2a7d129c010a1144656c657465416c6c436f6e74657874731234" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4465" . - "6c657465416c6c436f6e7465787473526571756573741a162e676f6f676c" . - "652e70726f746f6275662e456d707479223982d3e49302332a312f76322f" . - "7b706172656e743d70726f6a656374732f2a2f6167656e742f7365737369" . - "6f6e732f2a7d2f636f6e74657874731a78ca41196469616c6f67666c6f77" . - "2e676f6f676c65617069732e636f6dd2415968747470733a2f2f7777772e" . - "676f6f676c65617069732e636f6d2f617574682f636c6f75642d706c6174" . - "666f726d2c68747470733a2f2f7777772e676f6f676c65617069732e636f" . - "6d2f617574682f6469616c6f67666c6f77429b010a1e636f6d2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e7632420c436f6e746578" . - "7450726f746f50015a44676f6f676c652e676f6c616e672e6f72672f6765" . - "6e70726f746f2f676f6f676c65617069732f636c6f75642f6469616c6f67" . - "666c6f772f76323b6469616c6f67666c6f77f80101a202024446aa021a47" . - "6f6f676c652e436c6f75642e4469616c6f67666c6f772e5632620670726f" . - "746f33" + "772e76322e436f6e74657874224282d3e493023c22312f76322f7b706172" . + "656e743d70726f6a656374732f2a2f6167656e742f73657373696f6e732f" . + "2a7d2f636f6e74657874733a07636f6e7465787412b2010a0d5570646174" . + "65436f6e7465787412302e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e557064617465436f6e74657874526571756573741a23" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e436f" . + "6e74657874224a82d3e493024432392f76322f7b636f6e746578742e6e61" . + "6d653d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a" . + "2f636f6e74657874732f2a7d3a07636f6e746578741294010a0d44656c65" . + "7465436f6e7465787412302e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e44656c657465436f6e74657874526571756573741a" . + "162e676f6f676c652e70726f746f6275662e456d707479223982d3e49302" . + "332a312f76322f7b6e616d653d70726f6a656374732f2a2f6167656e742f" . + "73657373696f6e732f2a2f636f6e74657874732f2a7d129c010a1144656c" . + "657465416c6c436f6e746578747312342e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e44656c657465416c6c436f6e74657874" . + "73526571756573741a162e676f6f676c652e70726f746f6275662e456d70" . + "7479223982d3e49302332a312f76322f7b706172656e743d70726f6a6563" . + "74732f2a2f6167656e742f73657373696f6e732f2a7d2f636f6e74657874" . + "731a78ca41196469616c6f67666c6f772e676f6f676c65617069732e636f" . + "6dd2415968747470733a2f2f7777772e676f6f676c65617069732e636f6d" . + "2f617574682f636c6f75642d706c6174666f726d2c68747470733a2f2f77" . + "77772e676f6f676c65617069732e636f6d2f617574682f6469616c6f6766" . + "6c6f77429b010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e7632420c436f6e7465787450726f746f50015a44676f6f67" . + "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . + "7069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67" . + "666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e4469" . + "616c6f67666c6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/EntityType.php b/Dialogflow/metadata/V2/EntityType.php index 89391da600c4..928373613acb 100644 --- a/Dialogflow/metadata/V2/EntityType.php +++ b/Dialogflow/metadata/V2/EntityType.php @@ -15,154 +15,201 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ab0210a2c676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0af32b0a2c676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f656e746974795f747970652e70726f746f121a676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76321a23676f6f676c652f6c6f6e67" . - "72756e6e696e672f6f7065726174696f6e732e70726f746f1a1b676f6f67" . - "6c652f70726f746f6275662f656d7074792e70726f746f1a20676f6f676c" . - "652f70726f746f6275662f6669656c645f6d61736b2e70726f746f1a1767" . - "6f6f676c652f6170692f636c69656e742e70726f746f22c4030a0a456e74" . - "69747954797065120c0a046e616d6518012001280912140a0c646973706c" . - "61795f6e616d6518022001280912390a046b696e6418032001280e322b2e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e456e74" . - "697479547970652e4b696e6412550a136175746f5f657870616e73696f6e" . - "5f6d6f646518042001280e32382e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e456e74697479547970652e4175746f45787061" . - "6e73696f6e4d6f6465123f0a08656e74697469657318062003280b322d2e" . + "6f75642e6469616c6f67666c6f772e76321a17676f6f676c652f6170692f" . + "636c69656e742e70726f746f1a1f676f6f676c652f6170692f6669656c64" . + "5f6265686176696f722e70726f746f1a19676f6f676c652f6170692f7265" . + "736f757263652e70726f746f1a23676f6f676c652f6c6f6e6772756e6e69" . + "6e672f6f7065726174696f6e732e70726f746f1a1b676f6f676c652f7072" . + "6f746f6275662f656d7074792e70726f746f1a20676f6f676c652f70726f" . + "746f6275662f6669656c645f6d61736b2e70726f746f22f8040a0a456e74" . + "69747954797065120c0a046e616d6518012001280912190a0c646973706c" . + "61795f6e616d651802200128094203e04102123e0a046b696e6418032001" . + "280e322b2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e456e74697479547970652e4b696e644203e04102125a0a136175746f" . + "5f657870616e73696f6e5f6d6f646518042001280e32382e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e456e74697479547970" . + "652e4175746f457870616e73696f6e4d6f64654203e0410112440a08656e" . + "74697469657318062003280b322d2e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e456e74697479547970652e456e7469747942" . + "03e0410112240a17656e61626c655f66757a7a795f65787472616374696f" . + "6e1807200128084203e041011a330a06456e7469747912120a0576616c75" . + "651801200128094203e0410212150a0873796e6f6e796d73180220032809" . + "4203e04102224a0a044b696e6412140a104b494e445f554e535045434946" . + "4945441000120c0a084b494e445f4d41501001120d0a094b494e445f4c49" . + "53541002120f0a0b4b494e445f524547455850100322590a114175746f45" . + "7870616e73696f6e4d6f646512230a1f4155544f5f455850414e53494f4e" . + "5f4d4f44455f554e5350454349464945441000121f0a1b4155544f5f4558" . + "50414e53494f4e5f4d4f44455f44454641554c5410013a5dea415a0a2464" . + "69616c6f67666c6f772e676f6f676c65617069732e636f6d2f456e746974" . + "7954797065123270726f6a656374732f7b70726f6a6563747d2f6167656e" . + "742f656e7469747954797065732f7b656e746974795f747970657d229e01" . + "0a164c697374456e7469747954797065735265717565737412370a067061" . + "72656e741801200128094227e04102fa41210a1f6469616c6f67666c6f77" . + "2e676f6f676c65617069732e636f6d2f4167656e74121a0a0d6c616e6775" . + "6167655f636f64651802200128094203e0410112160a09706167655f7369" . + "7a651803200128054203e0410112170a0a706167655f746f6b656e180420" . + "0128094203e0410122700a174c697374456e746974795479706573526573" . + "706f6e7365123c0a0c656e746974795f747970657318012003280b32262e" . "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e456e74" . - "697479547970652e456e746974791a290a06456e74697479120d0a057661" . - "6c756518012001280912100a0873796e6f6e796d7318022003280922390a" . - "044b696e6412140a104b494e445f554e5350454349464945441000120c0a" . - "084b494e445f4d41501001120d0a094b494e445f4c495354100222590a11" . - "4175746f457870616e73696f6e4d6f646512230a1f4155544f5f45585041" . - "4e53494f4e5f4d4f44455f554e5350454349464945441000121f0a1b4155" . - "544f5f455850414e53494f4e5f4d4f44455f44454641554c54100122660a" . - "164c697374456e74697479547970657352657175657374120e0a06706172" . - "656e7418012001280912150a0d6c616e67756167655f636f646518022001" . - "280912110a09706167655f73697a6518032001280512120a0a706167655f" . - "746f6b656e18042001280922700a174c697374456e746974795479706573" . - "526573706f6e7365123c0a0c656e746974795f747970657318012003280b" . - "32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . - "456e746974795479706512170a0f6e6578745f706167655f746f6b656e18" . - "0220012809223b0a14476574456e74697479547970655265717565737412" . - "0c0a046e616d6518012001280912150a0d6c616e67756167655f636f6465" . - "180220012809227d0a17437265617465456e746974795479706552657175" . - "657374120e0a06706172656e74180120012809123b0a0b656e746974795f" . + "6974795479706512170a0f6e6578745f706167655f746f6b656e18022001" . + "2809226e0a14476574456e746974795479706552657175657374123a0a04" . + "6e616d65180120012809422ce04102fa41260a246469616c6f67666c6f77" . + "2e676f6f676c65617069732e636f6d2f456e7469747954797065121a0a0d" . + "6c616e67756167655f636f64651802200128094203e0410122b0010a1743" . + "7265617465456e74697479547970655265717565737412370a0670617265" . + "6e741801200128094227e04102fa41210a1f6469616c6f67666c6f772e67" . + "6f6f676c65617069732e636f6d2f4167656e7412400a0b656e746974795f" . "7479706518022001280b32262e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e456e746974795479706512150a0d6c616e677561" . - "67655f636f6465180320012809229e010a17557064617465456e74697479" . - "5479706552657175657374123b0a0b656e746974795f7479706518012001" . - "280b32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e456e746974795479706512150a0d6c616e67756167655f636f646518" . - "0220012809122f0a0b7570646174655f6d61736b18032001280b321a2e67" . - "6f6f676c652e70726f746f6275662e4669656c644d61736b22270a174465" . - "6c657465456e746974795479706552657175657374120c0a046e616d6518" . - "012001280922fe010a1d4261746368557064617465456e74697479547970" . - "657352657175657374120e0a06706172656e74180120012809121f0a1565" . - "6e746974795f747970655f62617463685f7572691802200128094800124f" . - "0a18656e746974795f747970655f62617463685f696e6c696e6518032001" . - "280b322b2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e456e74697479547970654261746368480012150a0d6c616e67756167" . - "655f636f6465180420012809122f0a0b7570646174655f6d61736b180520" . - "01280b321a2e676f6f676c652e70726f746f6275662e4669656c644d6173" . - "6b42130a11656e746974795f747970655f6261746368225e0a1e42617463" . - "68557064617465456e746974795479706573526573706f6e7365123c0a0c" . - "656e746974795f747970657318012003280b32262e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e456e7469747954797065224a" . - "0a1d426174636844656c657465456e746974795479706573526571756573" . - "74120e0a06706172656e7418012001280912190a11656e746974795f7479" . - "70655f6e616d65731802200328092284010a1a4261746368437265617465" . - "456e74697469657352657175657374120e0a06706172656e741801200128" . - "09123f0a08656e74697469657318022003280b322d2e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e456e74697479547970652e" . - "456e7469747912150a0d6c616e67756167655f636f646518032001280922" . - "b5010a1a4261746368557064617465456e74697469657352657175657374" . - "120e0a06706172656e74180120012809123f0a08656e7469746965731802" . + "6f67666c6f772e76322e456e74697479547970654203e04102121a0a0d6c" . + "616e67756167655f636f64651803200128094203e0410122ad010a175570" . + "64617465456e74697479547970655265717565737412400a0b656e746974" . + "795f7479706518012001280b32262e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e456e74697479547970654203e04102121a0a" . + "0d6c616e67756167655f636f64651802200128094203e0410112340a0b75" . + "70646174655f6d61736b18032001280b321a2e676f6f676c652e70726f74" . + "6f6275662e4669656c644d61736b4203e0410122550a1744656c65746545" . + "6e746974795479706552657175657374123a0a046e616d65180120012809" . + "422ce04102fa41260a246469616c6f67666c6f772e676f6f676c65617069" . + "732e636f6d2f456e746974795479706522b1020a1d426174636855706461" . + "7465456e7469747954797065735265717565737412370a06706172656e74" . + "1801200128094227e04102fa41210a1f6469616c6f67666c6f772e676f6f" . + "676c65617069732e636f6d2f4167656e74121f0a15656e746974795f7479" . + "70655f62617463685f7572691802200128094800124f0a18656e74697479" . + "5f747970655f62617463685f696e6c696e6518032001280b322b2e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e456e74697479" . + "5479706542617463684800121a0a0d6c616e67756167655f636f64651804" . + "200128094203e0410112340a0b7570646174655f6d61736b18052001280b" . + "321a2e676f6f676c652e70726f746f6275662e4669656c644d61736b4203" . + "e0410142130a11656e746974795f747970655f6261746368225e0a1e4261" . + "746368557064617465456e746974795479706573526573706f6e7365123c" . + "0a0c656e746974795f747970657318012003280b32262e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e456e7469747954797065" . + "22780a1d426174636844656c657465456e74697479547970657352657175" . + "65737412370a06706172656e741801200128094227e04102fa41210a1f64" . + "69616c6f67666c6f772e676f6f676c65617069732e636f6d2f4167656e74" . + "121e0a11656e746974795f747970655f6e616d65731802200328094203e0" . + "410222bc010a1a4261746368437265617465456e74697469657352657175" . + "657374123c0a06706172656e74180120012809422ce04102fa41260a2464" . + "69616c6f67666c6f772e676f6f676c65617069732e636f6d2f456e746974" . + "795479706512440a08656e74697469657318022003280b322d2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e456e7469747954" . + "7970652e456e746974794203e04102121a0a0d6c616e67756167655f636f" . + "64651803200128094203e0410122f2010a1a426174636855706461746545" . + "6e74697469657352657175657374123c0a06706172656e74180120012809" . + "422ce04102fa41260a246469616c6f67666c6f772e676f6f676c65617069" . + "732e636f6d2f456e746974795479706512440a08656e7469746965731802" . "2003280b322d2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e456e74697479547970652e456e7469747912150a0d6c616e6775" . - "6167655f636f6465180320012809122f0a0b7570646174655f6d61736b18" . - "042001280b321a2e676f6f676c652e70726f746f6275662e4669656c644d" . - "61736b225a0a1a426174636844656c657465456e74697469657352657175" . - "657374120e0a06706172656e7418012001280912150a0d656e746974795f" . - "76616c75657318022003280912150a0d6c616e67756167655f636f646518" . - "0320012809224f0a0f456e74697479547970654261746368123c0a0c656e" . - "746974795f747970657318012003280b32262e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e456e746974795479706532fd0e0a" . - "0b456e74697479547970657312ad010a0f4c697374456e74697479547970" . - "657312322e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e4c697374456e746974795479706573526571756573741a332e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e4c697374456e" . - "746974795479706573526573706f6e7365223182d3e493022b12292f7632" . - "2f7b706172656e743d70726f6a656374732f2a2f6167656e747d2f656e74" . - "6974795479706573129c010a0d476574456e746974795479706512302e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e47657445" . - "6e7469747954797065526571756573741a262e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e456e7469747954797065223182d3" . - "e493022b12292f76322f7b6e616d653d70726f6a656374732f2a2f616765" . - "6e742f656e7469747954797065732f2a7d12af010a10437265617465456e" . - "746974795479706512332e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e437265617465456e7469747954797065526571756573" . - "741a262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e456e7469747954797065223e82d3e493023822292f76322f7b70617265" . - "6e743d70726f6a656374732f2a2f6167656e747d2f656e74697479547970" . - "65733a0b656e746974795f7479706512bb010a10557064617465456e7469" . + "2e76322e456e74697479547970652e456e746974794203e04102121a0a0d" . + "6c616e67756167655f636f64651803200128094203e0410112340a0b7570" . + "646174655f6d61736b18042001280b321a2e676f6f676c652e70726f746f" . + "6275662e4669656c644d61736b4203e041012292010a1a42617463684465" . + "6c657465456e74697469657352657175657374123c0a06706172656e7418" . + "0120012809422ce04102fa41260a246469616c6f67666c6f772e676f6f67" . + "6c65617069732e636f6d2f456e7469747954797065121a0a0d656e746974" . + "795f76616c7565731802200328094203e04102121a0a0d6c616e67756167" . + "655f636f64651803200128094203e04101224f0a0f456e74697479547970" . + "654261746368123c0a0c656e746974795f747970657318012003280b3226" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e456e" . + "746974795479706532e4130a0b456e74697479547970657312cd010a0f4c" . + "697374456e74697479547970657312322e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e4c697374456e74697479547970657352" . + "6571756573741a332e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e4c697374456e746974795479706573526573706f6e736522" . + "5182d3e493022b12292f76322f7b706172656e743d70726f6a656374732f" . + "2a2f6167656e747d2f656e746974795479706573da4106706172656e74da" . + "4114706172656e742c6c616e67756167655f636f646512b8010a0d476574" . + "456e746974795479706512302e676f6f676c652e636c6f75642e6469616c" . + "6f67666c6f772e76322e476574456e746974795479706552657175657374" . + "1a262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "456e7469747954797065224d82d3e493022b12292f76322f7b6e616d653d" . + "70726f6a656374732f2a2f6167656e742f656e7469747954797065732f2a" . + "7dda41046e616d65da41126e616d652c6c616e67756167655f636f646512" . + "e7010a10437265617465456e746974795479706512332e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e437265617465456e7469" . + "747954797065526571756573741a262e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e456e7469747954797065227682d3e49302" . + "3822292f76322f7b706172656e743d70726f6a656374732f2a2f6167656e" . + "747d2f656e7469747954797065733a0b656e746974795f74797065da4112" . + "706172656e742c656e746974795f74797065da4120706172656e742c656e" . + "746974795f747970652c6c616e67756167655f636f646512e5010a105570" . + "64617465456e746974795479706512332e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e557064617465456e7469747954797065" . + "526571756573741a262e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e456e7469747954797065227482d3e493024432352f7632" . + "2f7b656e746974795f747970652e6e616d653d70726f6a656374732f2a2f" . + "6167656e742f656e7469747954797065732f2a7d3a0b656e746974795f74" . + "797065da410b656e746974795f74797065da4119656e746974795f747970" . + "652c6c616e67756167655f636f64651299010a1044656c657465456e7469" . "74795479706512332e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e557064617465456e7469747954797065526571756573741a" . - "262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e45" . - "6e7469747954797065224a82d3e493024432352f76322f7b656e74697479" . - "5f747970652e6e616d653d70726f6a656374732f2a2f6167656e742f656e" . - "7469747954797065732f2a7d3a0b656e746974795f747970651292010a10" . - "44656c657465456e746974795479706512332e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e44656c657465456e746974795479" . - "7065526571756573741a162e676f6f676c652e70726f746f6275662e456d" . - "707479223182d3e493022b2a292f76322f7b6e616d653d70726f6a656374" . - "732f2a2f6167656e742f656e7469747954797065732f2a7d12b4010a1642" . - "61746368557064617465456e74697479547970657312392e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e426174636855706461" . - "7465456e746974795479706573526571756573741a1d2e676f6f676c652e" . - "6c6f6e6772756e6e696e672e4f7065726174696f6e224082d3e493023a22" . - "352f76322f7b706172656e743d70726f6a656374732f2a2f6167656e747d" . - "2f656e7469747954797065733a62617463685570646174653a012a12b401" . - "0a16426174636844656c657465456e74697479547970657312392e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e426174636844" . - "656c657465456e746974795479706573526571756573741a1d2e676f6f67" . - "6c652e6c6f6e6772756e6e696e672e4f7065726174696f6e224082d3e493" . - "023a22352f76322f7b706172656e743d70726f6a656374732f2a2f616765" . - "6e747d2f656e7469747954797065733a626174636844656c6574653a012a" . - "12b9010a134261746368437265617465456e74697469657312362e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e426174636843" . - "7265617465456e746974696573526571756573741a1d2e676f6f676c652e" . - "6c6f6e6772756e6e696e672e4f7065726174696f6e224b82d3e493024522" . - "402f76322f7b706172656e743d70726f6a656374732f2a2f6167656e742f" . - "656e7469747954797065732f2a7d2f656e7469746965733a626174636843" . - "72656174653a012a12b9010a134261746368557064617465456e74697469" . - "657312362e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e4261746368557064617465456e746974696573526571756573741a1d" . - "2e676f6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e22" . - "4b82d3e493024522402f76322f7b706172656e743d70726f6a656374732f" . - "2a2f6167656e742f656e7469747954797065732f2a7d2f656e7469746965" . - "733a62617463685570646174653a012a12b9010a13426174636844656c65" . - "7465456e74697469657312362e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e426174636844656c657465456e74697469657352" . - "6571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f70" . - "65726174696f6e224b82d3e493024522402f76322f7b706172656e743d70" . - "726f6a656374732f2a2f6167656e742f656e7469747954797065732f2a7d" . - "2f656e7469746965733a626174636844656c6574653a012a1a78ca411964" . - "69616c6f67666c6f772e676f6f676c65617069732e636f6dd24159687474" . - "70733a2f2f7777772e676f6f676c65617069732e636f6d2f617574682f63" . - "6c6f75642d706c6174666f726d2c68747470733a2f2f7777772e676f6f67" . - "6c65617069732e636f6d2f617574682f6469616c6f67666c6f77429e010a" . - "1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "32420f456e746974795479706550726f746f50015a44676f6f676c652e67" . - "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . - "636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77" . - "f80101a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67" . - "666c6f772e5632620670726f746f33" + "6f772e76322e44656c657465456e7469747954797065526571756573741a" . + "162e676f6f676c652e70726f746f6275662e456d707479223882d3e49302" . + "2b2a292f76322f7b6e616d653d70726f6a656374732f2a2f6167656e742f" . + "656e7469747954797065732f2a7dda41046e616d65128b020a1642617463" . + "68557064617465456e74697479547970657312392e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e426174636855706461746545" . + "6e746974795479706573526571756573741a1d2e676f6f676c652e6c6f6e" . + "6772756e6e696e672e4f7065726174696f6e22960182d3e493023a22352f" . + "76322f7b706172656e743d70726f6a656374732f2a2f6167656e747d2f65" . + "6e7469747954797065733a62617463685570646174653a012aca41530a39" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e426174" . + "6368557064617465456e746974795479706573526573706f6e7365121667" . + "6f6f676c652e70726f746f6275662e53747275637412e6010a1642617463" . + "6844656c657465456e74697479547970657312392e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e426174636844656c65746545" . + "6e746974795479706573526571756573741a1d2e676f6f676c652e6c6f6e" . + "6772756e6e696e672e4f7065726174696f6e227282d3e493023a22352f76" . + "322f7b706172656e743d70726f6a656374732f2a2f6167656e747d2f656e" . + "7469747954797065733a626174636844656c6574653a012aca412f0a1567" . + "6f6f676c652e70726f746f6275662e456d7074791216676f6f676c652e70" . + "726f746f6275662e537472756374129e020a134261746368437265617465" . + "456e74697469657312362e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e4261746368437265617465456e746974696573526571" . + "756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f706572" . + "6174696f6e22af0182d3e493024522402f76322f7b706172656e743d7072" . + "6f6a656374732f2a2f6167656e742f656e7469747954797065732f2a7d2f" . + "656e7469746965733a62617463684372656174653a012ada410f70617265" . + "6e742c656e746974696573da411d706172656e742c656e7469746965732c" . + "6c616e67756167655f636f6465ca412f0a15676f6f676c652e70726f746f" . + "6275662e456d7074791216676f6f676c652e70726f746f6275662e537472" . + "756374129e020a134261746368557064617465456e74697469657312362e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e426174" . + "6368557064617465456e746974696573526571756573741a1d2e676f6f67" . + "6c652e6c6f6e6772756e6e696e672e4f7065726174696f6e22af0182d3e4" . + "93024522402f76322f7b706172656e743d70726f6a656374732f2a2f6167" . + "656e742f656e7469747954797065732f2a7d2f656e7469746965733a6261" . + "7463685570646174653a012ada410f706172656e742c656e746974696573" . + "da411d706172656e742c656e7469746965732c6c616e67756167655f636f" . + "6465ca412f0a15676f6f676c652e70726f746f6275662e456d7074791216" . + "676f6f676c652e70726f746f6275662e53747275637412a8020a13426174" . + "636844656c657465456e74697469657312362e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e426174636844656c657465456e74" . + "6974696573526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e" . + "696e672e4f7065726174696f6e22b90182d3e493024522402f76322f7b70" . + "6172656e743d70726f6a656374732f2a2f6167656e742f656e7469747954" . + "797065732f2a7d2f656e7469746965733a626174636844656c6574653a01" . + "2ada4114706172656e742c656e746974795f76616c756573da4122706172" . + "656e742c656e746974795f76616c7565732c6c616e67756167655f636f64" . + "65ca412f0a15676f6f676c652e70726f746f6275662e456d707479121667" . + "6f6f676c652e70726f746f6275662e5374727563741a78ca41196469616c" . + "6f67666c6f772e676f6f676c65617069732e636f6dd2415968747470733a" . + "2f2f7777772e676f6f676c65617069732e636f6d2f617574682f636c6f75" . + "642d706c6174666f726d2c68747470733a2f2f7777772e676f6f676c6561" . + "7069732e636f6d2f617574682f6469616c6f67666c6f77429e010a1e636f" . + "6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632420f" . + "456e746974795479706550726f746f50015a44676f6f676c652e676f6c61" . + "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f" . + "75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f80101" . + "a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c6f" . + "772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Intent.php b/Dialogflow/metadata/V2/Intent.php index d0620a2db7f2..9235ace86128 100644 --- a/Dialogflow/metadata/V2/Intent.php +++ b/Dialogflow/metadata/V2/Intent.php @@ -15,6 +15,9 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Context::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); @@ -22,255 +25,374 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ae6390a27676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0aed550a27676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f696e74656e742e70726f746f121a676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76321a2d676f6f676c652f636c6f75642f646961" . - "6c6f67666c6f772f76322f617564696f5f636f6e6669672e70726f746f1a" . - "28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76322f636f" . - "6e746578742e70726f746f1a23676f6f676c652f6c6f6e6772756e6e696e" . - "672f6f7065726174696f6e732e70726f746f1a1e676f6f676c652f70726f" . - "746f6275662f6475726174696f6e2e70726f746f1a1b676f6f676c652f70" . - "726f746f6275662f656d7074792e70726f746f1a20676f6f676c652f7072" . - "6f746f6275662f6669656c645f6d61736b2e70726f746f1a1c676f6f676c" . - "652f70726f746f6275662f7374727563742e70726f746f1a17676f6f676c" . - "652f6170692f636c69656e742e70726f746f228c210a06496e74656e7412" . - "0c0a046e616d6518012001280912140a0c646973706c61795f6e616d6518" . - "022001280912460a0d776562686f6f6b5f737461746518062001280e322f" . + "69616c6f67666c6f772e76321a17676f6f676c652f6170692f636c69656e" . + "742e70726f746f1a1f676f6f676c652f6170692f6669656c645f62656861" . + "76696f722e70726f746f1a19676f6f676c652f6170692f7265736f757263" . + "652e70726f746f1a2d676f6f676c652f636c6f75642f6469616c6f67666c" . + "6f772f76322f617564696f5f636f6e6669672e70726f746f1a28676f6f67" . + "6c652f636c6f75642f6469616c6f67666c6f772f76322f636f6e74657874" . + "2e70726f746f1a23676f6f676c652f6c6f6e6772756e6e696e672f6f7065" . + "726174696f6e732e70726f746f1a1e676f6f676c652f70726f746f627566" . + "2f6475726174696f6e2e70726f746f1a1b676f6f676c652f70726f746f62" . + "75662f656d7074792e70726f746f1a20676f6f676c652f70726f746f6275" . + "662f6669656c645f6d61736b2e70726f746f1a1c676f6f676c652f70726f" . + "746f6275662f7374727563742e70726f746f22c7370a06496e74656e7412" . + "0c0a046e616d6518012001280912190a0c646973706c61795f6e616d6518" . + "02200128094203e04102124b0a0d776562686f6f6b5f7374617465180620" . + "01280e322f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e496e74656e742e576562686f6f6b53746174654203e0410112150a" . + "087072696f726974791803200128054203e0410112180a0b69735f66616c" . + "6c6261636b1804200128084203e0410112180a0b6d6c5f64697361626c65" . + "641813200128084203e0410112200a13696e7075745f636f6e746578745f" . + "6e616d65731807200328094203e0410112130a066576656e747318082003" . + "28094203e0410112500a10747261696e696e675f70687261736573180920" . + "03280b32312e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e496e74656e742e547261696e696e675068726173654203e0410112" . + "130a06616374696f6e180a200128094203e0410112410a0f6f7574707574" . + "5f636f6e7465787473180b2003280b32232e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e436f6e746578744203e04101121b0a" . + "0e72657365745f636f6e7465787473180c200128084203e0410112450a0a" . + "706172616d6574657273180d2003280b322c2e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e496e74656e742e506172616d6574" . + "65724203e0410112410a086d65737361676573180e2003280b322a2e676f" . + "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e" . + "742e4d6573736167654203e04101125c0a1a64656661756c745f72657370" . + "6f6e73655f706c6174666f726d73180f2003280e32332e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d6573" . + "736167652e506c6174666f726d4203e0410112210a19726f6f745f666f6c" . + "6c6f7775705f696e74656e745f6e616d6518102001280912230a1b706172" . + "656e745f666f6c6c6f7775705f696e74656e745f6e616d65181120012809" . + "12530a14666f6c6c6f7775705f696e74656e745f696e666f18122003280b" . + "32352e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "496e74656e742e466f6c6c6f777570496e74656e74496e666f1af1020a0e" . + "547261696e696e67506872617365120c0a046e616d651801200128091249" . + "0a047479706518022001280e32362e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e496e74656e742e547261696e696e67506872" . + "6173652e547970654203e04102124a0a05706172747318032003280b3236" . "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . - "74656e742e576562686f6f6b537461746512100a087072696f7269747918" . - "032001280512130a0b69735f66616c6c6261636b18042001280812130a0b" . - "6d6c5f64697361626c6564181320012808121b0a13696e7075745f636f6e" . - "746578745f6e616d6573180720032809120e0a066576656e747318082003" . - "2809124b0a10747261696e696e675f7068726173657318092003280b3231" . + "74656e742e547261696e696e675068726173652e506172744203e0410212" . + "1e0a1174696d65735f61646465645f636f756e741804200128054203e041" . + "011a5d0a0450617274120c0a047465787418012001280912180a0b656e74" . + "6974795f747970651802200128094203e0410112120a05616c6961731803" . + "200128094203e0410112190a0c757365725f646566696e65641804200128" . + "084203e04101223b0a045479706512140a10545950455f554e5350454349" . + "464945441000120b0a074558414d504c45100112100a0854454d504c4154" . + "4510021a0208011aca010a09506172616d65746572120c0a046e616d6518" . + "012001280912140a0c646973706c61795f6e616d6518022001280912120a" . + "0576616c75651803200128094203e04101121a0a0d64656661756c745f76" . + "616c75651804200128094203e0410112250a18656e746974795f74797065" . + "5f646973706c61795f6e616d651805200128094203e0410112160a096d61" . + "6e6461746f72791806200128084203e0410112140a0770726f6d70747318" . + "07200328094203e0410112140a0769735f6c6973741808200128084203e0" . + "41011a962a0a074d657373616765123f0a047465787418012001280b322f" . "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . - "74656e742e547261696e696e67506872617365120e0a06616374696f6e18" . - "0a20012809123c0a0f6f75747075745f636f6e7465787473180b2003280b" . - "32232e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . - "436f6e7465787412160a0e72657365745f636f6e7465787473180c200128" . - "0812400a0a706172616d6574657273180d2003280b322c2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e5061" . - "72616d65746572123c0a086d65737361676573180e2003280b322a2e676f" . + "74656e742e4d6573736167652e54657874480012410a05696d6167651802" . + "2001280b32302e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e496e74656e742e4d6573736167652e496d616765480012500a0d" . + "717569636b5f7265706c69657318032001280b32372e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d657373" . + "6167652e517569636b5265706c6965734800123f0a046361726418042001" . + "280b322f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e496e74656e742e4d6573736167652e436172644800122a0a07706179" . + "6c6f616418052001280b32172e676f6f676c652e70726f746f6275662e53" . + "7472756374480012560a1073696d706c655f726573706f6e736573180720" . + "01280b323a2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e496e74656e742e4d6573736167652e53696d706c65526573706f6e" . + "7365734800124a0a0a62617369635f6361726418082001280b32342e676f" . "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e" . - "742e4d65737361676512570a1a64656661756c745f726573706f6e73655f" . - "706c6174666f726d73180f2003280e32332e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167652e" . - "506c6174666f726d12210a19726f6f745f666f6c6c6f7775705f696e7465" . - "6e745f6e616d6518102001280912230a1b706172656e745f666f6c6c6f77" . - "75705f696e74656e745f6e616d6518112001280912530a14666f6c6c6f77" . - "75705f696e74656e745f696e666f18122003280b32352e676f6f676c652e" . - "636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e466f6c" . - "6c6f777570496e74656e74496e666f1ad3020a0e547261696e696e675068" . - "72617365120c0a046e616d6518012001280912440a047479706518022001" . - "280e32362e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e496e74656e742e547261696e696e675068726173652e547970651245" . - "0a05706172747318032003280b32362e676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76322e496e74656e742e547261696e696e675068" . - "726173652e5061727412190a1174696d65735f61646465645f636f756e74" . - "1804200128051a4e0a0450617274120c0a04746578741801200128091213" . - "0a0b656e746974795f74797065180220012809120d0a05616c6961731803" . - "2001280912140a0c757365725f646566696e6564180420012808223b0a04" . - "5479706512140a10545950455f554e5350454349464945441000120b0a07" . - "4558414d504c45100112100a0854454d504c41544510021a0208011aac01" . - "0a09506172616d65746572120c0a046e616d6518012001280912140a0c64" . - "6973706c61795f6e616d65180220012809120d0a0576616c756518032001" . - "280912150a0d64656661756c745f76616c756518042001280912200a1865" . - "6e746974795f747970655f646973706c61795f6e616d6518052001280912" . - "110a096d616e6461746f7279180620012808120f0a0770726f6d70747318" . - "0720032809120f0a0769735f6c6973741808200128081aaf150a074d6573" . - "73616765123f0a047465787418012001280b322f2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d65737361" . - "67652e54657874480012410a05696d61676518022001280b32302e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . - "2e4d6573736167652e496d616765480012500a0d717569636b5f7265706c" . - "69657318032001280b32372e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e496e74656e742e4d6573736167652e517569636b52" . - "65706c6965734800123f0a046361726418042001280b322f2e676f6f676c" . + "742e4d6573736167652e4261736963436172644800124d0a0b7375676765" . + "7374696f6e7318092001280b32362e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e496e74656e742e4d6573736167652e537567" . + "67657374696f6e734800125b0a136c696e6b5f6f75745f73756767657374" . + "696f6e180a2001280b323c2e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e496e74656e742e4d6573736167652e4c696e6b4f75" . + "7453756767657374696f6e4800124c0a0b6c6973745f73656c656374180b" . + "2001280b32352e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e496e74656e742e4d6573736167652e4c69737453656c65637448" . + "0012540a0f6361726f7573656c5f73656c656374180c2001280b32392e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . + "6e742e4d6573736167652e4361726f7573656c53656c6563744800125d0a" . + "1462726f7773655f6361726f7573656c5f6361726418162001280b323d2e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . + "656e742e4d6573736167652e42726f7773654361726f7573656c43617264" . + "4800124a0a0a7461626c655f6361726418172001280b32342e676f6f676c" . "652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d" . - "6573736167652e436172644800122a0a077061796c6f616418052001280b" . - "32172e676f6f676c652e70726f746f6275662e537472756374480012560a" . - "1073696d706c655f726573706f6e73657318072001280b323a2e676f6f67" . + "6573736167652e5461626c6543617264480012500a0d6d656469615f636f" . + "6e74656e7418182001280b32372e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e496e74656e742e4d6573736167652e4d656469" . + "61436f6e74656e744800124a0a08706c6174666f726d18062001280e3233" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . + "74656e742e4d6573736167652e506c6174666f726d4203e041011a190a04" . + "5465787412110a04746578741801200328094203e041011a400a05496d61" . + "676512160a09696d6167655f7572691801200128094203e04101121f0a12" . + "6163636573736962696c6974795f746578741802200128094203e041011a" . + "3e0a0c517569636b5265706c69657312120a057469746c65180120012809" . + "4203e04101121a0a0d717569636b5f7265706c6965731802200328094203" . + "e041011acb010a044361726412120a057469746c651801200128094203e0" . + "410112150a087375627469746c651802200128094203e0410112160a0969" . + "6d6167655f7572691803200128094203e04101124c0a07627574746f6e73" . + "18042003280b32362e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e496e74656e742e4d6573736167652e436172642e42757474" . + "6f6e4203e041011a320a06427574746f6e12110a04746578741801200128" . + "094203e0410112150a08706f73746261636b1802200128094203e041011a" . + "510a0e53696d706c65526573706f6e736512160a0e746578745f746f5f73" . + "7065656368180120012809120c0a0473736d6c18022001280912190a0c64" . + "6973706c61795f746578741803200128094203e041011a6b0a0f53696d70" . + "6c65526573706f6e73657312580a1073696d706c655f726573706f6e7365" . + "7318012003280b32392e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e496e74656e742e4d6573736167652e53696d706c655265" . + "73706f6e73654203e041021a88030a0942617369634361726412120a0574" . + "69746c651801200128094203e0410112150a087375627469746c65180220" . + "0128094203e0410112160a0e666f726d61747465645f7465787418032001" . + "280912440a05696d61676518042001280b32302e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167" . + "652e496d6167654203e0410112510a07627574746f6e7318052003280b32" . + "3b2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . + "6e74656e742e4d6573736167652e4261736963436172642e427574746f6e" . + "4203e041011a9e010a06427574746f6e120d0a057469746c651801200128" . + "0912670a0f6f70656e5f7572695f616374696f6e18022001280b32492e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . + "6e742e4d6573736167652e4261736963436172642e427574746f6e2e4f70" . + "656e557269416374696f6e4203e041021a1c0a0d4f70656e557269416374" . + "696f6e120b0a037572691801200128091a200a0a53756767657374696f6e" . + "12120a057469746c651801200128094203e041021a5e0a0b537567676573" . + "74696f6e73124f0a0b73756767657374696f6e7318012003280b32352e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . + "6e742e4d6573736167652e53756767657374696f6e4203e041021a440a11" . + "4c696e6b4f757453756767657374696f6e121d0a1064657374696e617469" . + "6f6e5f6e616d651801200128094203e0410212100a037572691802200128" . + "094203e041021ad2020a0a4c69737453656c65637412120a057469746c65" . + "1801200128094203e04101124e0a056974656d7318022003280b323a2e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . + "6e742e4d6573736167652e4c69737453656c6563742e4974656d4203e041" . + "0212150a087375627469746c651803200128094203e041011ac8010a0449" . + "74656d124c0a04696e666f18012001280b32392e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167" . + "652e53656c6563744974656d496e666f4203e0410212120a057469746c65" . + "1802200128094203e0410212180a0b6465736372697074696f6e18032001" . + "28094203e0410112440a05696d61676518042001280b32302e676f6f676c" . + "652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d" . + "6573736167652e496d6167654203e041011aaf020a0e4361726f7573656c" . + "53656c65637412520a056974656d7318012003280b323e2e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d65" . + "73736167652e4361726f7573656c53656c6563742e4974656d4203e04102" . + "1ac8010a044974656d124c0a04696e666f18012001280b32392e676f6f67" . "6c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e" . - "4d6573736167652e53696d706c65526573706f6e7365734800124a0a0a62" . - "617369635f6361726418082001280b32342e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167652e" . - "4261736963436172644800124d0a0b73756767657374696f6e7318092001" . - "280b32362e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e496e74656e742e4d6573736167652e53756767657374696f6e734800" . - "125b0a136c696e6b5f6f75745f73756767657374696f6e180a2001280b32" . - "3c2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . - "6e74656e742e4d6573736167652e4c696e6b4f757453756767657374696f" . - "6e4800124c0a0b6c6973745f73656c656374180b2001280b32352e676f6f" . + "4d6573736167652e53656c6563744974656d496e666f4203e0410212120a" . + "057469746c651802200128094203e0410212180a0b646573637269707469" . + "6f6e1803200128094203e0410112440a05696d61676518042001280b3230" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . + "74656e742e4d6573736167652e496d6167654203e041011a390a0e53656c" . + "6563744974656d496e666f12100a036b65791801200128094203e0410212" . + "150a0873796e6f6e796d731802200328094203e041011a8e040a0c4d6564" . + "6961436f6e74656e7412620a0a6d656469615f7479706518012001280e32" . + "492e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . + "6e74656e742e4d6573736167652e4d65646961436f6e74656e742e526573" . + "706f6e73654d65646961547970654203e0410112620a0d6d656469615f6f" . + "626a6563747318022003280b324b2e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e496e74656e742e4d6573736167652e4d6564" . + "6961436f6e74656e742e526573706f6e73654d656469614f626a6563741a" . + "f0010a13526573706f6e73654d656469614f626a656374120c0a046e616d" . + "6518012001280912180a0b6465736372697074696f6e1802200128094203" . + "e04101124c0a0b6c617267655f696d61676518032001280b32302e676f6f" . "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . - "2e4d6573736167652e4c69737453656c656374480012540a0f6361726f75" . - "73656c5f73656c656374180c2001280b32392e676f6f676c652e636c6f75" . + "2e4d6573736167652e496d6167654203e04101480012450a0469636f6e18" . + "042001280b32302e676f6f676c652e636c6f75642e6469616c6f67666c6f" . + "772e76322e496e74656e742e4d6573736167652e496d6167654203e04101" . + "480012130a0b636f6e74656e745f75726c18052001280942070a05696d61" . + "676522430a11526573706f6e73654d656469615479706512230a1f524553" . + "504f4e53455f4d454449415f545950455f554e5350454349464945441000" . + "12090a05415544494f10011aff060a1242726f7773654361726f7573656c" . + "4361726412630a056974656d7318012003280b32542e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d657373" . + "6167652e42726f7773654361726f7573656c436172642e42726f77736543" . + "61726f7573656c436172644974656d12750a15696d6167655f646973706c" . + "61795f6f7074696f6e7318022001280e32512e676f6f676c652e636c6f75" . "642e6469616c6f67666c6f772e76322e496e74656e742e4d657373616765" . - "2e4361726f7573656c53656c656374480012450a08706c6174666f726d18" . - "062001280e32332e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e496e74656e742e4d6573736167652e506c6174666f726d1a14" . - "0a0454657874120c0a04746578741801200328091a360a05496d61676512" . - "110a09696d6167655f757269180120012809121a0a126163636573736962" . - "696c6974795f746578741802200128091a340a0c517569636b5265706c69" . - "6573120d0a057469746c6518012001280912150a0d717569636b5f726570" . - "6c6965731802200328091aad010a0443617264120d0a057469746c651801" . - "2001280912100a087375627469746c6518022001280912110a09696d6167" . - "655f75726918032001280912470a07627574746f6e7318042003280b3236" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . - "74656e742e4d6573736167652e436172642e427574746f6e1a280a064275" . - "74746f6e120c0a047465787418012001280912100a08706f73746261636b" . - "1802200128091a4c0a0e53696d706c65526573706f6e736512160a0e7465" . - "78745f746f5f737065656368180120012809120c0a0473736d6c18022001" . - "280912140a0c646973706c61795f746578741803200128091a660a0f5369" . - "6d706c65526573706f6e73657312530a1073696d706c655f726573706f6e" . - "73657318012003280b32392e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e496e74656e742e4d6573736167652e53696d706c65" . - "526573706f6e73651aef020a09426173696343617264120d0a057469746c" . - "6518012001280912100a087375627469746c6518022001280912160a0e66" . - "6f726d61747465645f74657874180320012809123f0a05696d6167651804" . - "2001280b32302e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e496e74656e742e4d6573736167652e496d616765124c0a076275" . - "74746f6e7318052003280b323b2e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e496e74656e742e4d6573736167652e42617369" . - "63436172642e427574746f6e1a99010a06427574746f6e120d0a05746974" . - "6c6518012001280912620a0f6f70656e5f7572695f616374696f6e180220" . - "01280b32492e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e496e74656e742e4d6573736167652e4261736963436172642e4275" . - "74746f6e2e4f70656e557269416374696f6e1a1c0a0d4f70656e55726941" . - "6374696f6e120b0a037572691801200128091a1b0a0a5375676765737469" . - "6f6e120d0a057469746c651801200128091a590a0b53756767657374696f" . - "6e73124a0a0b73756767657374696f6e7318012003280b32352e676f6f67" . + "2e42726f7773654361726f7573656c436172642e496d616765446973706c" . + "61794f7074696f6e734203e041011a94040a1642726f7773654361726f75" . + "73656c436172644974656d127b0a0f6f70656e5f7572695f616374696f6e" . + "18012001280b32622e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e496e74656e742e4d6573736167652e42726f777365436172" . + "6f7573656c436172642e42726f7773654361726f7573656c436172644974" . + "656d2e4f70656e55726c416374696f6e120d0a057469746c651802200128" . + "0912180a0b6465736372697074696f6e1803200128094203e0410112440a" . + "05696d61676518042001280b32302e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e496e74656e742e4d6573736167652e496d61" . + "67654203e0410112130a06666f6f7465721805200128094203e041011af8" . + "010a0d4f70656e55726c416374696f6e120b0a0375726c18012001280912" . + "8a010a0d75726c5f747970655f68696e7418032001280e326e2e676f6f67" . "6c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e" . - "4d6573736167652e53756767657374696f6e1a3a0a114c696e6b4f757453" . - "756767657374696f6e12180a1064657374696e6174696f6e5f6e616d6518" . - "0120012809120b0a037572691802200128091a9d020a0a4c69737453656c" . - "656374120d0a057469746c6518012001280912490a056974656d73180220" . - "03280b323a2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e496e74656e742e4d6573736167652e4c69737453656c6563742e49" . - "74656d1ab4010a044974656d12470a04696e666f18012001280b32392e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . - "6e742e4d6573736167652e53656c6563744974656d496e666f120d0a0574" . - "69746c6518022001280912130a0b6465736372697074696f6e1803200128" . - "09123f0a05696d61676518042001280b32302e676f6f676c652e636c6f75" . + "4d6573736167652e42726f7773654361726f7573656c436172642e42726f" . + "7773654361726f7573656c436172644974656d2e4f70656e55726c416374" . + "696f6e2e55726c5479706548696e744203e04101224d0a0b55726c547970" . + "6548696e74121d0a1955524c5f545950455f48494e545f554e5350454349" . + "464945441000120e0a0a414d505f414354494f4e1001120f0a0b414d505f" . + "434f4e54454e54100222760a13496d616765446973706c61794f7074696f" . + "6e7312250a21494d4147455f444953504c41595f4f5054494f4e535f554e" . + "535045434946494544100012080a0447524159100112090a055748495445" . + "1002120b0a0743524f50504544100312160a12424c55525245445f424143" . + "4b47524f554e4410041af3020a095461626c6543617264120d0a05746974" . + "6c6518012001280912150a087375627469746c651802200128094203e041" . + "0112440a05696d61676518032001280b32302e676f6f676c652e636c6f75" . "642e6469616c6f67666c6f772e76322e496e74656e742e4d657373616765" . - "2e496d6167651a96020a0e4361726f7573656c53656c656374124d0a0569" . - "74656d7318012003280b323e2e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e496e74656e742e4d6573736167652e4361726f75" . - "73656c53656c6563742e4974656d1ab4010a044974656d12470a04696e66" . - "6f18012001280b32392e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e496e74656e742e4d6573736167652e53656c6563744974" . - "656d496e666f120d0a057469746c6518022001280912130a0b6465736372" . - "697074696f6e180320012809123f0a05696d61676518042001280b32302e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . - "656e742e4d6573736167652e496d6167651a2f0a0e53656c656374497465" . - "6d496e666f120b0a036b657918012001280912100a0873796e6f6e796d73" . - "18022003280922a0010a08506c6174666f726d12180a14504c4154464f52" . - "4d5f554e5350454349464945441000120c0a0846414345424f4f4b100112" . - "090a05534c41434b1002120c0a0854454c454752414d100312070a034b49" . - "4b100412090a05534b595045100512080a044c494e45100612090a055649" . - "424552100712150a11414354494f4e535f4f4e5f474f4f474c4510081213" . - "0a0f474f4f474c455f48414e474f555453100b42090a076d657373616765" . - "1a570a12466f6c6c6f777570496e74656e74496e666f121c0a14666f6c6c" . - "6f7775705f696e74656e745f6e616d6518012001280912230a1b70617265" . - "6e745f666f6c6c6f7775705f696e74656e745f6e616d6518022001280922" . - "740a0c576562686f6f6b5374617465121d0a19574542484f4f4b5f535441" . - "54455f554e535045434946494544100012190a15574542484f4f4b5f5354" . - "4154455f454e41424c45441001122a0a26574542484f4f4b5f5354415445" . - "5f454e41424c45445f464f525f534c4f545f46494c4c494e471002229f01" . - "0a124c697374496e74656e747352657175657374120e0a06706172656e74" . - "18012001280912150a0d6c616e67756167655f636f646518022001280912" . - "3b0a0b696e74656e745f7669657718032001280e32262e676f6f676c652e" . - "636c6f75642e6469616c6f67666c6f772e76322e496e74656e7456696577" . - "12110a09706167655f73697a6518042001280512120a0a706167655f746f" . - "6b656e18052001280922630a134c697374496e74656e7473526573706f6e" . - "736512330a07696e74656e747318012003280b32222e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e496e74656e7412170a0f6e" . - "6578745f706167655f746f6b656e18022001280922740a10476574496e74" . - "656e7452657175657374120c0a046e616d6518012001280912150a0d6c61" . - "6e67756167655f636f6465180220012809123b0a0b696e74656e745f7669" . - "657718032001280e32262e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e496e74656e745669657722ad010a1343726561746549" . - "6e74656e7452657175657374120e0a06706172656e741801200128091232" . + "2e496d6167654203e04101125b0a11636f6c756d6e5f70726f7065727469" . + "657318042003280b323b2e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e496e74656e742e4d6573736167652e436f6c756d6e50" . + "726f706572746965734203e04101124a0a04726f777318052003280b3237" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . + "74656e742e4d6573736167652e5461626c6543617264526f774203e04101" . + "12510a07627574746f6e7318062003280b323b2e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167" . + "652e4261736963436172642e427574746f6e4203e041011afa010a10436f" . + "6c756d6e50726f70657274696573120e0a06686561646572180120012809" . + "12720a14686f72697a6f6e74616c5f616c69676e6d656e7418022001280e" . + "324f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "496e74656e742e4d6573736167652e436f6c756d6e50726f706572746965" . + "732e486f72697a6f6e74616c416c69676e6d656e744203e0410122620a13" . + "486f72697a6f6e74616c416c69676e6d656e7412240a20484f52495a4f4e" . + "54414c5f414c49474e4d454e545f554e5350454349464945441000120b0a" . + "074c454144494e471001120a0a0643454e5445521002120c0a0854524149" . + "4c494e4710031a780a0c5461626c6543617264526f77124c0a0563656c6c" . + "7318012003280b32382e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e496e74656e742e4d6573736167652e5461626c65436172" . + "6443656c6c4203e04101121a0a0d646976696465725f6166746572180220" . + "0128084203e041011a1d0a0d5461626c654361726443656c6c120c0a0474" . + "65787418012001280922a0010a08506c6174666f726d12180a14504c4154" . + "464f524d5f554e5350454349464945441000120c0a0846414345424f4f4b" . + "100112090a05534c41434b1002120c0a0854454c454752414d100312070a" . + "034b494b100412090a05534b595045100512080a044c494e45100612090a" . + "055649424552100712150a11414354494f4e535f4f4e5f474f4f474c4510" . + "0812130a0f474f4f474c455f48414e474f555453100b42090a076d657373" . + "6167651a570a12466f6c6c6f777570496e74656e74496e666f121c0a1466" . + "6f6c6c6f7775705f696e74656e745f6e616d6518012001280912230a1b70" . + "6172656e745f666f6c6c6f7775705f696e74656e745f6e616d6518022001" . + "280922740a0c576562686f6f6b5374617465121d0a19574542484f4f4b5f" . + "53544154455f554e535045434946494544100012190a15574542484f4f4b" . + "5f53544154455f454e41424c45441001122a0a26574542484f4f4b5f5354" . + "4154455f454e41424c45445f464f525f534c4f545f46494c4c494e471002" . + "3a50ea414d0a206469616c6f67666c6f772e676f6f676c65617069732e63" . + "6f6d2f496e74656e74122970726f6a656374732f7b70726f6a6563747d2f" . + "6167656e742f696e74656e74732f7b696e74656e747d22dc010a124c6973" . + "74496e74656e74735265717565737412370a06706172656e741801200128" . + "094227e04102fa41210a1f6469616c6f67666c6f772e676f6f676c656170" . + "69732e636f6d2f4167656e74121a0a0d6c616e67756167655f636f646518" . + "02200128094203e0410112400a0b696e74656e745f766965771803200128" . + "0e32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e496e74656e74566965774203e0410112160a09706167655f73697a6518" . + "04200128054203e0410112170a0a706167655f746f6b656e180520012809" . + "4203e0410122630a134c697374496e74656e7473526573706f6e73651233" . + "0a07696e74656e747318012003280b32222e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e496e74656e7412170a0f6e6578745f" . + "706167655f746f6b656e18022001280922a8010a10476574496e74656e74" . + "5265717565737412360a046e616d651801200128094228e04102fa41220a" . + "206469616c6f67666c6f772e676f6f676c65617069732e636f6d2f496e74" . + "656e74121a0a0d6c616e67756167655f636f64651802200128094203e041" . + "0112400a0b696e74656e745f7669657718032001280e32262e676f6f676c" . + "652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e745669" . + "65774203e0410122e5010a13437265617465496e74656e74526571756573" . + "7412370a06706172656e741801200128094227e04102fa41210a1f646961" . + "6c6f67666c6f772e676f6f676c65617069732e636f6d2f4167656e741237" . "0a06696e74656e7418022001280b32222e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e496e74656e7412150a0d6c616e677561" . - "67655f636f6465180320012809123b0a0b696e74656e745f766965771804" . - "2001280e32262e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e496e74656e745669657722ce010a13557064617465496e74656e" . - "745265717565737412320a06696e74656e7418012001280b32222e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . - "12150a0d6c616e67756167655f636f6465180220012809122f0a0b757064" . - "6174655f6d61736b18032001280b321a2e676f6f676c652e70726f746f62" . - "75662e4669656c644d61736b123b0a0b696e74656e745f76696577180420" . + "6469616c6f67666c6f772e76322e496e74656e744203e04102121a0a0d6c" . + "616e67756167655f636f64651803200128094203e0410112400a0b696e74" . + "656e745f7669657718042001280e32262e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e496e74656e74566965774203e0410122" . + "e2010a13557064617465496e74656e745265717565737412370a06696e74" . + "656e7418012001280b32222e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e496e74656e744203e04102121a0a0d6c616e677561" . + "67655f636f64651802200128094203e0410112340a0b7570646174655f6d" . + "61736b18032001280b321a2e676f6f676c652e70726f746f6275662e4669" . + "656c644d61736b4203e0410112400a0b696e74656e745f76696577180420" . "01280e32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e496e74656e745669657722230a1344656c657465496e74656e7452" . - "657175657374120c0a046e616d6518012001280922a4020a194261746368" . - "557064617465496e74656e747352657175657374120e0a06706172656e74" . - "180120012809121a0a10696e74656e745f62617463685f75726918022001" . - "2809480012460a13696e74656e745f62617463685f696e6c696e65180320" . - "01280b32272e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e496e74656e744261746368480012150a0d6c616e67756167655f63" . - "6f6465180420012809122f0a0b7570646174655f6d61736b18052001280b" . - "321a2e676f6f676c652e70726f746f6275662e4669656c644d61736b123b" . - "0a0b696e74656e745f7669657718062001280e32262e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e496e74656e745669657742" . - "0e0a0c696e74656e745f626174636822510a1a4261746368557064617465" . - "496e74656e7473526573706f6e736512330a07696e74656e747318012003" . - "280b32222e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e496e74656e7422600a19426174636844656c657465496e74656e7473" . - "52657175657374120e0a06706172656e7418012001280912330a07696e74" . - "656e747318022003280b32222e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e496e74656e7422420a0b496e74656e7442617463" . + "76322e496e74656e74566965774203e04101224d0a1344656c657465496e" . + "74656e745265717565737412360a046e616d651801200128094228e04102" . + "fa41220a206469616c6f67666c6f772e676f6f676c65617069732e636f6d" . + "2f496e74656e7422dc020a194261746368557064617465496e74656e7473" . + "5265717565737412370a06706172656e741801200128094227e04102fa41" . + "210a1f6469616c6f67666c6f772e676f6f676c65617069732e636f6d2f41" . + "67656e74121a0a10696e74656e745f62617463685f757269180220012809" . + "480012460a13696e74656e745f62617463685f696e6c696e651803200128" . + "0b32272e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e496e74656e7442617463684800121a0a0d6c616e67756167655f636f64" . + "651804200128094203e0410112340a0b7570646174655f6d61736b180520" . + "01280b321a2e676f6f676c652e70726f746f6275662e4669656c644d6173" . + "6b4203e0410112400a0b696e74656e745f7669657718062001280e32262e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . + "656e74566965774203e04101420e0a0c696e74656e745f62617463682251" . + "0a1a4261746368557064617465496e74656e7473526573706f6e73651233" . + "0a07696e74656e747318012003280b32222e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e496e74656e74228e010a1942617463" . + "6844656c657465496e74656e74735265717565737412370a06706172656e" . + "741801200128094227e04102fa41210a1f6469616c6f67666c6f772e676f" . + "6f676c65617069732e636f6d2f4167656e7412380a07696e74656e747318" . + "022003280b32222e676f6f676c652e636c6f75642e6469616c6f67666c6f" . + "772e76322e496e74656e744203e0410222420a0b496e74656e7442617463" . "6812330a07696e74656e747318012003280b32222e676f6f676c652e636c" . "6f75642e6469616c6f67666c6f772e76322e496e74656e742a3f0a0a496e" . "74656e7456696577121b0a17494e54454e545f564945575f554e53504543" . "4946494544100012140a10494e54454e545f564945575f46554c4c100132" . - "d2090a07496e74656e7473129d010a0b4c697374496e74656e7473122e2e" . + "930c0a07496e74656e747312bd010a0b4c697374496e74656e7473122e2e" . "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4c6973" . "74496e74656e7473526571756573741a2f2e676f6f676c652e636c6f7564" . "2e6469616c6f67666c6f772e76322e4c697374496e74656e747352657370" . - "6f6e7365222d82d3e493022712252f76322f7b706172656e743d70726f6a" . - "656374732f2a2f6167656e747d2f696e74656e7473128c010a0947657449" . - "6e74656e74122c2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e476574496e74656e74526571756573741a222e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74222d82" . - "d3e493022712252f76322f7b6e616d653d70726f6a656374732f2a2f6167" . - "656e742f696e74656e74732f2a7d129a010a0c437265617465496e74656e" . + "6f6e7365224d82d3e493022712252f76322f7b706172656e743d70726f6a" . + "656374732f2a2f6167656e747d2f696e74656e7473da4106706172656e74" . + "da4114706172656e742c6c616e67756167655f636f646512a8010a094765" . + "74496e74656e74122c2e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e476574496e74656e74526571756573741a222e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e7422" . + "4982d3e493022712252f76322f7b6e616d653d70726f6a656374732f2a2f" . + "6167656e742f696e74656e74732f2a7dda41046e616d65da41126e616d65" . + "2c6c616e67756167655f636f646512c8010a0c437265617465496e74656e" . "74122f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . "2e437265617465496e74656e74526571756573741a222e676f6f676c652e" . - "636c6f75642e6469616c6f67666c6f772e76322e496e74656e74223582d3" . + "636c6f75642e6469616c6f67666c6f772e76322e496e74656e74226382d3" . "e493022f22252f76322f7b706172656e743d70726f6a656374732f2a2f61" . - "67656e747d2f696e74656e74733a06696e74656e7412a1010a0c55706461" . - "7465496e74656e74122f2e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e557064617465496e74656e74526571756573741a222e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . - "656e74223c82d3e4930236322c2f76322f7b696e74656e742e6e616d653d" . - "70726f6a656374732f2a2f6167656e742f696e74656e74732f2a7d3a0669" . - "6e74656e741286010a0c44656c657465496e74656e74122f2e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e44656c657465496e" . - "74656e74526571756573741a162e676f6f676c652e70726f746f6275662e" . - "456d707479222d82d3e49302272a252f76322f7b6e616d653d70726f6a65" . - "6374732f2a2f6167656e742f696e74656e74732f2a7d12a8010a12426174" . - "6368557064617465496e74656e747312352e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e4261746368557064617465496e7465" . - "6e7473526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e" . - "672e4f7065726174696f6e223c82d3e493023622312f76322f7b70617265" . - "6e743d70726f6a656374732f2a2f6167656e747d2f696e74656e74733a62" . - "617463685570646174653a012a12a8010a12426174636844656c65746549" . + "67656e747d2f696e74656e74733a06696e74656e74da410d706172656e74" . + "2c696e74656e74da411b706172656e742c696e74656e742c6c616e677561" . + "67655f636f646512db010a0c557064617465496e74656e74122f2e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e557064617465" . + "496e74656e74526571756573741a222e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e496e74656e74227682d3e4930236322c2f" . + "76322f7b696e74656e742e6e616d653d70726f6a656374732f2a2f616765" . + "6e742f696e74656e74732f2a7d3a06696e74656e74da4114696e74656e74" . + "2c6c616e67756167655f636f6465da4120696e74656e742c6c616e677561" . + "67655f636f64652c7570646174655f6d61736b128d010a0c44656c657465" . + "496e74656e74122f2e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e44656c657465496e74656e74526571756573741a162e676f" . + "6f676c652e70726f746f6275662e456d707479223482d3e49302272a252f" . + "76322f7b6e616d653d70726f6a656374732f2a2f6167656e742f696e7465" . + "6e74732f2a7dda41046e616d6512fb010a12426174636855706461746549" . "6e74656e747312352e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e426174636844656c657465496e74656e7473526571756573" . + "6f772e76322e4261746368557064617465496e74656e7473526571756573" . "741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f706572617469" . - "6f6e223c82d3e493023622312f76322f7b706172656e743d70726f6a6563" . - "74732f2a2f6167656e747d2f696e74656e74733a626174636844656c6574" . - "653a012a1a78ca41196469616c6f67666c6f772e676f6f676c6561706973" . - "2e636f6dd2415968747470733a2f2f7777772e676f6f676c65617069732e" . - "636f6d2f617574682f636c6f75642d706c6174666f726d2c68747470733a" . - "2f2f7777772e676f6f676c65617069732e636f6d2f617574682f6469616c" . - "6f67666c6f77429a010a1e636f6d2e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e7632420b496e74656e7450726f746f50015a44676f" . - "6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c" . - "65617069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c" . - "6f67666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e" . - "4469616c6f67666c6f772e5632620670726f746f33" + "6f6e228e0182d3e493023622312f76322f7b706172656e743d70726f6a65" . + "6374732f2a2f6167656e747d2f696e74656e74733a626174636855706461" . + "74653a012aca414f0a35676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e4261746368557064617465496e74656e7473526573706f" . + "6e73651216676f6f676c652e70726f746f6275662e53747275637412eb01" . + "0a12426174636844656c657465496e74656e747312352e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e426174636844656c6574" . + "65496e74656e7473526571756573741a1d2e676f6f676c652e6c6f6e6772" . + "756e6e696e672e4f7065726174696f6e227f82d3e493023622312f76322f" . + "7b706172656e743d70726f6a656374732f2a2f6167656e747d2f696e7465" . + "6e74733a626174636844656c6574653a012ada410e706172656e742c696e" . + "74656e7473ca412f0a15676f6f676c652e70726f746f6275662e456d7074" . + "791216676f6f676c652e70726f746f6275662e5374727563741a78ca4119" . + "6469616c6f67666c6f772e676f6f676c65617069732e636f6dd241596874" . + "7470733a2f2f7777772e676f6f676c65617069732e636f6d2f617574682f" . + "636c6f75642d706c6174666f726d2c68747470733a2f2f7777772e676f6f" . + "676c65617069732e636f6d2f617574682f6469616c6f67666c6f77429a01" . + "0a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "7632420b496e74656e7450726f746f50015a44676f6f676c652e676f6c61" . + "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f" . + "75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f80101" . + "a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c6f" . + "772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Session.php b/Dialogflow/metadata/V2/Session.php index 80e12c05cfdb..cc4d61e7d8de 100644 --- a/Dialogflow/metadata/V2/Session.php +++ b/Dialogflow/metadata/V2/Session.php @@ -15,6 +15,8 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Context::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); @@ -23,144 +25,153 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Rpc\Status::initOnce(); \GPBMetadata\Google\Type\Latlng::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ae51f0a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0a8e220a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f73657373696f6e2e70726f746f121a676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76321a2d676f6f676c652f636c6f75642f6469" . - "616c6f67666c6f772f76322f617564696f5f636f6e6669672e70726f746f" . - "1a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76322f63" . - "6f6e746578742e70726f746f1a27676f6f676c652f636c6f75642f646961" . - "6c6f67666c6f772f76322f696e74656e742e70726f746f1a34676f6f676c" . - "652f636c6f75642f6469616c6f67666c6f772f76322f73657373696f6e5f" . - "656e746974795f747970652e70726f746f1a1e676f6f676c652f70726f74" . - "6f6275662f6475726174696f6e2e70726f746f1a1c676f6f676c652f7072" . - "6f746f6275662f7374727563742e70726f746f1a17676f6f676c652f7270" . - "632f7374617475732e70726f746f1a18676f6f676c652f747970652f6c61" . - "746c6e672e70726f746f1a17676f6f676c652f6170692f636c69656e742e" . - "70726f746f2287020a13446574656374496e74656e745265717565737412" . - "0f0a0773657373696f6e18012001280912410a0c71756572795f70617261" . - "6d7318022001280b322b2e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e5175657279506172616d6574657273123b0a0b717565" . - "72795f696e70757418032001280b32262e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e5175657279496e707574124a0a136f75" . - "747075745f617564696f5f636f6e66696718042001280b322d2e676f6f67" . + "6469616c6f67666c6f772e76321a17676f6f676c652f6170692f636c6965" . + "6e742e70726f746f1a1f676f6f676c652f6170692f6669656c645f626568" . + "6176696f722e70726f746f1a2d676f6f676c652f636c6f75642f6469616c" . + "6f67666c6f772f76322f617564696f5f636f6e6669672e70726f746f1a28" . + "676f6f676c652f636c6f75642f6469616c6f67666c6f772f76322f636f6e" . + "746578742e70726f746f1a27676f6f676c652f636c6f75642f6469616c6f" . + "67666c6f772f76322f696e74656e742e70726f746f1a34676f6f676c652f" . + "636c6f75642f6469616c6f67666c6f772f76322f73657373696f6e5f656e" . + "746974795f747970652e70726f746f1a1e676f6f676c652f70726f746f62" . + "75662f6475726174696f6e2e70726f746f1a1c676f6f676c652f70726f74" . + "6f6275662f7374727563742e70726f746f1a17676f6f676c652f7270632f" . + "7374617475732e70726f746f1a18676f6f676c652f747970652f6c61746c" . + "6e672e70726f746f22a0020a13446574656374496e74656e745265717565" . + "737412140a0773657373696f6e1801200128094203e0410212460a0c7175" . + "6572795f706172616d7318022001280b322b2e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e5175657279506172616d65746572" . + "734203e0410112400a0b71756572795f696e70757418032001280b32262e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e517565" . + "7279496e7075744203e04102124f0a136f75747075745f617564696f5f63" . + "6f6e66696718042001280b322d2e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e4f7574707574417564696f436f6e6669674203" . + "e0410112180a0b696e7075745f617564696f18052001280c4203e0410122" . + "f8010a14446574656374496e74656e74526573706f6e736512130a0b7265" . + "73706f6e73655f6964180120012809123d0a0c71756572795f726573756c" . + "7418022001280b32272e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e5175657279526573756c74122a0a0e776562686f6f6b5f" . + "73746174757318032001280b32122e676f6f676c652e7270632e53746174" . + "757312140a0c6f75747075745f617564696f18042001280c124a0a136f75" . + "747075745f617564696f5f636f6e66696718062001280b322d2e676f6f67" . "6c652e636c6f75642e6469616c6f67666c6f772e76322e4f757470757441" . - "7564696f436f6e66696712130a0b696e7075745f617564696f1805200128" . - "0c22f8010a14446574656374496e74656e74526573706f6e736512130a0b" . - "726573706f6e73655f6964180120012809123d0a0c71756572795f726573" . - "756c7418022001280b32272e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e5175657279526573756c74122a0a0e776562686f6f" . - "6b5f73746174757318032001280b32122e676f6f676c652e7270632e5374" . - "6174757312140a0c6f75747075745f617564696f18042001280c124a0a13" . - "6f75747075745f617564696f5f636f6e66696718062001280b322d2e676f" . - "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4f75747075" . - "74417564696f436f6e66696722fc020a0f5175657279506172616d657465" . - "727312110a0974696d655f7a6f6e6518012001280912290a0c67656f5f6c" . - "6f636174696f6e18022001280b32132e676f6f676c652e747970652e4c61" . - "744c6e6712350a08636f6e746578747318032003280b32232e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e436f6e7465787412" . - "160a0e72657365745f636f6e7465787473180420012808124b0a14736573" . - "73696f6e5f656e746974795f747970657318052003280b322d2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e" . - "456e746974795479706512280a077061796c6f616418062001280b32172e" . - "676f6f676c652e70726f746f6275662e53747275637412650a2173656e74" . - "696d656e745f616e616c797369735f726571756573745f636f6e66696718" . - "0a2001280b323a2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e53656e74696d656e74416e616c797369735265717565737443" . - "6f6e66696722cb010a0a5175657279496e70757412440a0c617564696f5f" . - "636f6e66696718012001280b322c2e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e496e707574417564696f436f6e6669674800" . - "12350a047465787418022001280b32252e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e54657874496e707574480012370a0565" . - "76656e7418032001280b32262e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e4576656e74496e707574480042070a05696e7075" . - "742290050a0b5175657279526573756c7412120a0a71756572795f746578" . - "7418012001280912150a0d6c616e67756167655f636f6465180f20012809" . - "12250a1d7370656563685f7265636f676e6974696f6e5f636f6e66696465" . - "6e6365180220012802120e0a06616374696f6e180320012809122b0a0a70" . - "6172616d657465727318042001280b32172e676f6f676c652e70726f746f" . - "6275662e53747275637412230a1b616c6c5f72657175697265645f706172" . - "616d735f70726573656e7418052001280812180a1066756c66696c6c6d65" . - "6e745f7465787418062001280912480a1466756c66696c6c6d656e745f6d" . - "6573736167657318072003280b322a2e676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76322e496e74656e742e4d65737361676512160a" . - "0e776562686f6f6b5f736f7572636518082001280912300a0f776562686f" . - "6f6b5f7061796c6f616418092001280b32172e676f6f676c652e70726f74" . - "6f6275662e537472756374123c0a0f6f75747075745f636f6e7465787473" . - "180a2003280b32232e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e436f6e7465787412320a06696e74656e74180b2001280b32" . - "222e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . - "6e74656e7412230a1b696e74656e745f646574656374696f6e5f636f6e66" . - "6964656e6365180c2001280212300a0f646961676e6f737469635f696e66" . - "6f180e2001280b32172e676f6f676c652e70726f746f6275662e53747275" . - "637412560a1973656e74696d656e745f616e616c797369735f726573756c" . - "7418112001280b32332e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e53656e74696d656e74416e616c79736973526573756c74" . - "22ae020a1c53747265616d696e67446574656374496e74656e7452657175" . - "657374120f0a0773657373696f6e18012001280912410a0c71756572795f" . - "706172616d7318022001280b322b2e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e5175657279506172616d6574657273123b0a" . - "0b71756572795f696e70757418032001280b32262e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e5175657279496e707574121c" . - "0a1073696e676c655f7574746572616e636518042001280842021801124a" . - "0a136f75747075745f617564696f5f636f6e66696718052001280b322d2e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4f7574" . - "707574417564696f436f6e66696712130a0b696e7075745f617564696f18" . - "062001280c22d5020a1d53747265616d696e67446574656374496e74656e" . - "74526573706f6e736512130a0b726573706f6e73655f6964180120012809" . - "12520a127265636f676e6974696f6e5f726573756c7418022001280b3236" . + "7564696f436f6e666967229f030a0f5175657279506172616d6574657273" . + "12160a0974696d655f7a6f6e651801200128094203e04101122e0a0c6765" . + "6f5f6c6f636174696f6e18022001280b32132e676f6f676c652e74797065" . + "2e4c61744c6e674203e04101123a0a08636f6e746578747318032003280b" . + "32232e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "436f6e746578744203e04101121b0a0e72657365745f636f6e7465787473" . + "1804200128084203e0410112500a1473657373696f6e5f656e746974795f" . + "747970657318052003280b322d2e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e53657373696f6e456e74697479547970654203" . + "e04101122d0a077061796c6f616418062001280b32172e676f6f676c652e" . + "70726f746f6275662e5374727563744203e04101126a0a2173656e74696d" . + "656e745f616e616c797369735f726571756573745f636f6e666967180a20" . + "01280b323a2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e53656e74696d656e74416e616c7973697352657175657374436f6e" . + "6669674203e0410122cb010a0a5175657279496e70757412440a0c617564" . + "696f5f636f6e66696718012001280b322c2e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e496e707574417564696f436f6e6669" . + "67480012350a047465787418022001280b32252e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e54657874496e70757448001237" . + "0a056576656e7418032001280b32262e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e4576656e74496e707574480042070a0569" . + "6e7075742290050a0b5175657279526573756c7412120a0a71756572795f" . + "7465787418012001280912150a0d6c616e67756167655f636f6465180f20" . + "01280912250a1d7370656563685f7265636f676e6974696f6e5f636f6e66" . + "6964656e6365180220012802120e0a06616374696f6e180320012809122b" . + "0a0a706172616d657465727318042001280b32172e676f6f676c652e7072" . + "6f746f6275662e53747275637412230a1b616c6c5f72657175697265645f" . + "706172616d735f70726573656e7418052001280812180a1066756c66696c" . + "6c6d656e745f7465787418062001280912480a1466756c66696c6c6d656e" . + "745f6d6573736167657318072003280b322a2e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e496e74656e742e4d657373616765" . + "12160a0e776562686f6f6b5f736f7572636518082001280912300a0f7765" . + "62686f6f6b5f7061796c6f616418092001280b32172e676f6f676c652e70" . + "726f746f6275662e537472756374123c0a0f6f75747075745f636f6e7465" . + "787473180a2003280b32232e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e436f6e7465787412320a06696e74656e74180b2001" . + "280b32222e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e496e74656e7412230a1b696e74656e745f646574656374696f6e5f63" . + "6f6e666964656e6365180c2001280212300a0f646961676e6f737469635f" . + "696e666f180e2001280b32172e676f6f676c652e70726f746f6275662e53" . + "747275637412560a1973656e74696d656e745f616e616c797369735f7265" . + "73756c7418112001280b32332e676f6f676c652e636c6f75642e6469616c" . + "6f67666c6f772e76322e53656e74696d656e74416e616c79736973526573" . + "756c7422ca020a1c53747265616d696e67446574656374496e74656e7452" . + "65717565737412140a0773657373696f6e1801200128094203e041021246" . + "0a0c71756572795f706172616d7318022001280b322b2e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e5175657279506172616d" . + "65746572734203e0410112400a0b71756572795f696e7075741803200128" . + "0b32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e5175657279496e7075744203e04102121f0a1073696e676c655f757474" . + "6572616e636518042001280842051801e04101124f0a136f75747075745f" . + "617564696f5f636f6e66696718052001280b322d2e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e4f7574707574417564696f43" . + "6f6e6669674203e0410112180a0b696e7075745f617564696f1806200128" . + "0c4203e0410122d5020a1d53747265616d696e67446574656374496e7465" . + "6e74526573706f6e736512130a0b726573706f6e73655f69641801200128" . + "0912520a127265636f676e6974696f6e5f726573756c7418022001280b32" . + "362e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53" . + "747265616d696e675265636f676e6974696f6e526573756c74123d0a0c71" . + "756572795f726573756c7418032001280b32272e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e5175657279526573756c74122a" . + "0a0e776562686f6f6b5f73746174757318042001280b32122e676f6f676c" . + "652e7270632e53746174757312140a0c6f75747075745f617564696f1805" . + "2001280c124a0a136f75747075745f617564696f5f636f6e666967180620" . + "01280b322d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e4f7574707574417564696f436f6e6669672286030a1a5374726561" . + "6d696e675265636f676e6974696f6e526573756c7412580a0c6d65737361" . + "67655f7479706518012001280e32422e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e53747265616d696e675265636f676e6974" . + "696f6e526573756c742e4d6573736167655479706512120a0a7472616e73" . + "637269707418022001280912100a0869735f66696e616c18032001280812" . + "120a0a636f6e666964656e636518042001280212440a107370656563685f" . + "776f72645f696e666f18072003280b322a2e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e537065656368576f7264496e666f12" . + "340a117370656563685f656e645f6f666673657418082001280b32192e67" . + "6f6f676c652e70726f746f6275662e4475726174696f6e22580a0b4d6573" . + "7361676554797065121c0a184d4553534147455f545950455f554e535045" . + "4349464945441000120e0a0a5452414e5343524950541001121b0a17454e" . + "445f4f465f53494e474c455f5554544552414e43451002223a0a09546578" . + "74496e70757412110a04746578741801200128094203e04102121a0a0d6c" . + "616e67756167655f636f64651802200128094203e04102226d0a0a457665" . + "6e74496e70757412110a046e616d651801200128094203e0410212300a0a" . + "706172616d657465727318022001280b32172e676f6f676c652e70726f74" . + "6f6275662e5374727563744203e04101121a0a0d6c616e67756167655f63" . + "6f64651803200128094203e04102224b0a1e53656e74696d656e74416e61" . + "6c7973697352657175657374436f6e66696712290a1c616e616c797a655f" . + "71756572795f746578745f73656e74696d656e741801200128084203e041" . + "01225e0a1753656e74696d656e74416e616c79736973526573756c741243" . + "0a1471756572795f746578745f73656e74696d656e7418012001280b3225" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5365" . + "6e74696d656e74222d0a0953656e74696d656e74120d0a0573636f726518" . + "012001280212110a096d61676e697475646518022001280232e6030a0853" . + "657373696f6e7312ca010a0c446574656374496e74656e74122f2e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e446574656374" . + "496e74656e74526571756573741a302e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e446574656374496e74656e74526573706f" . + "6e7365225782d3e493023b22362f76322f7b73657373696f6e3d70726f6a" . + "656374732f2a2f6167656e742f73657373696f6e732f2a7d3a6465746563" . + "74496e74656e743a012ada411373657373696f6e2c71756572795f696e70" . + "75741292010a1553747265616d696e67446574656374496e74656e741238" . "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5374" . - "7265616d696e675265636f676e6974696f6e526573756c74123d0a0c7175" . - "6572795f726573756c7418032001280b32272e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e5175657279526573756c74122a0a" . - "0e776562686f6f6b5f73746174757318042001280b32122e676f6f676c65" . - "2e7270632e53746174757312140a0c6f75747075745f617564696f180520" . - "01280c124a0a136f75747075745f617564696f5f636f6e66696718062001" . - "280b322d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e4f7574707574417564696f436f6e666967228a020a1a53747265616d" . - "696e675265636f676e6974696f6e526573756c7412580a0c6d6573736167" . - "655f7479706518012001280e32422e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e53747265616d696e675265636f676e697469" . - "6f6e526573756c742e4d6573736167655479706512120a0a7472616e7363" . - "7269707418022001280912100a0869735f66696e616c1803200128081212" . - "0a0a636f6e666964656e636518042001280222580a0b4d65737361676554" . - "797065121c0a184d4553534147455f545950455f554e5350454349464945" . - "441000120e0a0a5452414e5343524950541001121b0a17454e445f4f465f" . - "53494e474c455f5554544552414e4345100222300a0954657874496e7075" . - "74120c0a047465787418012001280912150a0d6c616e67756167655f636f" . - "6465180220012809225e0a0a4576656e74496e707574120c0a046e616d65" . - "180120012809122b0a0a706172616d657465727318022001280b32172e67" . - "6f6f676c652e70726f746f6275662e53747275637412150a0d6c616e6775" . - "6167655f636f646518032001280922460a1e53656e74696d656e74416e61" . - "6c7973697352657175657374436f6e66696712240a1c616e616c797a655f" . - "71756572795f746578745f73656e74696d656e74180120012808225e0a17" . - "53656e74696d656e74416e616c79736973526573756c7412430a14717565" . - "72795f746578745f73656e74696d656e7418012001280b32252e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e53656e74696d65" . - "6e74222d0a0953656e74696d656e74120d0a0573636f7265180120012802" . - "12110a096d61676e697475646518022001280232d0030a0853657373696f" . - "6e7312b4010a0c446574656374496e74656e74122f2e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e446574656374496e74656e" . - "74526571756573741a302e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e446574656374496e74656e74526573706f6e73652241" . - "82d3e493023b22362f76322f7b73657373696f6e3d70726f6a656374732f" . - "2a2f6167656e742f73657373696f6e732f2a7d3a646574656374496e7465" . - "6e743a012a1292010a1553747265616d696e67446574656374496e74656e" . - "7412382e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e53747265616d696e67446574656374496e74656e74526571756573741a" . - "392e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53" . - "747265616d696e67446574656374496e74656e74526573706f6e73652200" . - "280130011a78ca41196469616c6f67666c6f772e676f6f676c6561706973" . - "2e636f6dd2415968747470733a2f2f7777772e676f6f676c65617069732e" . - "636f6d2f617574682f636c6f75642d706c6174666f726d2c68747470733a" . - "2f2f7777772e676f6f676c65617069732e636f6d2f617574682f6469616c" . - "6f67666c6f77429b010a1e636f6d2e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e7632420c53657373696f6e50726f746f50015a4467" . - "6f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f67" . - "6c65617069732f636c6f75642f6469616c6f67666c6f772f76323b646961" . - "6c6f67666c6f77f80101a202024446aa021a476f6f676c652e436c6f7564" . - "2e4469616c6f67666c6f772e5632620670726f746f33" + "7265616d696e67446574656374496e74656e74526571756573741a392e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53747265" . + "616d696e67446574656374496e74656e74526573706f6e73652200280130" . + "011a78ca41196469616c6f67666c6f772e676f6f676c65617069732e636f" . + "6dd2415968747470733a2f2f7777772e676f6f676c65617069732e636f6d" . + "2f617574682f636c6f75642d706c6174666f726d2c68747470733a2f2f77" . + "77772e676f6f676c65617069732e636f6d2f617574682f6469616c6f6766" . + "6c6f77429b010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e7632420c53657373696f6e50726f746f50015a44676f6f67" . + "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . + "7069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67" . + "666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e4469" . + "616c6f67666c6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/SessionEntityType.php b/Dialogflow/metadata/V2/SessionEntityType.php index 8c4701ede83e..e5ccaaf27c7b 100644 --- a/Dialogflow/metadata/V2/SessionEntityType.php +++ b/Dialogflow/metadata/V2/SessionEntityType.php @@ -15,95 +15,110 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); + \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\EntityType::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ac4130a34676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0acf160a34676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f73657373696f6e5f656e746974795f747970652e70726f746f121a67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76321a2c676f6f" . - "676c652f636c6f75642f6469616c6f67666c6f772f76322f656e74697479" . - "5f747970652e70726f746f1a1b676f6f676c652f70726f746f6275662f65" . - "6d7074792e70726f746f1a20676f6f676c652f70726f746f6275662f6669" . - "656c645f6d61736b2e70726f746f1a17676f6f676c652f6170692f636c69" . - "656e742e70726f746f22c7020a1153657373696f6e456e74697479547970" . - "65120c0a046e616d65180120012809125e0a14656e746974795f6f766572" . - "726964655f6d6f646518022001280e32402e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e53657373696f6e456e746974795479" . - "70652e456e746974794f766572726964654d6f6465123f0a08656e746974" . - "69657318032003280b322d2e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e456e74697479547970652e456e746974792282010a" . - "12456e746974794f766572726964654d6f646512240a20454e544954595f" . - "4f564552524944455f4d4f44455f554e535045434946494544100012210a" . - "1d454e544954595f4f564552524944455f4d4f44455f4f56455252494445" . - "100112230a1f454e544954595f4f564552524944455f4d4f44455f535550" . - "504c454d454e54100222560a1d4c69737453657373696f6e456e74697479" . - "547970657352657175657374120e0a06706172656e741801200128091211" . - "0a09706167655f73697a6518022001280512120a0a706167655f746f6b65" . - "6e1803200128092286010a1e4c69737453657373696f6e456e7469747954" . - "79706573526573706f6e7365124b0a1473657373696f6e5f656e74697479" . - "5f747970657318012003280b322d2e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e53657373696f6e456e746974795479706512" . - "170a0f6e6578745f706167655f746f6b656e180220012809222b0a1b4765" . - "7453657373696f6e456e746974795479706552657175657374120c0a046e" . - "616d65180120012809227c0a1e43726561746553657373696f6e456e7469" . - "74795479706552657175657374120e0a06706172656e7418012001280912" . - "4a0a1373657373696f6e5f656e746974795f7479706518022001280b322d" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5365" . - "7373696f6e456e7469747954797065229d010a1e55706461746553657373" . - "696f6e456e746974795479706552657175657374124a0a1373657373696f" . - "6e5f656e746974795f7479706518012001280b322d2e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e7469" . - "747954797065122f0a0b7570646174655f6d61736b18022001280b321a2e" . - "676f6f676c652e70726f746f6275662e4669656c644d61736b222e0a1e44" . - "656c65746553657373696f6e456e74697479547970655265717565737412" . - "0c0a046e616d651801200128093293090a1253657373696f6e456e746974" . - "79547970657312cd010a164c69737453657373696f6e456e746974795479" . - "70657312392e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e4c69737453657373696f6e456e7469747954797065735265717565" . - "73741a3a2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e4c69737453657373696f6e456e746974795479706573526573706f6e" . - "7365223c82d3e493023612342f76322f7b706172656e743d70726f6a6563" . - "74732f2a2f6167656e742f73657373696f6e732f2a7d2f656e7469747954" . - "7970657312bc010a1447657453657373696f6e456e746974795479706512" . - "372e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e47" . - "657453657373696f6e456e7469747954797065526571756573741a2d2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53657373" . - "696f6e456e7469747954797065223c82d3e493023612342f76322f7b6e61" . - "6d653d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a" . - "2f656e7469747954797065732f2a7d12d7010a1743726561746553657373" . - "696f6e456e7469747954797065123a2e676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76322e43726561746553657373696f6e456e7469" . - "747954797065526571756573741a2d2e676f6f676c652e636c6f75642e64" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76321a17676f6f" . + "676c652f6170692f636c69656e742e70726f746f1a1f676f6f676c652f61" . + "70692f6669656c645f6265686176696f722e70726f746f1a19676f6f676c" . + "652f6170692f7265736f757263652e70726f746f1a2c676f6f676c652f63" . + "6c6f75642f6469616c6f67666c6f772f76322f656e746974795f74797065" . + "2e70726f746f1a1b676f6f676c652f70726f746f6275662f656d7074792e" . + "70726f746f1a20676f6f676c652f70726f746f6275662f6669656c645f6d" . + "61736b2e70726f746f22cf030a1153657373696f6e456e74697479547970" . + "6512110a046e616d651801200128094203e0410212630a14656e74697479" . + "5f6f766572726964655f6d6f646518022001280e32402e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e74" . + "697479547970652e456e746974794f766572726964654d6f64654203e041" . + "0212440a08656e74697469657318032003280b322d2e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e456e74697479547970652e" . + "456e746974794203e041022282010a12456e746974794f76657272696465" . + "4d6f646512240a20454e544954595f4f564552524944455f4d4f44455f55" . + "4e535045434946494544100012210a1d454e544954595f4f564552524944" . + "455f4d4f44455f4f56455252494445100112230a1f454e544954595f4f56" . + "4552524944455f4d4f44455f535550504c454d454e5410023a77ea41740a" . + "2b6469616c6f67666c6f772e676f6f676c65617069732e636f6d2f536573" . + "73696f6e456e7469747954797065124570726f6a656374732f7b70726f6a" . + "6563747d2f6167656e742f73657373696f6e732f7b73657373696f6e7d2f" . + "656e7469747954797065732f7b656e746974795f747970657d22650a1d4c" . + "69737453657373696f6e456e746974795479706573526571756573741213" . + "0a06706172656e741801200128094203e0410212160a09706167655f7369" . + "7a651802200128054203e0410112170a0a706167655f746f6b656e180320" . + "0128094203e041012286010a1e4c69737453657373696f6e456e74697479" . + "5479706573526573706f6e7365124b0a1473657373696f6e5f656e746974" . + "795f747970657318012003280b322d2e676f6f676c652e636c6f75642e64" . "69616c6f67666c6f772e76322e53657373696f6e456e7469747954797065" . - "225182d3e493024b22342f76322f7b706172656e743d70726f6a65637473" . + "12170a0f6e6578745f706167655f746f6b656e18022001280922600a1b47" . + "657453657373696f6e456e74697479547970655265717565737412410a04" . + "6e616d651801200128094233e04102fa412d0a2b6469616c6f67666c6f77" . + "2e676f6f676c65617069732e636f6d2f53657373696f6e456e7469747954" . + "7970652286010a1e43726561746553657373696f6e456e74697479547970" . + "655265717565737412130a06706172656e741801200128094203e0410212" . + "4f0a1373657373696f6e5f656e746974795f7479706518022001280b322d" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5365" . + "7373696f6e456e74697479547970654203e0410222a7010a1e5570646174" . + "6553657373696f6e456e746974795479706552657175657374124f0a1373" . + "657373696f6e5f656e746974795f7479706518012001280b322d2e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e53657373696f" . + "6e456e74697479547970654203e0410212340a0b7570646174655f6d6173" . + "6b18022001280b321a2e676f6f676c652e70726f746f6275662e4669656c" . + "644d61736b4203e0410122590a1e44656c65746553657373696f6e456e74" . + "697479547970655265717565737412370a046e616d651801200128094229" . + "e04102fa41230a216469616c6f67666c6f772e676f6f676c65617069732e" . + "636f6d2f436f6e7465787432d6090a1253657373696f6e456e7469747954" . + "7970657312d6010a164c69737453657373696f6e456e7469747954797065" . + "7312392e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e4c69737453657373696f6e456e74697479547970657352657175657374" . + "1a3a2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "4c69737453657373696f6e456e746974795479706573526573706f6e7365" . + "224582d3e493023612342f76322f7b706172656e743d70726f6a65637473" . "2f2a2f6167656e742f73657373696f6e732f2a7d2f656e74697479547970" . - "65733a1373657373696f6e5f656e746974795f7479706512eb010a175570" . - "6461746553657373696f6e456e7469747954797065123a2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e557064617465536573" . - "73696f6e456e7469747954797065526571756573741a2d2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e" . - "7469747954797065226582d3e493025f32482f76322f7b73657373696f6e" . - "5f656e746974795f747970652e6e616d653d70726f6a656374732f2a2f61" . - "67656e742f73657373696f6e732f2a2f656e7469747954797065732f2a7d" . - "3a1373657373696f6e5f656e746974795f7479706512ab010a1744656c65" . - "746553657373696f6e456e7469747954797065123a2e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e44656c6574655365737369" . - "6f6e456e7469747954797065526571756573741a162e676f6f676c652e70" . - "726f746f6275662e456d707479223c82d3e49302362a342f76322f7b6e61" . - "6d653d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a" . - "2f656e7469747954797065732f2a7d1a78ca41196469616c6f67666c6f77" . - "2e676f6f676c65617069732e636f6dd2415968747470733a2f2f7777772e" . - "676f6f676c65617069732e636f6d2f617574682f636c6f75642d706c6174" . - "666f726d2c68747470733a2f2f7777772e676f6f676c65617069732e636f" . - "6d2f617574682f6469616c6f67666c6f7742a5010a1e636f6d2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e7632421653657373696f" . - "6e456e746974795479706550726f746f50015a44676f6f676c652e676f6c" . - "616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c" . - "6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f801" . - "01a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c" . - "6f772e5632620670726f746f33" + "6573da4106706172656e7412bc010a1447657453657373696f6e456e7469" . + "74795479706512372e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e47657453657373696f6e456e746974795479706552657175" . + "6573741a2d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e53657373696f6e456e7469747954797065223c82d3e49302361234" . + "2f76322f7b6e616d653d70726f6a656374732f2a2f6167656e742f736573" . + "73696f6e732f2a2f656e7469747954797065732f2a7d12f4010a17437265" . + "61746553657373696f6e456e7469747954797065123a2e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e43726561746553657373" . + "696f6e456e7469747954797065526571756573741a2d2e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e74" . + "69747954797065226e82d3e493024b22342f76322f7b706172656e743d70" . + "726f6a656374732f2a2f6167656e742f73657373696f6e732f2a7d2f656e" . + "7469747954797065733a1373657373696f6e5f656e746974795f74797065" . + "da411a706172656e742c73657373696f6e5f656e746974795f7479706512" . + "81020a1755706461746553657373696f6e456e7469747954797065123a2e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e557064" . + "61746553657373696f6e456e7469747954797065526571756573741a2d2e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e536573" . + "73696f6e456e7469747954797065227b82d3e493025f32482f76322f7b73" . + "657373696f6e5f656e746974795f747970652e6e616d653d70726f6a6563" . + "74732f2a2f6167656e742f73657373696f6e732f2a2f656e746974795479" . + "7065732f2a7d3a1373657373696f6e5f656e746974795f74797065da4113" . + "73657373696f6e5f656e746974795f7479706512b2010a1744656c657465" . + "53657373696f6e456e7469747954797065123a2e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e44656c65746553657373696f6e" . + "456e7469747954797065526571756573741a162e676f6f676c652e70726f" . + "746f6275662e456d707479224382d3e49302362a342f76322f7b6e616d65" . + "3d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a2f65" . + "6e7469747954797065732f2a7dda41046e616d651a78ca41196469616c6f" . + "67666c6f772e676f6f676c65617069732e636f6dd2415968747470733a2f" . + "2f7777772e676f6f676c65617069732e636f6d2f617574682f636c6f7564" . + "2d706c6174666f726d2c68747470733a2f2f7777772e676f6f676c656170" . + "69732e636f6d2f617574682f6469616c6f67666c6f7742a5010a1e636f6d" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632421653" . + "657373696f6e456e746974795479706550726f746f50015a44676f6f676c" . + "652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c656170" . + "69732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f6766" . + "6c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e446961" . + "6c6f67666c6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Webhook.php b/Dialogflow/metadata/V2/Webhook.php index 71eef7c4f8fc..f7b6e9a15eed 100644 --- a/Dialogflow/metadata/V2/Webhook.php +++ b/Dialogflow/metadata/V2/Webhook.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aaa080a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0af7080a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f776562686f6f6b2e70726f746f121a676f6f676c652e636c6f75642e" . "6469616c6f67666c6f772e76321a27676f6f676c652f636c6f75642f6469" . "616c6f67666c6f772f76322f696e74656e742e70726f746f1a28676f6f67" . @@ -37,7 +37,7 @@ public static function initOnce() { "125f0a1e6f726967696e616c5f6465746563745f696e74656e745f726571" . "7565737418032001280b32372e676f6f676c652e636c6f75642e6469616c" . "6f67666c6f772e76322e4f726967696e616c446574656374496e74656e74" . - "5265717565737422b3020a0f576562686f6f6b526573706f6e736512180a" . + "526571756573742280030a0f576562686f6f6b526573706f6e736512180a" . "1066756c66696c6c6d656e745f7465787418012001280912480a1466756c" . "66696c6c6d656e745f6d6573736167657318022003280b322a2e676f6f67" . "6c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e" . @@ -47,16 +47,19 @@ public static function initOnce() { "32232e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . "436f6e7465787412440a14666f6c6c6f7775705f6576656e745f696e7075" . "7418062001280b32262e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e4576656e74496e70757422680a1b4f726967696e616c44" . - "6574656374496e74656e7452657175657374120e0a06736f757263651801" . - "20012809120f0a0776657273696f6e18022001280912280a077061796c6f" . - "616418032001280b32172e676f6f676c652e70726f746f6275662e537472" . - "756374429b010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e7632420c576562686f6f6b50726f746f50015a44676f6f67" . - "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . - "7069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67" . - "666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e4469" . - "616c6f67666c6f772e5632620670726f746f33" + "6c6f772e76322e4576656e74496e707574124b0a1473657373696f6e5f65" . + "6e746974795f7479706573180a2003280b322d2e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e53657373696f6e456e74697479" . + "5479706522680a1b4f726967696e616c446574656374496e74656e745265" . + "7175657374120e0a06736f75726365180120012809120f0a077665727369" . + "6f6e18022001280912280a077061796c6f616418032001280b32172e676f" . + "6f676c652e70726f746f6275662e537472756374429b010a1e636f6d2e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e7632420c576562" . + "686f6f6b50726f746f50015a44676f6f676c652e676f6c616e672e6f7267" . + "2f67656e70726f746f2f676f6f676c65617069732f636c6f75642f646961" . + "6c6f67666c6f772f76323b6469616c6f67666c6f77f80101a202024446aa" . + "021a476f6f676c652e436c6f75642e4469616c6f67666c6f772e56326206" . + "70726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/src/V2/Agent.php b/Dialogflow/src/V2/Agent.php index dbacbb72e89a..50dc79ff3aca 100644 --- a/Dialogflow/src/V2/Agent.php +++ b/Dialogflow/src/V2/Agent.php @@ -19,13 +19,13 @@ class Agent extends \Google\Protobuf\Internal\Message * Required. The project of this agent. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The name of this agent. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $display_name = ''; /** @@ -35,14 +35,14 @@ class Agent extends \Google\Protobuf\Internal\Message * for a list of the currently supported language codes. This field cannot be * set by the `Update` method. * - * Generated from protobuf field string default_language_code = 3; + * Generated from protobuf field string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $default_language_code = ''; /** * Optional. The list of all languages supported by this agent (except for the * `default_language_code`). * - * Generated from protobuf field repeated string supported_language_codes = 4; + * Generated from protobuf field repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $supported_language_codes; /** @@ -50,14 +50,14 @@ class Agent extends \Google\Protobuf\Internal\Message * [time zone database](https://www.iana.org/time-zones), e.g., * America/New_York, Europe/Paris. * - * Generated from protobuf field string time_zone = 5; + * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; */ private $time_zone = ''; /** * Optional. The description of this agent. * The maximum length is 500 characters. If exceeded, the request is rejected. * - * Generated from protobuf field string description = 6; + * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $description = ''; /** @@ -67,19 +67,19 @@ class Agent extends \Google\Protobuf\Internal\Message * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) * integration. * - * Generated from protobuf field string avatar_uri = 7; + * Generated from protobuf field string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private $avatar_uri = ''; /** * Optional. Determines whether this agent should log conversation queries. * - * Generated from protobuf field bool enable_logging = 8; + * Generated from protobuf field bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private $enable_logging = false; /** * Optional. Determines how intents are detected from user queries. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private $match_mode = 0; /** @@ -91,7 +91,7 @@ class Agent extends \Google\Protobuf\Internal\Message * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. * - * Generated from protobuf field float classification_threshold = 10; + * Generated from protobuf field float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private $classification_threshold = 0.0; /** @@ -100,13 +100,13 @@ class Agent extends \Google\Protobuf\Internal\Message * for different API versions. However, bots connectors and webhook calls will * follow the specified API version. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private $api_version = 0; /** * Optional. The agent tier. If not specified, TIER_STANDARD is assumed. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.Tier tier = 15; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private $tier = 0; @@ -173,7 +173,7 @@ public function __construct($data = NULL) { * Required. The project of this agent. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -185,7 +185,7 @@ public function getParent() * Required. The project of this agent. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -200,7 +200,7 @@ public function setParent($var) /** * Required. The name of this agent. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDisplayName() @@ -211,7 +211,7 @@ public function getDisplayName() /** * Required. The name of this agent. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -230,7 +230,7 @@ public function setDisplayName($var) * for a list of the currently supported language codes. This field cannot be * set by the `Update` method. * - * Generated from protobuf field string default_language_code = 3; + * Generated from protobuf field string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDefaultLanguageCode() @@ -245,7 +245,7 @@ public function getDefaultLanguageCode() * for a list of the currently supported language codes. This field cannot be * set by the `Update` method. * - * Generated from protobuf field string default_language_code = 3; + * Generated from protobuf field string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -261,7 +261,7 @@ public function setDefaultLanguageCode($var) * Optional. The list of all languages supported by this agent (except for the * `default_language_code`). * - * Generated from protobuf field repeated string supported_language_codes = 4; + * Generated from protobuf field repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSupportedLanguageCodes() @@ -273,7 +273,7 @@ public function getSupportedLanguageCodes() * Optional. The list of all languages supported by this agent (except for the * `default_language_code`). * - * Generated from protobuf field repeated string supported_language_codes = 4; + * Generated from protobuf field repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -290,7 +290,7 @@ public function setSupportedLanguageCodes($var) * [time zone database](https://www.iana.org/time-zones), e.g., * America/New_York, Europe/Paris. * - * Generated from protobuf field string time_zone = 5; + * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getTimeZone() @@ -303,7 +303,7 @@ public function getTimeZone() * [time zone database](https://www.iana.org/time-zones), e.g., * America/New_York, Europe/Paris. * - * Generated from protobuf field string time_zone = 5; + * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -319,7 +319,7 @@ public function setTimeZone($var) * Optional. The description of this agent. * The maximum length is 500 characters. If exceeded, the request is rejected. * - * Generated from protobuf field string description = 6; + * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDescription() @@ -331,7 +331,7 @@ public function getDescription() * Optional. The description of this agent. * The maximum length is 500 characters. If exceeded, the request is rejected. * - * Generated from protobuf field string description = 6; + * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -350,7 +350,7 @@ public function setDescription($var) * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) * integration. * - * Generated from protobuf field string avatar_uri = 7; + * Generated from protobuf field string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getAvatarUri() @@ -365,7 +365,7 @@ public function getAvatarUri() * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) * integration. * - * Generated from protobuf field string avatar_uri = 7; + * Generated from protobuf field string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -380,7 +380,7 @@ public function setAvatarUri($var) /** * Optional. Determines whether this agent should log conversation queries. * - * Generated from protobuf field bool enable_logging = 8; + * Generated from protobuf field bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getEnableLogging() @@ -391,7 +391,7 @@ public function getEnableLogging() /** * Optional. Determines whether this agent should log conversation queries. * - * Generated from protobuf field bool enable_logging = 8; + * Generated from protobuf field bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -406,7 +406,7 @@ public function setEnableLogging($var) /** * Optional. Determines how intents are detected from user queries. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getMatchMode() @@ -417,7 +417,7 @@ public function getMatchMode() /** * Optional. Determines how intents are detected from user queries. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -438,7 +438,7 @@ public function setMatchMode($var) * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. * - * Generated from protobuf field float classification_threshold = 10; + * Generated from protobuf field float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return float */ public function getClassificationThreshold() @@ -455,7 +455,7 @@ public function getClassificationThreshold() * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. * - * Generated from protobuf field float classification_threshold = 10; + * Generated from protobuf field float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param float $var * @return $this */ @@ -473,7 +473,7 @@ public function setClassificationThreshold($var) * for different API versions. However, bots connectors and webhook calls will * follow the specified API version. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getApiVersion() @@ -487,7 +487,7 @@ public function getApiVersion() * for different API versions. However, bots connectors and webhook calls will * follow the specified API version. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -502,7 +502,7 @@ public function setApiVersion($var) /** * Optional. The agent tier. If not specified, TIER_STANDARD is assumed. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.Tier tier = 15; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getTier() @@ -513,7 +513,7 @@ public function getTier() /** * Optional. The agent tier. If not specified, TIER_STANDARD is assumed. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.Tier tier = 15; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/Agent/MatchMode.php b/Dialogflow/src/V2/Agent/MatchMode.php index 1e30c2c3c2bf..e1e08fd21806 100644 --- a/Dialogflow/src/V2/Agent/MatchMode.php +++ b/Dialogflow/src/V2/Agent/MatchMode.php @@ -28,7 +28,7 @@ class MatchMode const MATCH_MODE_HYBRID = 1; /** * Can be used for agents with a large number of examples in intents, - * especially the ones using @sys.any or very large developer entities. + * especially the ones using @sys.any or very large custom entities. * * Generated from protobuf enum MATCH_MODE_ML_ONLY = 2; */ diff --git a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php index 3638431e2673..ff91d0f7d45e 100644 --- a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php @@ -19,13 +19,13 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type to create entities in. Format: * `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The entities to create. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $entities; /** @@ -36,7 +36,7 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; @@ -69,7 +69,7 @@ public function __construct($data = NULL) { * Required. The name of the entity type to create entities in. Format: * `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -81,7 +81,7 @@ public function getParent() * Required. The name of the entity type to create entities in. Format: * `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -96,7 +96,7 @@ public function setParent($var) /** * Required. The entities to create. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntities() @@ -107,7 +107,7 @@ public function getEntities() /** * Required. The entities to create. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -127,7 +127,7 @@ public function setEntities($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -143,7 +143,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php index f3c9ceb633c7..d7816ea8cb91 100644 --- a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php @@ -19,15 +19,15 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type to delete entries for. Format: * `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** - * Required. The canonical `values` of the entities to delete. Note that + * Required. The reference `values` of the entities to delete. Note that * these are not fully-qualified names, i.e. they don't start with * `projects/`. * - * Generated from protobuf field repeated string entity_values = 2; + * Generated from protobuf field repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $entity_values; /** @@ -38,7 +38,7 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; @@ -52,7 +52,7 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type to delete entries for. Format: * `projects//agent/entityTypes/`. * @type string[]|\Google\Protobuf\Internal\RepeatedField $entity_values - * Required. The canonical `values` of the entities to delete. Note that + * Required. The reference `values` of the entities to delete. Note that * these are not fully-qualified names, i.e. they don't start with * `projects/`. * @type string $language_code @@ -73,7 +73,7 @@ public function __construct($data = NULL) { * Required. The name of the entity type to delete entries for. Format: * `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -85,7 +85,7 @@ public function getParent() * Required. The name of the entity type to delete entries for. Format: * `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -98,11 +98,11 @@ public function setParent($var) } /** - * Required. The canonical `values` of the entities to delete. Note that + * Required. The reference `values` of the entities to delete. Note that * these are not fully-qualified names, i.e. they don't start with * `projects/`. * - * Generated from protobuf field repeated string entity_values = 2; + * Generated from protobuf field repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntityValues() @@ -111,11 +111,11 @@ public function getEntityValues() } /** - * Required. The canonical `values` of the entities to delete. Note that + * Required. The reference `values` of the entities to delete. Note that * these are not fully-qualified names, i.e. they don't start with * `projects/`. * - * Generated from protobuf field repeated string entity_values = 2; + * Generated from protobuf field repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -135,7 +135,7 @@ public function setEntityValues($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -151,7 +151,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php index 1466e74de9a3..ef53b6df773d 100644 --- a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php +++ b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php @@ -19,14 +19,14 @@ class BatchDeleteEntityTypesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the agent to delete all entities types for. Format: * `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The names entity types to delete. All names must point to the * same agent as `parent`. * - * Generated from protobuf field repeated string entity_type_names = 2; + * Generated from protobuf field repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $entity_type_names; @@ -53,7 +53,7 @@ public function __construct($data = NULL) { * Required. The name of the agent to delete all entities types for. Format: * `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -65,7 +65,7 @@ public function getParent() * Required. The name of the agent to delete all entities types for. Format: * `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -81,7 +81,7 @@ public function setParent($var) * Required. The names entity types to delete. All names must point to the * same agent as `parent`. * - * Generated from protobuf field repeated string entity_type_names = 2; + * Generated from protobuf field repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntityTypeNames() @@ -93,7 +93,7 @@ public function getEntityTypeNames() * Required. The names entity types to delete. All names must point to the * same agent as `parent`. * - * Generated from protobuf field repeated string entity_type_names = 2; + * Generated from protobuf field repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php index 9c881fd6a211..880d5835950a 100644 --- a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php +++ b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php @@ -19,14 +19,14 @@ class BatchDeleteIntentsRequest extends \Google\Protobuf\Internal\Message * Required. The name of the agent to delete all entities types for. Format: * `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The collection of intents to delete. Only intent `name` must be * filled in. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $intents; @@ -53,7 +53,7 @@ public function __construct($data = NULL) { * Required. The name of the agent to delete all entities types for. Format: * `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -65,7 +65,7 @@ public function getParent() * Required. The name of the agent to delete all entities types for. Format: * `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -81,7 +81,7 @@ public function setParent($var) * Required. The collection of intents to delete. Only intent `name` must be * filled in. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIntents() @@ -93,7 +93,7 @@ public function getIntents() * Required. The collection of intents to delete. Only intent `name` must be * filled in. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php index eec09c772574..76829a9d2edb 100644 --- a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php @@ -19,13 +19,13 @@ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type to update or create entities in. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The entities to update or create. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $entities; /** @@ -36,13 +36,13 @@ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; @@ -77,7 +77,7 @@ public function __construct($data = NULL) { * Required. The name of the entity type to update or create entities in. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -89,7 +89,7 @@ public function getParent() * Required. The name of the entity type to update or create entities in. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -104,7 +104,7 @@ public function setParent($var) /** * Required. The entities to update or create. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntities() @@ -115,7 +115,7 @@ public function getEntities() /** * Required. The entities to update or create. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -135,7 +135,7 @@ public function setEntities($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -151,7 +151,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -166,7 +166,7 @@ public function setLanguageCode($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -177,7 +177,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php index aec1dfa3aab7..ea6de37c440c 100644 --- a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php +++ b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php @@ -19,7 +19,7 @@ class BatchUpdateEntityTypesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the agent to update or create entity types in. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** @@ -30,13 +30,13 @@ class BatchUpdateEntityTypesRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 4; + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; protected $entity_type_batch; @@ -77,7 +77,7 @@ public function __construct($data = NULL) { * Required. The name of the agent to update or create entity types in. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -89,7 +89,7 @@ public function getParent() * Required. The name of the agent to update or create entity types in. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -167,7 +167,7 @@ public function setEntityTypeBatchInline($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 4; + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -183,7 +183,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 4; + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -198,7 +198,7 @@ public function setLanguageCode($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -209,7 +209,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ diff --git a/Dialogflow/src/V2/BatchUpdateIntentsRequest.php b/Dialogflow/src/V2/BatchUpdateIntentsRequest.php index 2c389e525f4a..05533aa52fa2 100644 --- a/Dialogflow/src/V2/BatchUpdateIntentsRequest.php +++ b/Dialogflow/src/V2/BatchUpdateIntentsRequest.php @@ -19,7 +19,7 @@ class BatchUpdateIntentsRequest extends \Google\Protobuf\Internal\Message * Required. The name of the agent to update or create intents in. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** @@ -30,19 +30,19 @@ class BatchUpdateIntentsRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 4; + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $intent_view = 0; protected $intent_batch; @@ -84,7 +84,7 @@ public function __construct($data = NULL) { * Required. The name of the agent to update or create intents in. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -96,7 +96,7 @@ public function getParent() * Required. The name of the agent to update or create intents in. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -172,7 +172,7 @@ public function setIntentBatchInline($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 4; + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -188,7 +188,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 4; + * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -203,7 +203,7 @@ public function setLanguageCode($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -214,7 +214,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ @@ -229,7 +229,7 @@ public function setUpdateMask($var) /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getIntentView() @@ -240,7 +240,7 @@ public function getIntentView() /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/Context.php b/Dialogflow/src/V2/Context.php index b5ae35a4a85d..66498fb99bdf 100644 --- a/Dialogflow/src/V2/Context.php +++ b/Dialogflow/src/V2/Context.php @@ -20,8 +20,13 @@ class Context extends \Google\Protobuf\Internal\Message * `projects//agent/sessions//contexts/`. * The `Context ID` is always converted to lowercase, may only contain * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. + * The following context names are reserved for internal use by Dialogflow. + * You should not use these contexts or create contexts with these names: + * * `__system_counters__` + * * `*_id_dialog_context` + * * `*_dialog_params_size` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $name = ''; /** @@ -30,7 +35,7 @@ class Context extends \Google\Protobuf\Internal\Message * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * - * Generated from protobuf field int32 lifespan_count = 2; + * Generated from protobuf field int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $lifespan_count = 0; /** @@ -39,7 +44,7 @@ class Context extends \Google\Protobuf\Internal\Message * doc](https://cloud.google.com/dialogflow/docs/intents-actions-parameters) * for syntax. * - * Generated from protobuf field .google.protobuf.Struct parameters = 3; + * Generated from protobuf field .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $parameters = null; @@ -54,6 +59,11 @@ class Context extends \Google\Protobuf\Internal\Message * `projects//agent/sessions//contexts/`. * The `Context ID` is always converted to lowercase, may only contain * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. + * The following context names are reserved for internal use by Dialogflow. + * You should not use these contexts or create contexts with these names: + * * `__system_counters__` + * * `*_id_dialog_context` + * * `*_dialog_params_size` * @type int $lifespan_count * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires @@ -76,8 +86,13 @@ public function __construct($data = NULL) { * `projects//agent/sessions//contexts/`. * The `Context ID` is always converted to lowercase, may only contain * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. + * The following context names are reserved for internal use by Dialogflow. + * You should not use these contexts or create contexts with these names: + * * `__system_counters__` + * * `*_id_dialog_context` + * * `*_dialog_params_size` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getName() @@ -90,8 +105,13 @@ public function getName() * `projects//agent/sessions//contexts/`. * The `Context ID` is always converted to lowercase, may only contain * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. + * The following context names are reserved for internal use by Dialogflow. + * You should not use these contexts or create contexts with these names: + * * `__system_counters__` + * * `*_id_dialog_context` + * * `*_dialog_params_size` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -109,7 +129,7 @@ public function setName($var) * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * - * Generated from protobuf field int32 lifespan_count = 2; + * Generated from protobuf field int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getLifespanCount() @@ -123,7 +143,7 @@ public function getLifespanCount() * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * - * Generated from protobuf field int32 lifespan_count = 2; + * Generated from protobuf field int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -141,7 +161,7 @@ public function setLifespanCount($var) * doc](https://cloud.google.com/dialogflow/docs/intents-actions-parameters) * for syntax. * - * Generated from protobuf field .google.protobuf.Struct parameters = 3; + * Generated from protobuf field .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Struct */ public function getParameters() @@ -155,7 +175,7 @@ public function getParameters() * doc](https://cloud.google.com/dialogflow/docs/intents-actions-parameters) * for syntax. * - * Generated from protobuf field .google.protobuf.Struct parameters = 3; + * Generated from protobuf field .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\Struct $var * @return $this */ diff --git a/Dialogflow/src/V2/CreateContextRequest.php b/Dialogflow/src/V2/CreateContextRequest.php index e8060b94cbbb..42cf81c408a7 100644 --- a/Dialogflow/src/V2/CreateContextRequest.php +++ b/Dialogflow/src/V2/CreateContextRequest.php @@ -19,13 +19,13 @@ class CreateContextRequest extends \Google\Protobuf\Internal\Message * Required. The session to create a context for. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $parent = ''; /** * Required. The context to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $context = null; @@ -51,7 +51,7 @@ public function __construct($data = NULL) { * Required. The session to create a context for. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getParent() @@ -63,7 +63,7 @@ public function getParent() * Required. The session to create a context for. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -78,7 +78,7 @@ public function setParent($var) /** * Required. The context to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Context */ public function getContext() @@ -89,7 +89,7 @@ public function getContext() /** * Required. The context to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Context $var * @return $this */ diff --git a/Dialogflow/src/V2/CreateEntityTypeRequest.php b/Dialogflow/src/V2/CreateEntityTypeRequest.php index 86980a33409e..67139d49e7b3 100644 --- a/Dialogflow/src/V2/CreateEntityTypeRequest.php +++ b/Dialogflow/src/V2/CreateEntityTypeRequest.php @@ -19,13 +19,13 @@ class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message * Required. The agent to create a entity type for. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The entity type to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $entity_type = null; /** @@ -36,7 +36,7 @@ class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; @@ -69,7 +69,7 @@ public function __construct($data = NULL) { * Required. The agent to create a entity type for. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -81,7 +81,7 @@ public function getParent() * Required. The agent to create a entity type for. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -96,7 +96,7 @@ public function setParent($var) /** * Required. The entity type to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\EntityType */ public function getEntityType() @@ -107,7 +107,7 @@ public function getEntityType() /** * Required. The entity type to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\EntityType $var * @return $this */ @@ -127,7 +127,7 @@ public function setEntityType($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -143,7 +143,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/CreateIntentRequest.php b/Dialogflow/src/V2/CreateIntentRequest.php index 5b4f839abc37..4bc1db393b4c 100644 --- a/Dialogflow/src/V2/CreateIntentRequest.php +++ b/Dialogflow/src/V2/CreateIntentRequest.php @@ -19,13 +19,13 @@ class CreateIntentRequest extends \Google\Protobuf\Internal\Message * Required. The agent to create a intent for. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Required. The intent to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $intent = null; /** @@ -36,13 +36,13 @@ class CreateIntentRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $intent_view = 0; @@ -77,7 +77,7 @@ public function __construct($data = NULL) { * Required. The agent to create a intent for. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -89,7 +89,7 @@ public function getParent() * Required. The agent to create a intent for. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -104,7 +104,7 @@ public function setParent($var) /** * Required. The intent to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Intent */ public function getIntent() @@ -115,7 +115,7 @@ public function getIntent() /** * Required. The intent to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent $var * @return $this */ @@ -135,7 +135,7 @@ public function setIntent($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -151,7 +151,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -166,7 +166,7 @@ public function setLanguageCode($var) /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getIntentView() @@ -177,7 +177,7 @@ public function getIntentView() /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php index 99f803bacf08..683939790755 100644 --- a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php @@ -19,13 +19,13 @@ class CreateSessionEntityTypeRequest extends \Google\Protobuf\Internal\Message * Required. The session to create a session entity type for. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $parent = ''; /** * Required. The session entity type to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $session_entity_type = null; @@ -51,7 +51,7 @@ public function __construct($data = NULL) { * Required. The session to create a session entity type for. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getParent() @@ -63,7 +63,7 @@ public function getParent() * Required. The session to create a session entity type for. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -78,7 +78,7 @@ public function setParent($var) /** * Required. The session entity type to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\SessionEntityType */ public function getSessionEntityType() @@ -89,7 +89,7 @@ public function getSessionEntityType() /** * Required. The session entity type to create. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\SessionEntityType $var * @return $this */ diff --git a/Dialogflow/src/V2/DeleteAgentRequest.php b/Dialogflow/src/V2/DeleteAgentRequest.php index caed89c30020..d556a615377a 100644 --- a/Dialogflow/src/V2/DeleteAgentRequest.php +++ b/Dialogflow/src/V2/DeleteAgentRequest.php @@ -19,7 +19,7 @@ class DeleteAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to delete is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The project that the agent to delete is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -55,7 +55,7 @@ public function getParent() * Required. The project that the agent to delete is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/DeleteAllContextsRequest.php b/Dialogflow/src/V2/DeleteAllContextsRequest.php index 2a898129542c..a297440dfaff 100644 --- a/Dialogflow/src/V2/DeleteAllContextsRequest.php +++ b/Dialogflow/src/V2/DeleteAllContextsRequest.php @@ -19,7 +19,7 @@ class DeleteAllContextsRequest extends \Google\Protobuf\Internal\Message * Required. The name of the session to delete all contexts from. Format: * `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $parent = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The name of the session to delete all contexts from. Format: * `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getParent() @@ -55,7 +55,7 @@ public function getParent() * Required. The name of the session to delete all contexts from. Format: * `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/DeleteContextRequest.php b/Dialogflow/src/V2/DeleteContextRequest.php index 84d417c6edb2..e755f5435d63 100644 --- a/Dialogflow/src/V2/DeleteContextRequest.php +++ b/Dialogflow/src/V2/DeleteContextRequest.php @@ -19,7 +19,7 @@ class DeleteContextRequest extends \Google\Protobuf\Internal\Message * Required. The name of the context to delete. Format: * `projects//agent/sessions//contexts/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The name of the context to delete. Format: * `projects//agent/sessions//contexts/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -55,7 +55,7 @@ public function getName() * Required. The name of the context to delete. Format: * `projects//agent/sessions//contexts/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/DeleteEntityTypeRequest.php b/Dialogflow/src/V2/DeleteEntityTypeRequest.php index d13868e37029..65e00832f5a5 100644 --- a/Dialogflow/src/V2/DeleteEntityTypeRequest.php +++ b/Dialogflow/src/V2/DeleteEntityTypeRequest.php @@ -19,7 +19,7 @@ class DeleteEntityTypeRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type to delete. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The name of the entity type to delete. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -55,7 +55,7 @@ public function getName() * Required. The name of the entity type to delete. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/DeleteIntentRequest.php b/Dialogflow/src/V2/DeleteIntentRequest.php index b6a8a91351fd..3f8d5769bff2 100644 --- a/Dialogflow/src/V2/DeleteIntentRequest.php +++ b/Dialogflow/src/V2/DeleteIntentRequest.php @@ -20,7 +20,7 @@ class DeleteIntentRequest extends \Google\Protobuf\Internal\Message * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; @@ -46,7 +46,7 @@ public function __construct($data = NULL) { * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -59,7 +59,7 @@ public function getName() * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php index 3bfd39891e72..3e1f59dcd8ba 100644 --- a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php @@ -20,7 +20,7 @@ class DeleteSessionEntityTypeRequest extends \Google\Protobuf\Internal\Message * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; @@ -46,7 +46,7 @@ public function __construct($data = NULL) { * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -59,7 +59,7 @@ public function getName() * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/DetectIntentRequest.php b/Dialogflow/src/V2/DetectIntentRequest.php index 5b652874d74c..c69b0d52563b 100644 --- a/Dialogflow/src/V2/DetectIntentRequest.php +++ b/Dialogflow/src/V2/DetectIntentRequest.php @@ -22,13 +22,13 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 bytes. * - * Generated from protobuf field string session = 1; + * Generated from protobuf field string session = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $session = ''; /** * Optional. The parameters of this query. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $query_params = null; /** @@ -38,7 +38,7 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $query_input = null; /** @@ -46,7 +46,7 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * - * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $output_audio_config = null; /** @@ -54,7 +54,7 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * should be populated iff `query_input` is set to an input audio config. * A single request can contain up to 1 minute of speech audio data. * - * Generated from protobuf field bytes input_audio = 5; + * Generated from protobuf field bytes input_audio = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $input_audio = ''; @@ -100,7 +100,7 @@ public function __construct($data = NULL) { * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 bytes. * - * Generated from protobuf field string session = 1; + * Generated from protobuf field string session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getSession() @@ -115,7 +115,7 @@ public function getSession() * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 bytes. * - * Generated from protobuf field string session = 1; + * Generated from protobuf field string session = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -130,7 +130,7 @@ public function setSession($var) /** * Optional. The parameters of this query. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\QueryParameters */ public function getQueryParams() @@ -141,7 +141,7 @@ public function getQueryParams() /** * Optional. The parameters of this query. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\QueryParameters $var * @return $this */ @@ -160,7 +160,7 @@ public function setQueryParams($var) * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\QueryInput */ public function getQueryInput() @@ -175,7 +175,7 @@ public function getQueryInput() * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\QueryInput $var * @return $this */ @@ -192,7 +192,7 @@ public function setQueryInput($var) * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * - * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig */ public function getOutputAudioConfig() @@ -205,7 +205,7 @@ public function getOutputAudioConfig() * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * - * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var * @return $this */ @@ -222,7 +222,7 @@ public function setOutputAudioConfig($var) * should be populated iff `query_input` is set to an input audio config. * A single request can contain up to 1 minute of speech audio data. * - * Generated from protobuf field bytes input_audio = 5; + * Generated from protobuf field bytes input_audio = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getInputAudio() @@ -235,7 +235,7 @@ public function getInputAudio() * should be populated iff `query_input` is set to an input audio config. * A single request can contain up to 1 minute of speech audio data. * - * Generated from protobuf field bytes input_audio = 5; + * Generated from protobuf field bytes input_audio = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/EntityType.php b/Dialogflow/src/V2/EntityType.php index 7ac7ffad017a..2586ed147212 100644 --- a/Dialogflow/src/V2/EntityType.php +++ b/Dialogflow/src/V2/EntityType.php @@ -29,28 +29,34 @@ class EntityType extends \Google\Protobuf\Internal\Message /** * Required. The name of the entity type. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $display_name = ''; /** * Required. Indicates the kind of entity type. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.Kind kind = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $kind = 0; /** * Optional. Indicates whether the entity type can be automatically * expanded. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $auto_expansion_mode = 0; /** * Optional. The collection of entity entries associated with the entity type. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $entities; + /** + * Optional. Enables fuzzy entity extraction during classification. + * + * Generated from protobuf field bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $enable_fuzzy_extraction = false; /** * Constructor. @@ -72,6 +78,8 @@ class EntityType extends \Google\Protobuf\Internal\Message * expanded. * @type \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $entities * Optional. The collection of entity entries associated with the entity type. + * @type bool $enable_fuzzy_extraction + * Optional. Enables fuzzy entity extraction during classification. * } */ public function __construct($data = NULL) { @@ -114,7 +122,7 @@ public function setName($var) /** * Required. The name of the entity type. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDisplayName() @@ -125,7 +133,7 @@ public function getDisplayName() /** * Required. The name of the entity type. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -140,7 +148,7 @@ public function setDisplayName($var) /** * Required. Indicates the kind of entity type. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.Kind kind = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getKind() @@ -151,7 +159,7 @@ public function getKind() /** * Required. Indicates the kind of entity type. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.Kind kind = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ @@ -167,7 +175,7 @@ public function setKind($var) * Optional. Indicates whether the entity type can be automatically * expanded. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getAutoExpansionMode() @@ -179,7 +187,7 @@ public function getAutoExpansionMode() * Optional. Indicates whether the entity type can be automatically * expanded. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -194,7 +202,7 @@ public function setAutoExpansionMode($var) /** * Optional. The collection of entity entries associated with the entity type. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntities() @@ -205,7 +213,7 @@ public function getEntities() /** * Optional. The collection of entity entries associated with the entity type. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -217,5 +225,31 @@ public function setEntities($var) return $this; } + /** + * Optional. Enables fuzzy entity extraction during classification. + * + * Generated from protobuf field bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableFuzzyExtraction() + { + return $this->enable_fuzzy_extraction; + } + + /** + * Optional. Enables fuzzy entity extraction during classification. + * + * Generated from protobuf field bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableFuzzyExtraction($var) + { + GPBUtil::checkBool($var); + $this->enable_fuzzy_extraction = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/EntityType/Entity.php b/Dialogflow/src/V2/EntityType/Entity.php index 1f052ae03390..2e6bc9484aa3 100644 --- a/Dialogflow/src/V2/EntityType/Entity.php +++ b/Dialogflow/src/V2/EntityType/Entity.php @@ -20,12 +20,12 @@ class Entity extends \Google\Protobuf\Internal\Message * For example, if the entity type is *vegetable*, the value could be * *scallions*. * For `KIND_MAP` entity types: - * * A canonical value to be used in place of synonyms. + * * A reference value to be used in place of synonyms. * For `KIND_LIST` entity types: * * A string that can contain references to other entity types (with or * without aliases). * - * Generated from protobuf field string value = 1; + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $value = ''; /** @@ -35,7 +35,7 @@ class Entity extends \Google\Protobuf\Internal\Message * For `KIND_LIST` entity types: * * This collection must contain exactly one synonym equal to `value`. * - * Generated from protobuf field repeated string synonyms = 2; + * Generated from protobuf field repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $synonyms; @@ -50,7 +50,7 @@ class Entity extends \Google\Protobuf\Internal\Message * For example, if the entity type is *vegetable*, the value could be * *scallions*. * For `KIND_MAP` entity types: - * * A canonical value to be used in place of synonyms. + * * A reference value to be used in place of synonyms. * For `KIND_LIST` entity types: * * A string that can contain references to other entity types (with or * without aliases). @@ -72,12 +72,12 @@ public function __construct($data = NULL) { * For example, if the entity type is *vegetable*, the value could be * *scallions*. * For `KIND_MAP` entity types: - * * A canonical value to be used in place of synonyms. + * * A reference value to be used in place of synonyms. * For `KIND_LIST` entity types: * * A string that can contain references to other entity types (with or * without aliases). * - * Generated from protobuf field string value = 1; + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getValue() @@ -90,12 +90,12 @@ public function getValue() * For example, if the entity type is *vegetable*, the value could be * *scallions*. * For `KIND_MAP` entity types: - * * A canonical value to be used in place of synonyms. + * * A reference value to be used in place of synonyms. * For `KIND_LIST` entity types: * * A string that can contain references to other entity types (with or * without aliases). * - * Generated from protobuf field string value = 1; + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -114,7 +114,7 @@ public function setValue($var) * For `KIND_LIST` entity types: * * This collection must contain exactly one synonym equal to `value`. * - * Generated from protobuf field repeated string synonyms = 2; + * Generated from protobuf field repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSynonyms() @@ -129,7 +129,7 @@ public function getSynonyms() * For `KIND_LIST` entity types: * * This collection must contain exactly one synonym equal to `value`. * - * Generated from protobuf field repeated string synonyms = 2; + * Generated from protobuf field repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/EntityType/Kind.php b/Dialogflow/src/V2/EntityType/Kind.php index 66b7261a3796..51d8c6f0d4e1 100644 --- a/Dialogflow/src/V2/EntityType/Kind.php +++ b/Dialogflow/src/V2/EntityType/Kind.php @@ -20,25 +20,33 @@ class Kind */ const KIND_UNSPECIFIED = 0; /** - * Map entity types allow mapping of a group of synonyms to a canonical + * Map entity types allow mapping of a group of synonyms to a reference * value. * * Generated from protobuf enum KIND_MAP = 1; */ const KIND_MAP = 1; /** - * List entity types contain a set of entries that do not map to canonical + * List entity types contain a set of entries that do not map to reference * values. However, list entity types can contain references to other entity * types (with or without aliases). * * Generated from protobuf enum KIND_LIST = 2; */ const KIND_LIST = 2; + /** + * Regexp entity types allow to specify regular expressions in entries + * values. + * + * Generated from protobuf enum KIND_REGEXP = 3; + */ + const KIND_REGEXP = 3; private static $valueToName = [ self::KIND_UNSPECIFIED => 'KIND_UNSPECIFIED', self::KIND_MAP => 'KIND_MAP', self::KIND_LIST => 'KIND_LIST', + self::KIND_REGEXP => 'KIND_REGEXP', ]; public static function name($value) diff --git a/Dialogflow/src/V2/EntityTypesGrpcClient.php b/Dialogflow/src/V2/EntityTypesGrpcClient.php index a101fc5600a6..044e2037c219 100644 --- a/Dialogflow/src/V2/EntityTypesGrpcClient.php +++ b/Dialogflow/src/V2/EntityTypesGrpcClient.php @@ -34,11 +34,11 @@ * data types such as date, time, currency, and so on. A system entity is * represented by the `EntityType` type. * - * * **Developer** - entities that are defined by you that represent + * * **Custom** - entities that are defined by you that represent * actionable data that is meaningful to your application. For example, * you could define a `pizza.sauce` entity for red or white pizza sauce, * a `pizza.cheese` entity for the different types of cheese on a pizza, - * a `pizza.topping` entity for different toppings, and so on. A developer + * a `pizza.topping` entity for different toppings, and so on. A custom * entity is represented by the `EntityType` type. * * * **User** - entities that are built for an individual user such as @@ -183,6 +183,7 @@ public function BatchCreateEntities(\Google\Cloud\Dialogflow\V2\BatchCreateEntit * method does not affect entities in the entity type that aren't explicitly * specified in the request. * + * * Operation * @param \Google\Cloud\Dialogflow\V2\BatchUpdateEntitiesRequest $argument input argument * @param array $metadata metadata @@ -199,6 +200,7 @@ public function BatchUpdateEntities(\Google\Cloud\Dialogflow\V2\BatchUpdateEntit /** * Deletes entities in the specified entity type. * + * * Operation * @param \Google\Cloud\Dialogflow\V2\BatchDeleteEntitiesRequest $argument input argument * @param array $metadata metadata diff --git a/Dialogflow/src/V2/EventInput.php b/Dialogflow/src/V2/EventInput.php index c0cccbc8ca62..6bbd738643fd 100644 --- a/Dialogflow/src/V2/EventInput.php +++ b/Dialogflow/src/V2/EventInput.php @@ -22,13 +22,13 @@ class EventInput extends \Google\Protobuf\Internal\Message /** * Required. The unique identifier of the event. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $name = ''; /** * Optional. The collection of parameters associated with the event. * - * Generated from protobuf field .google.protobuf.Struct parameters = 2; + * Generated from protobuf field .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $parameters = null; /** @@ -37,7 +37,7 @@ class EventInput extends \Google\Protobuf\Internal\Message * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $language_code = ''; @@ -66,7 +66,7 @@ public function __construct($data = NULL) { /** * Required. The unique identifier of the event. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getName() @@ -77,7 +77,7 @@ public function getName() /** * Required. The unique identifier of the event. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -92,7 +92,7 @@ public function setName($var) /** * Optional. The collection of parameters associated with the event. * - * Generated from protobuf field .google.protobuf.Struct parameters = 2; + * Generated from protobuf field .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Struct */ public function getParameters() @@ -103,7 +103,7 @@ public function getParameters() /** * Optional. The collection of parameters associated with the event. * - * Generated from protobuf field .google.protobuf.Struct parameters = 2; + * Generated from protobuf field .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\Struct $var * @return $this */ @@ -121,7 +121,7 @@ public function setParameters($var) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getLanguageCode() @@ -135,7 +135,7 @@ public function getLanguageCode() * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * - * Generated from protobuf field string language_code = 3; + * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/ExportAgentRequest.php b/Dialogflow/src/V2/ExportAgentRequest.php index d701e39bc77d..212fb6a8189a 100644 --- a/Dialogflow/src/V2/ExportAgentRequest.php +++ b/Dialogflow/src/V2/ExportAgentRequest.php @@ -19,17 +19,16 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to export is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** - * Optional. The - * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) * URI to export the agent to. * The format of this URI must be `gs:///`. * If left unspecified, the serialized agent is returned inline. * - * Generated from protobuf field string agent_uri = 2; + * Generated from protobuf field string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $agent_uri = ''; @@ -43,8 +42,7 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to export is associated with. * Format: `projects/`. * @type string $agent_uri - * Optional. The - * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) * URI to export the agent to. * The format of this URI must be `gs:///`. * If left unspecified, the serialized agent is returned inline. @@ -59,7 +57,7 @@ public function __construct($data = NULL) { * Required. The project that the agent to export is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -71,7 +69,7 @@ public function getParent() * Required. The project that the agent to export is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -84,13 +82,12 @@ public function setParent($var) } /** - * Optional. The - * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) * URI to export the agent to. * The format of this URI must be `gs:///`. * If left unspecified, the serialized agent is returned inline. * - * Generated from protobuf field string agent_uri = 2; + * Generated from protobuf field string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getAgentUri() @@ -99,13 +96,12 @@ public function getAgentUri() } /** - * Optional. The - * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) * URI to export the agent to. * The format of this URI must be `gs:///`. * If left unspecified, the serialized agent is returned inline. * - * Generated from protobuf field string agent_uri = 2; + * Generated from protobuf field string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/ExportAgentResponse.php b/Dialogflow/src/V2/ExportAgentResponse.php index 4874ae952fbf..f3784c1a8539 100644 --- a/Dialogflow/src/V2/ExportAgentResponse.php +++ b/Dialogflow/src/V2/ExportAgentResponse.php @@ -27,19 +27,7 @@ class ExportAgentResponse extends \Google\Protobuf\Internal\Message * The URI to a file containing the exported agent. This field is populated * only if `agent_uri` is specified in `ExportAgentRequest`. * @type string $agent_content - * The exported agent. - * Example for how to export an agent to a zip file via a command line: - *
curl \
-     *             'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
-     *             -X POST \
-     *             -H 'Authorization: Bearer '$(gcloud auth application-default
-     *             print-access-token) \
-     *             -H 'Accept: application/json' \
-     *             -H 'Content-Type: application/json' \
-     *             --compressed \
-     *             --data-binary '{}' \
-     *           | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-     *           | base64 --decode > <agent zip file>
+ * Zip compressed raw byte content for agent. * } */ public function __construct($data = NULL) { @@ -76,19 +64,7 @@ public function setAgentUri($var) } /** - * The exported agent. - * Example for how to export an agent to a zip file via a command line: - *
curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
-     *   -X POST \
-     *   -H 'Authorization: Bearer '$(gcloud auth application-default
-     *   print-access-token) \
-     *   -H 'Accept: application/json' \
-     *   -H 'Content-Type: application/json' \
-     *   --compressed \
-     *   --data-binary '{}' \
-     * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-     * | base64 --decode > <agent zip file>
+ * Zip compressed raw byte content for agent. * * Generated from protobuf field bytes agent_content = 2; * @return string @@ -99,19 +75,7 @@ public function getAgentContent() } /** - * The exported agent. - * Example for how to export an agent to a zip file via a command line: - *
curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
-     *   -X POST \
-     *   -H 'Authorization: Bearer '$(gcloud auth application-default
-     *   print-access-token) \
-     *   -H 'Accept: application/json' \
-     *   -H 'Content-Type: application/json' \
-     *   --compressed \
-     *   --data-binary '{}' \
-     * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-     * | base64 --decode > <agent zip file>
+ * Zip compressed raw byte content for agent. * * Generated from protobuf field bytes agent_content = 2; * @param string $var diff --git a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php index 513694361c8b..bf1c17d33829 100644 --- a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php @@ -702,8 +702,7 @@ public function trainAgent($parent, array $optionalArgs = []) * Optional. * * @type string $agentUri - * Optional. The - * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) * URI to export the agent to. * The format of this URI must be `gs:///`. * If left unspecified, the serialized agent is returned inline. @@ -797,20 +796,7 @@ public function exportAgent($parent, array $optionalArgs = []) * The URI to a Google Cloud Storage file containing the agent to import. * Note: The URI must start with "gs://". * @type string $agentContent - * The agent to import. - * - * Example for how to import an agent via the command line: - *
curl \
-     *            'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
-     *             -X POST \
-     *             -H 'Authorization: Bearer '$(gcloud auth application-default
-     *             print-access-token) \
-     *             -H 'Accept: application/json' \
-     *             -H 'Content-Type: application/json' \
-     *             --compressed \
-     *             --data-binary "{
-     *                'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *             }"
+ * Zip compressed raw byte content for agent. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -903,20 +889,7 @@ public function importAgent($parent, array $optionalArgs = []) * The URI to a Google Cloud Storage file containing the agent to restore. * Note: The URI must start with "gs://". * @type string $agentContent - * The agent to restore. - * - * Example for how to restore an agent via the command line: - *
curl \
-     *            'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
-     *             -X POST \
-     *             -H 'Authorization: Bearer '$(gcloud auth application-default
-     *             print-access-token) \
-     *             -H 'Accept: application/json' \
-     *             -H 'Content-Type: application/json' \
-     *             --compressed \
-     *             --data-binary "{
-     *                 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *             }"
+ * Zip compressed raw byte content for agent. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array diff --git a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php index 15ec16007d16..7724b4d62bfc 100644 --- a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php @@ -71,11 +71,11 @@ * data types such as date, time, currency, and so on. A system entity is * represented by the `EntityType` type. * - * * **Developer** - entities that are defined by you that represent + * * **Custom** - entities that are defined by you that represent * actionable data that is meaningful to your application. For example, * you could define a `pizza.sauce` entity for red or white pizza sauce, * a `pizza.cheese` entity for the different types of cheese on a pizza, - * a `pizza.topping` entity for different toppings, and so on. A developer + * a `pizza.topping` entity for different toppings, and so on. A custom * entity is represented by the `EntityType` type. * * * **User** - entities that are built for an individual user such as @@ -999,6 +999,7 @@ public function batchCreateEntities($parent, $entities, array $optionalArgs = [] * method does not affect entities in the entity type that aren't explicitly * specified in the request. * + * * Operation * * Sample code: @@ -1096,6 +1097,7 @@ public function batchUpdateEntities($parent, $entities, array $optionalArgs = [] /** * Deletes entities in the specified entity type. * + * * Operation * * Sample code: @@ -1138,7 +1140,7 @@ public function batchUpdateEntities($parent, $entities, array $optionalArgs = [] * * @param string $parent Required. The name of the entity type to delete entries for. Format: * `projects//agent/entityTypes/`. - * @param string[] $entityValues Required. The canonical `values` of the entities to delete. Note that + * @param string[] $entityValues Required. The reference `values` of the entities to delete. Note that * these are not fully-qualified names, i.e. they don't start with * `projects/`. * @param array $optionalArgs { diff --git a/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php index 7d8354470f26..f17380c05dc7 100644 --- a/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php @@ -56,6 +56,10 @@ * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * + * Session entity methods do not work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * For more information about entity types, see the * [Dialogflow * documentation](https://cloud.google.com/dialogflow/docs/entities-overview). @@ -323,6 +327,10 @@ public function __construct(array $options = []) /** * Returns the list of all session entity types in the specified session. * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * Sample code: * ``` * $sessionEntityTypesClient = new SessionEntityTypesClient(); @@ -404,6 +412,10 @@ public function listSessionEntityTypes($parent, array $optionalArgs = []) /** * Retrieves the specified session entity type. * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * Sample code: * ``` * $sessionEntityTypesClient = new SessionEntityTypesClient(); @@ -459,6 +471,10 @@ public function getSessionEntityType($name, array $optionalArgs = []) * If the specified session entity type already exists, overrides the session * entity type. * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * Sample code: * ``` * $sessionEntityTypesClient = new SessionEntityTypesClient(); @@ -513,6 +529,10 @@ public function createSessionEntityType($parent, $sessionEntityType, array $opti /** * Updates the specified session entity type. * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * Sample code: * ``` * $sessionEntityTypesClient = new SessionEntityTypesClient(); @@ -570,6 +590,10 @@ public function updateSessionEntityType($sessionEntityType, array $optionalArgs /** * Deletes the specified session entity type. * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * Sample code: * ``` * $sessionEntityTypesClient = new SessionEntityTypesClient(); diff --git a/Dialogflow/src/V2/GetAgentRequest.php b/Dialogflow/src/V2/GetAgentRequest.php index 2cdc69a285c0..bb92157118e4 100644 --- a/Dialogflow/src/V2/GetAgentRequest.php +++ b/Dialogflow/src/V2/GetAgentRequest.php @@ -19,7 +19,7 @@ class GetAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to fetch is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The project that the agent to fetch is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -55,7 +55,7 @@ public function getParent() * Required. The project that the agent to fetch is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/GetContextRequest.php b/Dialogflow/src/V2/GetContextRequest.php index f66d1d9d84a6..d8b81cca1a1c 100644 --- a/Dialogflow/src/V2/GetContextRequest.php +++ b/Dialogflow/src/V2/GetContextRequest.php @@ -19,7 +19,7 @@ class GetContextRequest extends \Google\Protobuf\Internal\Message * Required. The name of the context. Format: * `projects//agent/sessions//contexts/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The name of the context. Format: * `projects//agent/sessions//contexts/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -55,7 +55,7 @@ public function getName() * Required. The name of the context. Format: * `projects//agent/sessions//contexts/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/GetEntityTypeRequest.php b/Dialogflow/src/V2/GetEntityTypeRequest.php index 37291310212c..bcf455f5ea48 100644 --- a/Dialogflow/src/V2/GetEntityTypeRequest.php +++ b/Dialogflow/src/V2/GetEntityTypeRequest.php @@ -19,7 +19,7 @@ class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; /** @@ -30,7 +30,7 @@ class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; @@ -61,7 +61,7 @@ public function __construct($data = NULL) { * Required. The name of the entity type. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -73,7 +73,7 @@ public function getName() * Required. The name of the entity type. * Format: `projects//agent/entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -93,7 +93,7 @@ public function setName($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -109,7 +109,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/GetIntentRequest.php b/Dialogflow/src/V2/GetIntentRequest.php index c0d35806be19..50bbe16a8ba8 100644 --- a/Dialogflow/src/V2/GetIntentRequest.php +++ b/Dialogflow/src/V2/GetIntentRequest.php @@ -19,7 +19,7 @@ class GetIntentRequest extends \Google\Protobuf\Internal\Message * Required. The name of the intent. * Format: `projects//agent/intents/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; /** @@ -30,13 +30,13 @@ class GetIntentRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $intent_view = 0; @@ -69,7 +69,7 @@ public function __construct($data = NULL) { * Required. The name of the intent. * Format: `projects//agent/intents/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -81,7 +81,7 @@ public function getName() * Required. The name of the intent. * Format: `projects//agent/intents/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -101,7 +101,7 @@ public function setName($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -117,7 +117,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -132,7 +132,7 @@ public function setLanguageCode($var) /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getIntentView() @@ -143,7 +143,7 @@ public function getIntentView() /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php index eac518242105..7e4760fb5a9a 100644 --- a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php @@ -20,7 +20,7 @@ class GetSessionEntityTypeRequest extends \Google\Protobuf\Internal\Message * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; @@ -46,7 +46,7 @@ public function __construct($data = NULL) { * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -59,7 +59,7 @@ public function getName() * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/ImportAgentRequest.php b/Dialogflow/src/V2/ImportAgentRequest.php index 49daa7d32b38..9b6a4924f0be 100644 --- a/Dialogflow/src/V2/ImportAgentRequest.php +++ b/Dialogflow/src/V2/ImportAgentRequest.php @@ -19,7 +19,7 @@ class ImportAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to import is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; protected $agent; @@ -37,19 +37,7 @@ class ImportAgentRequest extends \Google\Protobuf\Internal\Message * The URI to a Google Cloud Storage file containing the agent to import. * Note: The URI must start with "gs://". * @type string $agent_content - * The agent to import. - * Example for how to import an agent via the command line: - *
curl \
-     *             'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
-     *              -X POST \
-     *              -H 'Authorization: Bearer '$(gcloud auth application-default
-     *              print-access-token) \
-     *              -H 'Accept: application/json' \
-     *              -H 'Content-Type: application/json' \
-     *              --compressed \
-     *              --data-binary "{
-     *                 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *              }"
+ * Zip compressed raw byte content for agent. * } */ public function __construct($data = NULL) { @@ -61,7 +49,7 @@ public function __construct($data = NULL) { * Required. The project that the agent to import is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -73,7 +61,7 @@ public function getParent() * Required. The project that the agent to import is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -114,19 +102,7 @@ public function setAgentUri($var) } /** - * The agent to import. - * Example for how to import an agent via the command line: - *
curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *       'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *    }"
+ * Zip compressed raw byte content for agent. * * Generated from protobuf field bytes agent_content = 3; * @return string @@ -137,19 +113,7 @@ public function getAgentContent() } /** - * The agent to import. - * Example for how to import an agent via the command line: - *
curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *       'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *    }"
+ * Zip compressed raw byte content for agent. * * Generated from protobuf field bytes agent_content = 3; * @param string $var diff --git a/Dialogflow/src/V2/InputAudioConfig.php b/Dialogflow/src/V2/InputAudioConfig.php index 26fa1a9dff52..22274261f4a3 100644 --- a/Dialogflow/src/V2/InputAudioConfig.php +++ b/Dialogflow/src/V2/InputAudioConfig.php @@ -41,16 +41,53 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field string language_code = 3; */ private $language_code = ''; + /** + * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech + * words, e.g. start and end time offsets. If false or unspecified, Speech + * doesn't return any word-level information. + * + * Generated from protobuf field bool enable_word_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $enable_word_info = false; /** * Optional. A list of strings containing words and phrases that the speech * recognizer should recognize with higher likelihood. * See [the Cloud Speech * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. + * This field is deprecated. Please use [speech_contexts]() instead. If you + * specify both [phrase_hints]() and [speech_contexts](), Dialogflow will + * treat the [phrase_hints]() as a single additional [SpeechContext](). * - * Generated from protobuf field repeated string phrase_hints = 4; + * Generated from protobuf field repeated string phrase_hints = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; */ private $phrase_hints; + /** + * Optional. Context information to assist speech recognition. + * See [the Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + * for more details. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $speech_contexts; + /** + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + * + * Generated from protobuf field string model = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $model = ''; /** * Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * @@ -93,12 +130,37 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * @type bool $enable_word_info + * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech + * words, e.g. start and end time offsets. If false or unspecified, Speech + * doesn't return any word-level information. * @type string[]|\Google\Protobuf\Internal\RepeatedField $phrase_hints * Optional. A list of strings containing words and phrases that the speech * recognizer should recognize with higher likelihood. * See [the Cloud Speech * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. + * This field is deprecated. Please use [speech_contexts]() instead. If you + * specify both [phrase_hints]() and [speech_contexts](), Dialogflow will + * treat the [phrase_hints]() as a single additional [SpeechContext](). + * @type \Google\Cloud\Dialogflow\V2\SpeechContext[]|\Google\Protobuf\Internal\RepeatedField $speech_contexts + * Optional. Context information to assist speech recognition. + * See [the Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + * for more details. + * @type string $model + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. * @type int $model_variant * Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * @type bool $single_utterance @@ -213,14 +275,49 @@ public function setLanguageCode($var) return $this; } + /** + * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech + * words, e.g. start and end time offsets. If false or unspecified, Speech + * doesn't return any word-level information. + * + * Generated from protobuf field bool enable_word_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableWordInfo() + { + return $this->enable_word_info; + } + + /** + * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech + * words, e.g. start and end time offsets. If false or unspecified, Speech + * doesn't return any word-level information. + * + * Generated from protobuf field bool enable_word_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableWordInfo($var) + { + GPBUtil::checkBool($var); + $this->enable_word_info = $var; + + return $this; + } + /** * Optional. A list of strings containing words and phrases that the speech * recognizer should recognize with higher likelihood. * See [the Cloud Speech * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. + * This field is deprecated. Please use [speech_contexts]() instead. If you + * specify both [phrase_hints]() and [speech_contexts](), Dialogflow will + * treat the [phrase_hints]() as a single additional [SpeechContext](). * - * Generated from protobuf field repeated string phrase_hints = 4; + * Generated from protobuf field repeated string phrase_hints = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPhraseHints() @@ -234,8 +331,11 @@ public function getPhraseHints() * See [the Cloud Speech * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. + * This field is deprecated. Please use [speech_contexts]() instead. If you + * specify both [phrase_hints]() and [speech_contexts](), Dialogflow will + * treat the [phrase_hints]() as a single additional [SpeechContext](). * - * Generated from protobuf field repeated string phrase_hints = 4; + * Generated from protobuf field repeated string phrase_hints = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -247,6 +347,84 @@ public function setPhraseHints($var) return $this; } + /** + * Optional. Context information to assist speech recognition. + * See [the Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + * for more details. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSpeechContexts() + { + return $this->speech_contexts; + } + + /** + * Optional. Context information to assist speech recognition. + * See [the Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + * for more details. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\SpeechContext[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSpeechContexts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SpeechContext::class); + $this->speech_contexts = $arr; + + return $this; + } + + /** + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + * + * Generated from protobuf field string model = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + * + * Generated from protobuf field string model = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->model = $var; + + return $this; + } + /** * Optional. Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * diff --git a/Dialogflow/src/V2/Intent.php b/Dialogflow/src/V2/Intent.php index 1cf0fcf64734..7b86a325468d 100644 --- a/Dialogflow/src/V2/Intent.php +++ b/Dialogflow/src/V2/Intent.php @@ -29,37 +29,40 @@ class Intent extends \Google\Protobuf\Internal\Message /** * Required. The name of this intent. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $display_name = ''; /** * Optional. Indicates whether webhooks are enabled for the intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $webhook_state = 0; /** * Optional. The priority of this intent. Higher numbers represent higher - * priorities. If this is zero or unspecified, we use the default - * priority 500000. - * Negative numbers mean that the intent is disabled. + * priorities. + * - If the supplied value is unspecified or 0, the service + * translates the value to 500,000, which corresponds to the + * `Normal` priority in the console. + * - If the supplied value is negative, the intent is ignored + * in runtime detect intent requests. * - * Generated from protobuf field int32 priority = 3; + * Generated from protobuf field int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $priority = 0; /** * Optional. Indicates whether this is a fallback intent. * - * Generated from protobuf field bool is_fallback = 4; + * Generated from protobuf field bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $is_fallback = false; /** * Optional. Indicates whether Machine Learning is disabled for the intent. - * Note: If `ml_diabled` setting is set to true, then this intent is not + * Note: If `ml_disabled` setting is set to true, then this intent is not * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. * - * Generated from protobuf field bool ml_disabled = 19; + * Generated from protobuf field bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; */ private $ml_disabled = false; /** @@ -67,7 +70,7 @@ class Intent extends \Google\Protobuf\Internal\Message * triggered. * Format: `projects//agent/sessions/-/contexts/`. * - * Generated from protobuf field repeated string input_context_names = 7; + * Generated from protobuf field repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private $input_context_names; /** @@ -75,21 +78,21 @@ class Intent extends \Google\Protobuf\Internal\Message * If the collection of input contexts is not empty, all of the contexts must * be present in the active user session for an event to trigger this intent. * - * Generated from protobuf field repeated string events = 8; + * Generated from protobuf field repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private $events; /** * Optional. The collection of examples that the agent is * trained on. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private $training_phrases; /** * Optional. The name of the action associated with the intent. * Note: The action name must not contain whitespaces. * - * Generated from protobuf field string action = 10; + * Generated from protobuf field string action = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private $action = ''; /** @@ -99,34 +102,34 @@ class Intent extends \Google\Protobuf\Internal\Message * when the intent is matched. * Format: `projects//agent/sessions/-/contexts/`. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 11; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private $output_contexts; /** * Optional. Indicates whether to delete all contexts in the current * session when this intent is matched. * - * Generated from protobuf field bool reset_contexts = 12; + * Generated from protobuf field bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private $reset_contexts = false; /** * Optional. The collection of parameters associated with the intent. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL]; */ private $parameters; /** * Optional. The collection of rich messages corresponding to the * `Response` field in the Dialogflow console. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private $messages; /** * Optional. The list of platforms for which the first responses will be * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private $default_response_platforms; /** @@ -141,8 +144,9 @@ class Intent extends \Google\Protobuf\Internal\Message /** * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to - * make this intent a followup intent. + * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this + * intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -174,14 +178,17 @@ class Intent extends \Google\Protobuf\Internal\Message * Optional. Indicates whether webhooks are enabled for the intent. * @type int $priority * Optional. The priority of this intent. Higher numbers represent higher - * priorities. If this is zero or unspecified, we use the default - * priority 500000. - * Negative numbers mean that the intent is disabled. + * priorities. + * - If the supplied value is unspecified or 0, the service + * translates the value to 500,000, which corresponds to the + * `Normal` priority in the console. + * - If the supplied value is negative, the intent is ignored + * in runtime detect intent requests. * @type bool $is_fallback * Optional. Indicates whether this is a fallback intent. * @type bool $ml_disabled * Optional. Indicates whether Machine Learning is disabled for the intent. - * Note: If `ml_diabled` setting is set to true, then this intent is not + * Note: If `ml_disabled` setting is set to true, then this intent is not * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. * @type string[]|\Google\Protobuf\Internal\RepeatedField $input_context_names @@ -223,8 +230,9 @@ class Intent extends \Google\Protobuf\Internal\Message * @type string $parent_followup_intent_name * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to - * make this intent a followup intent. + * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this + * intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @type \Google\Cloud\Dialogflow\V2\Intent\FollowupIntentInfo[]|\Google\Protobuf\Internal\RepeatedField $followup_intent_info @@ -272,7 +280,7 @@ public function setName($var) /** * Required. The name of this intent. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDisplayName() @@ -283,7 +291,7 @@ public function getDisplayName() /** * Required. The name of this intent. * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -298,7 +306,7 @@ public function setDisplayName($var) /** * Optional. Indicates whether webhooks are enabled for the intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getWebhookState() @@ -309,7 +317,7 @@ public function getWebhookState() /** * Optional. Indicates whether webhooks are enabled for the intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -323,11 +331,14 @@ public function setWebhookState($var) /** * Optional. The priority of this intent. Higher numbers represent higher - * priorities. If this is zero or unspecified, we use the default - * priority 500000. - * Negative numbers mean that the intent is disabled. - * - * Generated from protobuf field int32 priority = 3; + * priorities. + * - If the supplied value is unspecified or 0, the service + * translates the value to 500,000, which corresponds to the + * `Normal` priority in the console. + * - If the supplied value is negative, the intent is ignored + * in runtime detect intent requests. + * + * Generated from protobuf field int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPriority() @@ -337,11 +348,14 @@ public function getPriority() /** * Optional. The priority of this intent. Higher numbers represent higher - * priorities. If this is zero or unspecified, we use the default - * priority 500000. - * Negative numbers mean that the intent is disabled. - * - * Generated from protobuf field int32 priority = 3; + * priorities. + * - If the supplied value is unspecified or 0, the service + * translates the value to 500,000, which corresponds to the + * `Normal` priority in the console. + * - If the supplied value is negative, the intent is ignored + * in runtime detect intent requests. + * + * Generated from protobuf field int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -356,7 +370,7 @@ public function setPriority($var) /** * Optional. Indicates whether this is a fallback intent. * - * Generated from protobuf field bool is_fallback = 4; + * Generated from protobuf field bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getIsFallback() @@ -367,7 +381,7 @@ public function getIsFallback() /** * Optional. Indicates whether this is a fallback intent. * - * Generated from protobuf field bool is_fallback = 4; + * Generated from protobuf field bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -381,11 +395,11 @@ public function setIsFallback($var) /** * Optional. Indicates whether Machine Learning is disabled for the intent. - * Note: If `ml_diabled` setting is set to true, then this intent is not + * Note: If `ml_disabled` setting is set to true, then this intent is not * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. * - * Generated from protobuf field bool ml_disabled = 19; + * Generated from protobuf field bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getMlDisabled() @@ -395,11 +409,11 @@ public function getMlDisabled() /** * Optional. Indicates whether Machine Learning is disabled for the intent. - * Note: If `ml_diabled` setting is set to true, then this intent is not + * Note: If `ml_disabled` setting is set to true, then this intent is not * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. * - * Generated from protobuf field bool ml_disabled = 19; + * Generated from protobuf field bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -416,7 +430,7 @@ public function setMlDisabled($var) * triggered. * Format: `projects//agent/sessions/-/contexts/`. * - * Generated from protobuf field repeated string input_context_names = 7; + * Generated from protobuf field repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getInputContextNames() @@ -429,7 +443,7 @@ public function getInputContextNames() * triggered. * Format: `projects//agent/sessions/-/contexts/`. * - * Generated from protobuf field repeated string input_context_names = 7; + * Generated from protobuf field repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -446,7 +460,7 @@ public function setInputContextNames($var) * If the collection of input contexts is not empty, all of the contexts must * be present in the active user session for an event to trigger this intent. * - * Generated from protobuf field repeated string events = 8; + * Generated from protobuf field repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEvents() @@ -459,7 +473,7 @@ public function getEvents() * If the collection of input contexts is not empty, all of the contexts must * be present in the active user session for an event to trigger this intent. * - * Generated from protobuf field repeated string events = 8; + * Generated from protobuf field repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -475,7 +489,7 @@ public function setEvents($var) * Optional. The collection of examples that the agent is * trained on. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTrainingPhrases() @@ -487,7 +501,7 @@ public function getTrainingPhrases() * Optional. The collection of examples that the agent is * trained on. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -503,7 +517,7 @@ public function setTrainingPhrases($var) * Optional. The name of the action associated with the intent. * Note: The action name must not contain whitespaces. * - * Generated from protobuf field string action = 10; + * Generated from protobuf field string action = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getAction() @@ -515,7 +529,7 @@ public function getAction() * Optional. The name of the action associated with the intent. * Note: The action name must not contain whitespaces. * - * Generated from protobuf field string action = 10; + * Generated from protobuf field string action = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -534,7 +548,7 @@ public function setAction($var) * when the intent is matched. * Format: `projects//agent/sessions/-/contexts/`. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 11; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getOutputContexts() @@ -549,7 +563,7 @@ public function getOutputContexts() * when the intent is matched. * Format: `projects//agent/sessions/-/contexts/`. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 11; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Context[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -565,7 +579,7 @@ public function setOutputContexts($var) * Optional. Indicates whether to delete all contexts in the current * session when this intent is matched. * - * Generated from protobuf field bool reset_contexts = 12; + * Generated from protobuf field bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getResetContexts() @@ -577,7 +591,7 @@ public function getResetContexts() * Optional. Indicates whether to delete all contexts in the current * session when this intent is matched. * - * Generated from protobuf field bool reset_contexts = 12; + * Generated from protobuf field bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -592,7 +606,7 @@ public function setResetContexts($var) /** * Optional. The collection of parameters associated with the intent. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getParameters() @@ -603,7 +617,7 @@ public function getParameters() /** * Optional. The collection of parameters associated with the intent. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Parameter[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -619,7 +633,7 @@ public function setParameters($var) * Optional. The collection of rich messages corresponding to the * `Response` field in the Dialogflow console. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMessages() @@ -631,7 +645,7 @@ public function getMessages() * Optional. The collection of rich messages corresponding to the * `Response` field in the Dialogflow console. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -647,7 +661,7 @@ public function setMessages($var) * Optional. The list of platforms for which the first responses will be * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getDefaultResponsePlatforms() @@ -659,7 +673,7 @@ public function getDefaultResponsePlatforms() * Optional. The list of platforms for which the first responses will be * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param int[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -706,8 +720,9 @@ public function setRootFollowupIntentName($var) /** * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to - * make this intent a followup intent. + * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this + * intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -722,8 +737,9 @@ public function getParentFollowupIntentName() /** * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to - * make this intent a followup intent. + * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this + * intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * diff --git a/Dialogflow/src/V2/Intent/Message.php b/Dialogflow/src/V2/Intent/Message.php index 89f46d965a96..3348033a13ee 100644 --- a/Dialogflow/src/V2/Intent/Message.php +++ b/Dialogflow/src/V2/Intent/Message.php @@ -18,7 +18,7 @@ class 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; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $platform = 0; protected $message; @@ -53,6 +53,12 @@ class Message extends \Google\Protobuf\Internal\Message * The list card response for Actions on Google. * @type \Google\Cloud\Dialogflow\V2\Intent\Message\CarouselSelect $carousel_select * The carousel card response for Actions on Google. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard $browse_carousel_card + * Browse carousel card for Actions on Google. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\TableCard $table_card + * Table card for Actions on Google. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent $media_content + * The media content card for Actions on Google. * @type int $platform * Optional. The platform that this message is intended for. * } @@ -352,10 +358,88 @@ public function setCarouselSelect($var) return $this; } + /** + * Browse carousel card for Actions on Google. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard + */ + public function getBrowseCarouselCard() + { + return $this->readOneof(22); + } + + /** + * Browse carousel card for Actions on Google. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard $var + * @return $this + */ + public function setBrowseCarouselCard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * Table card for Actions on Google. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\TableCard + */ + public function getTableCard() + { + return $this->readOneof(23); + } + + /** + * Table card for Actions on Google. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\TableCard $var + * @return $this + */ + public function setTableCard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_TableCard::class); + $this->writeOneof(23, $var); + + return $this; + } + + /** + * The media content card for Actions on Google. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent + */ + public function getMediaContent() + { + return $this->readOneof(24); + } + + /** + * The media content card for Actions on Google. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent $var + * @return $this + */ + public function setMediaContent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_MediaContent::class); + $this->writeOneof(24, $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; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPlatform() @@ -366,7 +450,7 @@ public function getPlatform() /** * Optional. The platform that this message is intended for. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/BasicCard.php b/Dialogflow/src/V2/Intent/Message/BasicCard.php index e3b41db1f1f3..496eef0bf93e 100644 --- a/Dialogflow/src/V2/Intent/Message/BasicCard.php +++ b/Dialogflow/src/V2/Intent/Message/BasicCard.php @@ -18,13 +18,13 @@ class BasicCard extends \Google\Protobuf\Internal\Message /** * Optional. The title of the card. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $title = ''; /** * Optional. The subtitle of the card. * - * Generated from protobuf field string subtitle = 2; + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $subtitle = ''; /** @@ -36,13 +36,13 @@ class BasicCard extends \Google\Protobuf\Internal\Message /** * Optional. The image for the card. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $image = null; /** * Optional. The collection of card buttons. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $buttons; @@ -72,7 +72,7 @@ public function __construct($data = NULL) { /** * Optional. The title of the card. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getTitle() @@ -83,7 +83,7 @@ public function getTitle() /** * Optional. The title of the card. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -98,7 +98,7 @@ public function setTitle($var) /** * Optional. The subtitle of the card. * - * Generated from protobuf field string subtitle = 2; + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getSubtitle() @@ -109,7 +109,7 @@ public function getSubtitle() /** * Optional. The subtitle of the card. * - * Generated from protobuf field string subtitle = 2; + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -150,7 +150,7 @@ public function setFormattedText($var) /** * Optional. The image for the card. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image */ public function getImage() @@ -161,7 +161,7 @@ public function getImage() /** * Optional. The image for the card. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Image $var * @return $this */ @@ -176,7 +176,7 @@ public function setImage($var) /** * Optional. The collection of card buttons. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getButtons() @@ -187,7 +187,7 @@ public function getButtons() /** * Optional. The collection of card buttons. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/BasicCard/Button.php b/Dialogflow/src/V2/Intent/Message/BasicCard/Button.php index e25dcc4c4db8..7b11580154a5 100644 --- a/Dialogflow/src/V2/Intent/Message/BasicCard/Button.php +++ b/Dialogflow/src/V2/Intent/Message/BasicCard/Button.php @@ -24,7 +24,7 @@ class Button extends \Google\Protobuf\Internal\Message /** * Required. Action to take when a user taps on the button. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $open_uri_action = null; @@ -74,7 +74,7 @@ public function setTitle($var) /** * Required. Action to take when a user taps on the button. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button\OpenUriAction */ public function getOpenUriAction() @@ -85,7 +85,7 @@ public function getOpenUriAction() /** * Required. Action to take when a user taps on the button. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button\OpenUriAction $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard.php b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard.php new file mode 100644 index 000000000000..ad318c0414b7 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard.php @@ -0,0 +1,113 @@ +google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard + */ +class BrowseCarouselCard extends \Google\Protobuf\Internal\Message +{ + /** + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + */ + private $items; + /** + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $image_display_options = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem[]|\Google\Protobuf\Internal\RepeatedField $items + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + * @type int $image_display_options + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Required. List of items in the Browse Carousel Card. Minimum of two + * items, maximum of ten. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem::class); + $this->items = $arr; + + return $this; + } + + /** + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getImageDisplayOptions() + { + return $this->image_display_options; + } + + /** + * Optional. Settings for displaying the image. Applies to every image in + * [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setImageDisplayOptions($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_ImageDisplayOptions::class); + $this->image_display_options = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BrowseCarouselCard::class, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard::class); + diff --git a/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem.php b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem.php new file mode 100644 index 000000000000..f0fb3bd74ff1 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem.php @@ -0,0 +1,214 @@ +google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem + */ +class BrowseCarouselCardItem extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Action to present to the user. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + */ + private $open_uri_action = null; + /** + * Required. Title of the carousel item. Maximum of two lines of text. + * + * Generated from protobuf field string title = 2; + */ + private $title = ''; + /** + * Optional. Description of the carousel item. Maximum of four lines of + * text. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $description = ''; + /** + * Optional. Hero image for the carousel item. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $image = null; + /** + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + * + * Generated from protobuf field string footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $footer = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem\OpenUrlAction $open_uri_action + * Required. Action to present to the user. + * @type string $title + * Required. Title of the carousel item. Maximum of two lines of text. + * @type string $description + * Optional. Description of the carousel item. Maximum of four lines of + * text. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\Image $image + * Optional. Hero image for the carousel item. + * @type string $footer + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. Action to present to the user. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem\OpenUrlAction + */ + public function getOpenUriAction() + { + return $this->open_uri_action; + } + + /** + * Required. Action to present to the user. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\BrowseCarouselCard\BrowseCarouselCardItem\OpenUrlAction $var + * @return $this + */ + public function setOpenUriAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction::class); + $this->open_uri_action = $var; + + return $this; + } + + /** + * Required. Title of the carousel item. Maximum of two lines of text. + * + * Generated from protobuf field string title = 2; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Required. Title of the carousel item. Maximum of two lines of text. + * + * Generated from protobuf field string title = 2; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. Description of the carousel item. Maximum of four lines of + * text. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the carousel item. Maximum of four lines of + * text. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Hero image for the carousel item. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image + */ + public function getImage() + { + return $this->image; + } + + /** + * Optional. Hero image for the carousel item. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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->image = $var; + + return $this; + } + + /** + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + * + * Generated from protobuf field string footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFooter() + { + return $this->footer; + } + + /** + * Optional. Text that appears at the bottom of the Browse Carousel + * Card. Maximum of one line of text. + * + * Generated from protobuf field string footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFooter($var) + { + GPBUtil::checkString($var, True); + $this->footer = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BrowseCarouselCardItem::class, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem::class); + diff --git a/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction.php b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction.php new file mode 100644 index 000000000000..d30155a16812 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction.php @@ -0,0 +1,108 @@ +google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction + */ +class OpenUrlAction extends \Google\Protobuf\Internal\Message +{ + /** + * Required. URL + * + * Generated from protobuf field string url = 1; + */ + private $url = ''; + /** + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $url_type_hint = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * Required. URL + * @type int $url_type_hint + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. URL + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Required. URL + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getUrlTypeHint() + { + return $this->url_type_hint; + } + + /** + * Optional. Specifies the type of viewer that is used when opening + * the URL. Defaults to opening via web browser. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setUrlTypeHint($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint::class); + $this->url_type_hint = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OpenUrlAction::class, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction::class); + diff --git a/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction/UrlTypeHint.php b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction/UrlTypeHint.php new file mode 100644 index 000000000000..cd19ba04e43f --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/BrowseCarouselCardItem/OpenUrlAction/UrlTypeHint.php @@ -0,0 +1,65 @@ +google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + */ +class UrlTypeHint +{ + /** + * Unspecified + * + * Generated from protobuf enum URL_TYPE_HINT_UNSPECIFIED = 0; + */ + const URL_TYPE_HINT_UNSPECIFIED = 0; + /** + * Url would be an amp action + * + * Generated from protobuf enum AMP_ACTION = 1; + */ + const AMP_ACTION = 1; + /** + * URL that points directly to AMP content, or to a canonical URL + * which refers to AMP content via . + * + * Generated from protobuf enum AMP_CONTENT = 2; + */ + const AMP_CONTENT = 2; + + private static $valueToName = [ + self::URL_TYPE_HINT_UNSPECIFIED => 'URL_TYPE_HINT_UNSPECIFIED', + self::AMP_ACTION => 'AMP_ACTION', + self::AMP_CONTENT => 'AMP_CONTENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UrlTypeHint::class, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint::class); + diff --git a/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/ImageDisplayOptions.php b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/ImageDisplayOptions.php new file mode 100644 index 000000000000..3edd8f5a6dae --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/BrowseCarouselCard/ImageDisplayOptions.php @@ -0,0 +1,89 @@ +google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions + */ +class ImageDisplayOptions +{ + /** + * Fill the gaps between the image and the image container with gray + * bars. + * + * Generated from protobuf enum IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0; + */ + const IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0; + /** + * Fill the gaps between the image and the image container with gray + * bars. + * + * Generated from protobuf enum GRAY = 1; + */ + const GRAY = 1; + /** + * Fill the gaps between the image and the image container with white + * bars. + * + * Generated from protobuf enum WHITE = 2; + */ + const WHITE = 2; + /** + * Image is scaled such that the image width and height match or exceed + * the container dimensions. This may crop the top and bottom of the + * image if the scaled image height is greater than the container + * height, or crop the left and right of the image if the scaled image + * width is greater than the container width. This is similar to "Zoom + * Mode" on a widescreen TV when playing a 4:3 video. + * + * Generated from protobuf enum CROPPED = 3; + */ + const CROPPED = 3; + /** + * Pad the gaps between image and image frame with a blurred copy of the + * same image. + * + * Generated from protobuf enum BLURRED_BACKGROUND = 4; + */ + const BLURRED_BACKGROUND = 4; + + private static $valueToName = [ + self::IMAGE_DISPLAY_OPTIONS_UNSPECIFIED => 'IMAGE_DISPLAY_OPTIONS_UNSPECIFIED', + self::GRAY => 'GRAY', + self::WHITE => 'WHITE', + self::CROPPED => 'CROPPED', + self::BLURRED_BACKGROUND => 'BLURRED_BACKGROUND', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ImageDisplayOptions::class, \Google\Cloud\Dialogflow\V2\Intent_Message_BrowseCarouselCard_ImageDisplayOptions::class); + diff --git a/Dialogflow/src/V2/Intent/Message/Card.php b/Dialogflow/src/V2/Intent/Message/Card.php index f58788f1622e..5b431ef693ce 100644 --- a/Dialogflow/src/V2/Intent/Message/Card.php +++ b/Dialogflow/src/V2/Intent/Message/Card.php @@ -18,25 +18,25 @@ class Card extends \Google\Protobuf\Internal\Message /** * Optional. The title of the card. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $title = ''; /** * Optional. The subtitle of the card. * - * Generated from protobuf field string subtitle = 2; + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $subtitle = ''; /** * Optional. The public URI to an image file for the card. * - * Generated from protobuf field string image_uri = 3; + * Generated from protobuf field string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $image_uri = ''; /** * Optional. The collection of card buttons. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $buttons; @@ -64,7 +64,7 @@ public function __construct($data = NULL) { /** * Optional. The title of the card. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getTitle() @@ -75,7 +75,7 @@ public function getTitle() /** * Optional. The title of the card. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -90,7 +90,7 @@ public function setTitle($var) /** * Optional. The subtitle of the card. * - * Generated from protobuf field string subtitle = 2; + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getSubtitle() @@ -101,7 +101,7 @@ public function getSubtitle() /** * Optional. The subtitle of the card. * - * Generated from protobuf field string subtitle = 2; + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -116,7 +116,7 @@ public function setSubtitle($var) /** * Optional. The public URI to an image file for the card. * - * Generated from protobuf field string image_uri = 3; + * Generated from protobuf field string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getImageUri() @@ -127,7 +127,7 @@ public function getImageUri() /** * Optional. The public URI to an image file for the card. * - * Generated from protobuf field string image_uri = 3; + * Generated from protobuf field string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -142,7 +142,7 @@ public function setImageUri($var) /** * Optional. The collection of card buttons. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getButtons() @@ -153,7 +153,7 @@ public function getButtons() /** * Optional. The collection of card buttons. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Card\Button[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/Card/Button.php b/Dialogflow/src/V2/Intent/Message/Card/Button.php index 30d6e16739d0..8947fb90e026 100644 --- a/Dialogflow/src/V2/Intent/Message/Card/Button.php +++ b/Dialogflow/src/V2/Intent/Message/Card/Button.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Optional. Contains information about a button. + * Contains information about a button. * * Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.Card.Button */ @@ -18,14 +18,14 @@ class Button extends \Google\Protobuf\Internal\Message /** * Optional. The text to show on the button. * - * Generated from protobuf field string text = 1; + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $text = ''; /** * Optional. The text to send back to the Dialogflow API or a URI to * open. * - * Generated from protobuf field string postback = 2; + * Generated from protobuf field string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $postback = ''; @@ -50,7 +50,7 @@ public function __construct($data = NULL) { /** * Optional. The text to show on the button. * - * Generated from protobuf field string text = 1; + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getText() @@ -61,7 +61,7 @@ public function getText() /** * Optional. The text to show on the button. * - * Generated from protobuf field string text = 1; + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -77,7 +77,7 @@ public function setText($var) * Optional. The text to send back to the Dialogflow API or a URI to * open. * - * Generated from protobuf field string postback = 2; + * Generated from protobuf field string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getPostback() @@ -89,7 +89,7 @@ public function getPostback() * Optional. The text to send back to the Dialogflow API or a URI to * open. * - * Generated from protobuf field string postback = 2; + * Generated from protobuf field string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/CarouselSelect.php b/Dialogflow/src/V2/Intent/Message/CarouselSelect.php index efc18b357041..287c06688676 100644 --- a/Dialogflow/src/V2/Intent/Message/CarouselSelect.php +++ b/Dialogflow/src/V2/Intent/Message/CarouselSelect.php @@ -18,7 +18,7 @@ class CarouselSelect extends \Google\Protobuf\Internal\Message /** * Required. Carousel items. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $items; @@ -40,7 +40,7 @@ public function __construct($data = NULL) { /** * Required. Carousel items. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getItems() @@ -51,7 +51,7 @@ public function getItems() /** * Required. Carousel items. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\CarouselSelect\Item[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/CarouselSelect/Item.php b/Dialogflow/src/V2/Intent/Message/CarouselSelect/Item.php index 2bcb7b64f7bc..e28983a965f7 100644 --- a/Dialogflow/src/V2/Intent/Message/CarouselSelect/Item.php +++ b/Dialogflow/src/V2/Intent/Message/CarouselSelect/Item.php @@ -18,25 +18,25 @@ class Item extends \Google\Protobuf\Internal\Message /** * Required. Additional info about the option item. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $info = null; /** * Required. Title of the carousel item. * - * Generated from protobuf field string title = 2; + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $title = ''; /** * Optional. The body text of the card. * - * Generated from protobuf field string description = 3; + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $description = ''; /** * Optional. The image to display. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $image = null; @@ -64,7 +64,7 @@ public function __construct($data = NULL) { /** * Required. Additional info about the option item. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Intent\Message\SelectItemInfo */ public function getInfo() @@ -75,7 +75,7 @@ public function getInfo() /** * Required. Additional info about the option item. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\SelectItemInfo $var * @return $this */ @@ -90,7 +90,7 @@ public function setInfo($var) /** * Required. Title of the carousel item. * - * Generated from protobuf field string title = 2; + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getTitle() @@ -101,7 +101,7 @@ public function getTitle() /** * Required. Title of the carousel item. * - * Generated from protobuf field string title = 2; + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -116,7 +116,7 @@ public function setTitle($var) /** * Optional. The body text of the card. * - * Generated from protobuf field string description = 3; + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDescription() @@ -127,7 +127,7 @@ public function getDescription() /** * Optional. The body text of the card. * - * Generated from protobuf field string description = 3; + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -142,7 +142,7 @@ public function setDescription($var) /** * Optional. The image to display. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image */ public function getImage() @@ -153,7 +153,7 @@ public function getImage() /** * Optional. The image to display. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Image $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/ColumnProperties.php b/Dialogflow/src/V2/Intent/Message/ColumnProperties.php new file mode 100644 index 000000000000..be9e19ec8fd5 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/ColumnProperties.php @@ -0,0 +1,104 @@ +google.cloud.dialogflow.v2.Intent.Message.ColumnProperties + */ +class ColumnProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Column heading. + * + * Generated from protobuf field string header = 1; + */ + private $header = ''; + /** + * Optional. Defines text alignment for all cells in this column. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $horizontal_alignment = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $header + * Required. Column heading. + * @type int $horizontal_alignment + * Optional. Defines text alignment for all cells in this column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. Column heading. + * + * Generated from protobuf field string header = 1; + * @return string + */ + public function getHeader() + { + return $this->header; + } + + /** + * Required. Column heading. + * + * Generated from protobuf field string header = 1; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->header = $var; + + return $this; + } + + /** + * Optional. Defines text alignment for all cells in this column. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHorizontalAlignment() + { + return $this->horizontal_alignment; + } + + /** + * Optional. Defines text alignment for all cells in this column. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHorizontalAlignment($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_Message_ColumnProperties_HorizontalAlignment::class); + $this->horizontal_alignment = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ColumnProperties::class, \Google\Cloud\Dialogflow\V2\Intent_Message_ColumnProperties::class); + diff --git a/Dialogflow/src/V2/Intent/Message/ColumnProperties/HorizontalAlignment.php b/Dialogflow/src/V2/Intent/Message/ColumnProperties/HorizontalAlignment.php new file mode 100644 index 000000000000..96cec8e9be4d --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/ColumnProperties/HorizontalAlignment.php @@ -0,0 +1,71 @@ +google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment + */ +class HorizontalAlignment +{ + /** + * Text is aligned to the leading edge of the column. + * + * Generated from protobuf enum HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + */ + const HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + /** + * Text is aligned to the leading edge of the column. + * + * Generated from protobuf enum LEADING = 1; + */ + const LEADING = 1; + /** + * Text is centered in the column. + * + * Generated from protobuf enum CENTER = 2; + */ + const CENTER = 2; + /** + * Text is aligned to the trailing edge of the column. + * + * Generated from protobuf enum TRAILING = 3; + */ + const TRAILING = 3; + + private static $valueToName = [ + self::HORIZONTAL_ALIGNMENT_UNSPECIFIED => 'HORIZONTAL_ALIGNMENT_UNSPECIFIED', + self::LEADING => 'LEADING', + self::CENTER => 'CENTER', + self::TRAILING => 'TRAILING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HorizontalAlignment::class, \Google\Cloud\Dialogflow\V2\Intent_Message_ColumnProperties_HorizontalAlignment::class); + diff --git a/Dialogflow/src/V2/Intent/Message/Image.php b/Dialogflow/src/V2/Intent/Message/Image.php index 0d61f47d77a2..caec4036f0e1 100644 --- a/Dialogflow/src/V2/Intent/Message/Image.php +++ b/Dialogflow/src/V2/Intent/Message/Image.php @@ -18,14 +18,14 @@ class Image extends \Google\Protobuf\Internal\Message /** * Optional. The public URI to an image file. * - * Generated from protobuf field string image_uri = 1; + * Generated from protobuf field string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $image_uri = ''; /** * Optional. A text description of the image to be used for accessibility, * e.g., screen readers. * - * Generated from protobuf field string accessibility_text = 2; + * Generated from protobuf field string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $accessibility_text = ''; @@ -50,7 +50,7 @@ public function __construct($data = NULL) { /** * Optional. The public URI to an image file. * - * Generated from protobuf field string image_uri = 1; + * Generated from protobuf field string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getImageUri() @@ -61,7 +61,7 @@ public function getImageUri() /** * Optional. The public URI to an image file. * - * Generated from protobuf field string image_uri = 1; + * Generated from protobuf field string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -77,7 +77,7 @@ public function setImageUri($var) * Optional. A text description of the image to be used for accessibility, * e.g., screen readers. * - * Generated from protobuf field string accessibility_text = 2; + * Generated from protobuf field string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getAccessibilityText() @@ -89,7 +89,7 @@ public function getAccessibilityText() * Optional. A text description of the image to be used for accessibility, * e.g., screen readers. * - * Generated from protobuf field string accessibility_text = 2; + * Generated from protobuf field string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/LinkOutSuggestion.php b/Dialogflow/src/V2/Intent/Message/LinkOutSuggestion.php index 277e0296e17c..e54b7a038be9 100644 --- a/Dialogflow/src/V2/Intent/Message/LinkOutSuggestion.php +++ b/Dialogflow/src/V2/Intent/Message/LinkOutSuggestion.php @@ -19,14 +19,14 @@ class LinkOutSuggestion extends \Google\Protobuf\Internal\Message /** * Required. The name of the app or site this chip is linking to. * - * Generated from protobuf field string destination_name = 1; + * Generated from protobuf field string destination_name = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $destination_name = ''; /** * Required. The URI of the app or site to open when the user taps the * suggestion chip. * - * Generated from protobuf field string uri = 2; + * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $uri = ''; @@ -51,7 +51,7 @@ public function __construct($data = NULL) { /** * Required. The name of the app or site this chip is linking to. * - * Generated from protobuf field string destination_name = 1; + * Generated from protobuf field string destination_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDestinationName() @@ -62,7 +62,7 @@ public function getDestinationName() /** * Required. The name of the app or site this chip is linking to. * - * Generated from protobuf field string destination_name = 1; + * Generated from protobuf field string destination_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -78,7 +78,7 @@ public function setDestinationName($var) * Required. The URI of the app or site to open when the user taps the * suggestion chip. * - * Generated from protobuf field string uri = 2; + * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getUri() @@ -90,7 +90,7 @@ public function getUri() * Required. The URI of the app or site to open when the user taps the * suggestion chip. * - * Generated from protobuf field string uri = 2; + * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/ListSelect.php b/Dialogflow/src/V2/Intent/Message/ListSelect.php index 54b970b5a3ba..c1ab8ab34204 100644 --- a/Dialogflow/src/V2/Intent/Message/ListSelect.php +++ b/Dialogflow/src/V2/Intent/Message/ListSelect.php @@ -18,15 +18,21 @@ class ListSelect extends \Google\Protobuf\Internal\Message /** * Optional. The overall title of the list. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $title = ''; /** * Required. List items. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $items; + /** + * Optional. Subtitle of the list. + * + * Generated from protobuf field string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $subtitle = ''; /** * Constructor. @@ -38,6 +44,8 @@ class ListSelect extends \Google\Protobuf\Internal\Message * Optional. The overall title of the list. * @type \Google\Cloud\Dialogflow\V2\Intent\Message\ListSelect\Item[]|\Google\Protobuf\Internal\RepeatedField $items * Required. List items. + * @type string $subtitle + * Optional. Subtitle of the list. * } */ public function __construct($data = NULL) { @@ -48,7 +56,7 @@ public function __construct($data = NULL) { /** * Optional. The overall title of the list. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getTitle() @@ -59,7 +67,7 @@ public function getTitle() /** * Optional. The overall title of the list. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -74,7 +82,7 @@ public function setTitle($var) /** * Required. List items. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getItems() @@ -85,7 +93,7 @@ public function getItems() /** * Required. List items. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item items = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\ListSelect\Item[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -97,6 +105,32 @@ public function setItems($var) return $this; } + /** + * Optional. Subtitle of the list. + * + * Generated from protobuf field string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSubtitle() + { + return $this->subtitle; + } + + /** + * Optional. Subtitle of the list. + * + * Generated from protobuf field string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSubtitle($var) + { + GPBUtil::checkString($var, True); + $this->subtitle = $var; + + return $this; + } + } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/Dialogflow/src/V2/Intent/Message/ListSelect/Item.php b/Dialogflow/src/V2/Intent/Message/ListSelect/Item.php index 162e8613f3bb..3b94efeac6d9 100644 --- a/Dialogflow/src/V2/Intent/Message/ListSelect/Item.php +++ b/Dialogflow/src/V2/Intent/Message/ListSelect/Item.php @@ -18,25 +18,25 @@ class Item extends \Google\Protobuf\Internal\Message /** * Required. Additional information about this option. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $info = null; /** * Required. The title of the list item. * - * Generated from protobuf field string title = 2; + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $title = ''; /** * Optional. The main text describing the item. * - * Generated from protobuf field string description = 3; + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $description = ''; /** * Optional. The image to display. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $image = null; @@ -64,7 +64,7 @@ public function __construct($data = NULL) { /** * Required. Additional information about this option. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Intent\Message\SelectItemInfo */ public function getInfo() @@ -75,7 +75,7 @@ public function getInfo() /** * Required. Additional information about this option. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo info = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\SelectItemInfo $var * @return $this */ @@ -90,7 +90,7 @@ public function setInfo($var) /** * Required. The title of the list item. * - * Generated from protobuf field string title = 2; + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getTitle() @@ -101,7 +101,7 @@ public function getTitle() /** * Required. The title of the list item. * - * Generated from protobuf field string title = 2; + * Generated from protobuf field string title = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -116,7 +116,7 @@ public function setTitle($var) /** * Optional. The main text describing the item. * - * Generated from protobuf field string description = 3; + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDescription() @@ -127,7 +127,7 @@ public function getDescription() /** * Optional. The main text describing the item. * - * Generated from protobuf field string description = 3; + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -142,7 +142,7 @@ public function setDescription($var) /** * Optional. The image to display. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image */ public function getImage() @@ -153,7 +153,7 @@ public function getImage() /** * Optional. The image to display. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Image $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/MediaContent.php b/Dialogflow/src/V2/Intent/Message/MediaContent.php new file mode 100644 index 000000000000..7d792f865d39 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/MediaContent.php @@ -0,0 +1,104 @@ +google.cloud.dialogflow.v2.Intent.Message.MediaContent + */ +class MediaContent extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. What type of media is the content (ie "audio"). + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $media_type = 0; + /** + * Required. List of media objects. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + */ + private $media_objects; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $media_type + * Optional. What type of media is the content (ie "audio"). + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent\ResponseMediaObject[]|\Google\Protobuf\Internal\RepeatedField $media_objects + * Required. List of media objects. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Optional. What type of media is the content (ie "audio"). + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMediaType() + { + return $this->media_type; + } + + /** + * Optional. What type of media is the content (ie "audio"). + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMediaType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Intent_Message_MediaContent_ResponseMediaType::class); + $this->media_type = $var; + + return $this; + } + + /** + * Required. List of media objects. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMediaObjects() + { + return $this->media_objects; + } + + /** + * Required. List of media objects. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent\ResponseMediaObject[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMediaObjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent\ResponseMediaObject::class); + $this->media_objects = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MediaContent::class, \Google\Cloud\Dialogflow\V2\Intent_Message_MediaContent::class); + diff --git a/Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaObject.php b/Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaObject.php new file mode 100644 index 000000000000..8ca81b3659db --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaObject.php @@ -0,0 +1,203 @@ +google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject + */ +class ResponseMediaObject extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of media card. + * + * Generated from protobuf field string name = 1; + */ + private $name = ''; + /** + * Optional. Description of media card. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $description = ''; + /** + * Required. Url where the media is stored. + * + * Generated from protobuf field string content_url = 5; + */ + private $content_url = ''; + protected $image; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of media card. + * @type string $description + * Optional. Description of media card. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\Image $large_image + * Optional. Image to display above media content. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\Image $icon + * Optional. Icon to display above media content. + * @type string $content_url + * Required. Url where the media is stored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of media card. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of media card. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Description of media card. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of media card. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Image to display above media content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image + */ + public function getLargeImage() + { + return $this->readOneof(3); + } + + /** + * Optional. Image to display above media content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Image $var + * @return $this + */ + public function setLargeImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Image::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Optional. Icon to display above media content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image + */ + public function getIcon() + { + return $this->readOneof(4); + } + + /** + * Optional. Icon to display above media content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Image $var + * @return $this + */ + public function setIcon($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_Image::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. Url where the media is stored. + * + * Generated from protobuf field string content_url = 5; + * @return string + */ + public function getContentUrl() + { + return $this->content_url; + } + + /** + * Required. Url where the media is stored. + * + * Generated from protobuf field string content_url = 5; + * @param string $var + * @return $this + */ + public function setContentUrl($var) + { + GPBUtil::checkString($var, True); + $this->content_url = $var; + + return $this; + } + + /** + * @return string + */ + public function getImage() + { + return $this->whichOneof("image"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ResponseMediaObject::class, \Google\Cloud\Dialogflow\V2\Intent_Message_MediaContent_ResponseMediaObject::class); + diff --git a/Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaType.php b/Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaType.php new file mode 100644 index 000000000000..7ff8438d6ca1 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/MediaContent/ResponseMediaType.php @@ -0,0 +1,57 @@ +google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType + */ +class ResponseMediaType +{ + /** + * Unspecified. + * + * Generated from protobuf enum RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0; + */ + const RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0; + /** + * Response media type is audio. + * + * Generated from protobuf enum AUDIO = 1; + */ + const AUDIO = 1; + + private static $valueToName = [ + self::RESPONSE_MEDIA_TYPE_UNSPECIFIED => 'RESPONSE_MEDIA_TYPE_UNSPECIFIED', + self::AUDIO => 'AUDIO', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ResponseMediaType::class, \Google\Cloud\Dialogflow\V2\Intent_Message_MediaContent_ResponseMediaType::class); + diff --git a/Dialogflow/src/V2/Intent/Message/QuickReplies.php b/Dialogflow/src/V2/Intent/Message/QuickReplies.php index ed9b22939960..38808c06b0a7 100644 --- a/Dialogflow/src/V2/Intent/Message/QuickReplies.php +++ b/Dialogflow/src/V2/Intent/Message/QuickReplies.php @@ -18,13 +18,13 @@ class QuickReplies extends \Google\Protobuf\Internal\Message /** * Optional. The title of the collection of quick replies. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $title = ''; /** * Optional. The collection of quick replies. * - * Generated from protobuf field repeated string quick_replies = 2; + * Generated from protobuf field repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $quick_replies; @@ -48,7 +48,7 @@ public function __construct($data = NULL) { /** * Optional. The title of the collection of quick replies. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getTitle() @@ -59,7 +59,7 @@ public function getTitle() /** * Optional. The title of the collection of quick replies. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -74,7 +74,7 @@ public function setTitle($var) /** * Optional. The collection of quick replies. * - * Generated from protobuf field repeated string quick_replies = 2; + * Generated from protobuf field repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getQuickReplies() @@ -85,7 +85,7 @@ public function getQuickReplies() /** * Optional. The collection of quick replies. * - * Generated from protobuf field repeated string quick_replies = 2; + * Generated from protobuf field repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/SelectItemInfo.php b/Dialogflow/src/V2/Intent/Message/SelectItemInfo.php index 1e0028cf1ed8..6ecaffb7d190 100644 --- a/Dialogflow/src/V2/Intent/Message/SelectItemInfo.php +++ b/Dialogflow/src/V2/Intent/Message/SelectItemInfo.php @@ -20,14 +20,14 @@ class SelectItemInfo extends \Google\Protobuf\Internal\Message * Required. A unique key that will be sent back to the agent if this * response is given. * - * Generated from protobuf field string key = 1; + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $key = ''; /** * Optional. A list of synonyms that can also be used to trigger this * item in dialog. * - * Generated from protobuf field repeated string synonyms = 2; + * Generated from protobuf field repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $synonyms; @@ -54,7 +54,7 @@ public function __construct($data = NULL) { * Required. A unique key that will be sent back to the agent if this * response is given. * - * Generated from protobuf field string key = 1; + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getKey() @@ -66,7 +66,7 @@ public function getKey() * Required. A unique key that will be sent back to the agent if this * response is given. * - * Generated from protobuf field string key = 1; + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -82,7 +82,7 @@ public function setKey($var) * Optional. A list of synonyms that can also be used to trigger this * item in dialog. * - * Generated from protobuf field repeated string synonyms = 2; + * Generated from protobuf field repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSynonyms() @@ -94,7 +94,7 @@ public function getSynonyms() * Optional. A list of synonyms that can also be used to trigger this * item in dialog. * - * Generated from protobuf field repeated string synonyms = 2; + * Generated from protobuf field repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/SimpleResponse.php b/Dialogflow/src/V2/Intent/Message/SimpleResponse.php index 04b4d258f50d..e2ef0d24b04e 100644 --- a/Dialogflow/src/V2/Intent/Message/SimpleResponse.php +++ b/Dialogflow/src/V2/Intent/Message/SimpleResponse.php @@ -33,7 +33,7 @@ class SimpleResponse extends \Google\Protobuf\Internal\Message /** * Optional. The text to display. * - * Generated from protobuf field string display_text = 3; + * Generated from protobuf field string display_text = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $display_text = ''; @@ -120,7 +120,7 @@ public function setSsml($var) /** * Optional. The text to display. * - * Generated from protobuf field string display_text = 3; + * Generated from protobuf field string display_text = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDisplayText() @@ -131,7 +131,7 @@ public function getDisplayText() /** * Optional. The text to display. * - * Generated from protobuf field string display_text = 3; + * Generated from protobuf field string display_text = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/SimpleResponses.php b/Dialogflow/src/V2/Intent/Message/SimpleResponses.php index fea12ebe7ce6..2a379cb06edc 100644 --- a/Dialogflow/src/V2/Intent/Message/SimpleResponses.php +++ b/Dialogflow/src/V2/Intent/Message/SimpleResponses.php @@ -21,7 +21,7 @@ class SimpleResponses extends \Google\Protobuf\Internal\Message /** * Required. The list of simple responses. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $simple_responses; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { /** * Required. The list of simple responses. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSimpleResponses() @@ -54,7 +54,7 @@ public function getSimpleResponses() /** * Required. The list of simple responses. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\SimpleResponse[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/Suggestion.php b/Dialogflow/src/V2/Intent/Message/Suggestion.php index c3855f00138d..6b35fb823dce 100644 --- a/Dialogflow/src/V2/Intent/Message/Suggestion.php +++ b/Dialogflow/src/V2/Intent/Message/Suggestion.php @@ -19,7 +19,7 @@ class Suggestion extends \Google\Protobuf\Internal\Message /** * Required. The text shown the in the suggestion chip. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $title = ''; @@ -41,7 +41,7 @@ public function __construct($data = NULL) { /** * Required. The text shown the in the suggestion chip. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getTitle() @@ -52,7 +52,7 @@ public function getTitle() /** * Required. The text shown the in the suggestion chip. * - * Generated from protobuf field string title = 1; + * Generated from protobuf field string title = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/Suggestions.php b/Dialogflow/src/V2/Intent/Message/Suggestions.php index 81df08c44380..101f638d4192 100644 --- a/Dialogflow/src/V2/Intent/Message/Suggestions.php +++ b/Dialogflow/src/V2/Intent/Message/Suggestions.php @@ -18,7 +18,7 @@ class Suggestions extends \Google\Protobuf\Internal\Message /** * Required. The list of suggested replies. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $suggestions; @@ -40,7 +40,7 @@ public function __construct($data = NULL) { /** * Required. The list of suggested replies. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSuggestions() @@ -51,7 +51,7 @@ public function getSuggestions() /** * Required. The list of suggested replies. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\Message\Suggestion[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Message/TableCard.php b/Dialogflow/src/V2/Intent/Message/TableCard.php new file mode 100644 index 000000000000..ce65033026fb --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/TableCard.php @@ -0,0 +1,240 @@ +google.cloud.dialogflow.v2.Intent.Message.TableCard + */ +class TableCard extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Title of the card. + * + * Generated from protobuf field string title = 1; + */ + private $title = ''; + /** + * Optional. Subtitle to the title. + * + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $subtitle = ''; + /** + * Optional. Image which should be displayed on the card. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $image = null; + /** + * Optional. Display properties for the columns in this table. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $column_properties; + /** + * Optional. Rows in this table of data. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $rows; + /** + * Optional. List of buttons for the card. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $buttons; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * Required. Title of the card. + * @type string $subtitle + * Optional. Subtitle to the title. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\Image $image + * Optional. Image which should be displayed on the card. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\ColumnProperties[]|\Google\Protobuf\Internal\RepeatedField $column_properties + * Optional. Display properties for the columns in this table. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\TableCardRow[]|\Google\Protobuf\Internal\RepeatedField $rows + * Optional. Rows in this table of data. + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button[]|\Google\Protobuf\Internal\RepeatedField $buttons + * Optional. List of buttons for the card. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. Title of the card. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Required. Title of the card. + * + * Generated from protobuf field string title = 1; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. Subtitle to the title. + * + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSubtitle() + { + return $this->subtitle; + } + + /** + * Optional. Subtitle to the title. + * + * Generated from protobuf field string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSubtitle($var) + { + GPBUtil::checkString($var, True); + $this->subtitle = $var; + + return $this; + } + + /** + * Optional. Image which should be displayed on the card. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dialogflow\V2\Intent\Message\Image + */ + public function getImage() + { + return $this->image; + } + + /** + * Optional. Image which should be displayed on the card. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @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->image = $var; + + return $this; + } + + /** + * Optional. Display properties for the columns in this table. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getColumnProperties() + { + return $this->column_properties; + } + + /** + * Optional. Display properties for the columns in this table. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.ColumnProperties column_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\ColumnProperties[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setColumnProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message\ColumnProperties::class); + $this->column_properties = $arr; + + return $this; + } + + /** + * Optional. Rows in this table of data. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Optional. Rows in this table of data. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardRow rows = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\TableCardRow[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message\TableCardRow::class); + $this->rows = $arr; + + return $this; + } + + /** + * Optional. List of buttons for the card. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getButtons() + { + return $this->buttons; + } + + /** + * Optional. List of buttons for the card. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setButtons($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message\BasicCard\Button::class); + $this->buttons = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TableCard::class, \Google\Cloud\Dialogflow\V2\Intent_Message_TableCard::class); + diff --git a/Dialogflow/src/V2/Intent/Message/TableCardCell.php b/Dialogflow/src/V2/Intent/Message/TableCardCell.php new file mode 100644 index 000000000000..1da14a1289c9 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/TableCardCell.php @@ -0,0 +1,70 @@ +google.cloud.dialogflow.v2.Intent.Message.TableCardCell + */ +class TableCardCell extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Text in this cell. + * + * Generated from protobuf field string text = 1; + */ + private $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Required. Text in this cell. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Required. Text in this cell. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Required. Text in this cell. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TableCardCell::class, \Google\Cloud\Dialogflow\V2\Intent_Message_TableCardCell::class); + diff --git a/Dialogflow/src/V2/Intent/Message/TableCardRow.php b/Dialogflow/src/V2/Intent/Message/TableCardRow.php new file mode 100644 index 000000000000..7c9879233c40 --- /dev/null +++ b/Dialogflow/src/V2/Intent/Message/TableCardRow.php @@ -0,0 +1,104 @@ +google.cloud.dialogflow.v2.Intent.Message.TableCardRow + */ +class TableCardRow extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. List of cells that make up this row. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cells; + /** + * Optional. Whether to add a visual divider after this row. + * + * Generated from protobuf field bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $divider_after = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dialogflow\V2\Intent\Message\TableCardCell[]|\Google\Protobuf\Internal\RepeatedField $cells + * Optional. List of cells that make up this row. + * @type bool $divider_after + * Optional. Whether to add a visual divider after this row. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); + parent::__construct($data); + } + + /** + * Optional. List of cells that make up this row. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCells() + { + return $this->cells; + } + + /** + * Optional. List of cells that make up this row. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.TableCardCell cells = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\Intent\Message\TableCardCell[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCells($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message\TableCardCell::class); + $this->cells = $arr; + + return $this; + } + + /** + * Optional. Whether to add a visual divider after this row. + * + * Generated from protobuf field bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDividerAfter() + { + return $this->divider_after; + } + + /** + * Optional. Whether to add a visual divider after this row. + * + * Generated from protobuf field bool divider_after = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDividerAfter($var) + { + GPBUtil::checkBool($var); + $this->divider_after = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TableCardRow::class, \Google\Cloud\Dialogflow\V2\Intent_Message_TableCardRow::class); + diff --git a/Dialogflow/src/V2/Intent/Message/Text.php b/Dialogflow/src/V2/Intent/Message/Text.php index 87bad6a6be74..27655328d3f2 100644 --- a/Dialogflow/src/V2/Intent/Message/Text.php +++ b/Dialogflow/src/V2/Intent/Message/Text.php @@ -18,7 +18,7 @@ class Text extends \Google\Protobuf\Internal\Message /** * Optional. The collection of the agent's responses. * - * Generated from protobuf field repeated string text = 1; + * Generated from protobuf field repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $text; @@ -40,7 +40,7 @@ public function __construct($data = NULL) { /** * Optional. The collection of the agent's responses. * - * Generated from protobuf field repeated string text = 1; + * Generated from protobuf field repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getText() @@ -51,7 +51,7 @@ public function getText() /** * Optional. The collection of the agent's responses. * - * Generated from protobuf field repeated string text = 1; + * Generated from protobuf field repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/Parameter.php b/Dialogflow/src/V2/Intent/Parameter.php index d80e75ccc24f..089340e3e5d8 100644 --- a/Dialogflow/src/V2/Intent/Parameter.php +++ b/Dialogflow/src/V2/Intent/Parameter.php @@ -35,7 +35,7 @@ class Parameter extends \Google\Protobuf\Internal\Message * - a parameter value from some context defined as * `#context_name.parameter_name`. * - * Generated from protobuf field string value = 3; + * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $value = ''; /** @@ -44,7 +44,7 @@ class Parameter extends \Google\Protobuf\Internal\Message * Default values can be extracted from contexts by using the following * syntax: `#context_name.parameter_name`. * - * Generated from protobuf field string default_value = 4; + * Generated from protobuf field string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $default_value = ''; /** @@ -52,7 +52,7 @@ class Parameter extends \Google\Protobuf\Internal\Message * describes values of the parameter. If the parameter is * required, this must be provided. * - * Generated from protobuf field string entity_type_display_name = 5; + * Generated from protobuf field string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $entity_type_display_name = ''; /** @@ -60,20 +60,20 @@ class Parameter extends \Google\Protobuf\Internal\Message * whether the intent cannot be completed without collecting the parameter * value. * - * Generated from protobuf field bool mandatory = 6; + * Generated from protobuf field bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $mandatory = false; /** * Optional. The collection of prompts that the agent can present to the * user in order to collect a value for the parameter. * - * Generated from protobuf field repeated string prompts = 7; + * Generated from protobuf field repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private $prompts; /** * Optional. Indicates whether the parameter represents a list of values. * - * Generated from protobuf field bool is_list = 8; + * Generated from protobuf field bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private $is_list = false; @@ -179,7 +179,7 @@ public function setDisplayName($var) * - a parameter value from some context defined as * `#context_name.parameter_name`. * - * Generated from protobuf field string value = 3; + * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getValue() @@ -195,7 +195,7 @@ public function getValue() * - a parameter value from some context defined as * `#context_name.parameter_name`. * - * Generated from protobuf field string value = 3; + * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -213,7 +213,7 @@ public function setValue($var) * Default values can be extracted from contexts by using the following * syntax: `#context_name.parameter_name`. * - * Generated from protobuf field string default_value = 4; + * Generated from protobuf field string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDefaultValue() @@ -227,7 +227,7 @@ public function getDefaultValue() * Default values can be extracted from contexts by using the following * syntax: `#context_name.parameter_name`. * - * Generated from protobuf field string default_value = 4; + * Generated from protobuf field string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -244,7 +244,7 @@ public function setDefaultValue($var) * describes values of the parameter. If the parameter is * required, this must be provided. * - * Generated from protobuf field string entity_type_display_name = 5; + * Generated from protobuf field string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getEntityTypeDisplayName() @@ -257,7 +257,7 @@ public function getEntityTypeDisplayName() * describes values of the parameter. If the parameter is * required, this must be provided. * - * Generated from protobuf field string entity_type_display_name = 5; + * Generated from protobuf field string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -274,7 +274,7 @@ public function setEntityTypeDisplayName($var) * whether the intent cannot be completed without collecting the parameter * value. * - * Generated from protobuf field bool mandatory = 6; + * Generated from protobuf field bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getMandatory() @@ -287,7 +287,7 @@ public function getMandatory() * whether the intent cannot be completed without collecting the parameter * value. * - * Generated from protobuf field bool mandatory = 6; + * Generated from protobuf field bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -303,7 +303,7 @@ public function setMandatory($var) * Optional. The collection of prompts that the agent can present to the * user in order to collect a value for the parameter. * - * Generated from protobuf field repeated string prompts = 7; + * Generated from protobuf field repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPrompts() @@ -315,7 +315,7 @@ public function getPrompts() * Optional. The collection of prompts that the agent can present to the * user in order to collect a value for the parameter. * - * Generated from protobuf field repeated string prompts = 7; + * Generated from protobuf field repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -330,7 +330,7 @@ public function setPrompts($var) /** * Optional. Indicates whether the parameter represents a list of values. * - * Generated from protobuf field bool is_list = 8; + * Generated from protobuf field bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getIsList() @@ -341,7 +341,7 @@ public function getIsList() /** * Optional. Indicates whether the parameter represents a list of values. * - * Generated from protobuf field bool is_list = 8; + * Generated from protobuf field bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase.php b/Dialogflow/src/V2/Intent/TrainingPhrase.php index 9c6ff268e4e2..cb00646c7bee 100644 --- a/Dialogflow/src/V2/Intent/TrainingPhrase.php +++ b/Dialogflow/src/V2/Intent/TrainingPhrase.php @@ -24,7 +24,7 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message /** * Required. The type of the training phrase. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $type = 0; /** @@ -43,7 +43,7 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message * and the `entity_type`, `alias`, and `user_defined` fields are all * set. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $parts; /** @@ -51,7 +51,7 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * - * Generated from protobuf field int32 times_added_count = 4; + * Generated from protobuf field int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $times_added_count = 0; @@ -120,7 +120,7 @@ public function setName($var) /** * Required. The type of the training phrase. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getType() @@ -131,7 +131,7 @@ public function getType() /** * Required. The type of the training phrase. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ @@ -159,7 +159,7 @@ public function setType($var) * and the `entity_type`, `alias`, and `user_defined` fields are all * set. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getParts() @@ -183,7 +183,7 @@ public function getParts() * and the `entity_type`, `alias`, and `user_defined` fields are all * set. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase\Part[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -200,7 +200,7 @@ public function setParts($var) * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * - * Generated from protobuf field int32 times_added_count = 4; + * Generated from protobuf field int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getTimesAddedCount() @@ -213,7 +213,7 @@ public function getTimesAddedCount() * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * - * Generated from protobuf field int32 times_added_count = 4; + * Generated from protobuf field int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php b/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php index bd640e007a18..351341cac84e 100644 --- a/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php +++ b/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php @@ -25,7 +25,7 @@ class Part extends \Google\Protobuf\Internal\Message * Optional. The entity type name prefixed with `@`. * This field is required for annotated parts of the training phrase. * - * Generated from protobuf field string entity_type = 2; + * Generated from protobuf field string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $entity_type = ''; /** @@ -33,7 +33,7 @@ class Part extends \Google\Protobuf\Internal\Message * annotated part of the example. * This field is required for annotated parts of the training phrase. * - * Generated from protobuf field string alias = 3; + * Generated from protobuf field string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $alias = ''; /** @@ -42,7 +42,7 @@ class Part extends \Google\Protobuf\Internal\Message * manually annotate the part. When creating an annotated part with the * API, you must set this to true. * - * Generated from protobuf field bool user_defined = 4; + * Generated from protobuf field bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $user_defined = false; @@ -103,7 +103,7 @@ public function setText($var) * Optional. The entity type name prefixed with `@`. * This field is required for annotated parts of the training phrase. * - * Generated from protobuf field string entity_type = 2; + * Generated from protobuf field string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getEntityType() @@ -115,7 +115,7 @@ public function getEntityType() * Optional. The entity type name prefixed with `@`. * This field is required for annotated parts of the training phrase. * - * Generated from protobuf field string entity_type = 2; + * Generated from protobuf field string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -132,7 +132,7 @@ public function setEntityType($var) * annotated part of the example. * This field is required for annotated parts of the training phrase. * - * Generated from protobuf field string alias = 3; + * Generated from protobuf field string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getAlias() @@ -145,7 +145,7 @@ public function getAlias() * annotated part of the example. * This field is required for annotated parts of the training phrase. * - * Generated from protobuf field string alias = 3; + * Generated from protobuf field string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -163,7 +163,7 @@ public function setAlias($var) * manually annotate the part. When creating an annotated part with the * API, you must set this to true. * - * Generated from protobuf field bool user_defined = 4; + * Generated from protobuf field bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getUserDefined() @@ -177,7 +177,7 @@ public function getUserDefined() * manually annotate the part. When creating an annotated part with the * API, you must set this to true. * - * Generated from protobuf field bool user_defined = 4; + * Generated from protobuf field bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ diff --git a/Dialogflow/src/V2/Intent_Message_BrowseCarouselCard.php b/Dialogflow/src/V2/Intent_Message_BrowseCarouselCard.php new file mode 100644 index 000000000000..57d20f5de265 --- /dev/null +++ b/Dialogflow/src/V2/Intent_Message_BrowseCarouselCard.php @@ -0,0 +1,16 @@ +/agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $parent = ''; /** * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_size = 0; /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 3; + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_token = ''; @@ -61,7 +61,7 @@ public function __construct($data = NULL) { * Required. The session to list all contexts from. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getParent() @@ -73,7 +73,7 @@ public function getParent() * Required. The session to list all contexts from. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -89,7 +89,7 @@ public function setParent($var) * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPageSize() @@ -101,7 +101,7 @@ public function getPageSize() * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -116,7 +116,7 @@ public function setPageSize($var) /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 3; + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getPageToken() @@ -127,7 +127,7 @@ public function getPageToken() /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 3; + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/ListEntityTypesRequest.php b/Dialogflow/src/V2/ListEntityTypesRequest.php index f52e9a99ef7d..fb3a698000e6 100644 --- a/Dialogflow/src/V2/ListEntityTypesRequest.php +++ b/Dialogflow/src/V2/ListEntityTypesRequest.php @@ -19,7 +19,7 @@ class ListEntityTypesRequest extends \Google\Protobuf\Internal\Message * Required. The agent to list all entity types from. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** @@ -30,20 +30,20 @@ class ListEntityTypesRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 3; + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_size = 0; /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 4; + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_token = ''; @@ -79,7 +79,7 @@ public function __construct($data = NULL) { * Required. The agent to list all entity types from. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -91,7 +91,7 @@ public function getParent() * Required. The agent to list all entity types from. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -111,7 +111,7 @@ public function setParent($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -127,7 +127,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -143,7 +143,7 @@ public function setLanguageCode($var) * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 3; + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPageSize() @@ -155,7 +155,7 @@ public function getPageSize() * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 3; + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -170,7 +170,7 @@ public function setPageSize($var) /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 4; + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getPageToken() @@ -181,7 +181,7 @@ public function getPageToken() /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 4; + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/ListIntentsRequest.php b/Dialogflow/src/V2/ListIntentsRequest.php index ef34e2d41f92..47ae0a9a877b 100644 --- a/Dialogflow/src/V2/ListIntentsRequest.php +++ b/Dialogflow/src/V2/ListIntentsRequest.php @@ -19,7 +19,7 @@ class ListIntentsRequest extends \Google\Protobuf\Internal\Message * Required. The agent to list all intents from. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** @@ -30,26 +30,26 @@ class ListIntentsRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $intent_view = 0; /** * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 4; + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_size = 0; /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 5; + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_token = ''; @@ -87,7 +87,7 @@ public function __construct($data = NULL) { * Required. The agent to list all intents from. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -99,7 +99,7 @@ public function getParent() * Required. The agent to list all intents from. * Format: `projects//agent`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -119,7 +119,7 @@ public function setParent($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -135,7 +135,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -150,7 +150,7 @@ public function setLanguageCode($var) /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getIntentView() @@ -161,7 +161,7 @@ public function getIntentView() /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -177,7 +177,7 @@ public function setIntentView($var) * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 4; + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPageSize() @@ -189,7 +189,7 @@ public function getPageSize() * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 4; + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -204,7 +204,7 @@ public function setPageSize($var) /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 5; + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getPageToken() @@ -215,7 +215,7 @@ public function getPageToken() /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 5; + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php index 7853a299a053..c477fc34906c 100644 --- a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php +++ b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php @@ -19,20 +19,20 @@ class ListSessionEntityTypesRequest extends \Google\Protobuf\Internal\Message * Required. The session to list all session entity types from. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $parent = ''; /** * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_size = 0; /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 3; + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_token = ''; @@ -61,7 +61,7 @@ public function __construct($data = NULL) { * Required. The session to list all session entity types from. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getParent() @@ -73,7 +73,7 @@ public function getParent() * Required. The session to list all session entity types from. * Format: `projects//agent/sessions/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -89,7 +89,7 @@ public function setParent($var) * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPageSize() @@ -101,7 +101,7 @@ public function getPageSize() * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -116,7 +116,7 @@ public function setPageSize($var) /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 3; + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getPageToken() @@ -127,7 +127,7 @@ public function getPageToken() /** * Optional. The next_page_token value returned from a previous list request. * - * Generated from protobuf field string page_token = 3; + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/OutputAudioEncoding.php b/Dialogflow/src/V2/OutputAudioEncoding.php index 14542a75c33f..8b69b98cabfe 100644 --- a/Dialogflow/src/V2/OutputAudioEncoding.php +++ b/Dialogflow/src/V2/OutputAudioEncoding.php @@ -27,7 +27,7 @@ class OutputAudioEncoding */ const OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; /** - * MP3 audio. + * MP3 audio at 32kbps. * * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_MP3 = 2; */ diff --git a/Dialogflow/src/V2/QueryParameters.php b/Dialogflow/src/V2/QueryParameters.php index e41f8942c482..9219fc36acfb 100644 --- a/Dialogflow/src/V2/QueryParameters.php +++ b/Dialogflow/src/V2/QueryParameters.php @@ -21,27 +21,27 @@ class QueryParameters extends \Google\Protobuf\Internal\Message * America/New_York, Europe/Paris. If not provided, the time zone specified in * agent settings is used. * - * Generated from protobuf field string time_zone = 1; + * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $time_zone = ''; /** * Optional. The geo location of this conversational query. * - * Generated from protobuf field .google.type.LatLng geo_location = 2; + * Generated from protobuf field .google.type.LatLng geo_location = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $geo_location = null; /** * Optional. The collection of contexts to be activated before this query is * executed. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context contexts = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context contexts = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $contexts; /** * Optional. Specifies whether to delete all contexts in the current session * before the new ones are activated. * - * Generated from protobuf field bool reset_contexts = 4; + * Generated from protobuf field bool reset_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $reset_contexts = false; /** @@ -49,21 +49,21 @@ class QueryParameters extends \Google\Protobuf\Internal\Message * entity types with. The entity synonyms apply to all languages and persist * for the session of this query. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $session_entity_types; /** * Optional. This field can be used to pass custom data into the webhook * associated with the agent. Arbitrary JSON objects are supported. * - * Generated from protobuf field .google.protobuf.Struct payload = 6; + * Generated from protobuf field .google.protobuf.Struct payload = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $payload = null; /** * Optional. Configures the type of sentiment analysis to perform. If not * provided, sentiment analysis is not performed. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10; + * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private $sentiment_analysis_request_config = null; @@ -109,7 +109,7 @@ public function __construct($data = NULL) { * America/New_York, Europe/Paris. If not provided, the time zone specified in * agent settings is used. * - * Generated from protobuf field string time_zone = 1; + * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getTimeZone() @@ -123,7 +123,7 @@ public function getTimeZone() * America/New_York, Europe/Paris. If not provided, the time zone specified in * agent settings is used. * - * Generated from protobuf field string time_zone = 1; + * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -138,7 +138,7 @@ public function setTimeZone($var) /** * Optional. The geo location of this conversational query. * - * Generated from protobuf field .google.type.LatLng geo_location = 2; + * Generated from protobuf field .google.type.LatLng geo_location = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Type\LatLng */ public function getGeoLocation() @@ -149,7 +149,7 @@ public function getGeoLocation() /** * Optional. The geo location of this conversational query. * - * Generated from protobuf field .google.type.LatLng geo_location = 2; + * Generated from protobuf field .google.type.LatLng geo_location = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Type\LatLng $var * @return $this */ @@ -165,7 +165,7 @@ public function setGeoLocation($var) * Optional. The collection of contexts to be activated before this query is * executed. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context contexts = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context contexts = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getContexts() @@ -177,7 +177,7 @@ public function getContexts() * Optional. The collection of contexts to be activated before this query is * executed. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context contexts = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context contexts = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\Context[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -193,7 +193,7 @@ public function setContexts($var) * Optional. Specifies whether to delete all contexts in the current session * before the new ones are activated. * - * Generated from protobuf field bool reset_contexts = 4; + * Generated from protobuf field bool reset_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getResetContexts() @@ -205,7 +205,7 @@ public function getResetContexts() * Optional. Specifies whether to delete all contexts in the current session * before the new ones are activated. * - * Generated from protobuf field bool reset_contexts = 4; + * Generated from protobuf field bool reset_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -222,7 +222,7 @@ public function setResetContexts($var) * entity types with. The entity synonyms apply to all languages and persist * for the session of this query. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSessionEntityTypes() @@ -235,7 +235,7 @@ public function getSessionEntityTypes() * entity types with. The entity synonyms apply to all languages and persist * for the session of this query. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -251,7 +251,7 @@ public function setSessionEntityTypes($var) * Optional. This field can be used to pass custom data into the webhook * associated with the agent. Arbitrary JSON objects are supported. * - * Generated from protobuf field .google.protobuf.Struct payload = 6; + * Generated from protobuf field .google.protobuf.Struct payload = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Struct */ public function getPayload() @@ -263,7 +263,7 @@ public function getPayload() * Optional. This field can be used to pass custom data into the webhook * associated with the agent. Arbitrary JSON objects are supported. * - * Generated from protobuf field .google.protobuf.Struct payload = 6; + * Generated from protobuf field .google.protobuf.Struct payload = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\Struct $var * @return $this */ @@ -279,7 +279,7 @@ public function setPayload($var) * Optional. Configures the type of sentiment analysis to perform. If not * provided, sentiment analysis is not performed. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10; + * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig */ public function getSentimentAnalysisRequestConfig() @@ -291,7 +291,7 @@ public function getSentimentAnalysisRequestConfig() * Optional. Configures the type of sentiment analysis to perform. If not * provided, sentiment analysis is not performed. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10; + * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig $var * @return $this */ diff --git a/Dialogflow/src/V2/QueryResult.php b/Dialogflow/src/V2/QueryResult.php index 3bce4d90e04b..90b6176d9bd2 100644 --- a/Dialogflow/src/V2/QueryResult.php +++ b/Dialogflow/src/V2/QueryResult.php @@ -130,9 +130,12 @@ class QueryResult extends \Google\Protobuf\Internal\Message */ private $intent_detection_confidence = 0.0; /** - * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * Free-form diagnostic information for the associated detect intent request. + * The fields of this data can change without notice, so you should not write + * code that depends on its structure. + * The data may contain: + * - webhook call latency + * - webhook errors * * Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14; */ @@ -214,9 +217,12 @@ class QueryResult extends \Google\Protobuf\Internal\Message * If there are `multiple knowledge_answers` messages, this value is set to * the greatest `knowledgeAnswers.match_confidence` value in the list. * @type \Google\Protobuf\Struct $diagnostic_info - * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * Free-form diagnostic information for the associated detect intent request. + * The fields of this data can change without notice, so you should not write + * code that depends on its structure. + * The data may contain: + * - webhook call latency + * - webhook errors * @type \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult $sentiment_analysis_result * The sentiment analysis result, which depends on the * `sentiment_analysis_request_config` specified in the request. @@ -638,9 +644,12 @@ public function setIntentDetectionConfidence($var) } /** - * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * Free-form diagnostic information for the associated detect intent request. + * The fields of this data can change without notice, so you should not write + * code that depends on its structure. + * The data may contain: + * - webhook call latency + * - webhook errors * * Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14; * @return \Google\Protobuf\Struct @@ -651,9 +660,12 @@ public function getDiagnosticInfo() } /** - * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * Free-form diagnostic information for the associated detect intent request. + * The fields of this data can change without notice, so you should not write + * code that depends on its structure. + * The data may contain: + * - webhook call latency + * - webhook errors * * Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14; * @param \Google\Protobuf\Struct $var diff --git a/Dialogflow/src/V2/RestoreAgentRequest.php b/Dialogflow/src/V2/RestoreAgentRequest.php index c470c1dd1ea6..726d86beb338 100644 --- a/Dialogflow/src/V2/RestoreAgentRequest.php +++ b/Dialogflow/src/V2/RestoreAgentRequest.php @@ -19,7 +19,7 @@ class RestoreAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to restore is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; protected $agent; @@ -37,19 +37,7 @@ class RestoreAgentRequest extends \Google\Protobuf\Internal\Message * The URI to a Google Cloud Storage file containing the agent to restore. * Note: The URI must start with "gs://". * @type string $agent_content - * The agent to restore. - * Example for how to restore an agent via the command line: - *
curl \
-     *             'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
-     *              -X POST \
-     *              -H 'Authorization: Bearer '$(gcloud auth application-default
-     *              print-access-token) \
-     *              -H 'Accept: application/json' \
-     *              -H 'Content-Type: application/json' \
-     *              --compressed \
-     *              --data-binary "{
-     *                  'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *              }"
+ * Zip compressed raw byte content for agent. * } */ public function __construct($data = NULL) { @@ -61,7 +49,7 @@ public function __construct($data = NULL) { * Required. The project that the agent to restore is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -73,7 +61,7 @@ public function getParent() * Required. The project that the agent to restore is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -114,19 +102,7 @@ public function setAgentUri($var) } /** - * The agent to restore. - * Example for how to restore an agent via the command line: - *
curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *        'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *    }"
+ * Zip compressed raw byte content for agent. * * Generated from protobuf field bytes agent_content = 3; * @return string @@ -137,19 +113,7 @@ public function getAgentContent() } /** - * The agent to restore. - * Example for how to restore an agent via the command line: - *
curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *        'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-     *    }"
+ * Zip compressed raw byte content for agent. * * Generated from protobuf field bytes agent_content = 3; * @param string $var diff --git a/Dialogflow/src/V2/SearchAgentsRequest.php b/Dialogflow/src/V2/SearchAgentsRequest.php index 63228f42a24d..b299dc0d5065 100644 --- a/Dialogflow/src/V2/SearchAgentsRequest.php +++ b/Dialogflow/src/V2/SearchAgentsRequest.php @@ -19,18 +19,18 @@ class SearchAgentsRequest extends \Google\Protobuf\Internal\Message * Required. The project to list agents from. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; /** * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_size = 0; /** - * Optional. The next_page_token value returned from a previous list request. + * The next_page_token value returned from a previous list request. * * Generated from protobuf field string page_token = 3; */ @@ -49,7 +49,7 @@ class SearchAgentsRequest extends \Google\Protobuf\Internal\Message * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * @type string $page_token - * Optional. The next_page_token value returned from a previous list request. + * The next_page_token value returned from a previous list request. * } */ public function __construct($data = NULL) { @@ -61,7 +61,7 @@ public function __construct($data = NULL) { * Required. The project to list agents from. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -73,7 +73,7 @@ public function getParent() * Required. The project to list agents from. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -89,7 +89,7 @@ public function setParent($var) * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getPageSize() @@ -101,7 +101,7 @@ public function getPageSize() * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. * - * Generated from protobuf field int32 page_size = 2; + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ @@ -114,7 +114,7 @@ public function setPageSize($var) } /** - * Optional. The next_page_token value returned from a previous list request. + * The next_page_token value returned from a previous list request. * * Generated from protobuf field string page_token = 3; * @return string @@ -125,7 +125,7 @@ public function getPageToken() } /** - * Optional. The next_page_token value returned from a previous list request. + * The next_page_token value returned from a previous list request. * * Generated from protobuf field string page_token = 3; * @param string $var diff --git a/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php b/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php index 937c87335df7..d99a5dc3d839 100644 --- a/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php +++ b/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php @@ -20,7 +20,7 @@ class SentimentAnalysisRequestConfig extends \Google\Protobuf\Internal\Message * `query_text`. If not provided, sentiment analysis is not performed on * `query_text`. * - * Generated from protobuf field bool analyze_query_text_sentiment = 1; + * Generated from protobuf field bool analyze_query_text_sentiment = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $analyze_query_text_sentiment = false; @@ -46,7 +46,7 @@ public function __construct($data = NULL) { * `query_text`. If not provided, sentiment analysis is not performed on * `query_text`. * - * Generated from protobuf field bool analyze_query_text_sentiment = 1; + * Generated from protobuf field bool analyze_query_text_sentiment = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getAnalyzeQueryTextSentiment() @@ -59,7 +59,7 @@ public function getAnalyzeQueryTextSentiment() * `query_text`. If not provided, sentiment analysis is not performed on * `query_text`. * - * Generated from protobuf field bool analyze_query_text_sentiment = 1; + * Generated from protobuf field bool analyze_query_text_sentiment = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ diff --git a/Dialogflow/src/V2/SessionEntityType.php b/Dialogflow/src/V2/SessionEntityType.php index 93d3ab279233..c264ab0c3132 100644 --- a/Dialogflow/src/V2/SessionEntityType.php +++ b/Dialogflow/src/V2/SessionEntityType.php @@ -10,8 +10,8 @@ /** * Represents a session entity type. - * Extends or replaces a developer entity type at the user session level (we - * refer to the entity types defined at the agent level as "developer entity + * Extends or replaces a custom entity type at the user session level (we + * refer to the entity types defined at the agent level as "custom entity * types"). * Note: session entity types apply to all queries, regardless of the language. * @@ -26,21 +26,21 @@ class SessionEntityType extends \Google\Protobuf\Internal\Message * `` must be the display name of an existing entity * type in the same agent that will be overridden or supplemented. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $name = ''; /** * Required. Indicates whether the additional data should override or - * supplement the developer entity type definition. + * supplement the custom entity type definition. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode entity_override_mode = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode entity_override_mode = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $entity_override_mode = 0; /** * Required. The collection of entities associated with this session entity * type. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $entities; @@ -58,7 +58,7 @@ class SessionEntityType extends \Google\Protobuf\Internal\Message * type in the same agent that will be overridden or supplemented. * @type int $entity_override_mode * Required. Indicates whether the additional data should override or - * supplement the developer entity type definition. + * supplement the custom entity type definition. * @type \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $entities * Required. The collection of entities associated with this session entity * type. @@ -76,7 +76,7 @@ public function __construct($data = NULL) { * `` must be the display name of an existing entity * type in the same agent that will be overridden or supplemented. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getName() @@ -91,7 +91,7 @@ public function getName() * `` must be the display name of an existing entity * type in the same agent that will be overridden or supplemented. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -105,9 +105,9 @@ public function setName($var) /** * Required. Indicates whether the additional data should override or - * supplement the developer entity type definition. + * supplement the custom entity type definition. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode entity_override_mode = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode entity_override_mode = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getEntityOverrideMode() @@ -117,9 +117,9 @@ public function getEntityOverrideMode() /** * Required. Indicates whether the additional data should override or - * supplement the developer entity type definition. + * supplement the custom entity type definition. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode entity_override_mode = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideMode entity_override_mode = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ @@ -135,7 +135,7 @@ public function setEntityOverrideMode($var) * Required. The collection of entities associated with this session entity * type. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntities() @@ -147,7 +147,7 @@ public function getEntities() * Required. The collection of entities associated with this session entity * type. * - * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 3; + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 3 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php index 38e1903c753b..eb1e36787d13 100644 --- a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php +++ b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php @@ -21,19 +21,19 @@ class EntityOverrideMode const ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0; /** * The collection of session entities overrides the collection of entities - * in the corresponding developer entity type. + * in the corresponding custom entity type. * * Generated from protobuf enum ENTITY_OVERRIDE_MODE_OVERRIDE = 1; */ const ENTITY_OVERRIDE_MODE_OVERRIDE = 1; /** * The collection of session entities extends the collection of entities in - * the corresponding developer entity type. + * the corresponding custom entity type. * Note: Even in this override mode calls to `ListSessionEntityTypes`, * `GetSessionEntityType`, `CreateSessionEntityType` and * `UpdateSessionEntityType` only return the additional entities added in * this session entity type. If you want to get the supplemented list, - * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the developer entity type + * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the custom entity type * and merge. * * Generated from protobuf enum ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; diff --git a/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php b/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php index d1de2b408c23..687a98f541dd 100644 --- a/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php +++ b/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php @@ -30,6 +30,10 @@ * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * + * Session entity methods do not work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. + * * For more information about entity types, see the * [Dialogflow * documentation](https://cloud.google.com/dialogflow/docs/entities-overview). @@ -47,6 +51,10 @@ public function __construct($hostname, $opts, $channel = null) { /** * Returns the list of all session entity types in the specified session. + * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. * @param \Google\Cloud\Dialogflow\V2\ListSessionEntityTypesRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -61,6 +69,10 @@ public function ListSessionEntityTypes(\Google\Cloud\Dialogflow\V2\ListSessionEn /** * Retrieves the specified session entity type. + * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. * @param \Google\Cloud\Dialogflow\V2\GetSessionEntityTypeRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -78,6 +90,10 @@ public function GetSessionEntityType(\Google\Cloud\Dialogflow\V2\GetSessionEntit * * If the specified session entity type already exists, overrides the session * entity type. + * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. * @param \Google\Cloud\Dialogflow\V2\CreateSessionEntityTypeRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -92,6 +108,10 @@ public function CreateSessionEntityType(\Google\Cloud\Dialogflow\V2\CreateSessio /** * Updates the specified session entity type. + * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. * @param \Google\Cloud\Dialogflow\V2\UpdateSessionEntityTypeRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -106,6 +126,10 @@ public function UpdateSessionEntityType(\Google\Cloud\Dialogflow\V2\UpdateSessio /** * Deletes the specified session entity type. + * + * This method doesn't work with Google Assistant integration. + * Contact Dialogflow support if you need to use session entities + * with Google Assistant integration. * @param \Google\Cloud\Dialogflow\V2\DeleteSessionEntityTypeRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Dialogflow/src/V2/SetAgentRequest.php b/Dialogflow/src/V2/SetAgentRequest.php index 407d2275ddd4..46239d2b3c0d 100644 --- a/Dialogflow/src/V2/SetAgentRequest.php +++ b/Dialogflow/src/V2/SetAgentRequest.php @@ -18,13 +18,13 @@ class SetAgentRequest extends \Google\Protobuf\Internal\Message /** * Required. The agent to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent agent = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $agent = null; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; @@ -48,7 +48,7 @@ public function __construct($data = NULL) { /** * Required. The agent to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent agent = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Agent */ public function getAgent() @@ -59,7 +59,7 @@ public function getAgent() /** * Required. The agent to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Agent agent = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Agent $var * @return $this */ @@ -74,7 +74,7 @@ public function setAgent($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -85,7 +85,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ diff --git a/Dialogflow/src/V2/SpeechContext.php b/Dialogflow/src/V2/SpeechContext.php new file mode 100644 index 000000000000..ed8f6ff65422 --- /dev/null +++ b/Dialogflow/src/V2/SpeechContext.php @@ -0,0 +1,162 @@ +google.cloud.dialogflow.v2.SpeechContext + */ +class SpeechContext extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A list of strings containing words and phrases that the speech + * recognizer should recognize with higher likelihood. + * This list can be used to: + * * improve accuracy for words and phrases you expect the user to say, + * e.g. typical commands for your Dialogflow agent + * * add additional words to the speech recognizer vocabulary + * * ... + * See the [Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/quotas) for usage + * limits. + * + * Generated from protobuf field repeated string phrases = 1; + */ + private $phrases; + /** + * Optional. Boost for this context compared to other contexts: + * * If the boost is positive, Dialogflow will increase the probability that + * the phrases in this context are recognized over similar sounding phrases. + * * If the boost is unspecified or non-positive, Dialogflow will not apply + * any boost. + * Dialogflow recommends that you use boosts in the range (0, 20] and that you + * find a value that fits your use case with binary search. + * + * Generated from protobuf field float boost = 2; + */ + private $boost = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[]|\Google\Protobuf\Internal\RepeatedField $phrases + * Optional. A list of strings containing words and phrases that the speech + * recognizer should recognize with higher likelihood. + * This list can be used to: + * * improve accuracy for words and phrases you expect the user to say, + * e.g. typical commands for your Dialogflow agent + * * add additional words to the speech recognizer vocabulary + * * ... + * See the [Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/quotas) for usage + * limits. + * @type float $boost + * Optional. Boost for this context compared to other contexts: + * * If the boost is positive, Dialogflow will increase the probability that + * the phrases in this context are recognized over similar sounding phrases. + * * If the boost is unspecified or non-positive, Dialogflow will not apply + * any boost. + * Dialogflow recommends that you use boosts in the range (0, 20] and that you + * find a value that fits your use case with binary search. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A list of strings containing words and phrases that the speech + * recognizer should recognize with higher likelihood. + * This list can be used to: + * * improve accuracy for words and phrases you expect the user to say, + * e.g. typical commands for your Dialogflow agent + * * add additional words to the speech recognizer vocabulary + * * ... + * See the [Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/quotas) for usage + * limits. + * + * Generated from protobuf field repeated string phrases = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhrases() + { + return $this->phrases; + } + + /** + * Optional. A list of strings containing words and phrases that the speech + * recognizer should recognize with higher likelihood. + * This list can be used to: + * * improve accuracy for words and phrases you expect the user to say, + * e.g. typical commands for your Dialogflow agent + * * add additional words to the speech recognizer vocabulary + * * ... + * See the [Cloud Speech + * documentation](https://cloud.google.com/speech-to-text/quotas) for usage + * limits. + * + * Generated from protobuf field repeated string phrases = 1; + * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhrases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->phrases = $arr; + + return $this; + } + + /** + * Optional. Boost for this context compared to other contexts: + * * If the boost is positive, Dialogflow will increase the probability that + * the phrases in this context are recognized over similar sounding phrases. + * * If the boost is unspecified or non-positive, Dialogflow will not apply + * any boost. + * Dialogflow recommends that you use boosts in the range (0, 20] and that you + * find a value that fits your use case with binary search. + * + * Generated from protobuf field float boost = 2; + * @return float + */ + public function getBoost() + { + return $this->boost; + } + + /** + * Optional. Boost for this context compared to other contexts: + * * If the boost is positive, Dialogflow will increase the probability that + * the phrases in this context are recognized over similar sounding phrases. + * * If the boost is unspecified or non-positive, Dialogflow will not apply + * any boost. + * Dialogflow recommends that you use boosts in the range (0, 20] and that you + * find a value that fits your use case with binary search. + * + * Generated from protobuf field float boost = 2; + * @param float $var + * @return $this + */ + public function setBoost($var) + { + GPBUtil::checkFloat($var); + $this->boost = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/SpeechWordInfo.php b/Dialogflow/src/V2/SpeechWordInfo.php new file mode 100644 index 000000000000..b315f63eb5fe --- /dev/null +++ b/Dialogflow/src/V2/SpeechWordInfo.php @@ -0,0 +1,205 @@ +google.cloud.dialogflow.v2.SpeechWordInfo + */ +class SpeechWordInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The word this info is for. + * + * Generated from protobuf field string word = 3; + */ + private $word = ''; + /** + * Time offset relative to the beginning of the audio that corresponds to the + * start of the spoken word. This is an experimental feature and the accuracy + * of the time offset can vary. + * + * Generated from protobuf field .google.protobuf.Duration start_offset = 1; + */ + private $start_offset = null; + /** + * Time offset relative to the beginning of the audio that corresponds to the + * end of the spoken word. This is an experimental feature and the accuracy of + * the time offset can vary. + * + * Generated from protobuf field .google.protobuf.Duration end_offset = 2; + */ + private $end_offset = null; + /** + * The Speech confidence between 0.0 and 1.0 for this word. A higher number + * indicates an estimated greater likelihood that the recognized word is + * correct. The default of 0.0 is a sentinel value indicating that confidence + * was not set. + * This field is not guaranteed to be fully stable over time for the same + * audio input. Users should also not rely on it to always be provided. + * + * Generated from protobuf field float confidence = 4; + */ + private $confidence = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $word + * The word this info is for. + * @type \Google\Protobuf\Duration $start_offset + * Time offset relative to the beginning of the audio that corresponds to the + * start of the spoken word. This is an experimental feature and the accuracy + * of the time offset can vary. + * @type \Google\Protobuf\Duration $end_offset + * Time offset relative to the beginning of the audio that corresponds to the + * end of the spoken word. This is an experimental feature and the accuracy of + * the time offset can vary. + * @type float $confidence + * The Speech confidence between 0.0 and 1.0 for this word. A higher number + * indicates an estimated greater likelihood that the recognized word is + * correct. The default of 0.0 is a sentinel value indicating that confidence + * was not set. + * This field is not guaranteed to be fully stable over time for the same + * audio input. Users should also not rely on it to always be provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); + parent::__construct($data); + } + + /** + * The word this info is for. + * + * Generated from protobuf field string word = 3; + * @return string + */ + public function getWord() + { + return $this->word; + } + + /** + * The word this info is for. + * + * Generated from protobuf field string word = 3; + * @param string $var + * @return $this + */ + public function setWord($var) + { + GPBUtil::checkString($var, True); + $this->word = $var; + + return $this; + } + + /** + * Time offset relative to the beginning of the audio that corresponds to the + * start of the spoken word. This is an experimental feature and the accuracy + * of the time offset can vary. + * + * Generated from protobuf field .google.protobuf.Duration start_offset = 1; + * @return \Google\Protobuf\Duration + */ + public function getStartOffset() + { + return $this->start_offset; + } + + /** + * Time offset relative to the beginning of the audio that corresponds to the + * start of the spoken word. This is an experimental feature and the accuracy + * of the time offset can vary. + * + * Generated from protobuf field .google.protobuf.Duration start_offset = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setStartOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->start_offset = $var; + + return $this; + } + + /** + * Time offset relative to the beginning of the audio that corresponds to the + * end of the spoken word. This is an experimental feature and the accuracy of + * the time offset can vary. + * + * Generated from protobuf field .google.protobuf.Duration end_offset = 2; + * @return \Google\Protobuf\Duration + */ + public function getEndOffset() + { + return $this->end_offset; + } + + /** + * Time offset relative to the beginning of the audio that corresponds to the + * end of the spoken word. This is an experimental feature and the accuracy of + * the time offset can vary. + * + * Generated from protobuf field .google.protobuf.Duration end_offset = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setEndOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->end_offset = $var; + + return $this; + } + + /** + * The Speech confidence between 0.0 and 1.0 for this word. A higher number + * indicates an estimated greater likelihood that the recognized word is + * correct. The default of 0.0 is a sentinel value indicating that confidence + * was not set. + * This field is not guaranteed to be fully stable over time for the same + * audio input. Users should also not rely on it to always be provided. + * + * Generated from protobuf field float confidence = 4; + * @return float + */ + public function getConfidence() + { + return $this->confidence; + } + + /** + * The Speech confidence between 0.0 and 1.0 for this word. A higher number + * indicates an estimated greater likelihood that the recognized word is + * correct. The default of 0.0 is a sentinel value indicating that confidence + * was not set. + * This field is not guaranteed to be fully stable over time for the same + * audio input. Users should also not rely on it to always be provided. + * + * Generated from protobuf field float confidence = 4; + * @param float $var + * @return $this + */ + public function setConfidence($var) + { + GPBUtil::checkFloat($var); + $this->confidence = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/StreamingDetectIntentRequest.php b/Dialogflow/src/V2/StreamingDetectIntentRequest.php index ef6998a89366..cc1246f7b576 100644 --- a/Dialogflow/src/V2/StreamingDetectIntentRequest.php +++ b/Dialogflow/src/V2/StreamingDetectIntentRequest.php @@ -10,13 +10,30 @@ /** * The top-level message sent by the client to the - * `StreamingDetectIntent` method. + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent] method. * Multiple request messages should be sent in order: - * 1. The first message must contain `session`, `query_input` plus optionally - * `query_params`. The message must not contain `input_audio`. - * 2. If `query_input` was set to a streaming input audio config, - * all subsequent messages must contain only `input_audio`. - * Otherwise, finish the request stream. + * 1. The first message must contain + * [session][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.session], + * [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] plus optionally + * [query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. If the client + * wants to receive an audio response, it should also contain + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config]. + * The message must not contain + * [input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio]. + * 2. If [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] was set to + * [query_input.audio_config][google.cloud.dialogflow.v2.InputAudioConfig], all subsequent + * messages must contain + * [input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio] to continue with + * Speech recognition. + * If you decide to rather detect an intent from text input after you + * already started Speech recognition, please send a message with + * [query_input.text][google.cloud.dialogflow.v2.QueryInput.text]. + * However, note that: + * * Dialogflow will bill you for the audio duration so far. + * * Dialogflow discards all Speech recognition results in favor of the + * input text. + * * Dialogflow will use the language code from the first message. + * After you sent all input, you must half-close or abort the request stream. * * Generated from protobuf message google.cloud.dialogflow.v2.StreamingDetectIntentRequest */ @@ -30,13 +47,13 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * - * Generated from protobuf field string session = 1; + * Generated from protobuf field string session = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $session = ''; /** * Optional. The parameters of this query. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $query_params = null; /** @@ -46,12 +63,12 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ private $query_input = null; /** - * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * Optional. If `false` (default), recognition does not cease until + * Optional. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. + * If `false` (default), recognition does not cease until * the client closes the stream. If `true`, the recognizer will detect a * single spoken utterance in input audio. Recognition ceases when it detects * the audio's voice has stopped or paused. In this case, once a detected @@ -59,7 +76,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * request with a new stream as needed. * This setting is ignored when `query_input` is a piece of text or an event. * - * Generated from protobuf field bool single_utterance = 4 [deprecated = true]; + * Generated from protobuf field bool single_utterance = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; */ private $single_utterance = false; /** @@ -67,7 +84,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * - * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5; + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $output_audio_config = null; /** @@ -75,7 +92,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * `query_input` was set to a streaming input audio config. The complete audio * over all streaming messages must not exceed 1 minute. * - * Generated from protobuf field bytes input_audio = 6; + * Generated from protobuf field bytes input_audio = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private $input_audio = ''; @@ -101,8 +118,8 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * @type bool $single_utterance - * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * Optional. If `false` (default), recognition does not cease until + * Optional. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. + * If `false` (default), recognition does not cease until * the client closes the stream. If `true`, the recognizer will detect a * single spoken utterance in input audio. Recognition ceases when it detects * the audio's voice has stopped or paused. In this case, once a detected @@ -132,7 +149,7 @@ public function __construct($data = NULL) { * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * - * Generated from protobuf field string session = 1; + * Generated from protobuf field string session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getSession() @@ -148,7 +165,7 @@ public function getSession() * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * - * Generated from protobuf field string session = 1; + * Generated from protobuf field string session = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -163,7 +180,7 @@ public function setSession($var) /** * Optional. The parameters of this query. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\QueryParameters */ public function getQueryParams() @@ -174,7 +191,7 @@ public function getQueryParams() /** * Optional. The parameters of this query. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryParameters query_params = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\QueryParameters $var * @return $this */ @@ -193,7 +210,7 @@ public function setQueryParams($var) * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\QueryInput */ public function getQueryInput() @@ -208,7 +225,7 @@ public function getQueryInput() * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * - * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; + * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\QueryInput $var * @return $this */ @@ -221,8 +238,8 @@ public function setQueryInput($var) } /** - * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * Optional. If `false` (default), recognition does not cease until + * Optional. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. + * If `false` (default), recognition does not cease until * the client closes the stream. If `true`, the recognizer will detect a * single spoken utterance in input audio. Recognition ceases when it detects * the audio's voice has stopped or paused. In this case, once a detected @@ -230,7 +247,7 @@ public function setQueryInput($var) * request with a new stream as needed. * This setting is ignored when `query_input` is a piece of text or an event. * - * Generated from protobuf field bool single_utterance = 4 [deprecated = true]; + * Generated from protobuf field bool single_utterance = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getSingleUtterance() @@ -239,8 +256,8 @@ public function getSingleUtterance() } /** - * DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * Optional. If `false` (default), recognition does not cease until + * Optional. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. + * If `false` (default), recognition does not cease until * the client closes the stream. If `true`, the recognizer will detect a * single spoken utterance in input audio. Recognition ceases when it detects * the audio's voice has stopped or paused. In this case, once a detected @@ -248,7 +265,7 @@ public function getSingleUtterance() * request with a new stream as needed. * This setting is ignored when `query_input` is a piece of text or an event. * - * Generated from protobuf field bool single_utterance = 4 [deprecated = true]; + * Generated from protobuf field bool single_utterance = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -265,7 +282,7 @@ public function setSingleUtterance($var) * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * - * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5; + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig */ public function getOutputAudioConfig() @@ -278,7 +295,7 @@ public function getOutputAudioConfig() * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * - * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5; + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var * @return $this */ @@ -295,7 +312,7 @@ public function setOutputAudioConfig($var) * `query_input` was set to a streaming input audio config. The complete audio * over all streaming messages must not exceed 1 minute. * - * Generated from protobuf field bytes input_audio = 6; + * Generated from protobuf field bytes input_audio = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getInputAudio() @@ -308,7 +325,7 @@ public function getInputAudio() * `query_input` was set to a streaming input audio config. The complete audio * over all streaming messages must not exceed 1 minute. * - * Generated from protobuf field bytes input_audio = 6; + * Generated from protobuf field bytes input_audio = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/StreamingRecognitionResult.php b/Dialogflow/src/V2/StreamingRecognitionResult.php index 2233e1fd7ef1..451fb053d48d 100644 --- a/Dialogflow/src/V2/StreamingRecognitionResult.php +++ b/Dialogflow/src/V2/StreamingRecognitionResult.php @@ -67,6 +67,21 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field float confidence = 4; */ private $confidence = 0.0; + /** + * Word-specific information for the words recognized by Speech in + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [InputAudioConfig.enable_word_info] is set. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechWordInfo speech_word_info = 7; + */ + private $speech_word_info; + /** + * Time offset of the end of this Speech recognition result relative to the + * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. + * + * Generated from protobuf field .google.protobuf.Duration speech_end_offset = 8; + */ + private $speech_end_offset = null; /** * Constructor. @@ -91,6 +106,13 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message * indicating that confidence was not set. * This field is typically only provided if `is_final` is true and you should * not rely on it being accurate or even set. + * @type \Google\Cloud\Dialogflow\V2\SpeechWordInfo[]|\Google\Protobuf\Internal\RepeatedField $speech_word_info + * Word-specific information for the words recognized by Speech in + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [InputAudioConfig.enable_word_info] is set. + * @type \Google\Protobuf\Duration $speech_end_offset + * Time offset of the end of this Speech recognition result relative to the + * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. * } */ public function __construct($data = NULL) { @@ -220,5 +242,63 @@ public function setConfidence($var) return $this; } + /** + * Word-specific information for the words recognized by Speech in + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [InputAudioConfig.enable_word_info] is set. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechWordInfo speech_word_info = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSpeechWordInfo() + { + return $this->speech_word_info; + } + + /** + * Word-specific information for the words recognized by Speech in + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [InputAudioConfig.enable_word_info] is set. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechWordInfo speech_word_info = 7; + * @param \Google\Cloud\Dialogflow\V2\SpeechWordInfo[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSpeechWordInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SpeechWordInfo::class); + $this->speech_word_info = $arr; + + return $this; + } + + /** + * Time offset of the end of this Speech recognition result relative to the + * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. + * + * Generated from protobuf field .google.protobuf.Duration speech_end_offset = 8; + * @return \Google\Protobuf\Duration + */ + public function getSpeechEndOffset() + { + return $this->speech_end_offset; + } + + /** + * Time offset of the end of this Speech recognition result relative to the + * beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. + * + * Generated from protobuf field .google.protobuf.Duration speech_end_offset = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setSpeechEndOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->speech_end_offset = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/TextInput.php b/Dialogflow/src/V2/TextInput.php index db636edd42de..823bc3111371 100644 --- a/Dialogflow/src/V2/TextInput.php +++ b/Dialogflow/src/V2/TextInput.php @@ -19,7 +19,7 @@ class TextInput extends \Google\Protobuf\Internal\Message * Required. The UTF-8 encoded natural language text to be processed. * Text length must not exceed 256 characters. * - * Generated from protobuf field string text = 1; + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $text = ''; /** @@ -28,7 +28,7 @@ class TextInput extends \Google\Protobuf\Internal\Message * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $language_code = ''; @@ -57,7 +57,7 @@ public function __construct($data = NULL) { * Required. The UTF-8 encoded natural language text to be processed. * Text length must not exceed 256 characters. * - * Generated from protobuf field string text = 1; + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getText() @@ -69,7 +69,7 @@ public function getText() * Required. The UTF-8 encoded natural language text to be processed. * Text length must not exceed 256 characters. * - * Generated from protobuf field string text = 1; + * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -87,7 +87,7 @@ public function setText($var) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getLanguageCode() @@ -101,7 +101,7 @@ public function getLanguageCode() * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/TrainAgentRequest.php b/Dialogflow/src/V2/TrainAgentRequest.php index ce6727501c39..670ec72cf52b 100644 --- a/Dialogflow/src/V2/TrainAgentRequest.php +++ b/Dialogflow/src/V2/TrainAgentRequest.php @@ -19,7 +19,7 @@ class TrainAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to train is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; @@ -43,7 +43,7 @@ public function __construct($data = NULL) { * Required. The project that the agent to train is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -55,7 +55,7 @@ public function getParent() * Required. The project that the agent to train is associated with. * Format: `projects/`. * - * Generated from protobuf field string parent = 1; + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dialogflow/src/V2/UpdateContextRequest.php b/Dialogflow/src/V2/UpdateContextRequest.php index ba057c39a98c..513df71826cf 100644 --- a/Dialogflow/src/V2/UpdateContextRequest.php +++ b/Dialogflow/src/V2/UpdateContextRequest.php @@ -18,13 +18,13 @@ class UpdateContextRequest extends \Google\Protobuf\Internal\Message /** * Required. The context to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $context = null; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; @@ -48,7 +48,7 @@ public function __construct($data = NULL) { /** * Required. The context to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Context */ public function getContext() @@ -59,7 +59,7 @@ public function getContext() /** * Required. The context to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Context $var * @return $this */ @@ -74,7 +74,7 @@ public function setContext($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -85,7 +85,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ diff --git a/Dialogflow/src/V2/UpdateEntityTypeRequest.php b/Dialogflow/src/V2/UpdateEntityTypeRequest.php index 184ab5c92ffb..c9cb69bec858 100644 --- a/Dialogflow/src/V2/UpdateEntityTypeRequest.php +++ b/Dialogflow/src/V2/UpdateEntityTypeRequest.php @@ -18,7 +18,7 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message /** * Required. The entity type to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $entity_type = null; /** @@ -29,13 +29,13 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; @@ -66,7 +66,7 @@ public function __construct($data = NULL) { /** * Required. The entity type to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\EntityType */ public function getEntityType() @@ -77,7 +77,7 @@ public function getEntityType() /** * Required. The entity type to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\EntityType $var * @return $this */ @@ -97,7 +97,7 @@ public function setEntityType($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -113,7 +113,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -128,7 +128,7 @@ public function setLanguageCode($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -139,7 +139,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ diff --git a/Dialogflow/src/V2/UpdateIntentRequest.php b/Dialogflow/src/V2/UpdateIntentRequest.php index bb2eced97ff1..d0bc81baafab 100644 --- a/Dialogflow/src/V2/UpdateIntentRequest.php +++ b/Dialogflow/src/V2/UpdateIntentRequest.php @@ -18,7 +18,7 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message /** * Required. The intent to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $intent = null; /** @@ -29,19 +29,19 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $language_code = ''; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $intent_view = 0; @@ -74,7 +74,7 @@ public function __construct($data = NULL) { /** * Required. The intent to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\Intent */ public function getIntent() @@ -85,7 +85,7 @@ public function getIntent() /** * Required. The intent to update. * - * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\Intent $var * @return $this */ @@ -105,7 +105,7 @@ public function setIntent($var) * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getLanguageCode() @@ -121,7 +121,7 @@ public function getLanguageCode() * are supported. Note: languages must be enabled in the agent before they can * be used. * - * Generated from protobuf field string language_code = 2; + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -136,7 +136,7 @@ public function setLanguageCode($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -147,7 +147,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ @@ -162,7 +162,7 @@ public function setUpdateMask($var) /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getIntentView() @@ -173,7 +173,7 @@ public function getIntentView() /** * Optional. The resource view to apply to the returned intent. * - * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4; + * Generated from protobuf field .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ diff --git a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php index 39c24724fa0a..237a81e53ef0 100644 --- a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php @@ -20,13 +20,13 @@ class UpdateSessionEntityTypeRequest extends \Google\Protobuf\Internal\Message * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $session_entity_type = null; /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $update_mask = null; @@ -54,7 +54,7 @@ public function __construct($data = NULL) { * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\SessionEntityType */ public function getSessionEntityType() @@ -67,7 +67,7 @@ public function getSessionEntityType() * `projects//agent/sessions//entityTypes/`. * - * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 1; + * Generated from protobuf field .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\SessionEntityType $var * @return $this */ @@ -82,7 +82,7 @@ public function setSessionEntityType($var) /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() @@ -93,7 +93,7 @@ public function getUpdateMask() /** * Optional. The mask to control which fields get updated. * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\FieldMask $var * @return $this */ diff --git a/Dialogflow/src/V2/VoiceSelectionParams.php b/Dialogflow/src/V2/VoiceSelectionParams.php index cb9f714f0bb3..3d313ddc82c0 100644 --- a/Dialogflow/src/V2/VoiceSelectionParams.php +++ b/Dialogflow/src/V2/VoiceSelectionParams.php @@ -17,7 +17,8 @@ class VoiceSelectionParams extends \Google\Protobuf\Internal\Message { /** * Optional. The name of the voice. If not set, the service will choose a - * voice based on the other parameters such as language_code and gender. + * voice based on the other parameters such as language_code and + * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * Generated from protobuf field string name = 1; */ @@ -25,7 +26,7 @@ class VoiceSelectionParams extends \Google\Protobuf\Internal\Message /** * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * name. Note that this is only a preference, not requirement. If a + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a * voice of the appropriate gender is not available, the synthesizer should * substitute a voice with a different gender rather than failing the request. * @@ -41,11 +42,12 @@ class VoiceSelectionParams extends \Google\Protobuf\Internal\Message * * @type string $name * Optional. The name of the voice. If not set, the service will choose a - * voice based on the other parameters such as language_code and gender. + * voice based on the other parameters such as language_code and + * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * @type int $ssml_gender * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * name. Note that this is only a preference, not requirement. If a + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a * voice of the appropriate gender is not available, the synthesizer should * substitute a voice with a different gender rather than failing the request. * } @@ -57,7 +59,8 @@ public function __construct($data = NULL) { /** * Optional. The name of the voice. If not set, the service will choose a - * voice based on the other parameters such as language_code and gender. + * voice based on the other parameters such as language_code and + * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * Generated from protobuf field string name = 1; * @return string @@ -69,7 +72,8 @@ public function getName() /** * Optional. The name of the voice. If not set, the service will choose a - * voice based on the other parameters such as language_code and gender. + * voice based on the other parameters such as language_code and + * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * Generated from protobuf field string name = 1; * @param string $var @@ -86,7 +90,7 @@ public function setName($var) /** * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * name. Note that this is only a preference, not requirement. If a + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a * voice of the appropriate gender is not available, the synthesizer should * substitute a voice with a different gender rather than failing the request. * @@ -101,7 +105,7 @@ public function getSsmlGender() /** * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * name. Note that this is only a preference, not requirement. If a + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a * voice of the appropriate gender is not available, the synthesizer should * substitute a voice with a different gender rather than failing the request. * diff --git a/Dialogflow/src/V2/WebhookResponse.php b/Dialogflow/src/V2/WebhookResponse.php index 6d7cf65b03d6..01775fdae0bd 100644 --- a/Dialogflow/src/V2/WebhookResponse.php +++ b/Dialogflow/src/V2/WebhookResponse.php @@ -10,6 +10,16 @@ /** * The response message for a webhook call. + * This response is validated by the Dialogflow server. If validation fails, + * an error will be returned in the [QueryResult.diagnostic_info][google.cloud.dialogflow.v2.QueryResult.diagnostic_info] field. + * Setting JSON fields to an empty value with the wrong type is a common error. + * To avoid this error: + * - Use `""` for empty strings + * - Use `{}` or `null` for empty objects + * - Use `[]` or `null` for empty arrays + * For more information, see the + * [Protocol Buffers Language + * Guide](https://developers.google.com/protocol-buffers/docs/proto3#json). * * Generated from protobuf message google.cloud.dialogflow.v2.WebhookResponse */ @@ -78,6 +88,16 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.dialogflow.v2.EventInput followup_event_input = 6; */ private $followup_event_input = null; + /** + * Optional. Additional session entity types to replace or extend developer + * entity types with. The entity synonyms apply to all languages and persist + * for the session of this query. Setting the session entity types inside + * webhook overwrites the session entity types that have been set through + * `DetectIntentRequest.query_params.session_entity_types`. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + private $session_entity_types; /** * Constructor. @@ -124,6 +144,12 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * internally with the specified event as input. * When this field is set, Dialogflow ignores the `fulfillment_text`, * `fulfillment_messages`, and `payload` fields. + * @type \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $session_entity_types + * Optional. Additional session entity types to replace or extend developer + * entity types with. The entity synonyms apply to all languages and persist + * for the session of this query. Setting the session entity types inside + * webhook overwrites the session entity types that have been set through + * `DetectIntentRequest.query_params.session_entity_types`. * } */ public function __construct($data = NULL) { @@ -341,5 +367,39 @@ public function setFollowupEventInput($var) return $this; } + /** + * Optional. Additional session entity types to replace or extend developer + * entity types with. The entity synonyms apply to all languages and persist + * for the session of this query. Setting the session entity types inside + * webhook overwrites the session entity types that have been set through + * `DetectIntentRequest.query_params.session_entity_types`. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSessionEntityTypes() + { + return $this->session_entity_types; + } + + /** + * Optional. Additional session entity types to replace or extend developer + * entity types with. The entity synonyms apply to all languages and persist + * for the session of this query. Setting the session entity types inside + * webhook overwrites the session entity types that have been set through + * `DetectIntentRequest.query_params.session_entity_types`. + * + * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * @param \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSessionEntityTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SessionEntityType::class); + $this->session_entity_types = $arr; + + return $this; + } + } diff --git a/Dialogflow/synth.metadata b/Dialogflow/synth.metadata index bf88c0e3b761..615c089be7cf 100644 --- a/Dialogflow/synth.metadata +++ b/Dialogflow/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-07T18:00:00.736131Z", + "updateTime": "2020-01-21T16:52:30.593761Z", "sources": [ { "generator": { "name": "artman", - "version": "0.29.1", - "dockerImage": "googleapis/artman@sha256:b2a73f4dda03ef8fcaa973e3ba26d0cf34091f6c22c70add663af325931aef4d" + "version": "0.44.1", + "dockerImage": "googleapis/artman@sha256:5599b61e56a372d21b671969ee915fbca0f6c3a0daaeb898d01f8f685f1bbc8b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3a1b46a6668194a527e532a2c355b404c79b0e6a", - "internalRef": "262167956" + "sha": "7f0dab8177cf371ae019a082e2512de7ac102888", + "internalRef": "290326986" } } ], @@ -25,7 +25,7 @@ "apiVersion": "v2", "language": "php", "generator": "gapic", - "config": "google/cloud/dialogflow/artman_dialogflow_v2.yaml" + "config": "google/cloud/dialogflow/v2/artman_dialogflow_v2.yaml" } } ] diff --git a/Dialogflow/synth.py b/Dialogflow/synth.py index 64404562b510..1030078b623c 100644 --- a/Dialogflow/synth.py +++ b/Dialogflow/synth.py @@ -31,7 +31,7 @@ artman_output_name='google-cloud-dialogflow-v2') # copy all src including partial veneer classes -s.move(library / 'src') +s.move(library / 'src', excludes=[library / 'src/V2/resources']) # copy proto files to src also s.move(library / 'proto/src/Google/Cloud/Dialogflow', 'src/') diff --git a/Dialogflow/tests/Unit/V2/EntityTypesClientTest.php b/Dialogflow/tests/Unit/V2/EntityTypesClientTest.php index d34807674f4b..5db78be1700c 100644 --- a/Dialogflow/tests/Unit/V2/EntityTypesClientTest.php +++ b/Dialogflow/tests/Unit/V2/EntityTypesClientTest.php @@ -166,9 +166,11 @@ public function getEntityTypeTest() // Mock response $name2 = 'name2-1052831874'; $displayName = 'displayName1615086568'; + $enableFuzzyExtraction = true; $expectedResponse = new EntityType(); $expectedResponse->setName($name2); $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEnableFuzzyExtraction($enableFuzzyExtraction); $transport->addResponse($expectedResponse); // Mock request @@ -241,9 +243,11 @@ public function createEntityTypeTest() // Mock response $name = 'name3373707'; $displayName = 'displayName1615086568'; + $enableFuzzyExtraction = true; $expectedResponse = new EntityType(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEnableFuzzyExtraction($enableFuzzyExtraction); $transport->addResponse($expectedResponse); // Mock request @@ -321,9 +325,11 @@ public function updateEntityTypeTest() // Mock response $name = 'name3373707'; $displayName = 'displayName1615086568'; + $enableFuzzyExtraction = true; $expectedResponse = new EntityType(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEnableFuzzyExtraction($enableFuzzyExtraction); $transport->addResponse($expectedResponse); // Mock request From 25e7c64cc784995c39848ac2c47dad36a9bdfd69 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 21 Jan 2020 12:48:54 -0500 Subject: [PATCH 2/2] remove synth change --- Dialogflow/synth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dialogflow/synth.py b/Dialogflow/synth.py index 1030078b623c..64404562b510 100644 --- a/Dialogflow/synth.py +++ b/Dialogflow/synth.py @@ -31,7 +31,7 @@ artman_output_name='google-cloud-dialogflow-v2') # copy all src including partial veneer classes -s.move(library / 'src', excludes=[library / 'src/V2/resources']) +s.move(library / 'src') # copy proto files to src also s.move(library / 'proto/src/Google/Cloud/Dialogflow', 'src/')