From 364ad621a8959b717988e18f9ec4e91a40e1a32a Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Sat, 30 Mar 2019 03:00:03 -0700 Subject: [PATCH] [CHANGE ME] Re-generated Dialogflow to pick up changes in the API or client library generator. --- Dialogflow/metadata/V2/Agent.php | 148 +++--- Dialogflow/metadata/V2/AudioConfig.php | 60 +++ Dialogflow/metadata/V2/Context.php | 132 ++--- Dialogflow/metadata/V2/EntityType.php | 270 +++++----- Dialogflow/metadata/V2/Intent.php | 470 +++++++++--------- Dialogflow/metadata/V2/Session.php | 254 +++++----- Dialogflow/metadata/V2/SessionEntityType.php | 156 +++--- Dialogflow/metadata/V2/Webhook.php | 68 +-- Dialogflow/src/V2/Agent.php | 52 +- Dialogflow/src/V2/AgentsGrpcClient.php | 45 +- Dialogflow/src/V2/AudioEncoding.php | 4 +- .../src/V2/BatchCreateEntitiesRequest.php | 39 +- .../src/V2/BatchDeleteEntitiesRequest.php | 31 +- .../src/V2/BatchDeleteEntityTypesRequest.php | 3 +- .../src/V2/BatchDeleteIntentsRequest.php | 3 +- .../src/V2/BatchUpdateEntitiesRequest.php | 55 +- .../src/V2/BatchUpdateEntityTypesRequest.php | 37 +- .../src/V2/BatchUpdateEntityTypesResponse.php | 3 +- .../src/V2/BatchUpdateIntentsRequest.php | 31 +- .../src/V2/BatchUpdateIntentsResponse.php | 3 +- Dialogflow/src/V2/Context.php | 36 +- Dialogflow/src/V2/ContextsGrpcClient.php | 18 +- Dialogflow/src/V2/CreateContextRequest.php | 3 +- Dialogflow/src/V2/CreateEntityTypeRequest.php | 31 +- Dialogflow/src/V2/CreateIntentRequest.php | 31 +- .../src/V2/CreateSessionEntityTypeRequest.php | 3 +- .../src/V2/DeleteAllContextsRequest.php | 3 +- Dialogflow/src/V2/DeleteContextRequest.php | 3 +- Dialogflow/src/V2/DeleteEntityTypeRequest.php | 3 +- Dialogflow/src/V2/DeleteIntentRequest.php | 15 +- .../src/V2/DeleteSessionEntityTypeRequest.php | 3 +- Dialogflow/src/V2/DetectIntentRequest.php | 42 ++ Dialogflow/src/V2/DetectIntentResponse.php | 112 ++++- Dialogflow/src/V2/EntityType.php | 48 +- Dialogflow/src/V2/EntityType/Entity.php | 70 ++- Dialogflow/src/V2/EntityTypesGrpcClient.php | 30 +- Dialogflow/src/V2/EventInput.php | 30 +- Dialogflow/src/V2/ExportAgentRequest.php | 35 +- Dialogflow/src/V2/ExportAgentResponse.php | 30 +- Dialogflow/src/V2/Gapic/AgentsGapicClient.php | 76 ++- .../src/V2/Gapic/ContextsGapicClient.php | 16 +- .../src/V2/Gapic/EntityTypesGapicClient.php | 96 ++-- .../src/V2/Gapic/IntentsGapicClient.php | 58 ++- .../Gapic/SessionEntityTypesGapicClient.php | 7 +- .../src/V2/Gapic/SessionsGapicClient.php | 16 +- Dialogflow/src/V2/GetAgentRequest.php | 3 +- Dialogflow/src/V2/GetContextRequest.php | 3 +- Dialogflow/src/V2/GetEntityTypeRequest.php | 31 +- Dialogflow/src/V2/GetIntentRequest.php | 31 +- .../src/V2/GetSessionEntityTypeRequest.php | 3 +- Dialogflow/src/V2/ImportAgentRequest.php | 36 +- Dialogflow/src/V2/InputAudioConfig.php | 64 ++- Dialogflow/src/V2/Intent.php | 112 +++-- .../src/V2/Intent/FollowupIntentInfo.php | 8 +- Dialogflow/src/V2/Intent/TrainingPhrase.php | 86 +++- .../src/V2/Intent/TrainingPhrase/Part.php | 64 +-- .../src/V2/Intent/TrainingPhrase/Type.php | 6 +- Dialogflow/src/V2/IntentsGrpcClient.php | 21 +- Dialogflow/src/V2/ListContextsRequest.php | 3 +- Dialogflow/src/V2/ListContextsResponse.php | 3 +- Dialogflow/src/V2/ListEntityTypesRequest.php | 31 +- Dialogflow/src/V2/ListEntityTypesResponse.php | 3 +- Dialogflow/src/V2/ListIntentsRequest.php | 31 +- Dialogflow/src/V2/ListIntentsResponse.php | 3 +- .../src/V2/ListSessionEntityTypesRequest.php | 3 +- .../src/V2/ListSessionEntityTypesResponse.php | 3 +- .../src/V2/OriginalDetectIntentRequest.php | 94 +++- Dialogflow/src/V2/OutputAudioConfig.php | 151 ++++++ Dialogflow/src/V2/OutputAudioEncoding.php | 72 +++ Dialogflow/src/V2/QueryParameters.php | 62 ++- Dialogflow/src/V2/QueryResult.php | 114 +++-- Dialogflow/src/V2/RestoreAgentRequest.php | 36 +- Dialogflow/src/V2/SearchAgentsRequest.php | 3 +- Dialogflow/src/V2/SearchAgentsResponse.php | 3 +- Dialogflow/src/V2/Sentiment.php | 110 ++++ .../src/V2/SentimentAnalysisRequestConfig.php | 75 +++ Dialogflow/src/V2/SentimentAnalysisResult.php | 68 +++ Dialogflow/src/V2/SessionEntityType.php | 8 + .../SessionEntityType/EntityOverrideMode.php | 10 +- .../src/V2/SessionEntityTypesGrpcClient.php | 9 +- Dialogflow/src/V2/SessionsGrpcClient.php | 10 +- Dialogflow/src/V2/SsmlVoiceGender.php | 70 +++ .../src/V2/StreamingDetectIntentRequest.php | 53 +- .../src/V2/StreamingDetectIntentResponse.php | 76 +++ .../src/V2/StreamingRecognitionResult.php | 24 +- Dialogflow/src/V2/SynthesizeSpeechConfig.php | 259 ++++++++++ Dialogflow/src/V2/TextInput.php | 32 +- Dialogflow/src/V2/TrainAgentRequest.php | 3 +- Dialogflow/src/V2/UpdateContextRequest.php | 3 +- Dialogflow/src/V2/UpdateEntityTypeRequest.php | 35 +- Dialogflow/src/V2/UpdateIntentRequest.php | 35 +- .../src/V2/UpdateSessionEntityTypeRequest.php | 3 +- Dialogflow/src/V2/VoiceSelectionParams.php | 121 +++++ Dialogflow/src/V2/WebhookRequest.php | 16 +- .../resources/agents_rest_client_config.php | 19 - .../resources/contexts_rest_client_config.php | 19 - .../entity_types_rest_client_config.php | 19 - .../resources/intents_rest_client_config.php | 19 - ...ession_entity_types_rest_client_config.php | 19 - .../resources/sessions_rest_client_config.php | 19 - Dialogflow/synth.metadata | 6 +- .../tests/Unit/V2/SessionsClientTest.php | 8 + 102 files changed, 3223 insertions(+), 1687 deletions(-) create mode 100644 Dialogflow/metadata/V2/AudioConfig.php create mode 100644 Dialogflow/src/V2/OutputAudioConfig.php create mode 100644 Dialogflow/src/V2/OutputAudioEncoding.php create mode 100644 Dialogflow/src/V2/Sentiment.php create mode 100644 Dialogflow/src/V2/SentimentAnalysisRequestConfig.php create mode 100644 Dialogflow/src/V2/SentimentAnalysisResult.php create mode 100644 Dialogflow/src/V2/SsmlVoiceGender.php create mode 100644 Dialogflow/src/V2/SynthesizeSpeechConfig.php create mode 100644 Dialogflow/src/V2/VoiceSelectionParams.php diff --git a/Dialogflow/metadata/V2/Agent.php b/Dialogflow/metadata/V2/Agent.php index e4883ad04b35..7e43cd36f487 100644 --- a/Dialogflow/metadata/V2/Agent.php +++ b/Dialogflow/metadata/V2/Agent.php @@ -15,85 +15,87 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0a97110a26676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0ab2110a26676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f6167656e742e70726f746f121a676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76321a23676f6f676c652f6c6f6e6772756e6e696e" . - "672f6f7065726174696f6e732e70726f746f1a1b676f6f676c652f70726f" . - "746f6275662f656d7074792e70726f746f1a20676f6f676c652f70726f74" . - "6f6275662f6669656c645f6d61736b2e70726f746f1a1c676f6f676c652f" . - "70726f746f6275662f7374727563742e70726f746f22fd020a054167656e" . - "74120e0a06706172656e7418012001280912140a0c646973706c61795f6e" . - "616d65180220012809121d0a1564656661756c745f6c616e67756167655f" . - "636f646518032001280912200a18737570706f727465645f6c616e677561" . - "67655f636f64657318042003280912110a0974696d655f7a6f6e65180520" . - "01280912130a0b6465736372697074696f6e18062001280912120a0a6176" . - "617461725f75726918072001280912160a0e656e61626c655f6c6f676769" . - "6e67180820012808123f0a0a6d617463685f6d6f646518092001280e322b" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4167" . - "656e742e4d617463684d6f646512200a18636c617373696669636174696f" . - "6e5f7468726573686f6c64180a2001280222560a094d617463684d6f6465" . - "121a0a164d415443485f4d4f44455f554e53504543494649454410001215" . - "0a114d415443485f4d4f44455f485942524944100112160a124d41544348" . - "5f4d4f44455f4d4c5f4f4e4c59100222210a0f4765744167656e74526571" . - "75657374120e0a06706172656e74180120012809224c0a13536561726368" . - "4167656e747352657175657374120e0a06706172656e7418012001280912" . - "110a09706167655f73697a6518022001280512120a0a706167655f746f6b" . - "656e18032001280922620a145365617263684167656e7473526573706f6e" . - "736512310a066167656e747318012003280b32212e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e4167656e7412170a0f6e6578" . - "745f706167655f746f6b656e18022001280922230a11547261696e416765" . - "6e7452657175657374120e0a06706172656e7418012001280922370a1245" . - "78706f72744167656e7452657175657374120e0a06706172656e74180120" . - "01280912110a096167656e745f757269180220012809224c0a134578706f" . - "72744167656e74526573706f6e736512130a096167656e745f7572691801" . - "20012809480012170a0d6167656e745f636f6e74656e7418022001280c48" . - "0042070a056167656e74225b0a12496d706f72744167656e745265717565" . - "7374120e0a06706172656e7418012001280912130a096167656e745f7572" . - "69180220012809480012170a0d6167656e745f636f6e74656e7418032001" . - "280c480042070a056167656e74225c0a13526573746f72654167656e7452" . - "657175657374120e0a06706172656e7418012001280912130a096167656e" . - "745f757269180220012809480012170a0d6167656e745f636f6e74656e74" . - "18032001280c480042070a056167656e7432ee060a064167656e74731281" . - "010a084765744167656e74122b2e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e4765744167656e74526571756573741a212e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4167656e" . - "74222582d3e493021f121d2f76322f7b706172656e743d70726f6a656374" . - "732f2a7d2f6167656e74129f010a0c5365617263684167656e7473122f2e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e536561" . - "7263684167656e7473526571756573741a302e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e5365617263684167656e74735265" . - "73706f6e7365222c82d3e493022612242f76322f7b706172656e743d7072" . - "6f6a656374732f2a7d2f6167656e743a736561726368128a010a0a547261" . - "696e4167656e74122d2e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e547261696e4167656e74526571756573741a1d2e676f6f" . - "676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e222e82d3e4" . - "93022822232f76322f7b706172656e743d70726f6a656374732f2a7d2f61" . - "67656e743a747261696e3a012a128d010a0b4578706f72744167656e7412" . - "2e2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e45" . - "78706f72744167656e74526571756573741a1d2e676f6f676c652e6c6f6e" . - "6772756e6e696e672e4f7065726174696f6e222f82d3e493022922242f76" . - "322f7b706172656e743d70726f6a656374732f2a7d2f6167656e743a6578" . - "706f72743a012a128d010a0b496d706f72744167656e74122e2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e496d706f727441" . - "67656e74526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e69" . - "6e672e4f7065726174696f6e222f82d3e493022922242f76322f7b706172" . - "656e743d70726f6a656374732f2a7d2f6167656e743a696d706f72743a01" . - "2a1290010a0c526573746f72654167656e74122f2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e526573746f72654167656e74" . - "526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f" . - "7065726174696f6e223082d3e493022a22252f76322f7b706172656e743d" . - "70726f6a656374732f2a7d2f6167656e743a726573746f72653a012a4299" . - "010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e7632420a4167656e7450726f746f50015a44676f6f676c652e676f6c61" . - "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f" . - "75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f80101" . - "a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c6f" . - "772e5632620670726f746f33" + "616c6f67666c6f772e76321a19676f6f676c652f6170692f7265736f7572" . + "63652e70726f746f1a23676f6f676c652f6c6f6e6772756e6e696e672f6f" . + "7065726174696f6e732e70726f746f1a1b676f6f676c652f70726f746f62" . + "75662f656d7074792e70726f746f1a20676f6f676c652f70726f746f6275" . + "662f6669656c645f6d61736b2e70726f746f1a1c676f6f676c652f70726f" . + "746f6275662f7374727563742e70726f746f22fd020a054167656e74120e" . + "0a06706172656e7418012001280912140a0c646973706c61795f6e616d65" . + "180220012809121d0a1564656661756c745f6c616e67756167655f636f64" . + "6518032001280912200a18737570706f727465645f6c616e67756167655f" . + "636f64657318042003280912110a0974696d655f7a6f6e65180520012809" . + "12130a0b6465736372697074696f6e18062001280912120a0a6176617461" . + "725f75726918072001280912160a0e656e61626c655f6c6f6767696e6718" . + "0820012808123f0a0a6d617463685f6d6f646518092001280e322b2e676f" . + "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4167656e74" . + "2e4d617463684d6f646512200a18636c617373696669636174696f6e5f74" . + "68726573686f6c64180a2001280222560a094d617463684d6f6465121a0a" . + "164d415443485f4d4f44455f554e535045434946494544100012150a114d" . + "415443485f4d4f44455f485942524944100112160a124d415443485f4d4f" . + "44455f4d4c5f4f4e4c59100222210a0f4765744167656e74526571756573" . + "74120e0a06706172656e74180120012809224c0a13536561726368416765" . + "6e747352657175657374120e0a06706172656e7418012001280912110a09" . + "706167655f73697a6518022001280512120a0a706167655f746f6b656e18" . + "032001280922620a145365617263684167656e7473526573706f6e736512" . + "310a066167656e747318012003280b32212e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e4167656e7412170a0f6e6578745f70" . + "6167655f746f6b656e18022001280922230a11547261696e4167656e7452" . + "657175657374120e0a06706172656e7418012001280922370a124578706f" . + "72744167656e7452657175657374120e0a06706172656e74180120012809" . + "12110a096167656e745f757269180220012809224c0a134578706f727441" . + "67656e74526573706f6e736512130a096167656e745f7572691801200128" . + "09480012170a0d6167656e745f636f6e74656e7418022001280c48004207" . + "0a056167656e74225b0a12496d706f72744167656e745265717565737412" . + "0e0a06706172656e7418012001280912130a096167656e745f7572691802" . + "20012809480012170a0d6167656e745f636f6e74656e7418032001280c48" . + "0042070a056167656e74225c0a13526573746f72654167656e7452657175" . + "657374120e0a06706172656e7418012001280912130a096167656e745f75" . + "7269180220012809480012170a0d6167656e745f636f6e74656e74180320" . + "01280c480042070a056167656e7432ee060a064167656e74731281010a08" . + "4765744167656e74122b2e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e4765744167656e74526571756573741a212e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e4167656e742225" . + "82d3e493021f121d2f76322f7b706172656e743d70726f6a656374732f2a" . + "7d2f6167656e74129f010a0c5365617263684167656e7473122f2e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e536561726368" . + "4167656e7473526571756573741a302e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e5365617263684167656e7473526573706f" . + "6e7365222c82d3e493022612242f76322f7b706172656e743d70726f6a65" . + "6374732f2a7d2f6167656e743a736561726368128a010a0a547261696e41" . + "67656e74122d2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e547261696e4167656e74526571756573741a1d2e676f6f676c65" . + "2e6c6f6e6772756e6e696e672e4f7065726174696f6e222e82d3e4930228" . + "22232f76322f7b706172656e743d70726f6a656374732f2a7d2f6167656e" . + "743a747261696e3a012a128d010a0b4578706f72744167656e74122e2e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4578706f" . + "72744167656e74526571756573741a1d2e676f6f676c652e6c6f6e677275" . + "6e6e696e672e4f7065726174696f6e222f82d3e493022922242f76322f7b" . + "706172656e743d70726f6a656374732f2a7d2f6167656e743a6578706f72" . + "743a012a128d010a0b496d706f72744167656e74122e2e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e496d706f72744167656e" . + "74526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e" . + "4f7065726174696f6e222f82d3e493022922242f76322f7b706172656e74" . + "3d70726f6a656374732f2a7d2f6167656e743a696d706f72743a012a1290" . + "010a0c526573746f72654167656e74122f2e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e526573746f72654167656e74526571" . + "756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f706572" . + "6174696f6e223082d3e493022a22252f76322f7b706172656e743d70726f" . + "6a656374732f2a7d2f6167656e743a726573746f72653a012a4299010a1e" . + "636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "420a4167656e7450726f746f50015a44676f6f676c652e676f6c616e672e" . + "6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f75642f" . + "6469616c6f67666c6f772f76323b6469616c6f67666c6f77f80101a20202" . + "4446aa021a476f6f676c652e436c6f75642e4469616c6f67666c6f772e56" . + "32620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/AudioConfig.php b/Dialogflow/metadata/V2/AudioConfig.php new file mode 100644 index 000000000000..58aef0156e00 --- /dev/null +++ b/Dialogflow/metadata/V2/AudioConfig.php @@ -0,0 +1,60 @@ +internalAddGeneratedFile(hex2bin( + "0a9a080a2d676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "322f617564696f5f636f6e6669672e70726f746f121a676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e763222660a14566f69636553656c" . + "656374696f6e506172616d73120c0a046e616d6518012001280912400a0b" . + "73736d6c5f67656e64657218022001280e322b2e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e53736d6c566f69636547656e64" . + "657222b3010a1653796e74686573697a65537065656368436f6e66696712" . + "150a0d737065616b696e675f72617465180120012801120d0a0570697463" . + "6818022001280112160a0e766f6c756d655f6761696e5f64621803200128" . + "01121a0a12656666656374735f70726f66696c655f696418052003280912" . + "3f0a05766f69636518042001280b32302e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e566f69636553656c656374696f6e5061" . + "72616d7322cd010a114f7574707574417564696f436f6e66696712470a0e" . + "617564696f5f656e636f64696e6718012001280e322f2e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e4f757470757441756469" . + "6f456e636f64696e6712190a1173616d706c655f726174655f686572747a" . + "18022001280512540a1873796e74686573697a655f7370656563685f636f" . + "6e66696718032001280b32322e676f6f676c652e636c6f75642e6469616c" . + "6f67666c6f772e76322e53796e74686573697a65537065656368436f6e66" . + "69672a8d010a0f53736d6c566f69636547656e64657212210a1d53534d4c" . + "5f564f4943455f47454e4445525f554e5350454349464945441000121a0a" . + "1653534d4c5f564f4943455f47454e4445525f4d414c451001121c0a1853" . + "534d4c5f564f4943455f47454e4445525f46454d414c451002121d0a1953" . + "534d4c5f564f4943455f47454e4445525f4e45555452414c10032aa4010a" . + "134f7574707574417564696f456e636f64696e6712250a214f5554505554" . + "5f415544494f5f454e434f44494e475f554e535045434946494544100012" . + "230a1f4f55545055545f415544494f5f454e434f44494e475f4c494e4541" . + "525f31361001121d0a194f55545055545f415544494f5f454e434f44494e" . + "475f4d5033100212220a1e4f55545055545f415544494f5f454e434f4449" . + "4e475f4f47475f4f5055531003429f010a1e636f6d2e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76324210417564696f436f6e6669" . + "6750726f746f50015a44676f6f676c652e676f6c616e672e6f72672f6765" . + "6e70726f746f2f676f6f676c65617069732f636c6f75642f6469616c6f67" . + "666c6f772f76323b6469616c6f67666c6f77f80101a202024446aa021a47" . + "6f6f676c652e436c6f75642e4469616c6f67666c6f772e5632620670726f" . + "746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/Dialogflow/metadata/V2/Context.php b/Dialogflow/metadata/V2/Context.php index 389b24ae5ea7..fd5d6a66cd59 100644 --- a/Dialogflow/metadata/V2/Context.php +++ b/Dialogflow/metadata/V2/Context.php @@ -15,76 +15,78 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aa10f0a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0abc0f0a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f636f6e746578742e70726f746f121a676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76321a1b676f6f676c652f70726f746f627566" . - "2f656d7074792e70726f746f1a20676f6f676c652f70726f746f6275662f" . - "6669656c645f6d61736b2e70726f746f1a1c676f6f676c652f70726f746f" . - "6275662f7374727563742e70726f746f225c0a07436f6e74657874120c0a" . - "046e616d6518012001280912160a0e6c6966657370616e5f636f756e7418" . - "0220012805122b0a0a706172616d657465727318032001280b32172e676f" . - "6f676c652e70726f746f6275662e537472756374224c0a134c697374436f" . - "6e746578747352657175657374120e0a06706172656e7418012001280912" . - "110a09706167655f73697a6518022001280512120a0a706167655f746f6b" . - "656e18032001280922660a144c697374436f6e7465787473526573706f6e" . - "736512350a08636f6e746578747318012003280b32232e676f6f676c652e" . - "636c6f75642e6469616c6f67666c6f772e76322e436f6e7465787412170a" . - "0f6e6578745f706167655f746f6b656e18022001280922210a1147657443" . - "6f6e7465787452657175657374120c0a046e616d65180120012809225c0a" . - "14437265617465436f6e7465787452657175657374120e0a06706172656e" . - "7418012001280912340a07636f6e7465787418022001280b32232e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e436f6e746578" . - "74227d0a14557064617465436f6e746578745265717565737412340a0763" . - "6f6e7465787418012001280b32232e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e436f6e74657874122f0a0b7570646174655f" . - "6d61736b18022001280b321a2e676f6f676c652e70726f746f6275662e46" . - "69656c644d61736b22240a1444656c657465436f6e746578745265717565" . - "7374120c0a046e616d65180120012809222a0a1844656c657465416c6c43" . - "6f6e746578747352657175657374120e0a06706172656e74180120012809" . - "32ef070a08436f6e746578747312ac010a0c4c697374436f6e7465787473" . - "122f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . - "4c697374436f6e7465787473526571756573741a302e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e4c697374436f6e74657874" . - "73526573706f6e7365223982d3e493023312312f76322f7b706172656e74" . - "3d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a7d2f" . - "636f6e7465787473129b010a0a476574436f6e74657874122d2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e476574436f6e74" . - "657874526571756573741a232e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e436f6e74657874223982d3e493023312312f7632" . - "2f7b6e616d653d70726f6a656374732f2a2f6167656e742f73657373696f" . - "6e732f2a2f636f6e74657874732f2a7d12aa010a0d437265617465436f6e" . - "7465787412302e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e437265617465436f6e74657874526571756573741a232e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e436f6e746578" . - "74224282d3e493023c22312f76322f7b706172656e743d70726f6a656374" . - "732f2a2f6167656e742f73657373696f6e732f2a7d2f636f6e7465787473" . - "3a07636f6e7465787412b2010a0d557064617465436f6e7465787412302e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e557064" . - "617465436f6e74657874526571756573741a232e676f6f676c652e636c6f" . - "75642e6469616c6f67666c6f772e76322e436f6e74657874224a82d3e493" . - "024432392f76322f7b636f6e746578742e6e616d653d70726f6a65637473" . - "2f2a2f6167656e742f73657373696f6e732f2a2f636f6e74657874732f2a" . - "7d3a07636f6e746578741294010a0d44656c657465436f6e746578741230" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4465" . - "6c657465436f6e74657874526571756573741a162e676f6f676c652e7072" . - "6f746f6275662e456d707479223982d3e49302332a312f76322f7b6e616d" . - "653d70726f6a656374732f2a2f6167656e742f73657373696f6e732f2a2f" . - "636f6e74657874732f2a7d129c010a1144656c657465416c6c436f6e7465" . - "78747312342e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e44656c657465416c6c436f6e7465787473526571756573741a162e" . - "676f6f676c652e70726f746f6275662e456d707479223982d3e49302332a" . - "312f76322f7b706172656e743d70726f6a656374732f2a2f6167656e742f" . - "73657373696f6e732f2a7d2f636f6e7465787473429b010a1e636f6d2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e7632420c436f6e" . - "7465787450726f746f50015a44676f6f676c652e676f6c616e672e6f7267" . - "2f67656e70726f746f2f676f6f676c65617069732f636c6f75642f646961" . - "6c6f67666c6f772f76323b6469616c6f67666c6f77f80101a202024446aa" . - "021a476f6f676c652e436c6f75642e4469616c6f67666c6f772e56326206" . - "70726f746f33" + "6469616c6f67666c6f772e76321a19676f6f676c652f6170692f7265736f" . + "757263652e70726f746f1a1b676f6f676c652f70726f746f6275662f656d" . + "7074792e70726f746f1a20676f6f676c652f70726f746f6275662f666965" . + "6c645f6d61736b2e70726f746f1a1c676f6f676c652f70726f746f627566" . + "2f7374727563742e70726f746f225c0a07436f6e74657874120c0a046e61" . + "6d6518012001280912160a0e6c6966657370616e5f636f756e7418022001" . + "2805122b0a0a706172616d657465727318032001280b32172e676f6f676c" . + "652e70726f746f6275662e537472756374224c0a134c697374436f6e7465" . + "78747352657175657374120e0a06706172656e7418012001280912110a09" . + "706167655f73697a6518022001280512120a0a706167655f746f6b656e18" . + "032001280922660a144c697374436f6e7465787473526573706f6e736512" . + "350a08636f6e746578747318012003280b32232e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e436f6e7465787412170a0f6e65" . + "78745f706167655f746f6b656e18022001280922210a11476574436f6e74" . + "65787452657175657374120c0a046e616d65180120012809225c0a144372" . + "65617465436f6e7465787452657175657374120e0a06706172656e741801" . + "2001280912340a07636f6e7465787418022001280b32232e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e436f6e74657874227d" . + "0a14557064617465436f6e746578745265717565737412340a07636f6e74" . + "65787418012001280b32232e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e436f6e74657874122f0a0b7570646174655f6d6173" . + "6b18022001280b321a2e676f6f676c652e70726f746f6275662e4669656c" . + "644d61736b22240a1444656c657465436f6e746578745265717565737412" . + "0c0a046e616d65180120012809222a0a1844656c657465416c6c436f6e74" . + "6578747352657175657374120e0a06706172656e7418012001280932ef07" . + "0a08436f6e746578747312ac010a0c4c697374436f6e7465787473122f2e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4c6973" . + "74436f6e7465787473526571756573741a302e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e4c697374436f6e74657874735265" . + "73706f6e7365223982d3e493023312312f76322f7b706172656e743d7072" . + "6f6a656374732f2a2f6167656e742f73657373696f6e732f2a7d2f636f6e" . + "7465787473129b010a0a476574436f6e74657874122d2e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e476574436f6e74657874" . + "526571756573741a232e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e436f6e74657874223982d3e493023312312f76322f7b6e" . + "616d653d70726f6a656374732f2a2f6167656e742f73657373696f6e732f" . + "2a2f636f6e74657874732f2a7d12aa010a0d437265617465436f6e746578" . + "7412302e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e437265617465436f6e74657874526571756573741a232e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e436f6e746578742242" . + "82d3e493023c22312f76322f7b706172656e743d70726f6a656374732f2a" . + "2f6167656e742f73657373696f6e732f2a7d2f636f6e74657874733a0763" . + "6f6e7465787412b2010a0d557064617465436f6e7465787412302e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e557064617465" . + "436f6e74657874526571756573741a232e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e436f6e74657874224a82d3e493024432" . + "392f76322f7b636f6e746578742e6e616d653d70726f6a656374732f2a2f" . + "6167656e742f73657373696f6e732f2a2f636f6e74657874732f2a7d3a07" . + "636f6e746578741294010a0d44656c657465436f6e7465787412302e676f" . + "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e44656c6574" . + "65436f6e74657874526571756573741a162e676f6f676c652e70726f746f" . + "6275662e456d707479223982d3e49302332a312f76322f7b6e616d653d70" . + "726f6a656374732f2a2f6167656e742f73657373696f6e732f2a2f636f6e" . + "74657874732f2a7d129c010a1144656c657465416c6c436f6e7465787473" . + "12342e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "44656c657465416c6c436f6e7465787473526571756573741a162e676f6f" . + "676c652e70726f746f6275662e456d707479223982d3e49302332a312f76" . + "322f7b706172656e743d70726f6a656374732f2a2f6167656e742f736573" . + "73696f6e732f2a7d2f636f6e7465787473429b010a1e636f6d2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e7632420c436f6e746578" . + "7450726f746f50015a44676f6f676c652e676f6c616e672e6f72672f6765" . + "6e70726f746f2f676f6f676c65617069732f636c6f75642f6469616c6f67" . + "666c6f772f76323b6469616c6f67666c6f77f80101a202024446aa021a47" . + "6f6f676c652e436c6f75642e4469616c6f67666c6f772e5632620670726f" . + "746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/EntityType.php b/Dialogflow/metadata/V2/EntityType.php index 36fe99276c06..fdb3585b00c2 100644 --- a/Dialogflow/metadata/V2/EntityType.php +++ b/Dialogflow/metadata/V2/EntityType.php @@ -15,150 +15,152 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0abb200a2c676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0ad6200a2c676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f656e746974795f747970652e70726f746f121a676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76321a23676f6f676c652f6c6f6e67" . - "72756e6e696e672f6f7065726174696f6e732e70726f746f1a1b676f6f67" . - "6c652f70726f746f6275662f656d7074792e70726f746f1a20676f6f676c" . - "652f70726f746f6275662f6669656c645f6d61736b2e70726f746f1a1c67" . - "6f6f676c652f70726f746f6275662f7374727563742e70726f746f22c403" . - "0a0a456e7469747954797065120c0a046e616d6518012001280912140a0c" . - "646973706c61795f6e616d6518022001280912390a046b696e6418032001" . - "280e322b2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e456e74697479547970652e4b696e6412550a136175746f5f65787061" . - "6e73696f6e5f6d6f646518042001280e32382e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e456e74697479547970652e417574" . - "6f457870616e73696f6e4d6f6465123f0a08656e74697469657318062003" . - "280b322d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . - "322e456e74697479547970652e456e746974791a290a06456e7469747912" . - "0d0a0576616c756518012001280912100a0873796e6f6e796d7318022003" . - "280922390a044b696e6412140a104b494e445f554e535045434946494544" . - "1000120c0a084b494e445f4d41501001120d0a094b494e445f4c49535410" . - "0222590a114175746f457870616e73696f6e4d6f646512230a1f4155544f" . - "5f455850414e53494f4e5f4d4f44455f554e535045434946494544100012" . - "1f0a1b4155544f5f455850414e53494f4e5f4d4f44455f44454641554c54" . - "100122660a164c697374456e74697479547970657352657175657374120e" . - "0a06706172656e7418012001280912150a0d6c616e67756167655f636f64" . - "6518022001280912110a09706167655f73697a6518032001280512120a0a" . - "706167655f746f6b656e18042001280922700a174c697374456e74697479" . - "5479706573526573706f6e7365123c0a0c656e746974795f747970657318" . - "012003280b32262e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e456e746974795479706512170a0f6e6578745f706167655f74" . - "6f6b656e180220012809223b0a14476574456e7469747954797065526571" . - "75657374120c0a046e616d6518012001280912150a0d6c616e6775616765" . - "5f636f6465180220012809227d0a17437265617465456e74697479547970" . - "6552657175657374120e0a06706172656e74180120012809123b0a0b656e" . - "746974795f7479706518022001280b32262e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e456e746974795479706512150a0d6c" . - "616e67756167655f636f6465180320012809229e010a1755706461746545" . - "6e746974795479706552657175657374123b0a0b656e746974795f747970" . - "6518012001280b32262e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e456e746974795479706512150a0d6c616e67756167655f" . - "636f6465180220012809122f0a0b7570646174655f6d61736b1803200128" . - "0b321a2e676f6f676c652e70726f746f6275662e4669656c644d61736b22" . - "270a1744656c657465456e746974795479706552657175657374120c0a04" . - "6e616d6518012001280922fe010a1d4261746368557064617465456e7469" . - "7479547970657352657175657374120e0a06706172656e74180120012809" . - "121f0a15656e746974795f747970655f62617463685f7572691802200128" . - "094800124f0a18656e746974795f747970655f62617463685f696e6c696e" . - "6518032001280b322b2e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e456e74697479547970654261746368480012150a0d6c61" . - "6e67756167655f636f6465180420012809122f0a0b7570646174655f6d61" . - "736b18052001280b321a2e676f6f676c652e70726f746f6275662e466965" . - "6c644d61736b42130a11656e746974795f747970655f6261746368225e0a" . - "1e4261746368557064617465456e746974795479706573526573706f6e73" . - "65123c0a0c656e746974795f747970657318012003280b32262e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e456e7469747954" . - "797065224a0a1d426174636844656c657465456e74697479547970657352" . - "657175657374120e0a06706172656e7418012001280912190a11656e7469" . - "74795f747970655f6e616d65731802200328092284010a1a426174636843" . - "7265617465456e74697469657352657175657374120e0a06706172656e74" . - "180120012809123f0a08656e74697469657318022003280b322d2e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e456e74697479" . - "547970652e456e7469747912150a0d6c616e67756167655f636f64651803" . - "2001280922b5010a1a4261746368557064617465456e7469746965735265" . - "7175657374120e0a06706172656e74180120012809123f0a08656e746974" . - "69657318022003280b322d2e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e456e74697479547970652e456e7469747912150a0d" . - "6c616e67756167655f636f6465180320012809122f0a0b7570646174655f" . - "6d61736b18042001280b321a2e676f6f676c652e70726f746f6275662e46" . - "69656c644d61736b225a0a1a426174636844656c657465456e7469746965" . - "7352657175657374120e0a06706172656e7418012001280912150a0d656e" . - "746974795f76616c75657318022003280912150a0d6c616e67756167655f" . - "636f6465180320012809224f0a0f456e7469747954797065426174636812" . - "3c0a0c656e746974795f747970657318012003280b32262e676f6f676c65" . + "6f75642e6469616c6f67666c6f772e76321a19676f6f676c652f6170692f" . + "7265736f757263652e70726f746f1a23676f6f676c652f6c6f6e6772756e" . + "6e696e672f6f7065726174696f6e732e70726f746f1a1b676f6f676c652f" . + "70726f746f6275662f656d7074792e70726f746f1a20676f6f676c652f70" . + "726f746f6275662f6669656c645f6d61736b2e70726f746f1a1c676f6f67" . + "6c652f70726f746f6275662f7374727563742e70726f746f22c4030a0a45" . + "6e7469747954797065120c0a046e616d6518012001280912140a0c646973" . + "706c61795f6e616d6518022001280912390a046b696e6418032001280e32" . + "2b2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e45" . + "6e74697479547970652e4b696e6412550a136175746f5f657870616e7369" . + "6f6e5f6d6f646518042001280e32382e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e456e74697479547970652e4175746f4578" . + "70616e73696f6e4d6f6465123f0a08656e74697469657318062003280b32" . + "2d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e45" . + "6e74697479547970652e456e746974791a290a06456e74697479120d0a05" . + "76616c756518012001280912100a0873796e6f6e796d7318022003280922" . + "390a044b696e6412140a104b494e445f554e535045434946494544100012" . + "0c0a084b494e445f4d41501001120d0a094b494e445f4c49535410022259" . + "0a114175746f457870616e73696f6e4d6f646512230a1f4155544f5f4558" . + "50414e53494f4e5f4d4f44455f554e5350454349464945441000121f0a1b" . + "4155544f5f455850414e53494f4e5f4d4f44455f44454641554c54100122" . + "660a164c697374456e74697479547970657352657175657374120e0a0670" . + "6172656e7418012001280912150a0d6c616e67756167655f636f64651802" . + "2001280912110a09706167655f73697a6518032001280512120a0a706167" . + "655f746f6b656e18042001280922700a174c697374456e74697479547970" . + "6573526573706f6e7365123c0a0c656e746974795f747970657318012003" . + "280b32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e456e746974795479706512170a0f6e6578745f706167655f746f6b65" . + "6e180220012809223b0a14476574456e7469747954797065526571756573" . + "74120c0a046e616d6518012001280912150a0d6c616e67756167655f636f" . + "6465180220012809227d0a17437265617465456e74697479547970655265" . + "7175657374120e0a06706172656e74180120012809123b0a0b656e746974" . + "795f7479706518022001280b32262e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e456e746974795479706512150a0d6c616e67" . + "756167655f636f6465180320012809229e010a17557064617465456e7469" . + "74795479706552657175657374123b0a0b656e746974795f747970651801" . + "2001280b32262e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e456e746974795479706512150a0d6c616e67756167655f636f64" . + "65180220012809122f0a0b7570646174655f6d61736b18032001280b321a" . + "2e676f6f676c652e70726f746f6275662e4669656c644d61736b22270a17" . + "44656c657465456e746974795479706552657175657374120c0a046e616d" . + "6518012001280922fe010a1d4261746368557064617465456e7469747954" . + "7970657352657175657374120e0a06706172656e74180120012809121f0a" . + "15656e746974795f747970655f62617463685f7572691802200128094800" . + "124f0a18656e746974795f747970655f62617463685f696e6c696e651803" . + "2001280b322b2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e456e74697479547970654261746368480012150a0d6c616e6775" . + "6167655f636f6465180420012809122f0a0b7570646174655f6d61736b18" . + "052001280b321a2e676f6f676c652e70726f746f6275662e4669656c644d" . + "61736b42130a11656e746974795f747970655f6261746368225e0a1e4261" . + "746368557064617465456e746974795479706573526573706f6e7365123c" . + "0a0c656e746974795f747970657318012003280b32262e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e456e7469747954797065" . + "224a0a1d426174636844656c657465456e74697479547970657352657175" . + "657374120e0a06706172656e7418012001280912190a11656e746974795f" . + "747970655f6e616d65731802200328092284010a1a426174636843726561" . + "7465456e74697469657352657175657374120e0a06706172656e74180120" . + "012809123f0a08656e74697469657318022003280b322d2e676f6f676c65" . "2e636c6f75642e6469616c6f67666c6f772e76322e456e74697479547970" . - "6532830e0a0b456e74697479547970657312ad010a0f4c697374456e7469" . - "7479547970657312322e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e4c697374456e746974795479706573526571756573741a" . - "332e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4c" . - "697374456e746974795479706573526573706f6e7365223182d3e493022b" . - "12292f76322f7b706172656e743d70726f6a656374732f2a2f6167656e74" . - "7d2f656e746974795479706573129c010a0d476574456e74697479547970" . - "6512302e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e476574456e7469747954797065526571756573741a262e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e456e74697479547970" . - "65223182d3e493022b12292f76322f7b6e616d653d70726f6a656374732f" . - "2a2f6167656e742f656e7469747954797065732f2a7d12af010a10437265" . - "617465456e746974795479706512332e676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76322e437265617465456e746974795479706552" . - "6571756573741a262e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e456e7469747954797065223e82d3e493023822292f76322f" . - "7b706172656e743d70726f6a656374732f2a2f6167656e747d2f656e7469" . - "747954797065733a0b656e746974795f7479706512bb010a105570646174" . - "65456e746974795479706512332e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e557064617465456e7469747954797065526571" . - "756573741a262e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e456e7469747954797065224a82d3e493024432352f76322f7b65" . - "6e746974795f747970652e6e616d653d70726f6a656374732f2a2f616765" . - "6e742f656e7469747954797065732f2a7d3a0b656e746974795f74797065" . - "1292010a1044656c657465456e746974795479706512332e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e44656c657465456e74" . - "69747954797065526571756573741a162e676f6f676c652e70726f746f62" . - "75662e456d707479223182d3e493022b2a292f76322f7b6e616d653d7072" . - "6f6a656374732f2a2f6167656e742f656e7469747954797065732f2a7d12" . - "b4010a164261746368557064617465456e74697479547970657312392e67" . + "652e456e7469747912150a0d6c616e67756167655f636f64651803200128" . + "0922b5010a1a4261746368557064617465456e7469746965735265717565" . + "7374120e0a06706172656e74180120012809123f0a08656e746974696573" . + "18022003280b322d2e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e456e74697479547970652e456e7469747912150a0d6c616e" . + "67756167655f636f6465180320012809122f0a0b7570646174655f6d6173" . + "6b18042001280b321a2e676f6f676c652e70726f746f6275662e4669656c" . + "644d61736b225a0a1a426174636844656c657465456e7469746965735265" . + "7175657374120e0a06706172656e7418012001280912150a0d656e746974" . + "795f76616c75657318022003280912150a0d6c616e67756167655f636f64" . + "65180320012809224f0a0f456e74697479547970654261746368123c0a0c" . + "656e746974795f747970657318012003280b32262e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e456e74697479547970653283" . + "0e0a0b456e74697479547970657312ad010a0f4c697374456e7469747954" . + "7970657312322e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e4c697374456e746974795479706573526571756573741a332e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4c697374" . + "456e746974795479706573526573706f6e7365223182d3e493022b12292f" . + "76322f7b706172656e743d70726f6a656374732f2a2f6167656e747d2f65" . + "6e746974795479706573129c010a0d476574456e74697479547970651230" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4765" . + "74456e7469747954797065526571756573741a262e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e456e74697479547970652231" . + "82d3e493022b12292f76322f7b6e616d653d70726f6a656374732f2a2f61" . + "67656e742f656e7469747954797065732f2a7d12af010a10437265617465" . + "456e746974795479706512332e676f6f676c652e636c6f75642e6469616c" . + "6f67666c6f772e76322e437265617465456e746974795479706552657175" . + "6573741a262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e456e7469747954797065223e82d3e493023822292f76322f7b7061" . + "72656e743d70726f6a656374732f2a2f6167656e747d2f656e7469747954" . + "797065733a0b656e746974795f7479706512bb010a10557064617465456e" . + "746974795479706512332e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e557064617465456e7469747954797065526571756573" . + "741a262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e456e7469747954797065224a82d3e493024432352f76322f7b656e7469" . + "74795f747970652e6e616d653d70726f6a656374732f2a2f6167656e742f" . + "656e7469747954797065732f2a7d3a0b656e746974795f74797065129201" . + "0a1044656c657465456e746974795479706512332e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e44656c657465456e74697479" . + "54797065526571756573741a162e676f6f676c652e70726f746f6275662e" . + "456d707479223182d3e493022b2a292f76322f7b6e616d653d70726f6a65" . + "6374732f2a2f6167656e742f656e7469747954797065732f2a7d12b4010a" . + "164261746368557064617465456e74697479547970657312392e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e42617463685570" . + "64617465456e746974795479706573526571756573741a1d2e676f6f676c" . + "652e6c6f6e6772756e6e696e672e4f7065726174696f6e224082d3e49302" . + "3a22352f76322f7b706172656e743d70726f6a656374732f2a2f6167656e" . + "747d2f656e7469747954797065733a62617463685570646174653a012a12" . + "b4010a16426174636844656c657465456e74697479547970657312392e67" . "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e42617463" . - "68557064617465456e746974795479706573526571756573741a1d2e676f" . + "6844656c657465456e746974795479706573526571756573741a1d2e676f" . "6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e224082d3" . "e493023a22352f76322f7b706172656e743d70726f6a656374732f2a2f61" . - "67656e747d2f656e7469747954797065733a62617463685570646174653a" . - "012a12b4010a16426174636844656c657465456e74697479547970657312" . - "392e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e42" . - "6174636844656c657465456e746974795479706573526571756573741a1d" . - "2e676f6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e22" . - "4082d3e493023a22352f76322f7b706172656e743d70726f6a656374732f" . - "2a2f6167656e747d2f656e7469747954797065733a626174636844656c65" . - "74653a012a12b9010a134261746368437265617465456e74697469657312" . - "362e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e42" . - "61746368437265617465456e746974696573526571756573741a1d2e676f" . - "6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e224b82d3" . - "e493024522402f76322f7b706172656e743d70726f6a656374732f2a2f61" . - "67656e742f656e7469747954797065732f2a7d2f656e7469746965733a62" . - "617463684372656174653a012a12b9010a13426174636855706461746545" . - "6e74697469657312362e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e4261746368557064617465456e74697469657352657175" . - "6573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f70657261" . - "74696f6e224b82d3e493024522402f76322f7b706172656e743d70726f6a" . - "656374732f2a2f6167656e742f656e7469747954797065732f2a7d2f656e" . - "7469746965733a62617463685570646174653a012a12b9010a1342617463" . - "6844656c657465456e74697469657312362e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e426174636844656c657465456e7469" . - "74696573526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e69" . - "6e672e4f7065726174696f6e224b82d3e493024522402f76322f7b706172" . - "656e743d70726f6a656374732f2a2f6167656e742f656e74697479547970" . - "65732f2a7d2f656e7469746965733a626174636844656c6574653a012a42" . - "9e010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e7632420f456e746974795479706550726f746f50015a44676f6f676c" . - "652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c656170" . - "69732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f6766" . - "6c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e446961" . - "6c6f67666c6f772e5632620670726f746f33" + "67656e747d2f656e7469747954797065733a626174636844656c6574653a" . + "012a12b9010a134261746368437265617465456e74697469657312362e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e42617463" . + "68437265617465456e746974696573526571756573741a1d2e676f6f676c" . + "652e6c6f6e6772756e6e696e672e4f7065726174696f6e224b82d3e49302" . + "4522402f76322f7b706172656e743d70726f6a656374732f2a2f6167656e" . + "742f656e7469747954797065732f2a7d2f656e7469746965733a62617463" . + "684372656174653a012a12b9010a134261746368557064617465456e7469" . + "7469657312362e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e4261746368557064617465456e74697469657352657175657374" . + "1a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f" . + "6e224b82d3e493024522402f76322f7b706172656e743d70726f6a656374" . + "732f2a2f6167656e742f656e7469747954797065732f2a7d2f656e746974" . + "6965733a62617463685570646174653a012a12b9010a1342617463684465" . + "6c657465456e74697469657312362e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e426174636844656c657465456e7469746965" . + "73526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e" . + "4f7065726174696f6e224b82d3e493024522402f76322f7b706172656e74" . + "3d70726f6a656374732f2a2f6167656e742f656e7469747954797065732f" . + "2a7d2f656e7469746965733a626174636844656c6574653a012a429e010a" . + "1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "32420f456e746974795479706550726f746f50015a44676f6f676c652e67" . + "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . + "636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77" . + "f80101a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67" . + "666c6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Intent.php b/Dialogflow/metadata/V2/Intent.php index 5073380f0899..17fcd526851e 100644 --- a/Dialogflow/metadata/V2/Intent.php +++ b/Dialogflow/metadata/V2/Intent.php @@ -15,251 +15,255 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Context::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); + \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aeb370a27676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0aaa380a27676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f696e74656e742e70726f746f121a676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76321a28676f6f676c652f636c6f75642f646961" . - "6c6f67666c6f772f76322f636f6e746578742e70726f746f1a23676f6f67" . - "6c652f6c6f6e6772756e6e696e672f6f7065726174696f6e732e70726f74" . - "6f1a1b676f6f676c652f70726f746f6275662f656d7074792e70726f746f" . - "1a20676f6f676c652f70726f746f6275662f6669656c645f6d61736b2e70" . - "726f746f1a1c676f6f676c652f70726f746f6275662f7374727563742e70" . - "726f746f22f3200a06496e74656e74120c0a046e616d6518012001280912" . - "140a0c646973706c61795f6e616d6518022001280912460a0d776562686f" . - "6f6b5f737461746518062001280e322f2e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e496e74656e742e576562686f6f6b5374" . - "61746512100a087072696f7269747918032001280512130a0b69735f6661" . - "6c6c6261636b18042001280812130a0b6d6c5f64697361626c6564181320" . - "012808121b0a13696e7075745f636f6e746578745f6e616d657318072003" . - "2809120e0a066576656e7473180820032809124b0a10747261696e696e67" . - "5f7068726173657318092003280b32312e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e496e74656e742e547261696e696e6750" . - "6872617365120e0a06616374696f6e180a20012809123c0a0f6f75747075" . - "745f636f6e7465787473180b2003280b32232e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e436f6e7465787412160a0e726573" . - "65745f636f6e7465787473180c2001280812400a0a706172616d65746572" . - "73180d2003280b322c2e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e496e74656e742e506172616d65746572123c0a086d6573" . - "7361676573180e2003280b322a2e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e496e74656e742e4d65737361676512570a1a64" . - "656661756c745f726573706f6e73655f706c6174666f726d73180f200328" . - "0e32332e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e496e74656e742e4d6573736167652e506c6174666f726d12210a19726f" . - "6f745f666f6c6c6f7775705f696e74656e745f6e616d6518102001280912" . - "230a1b706172656e745f666f6c6c6f7775705f696e74656e745f6e616d65" . - "18112001280912530a14666f6c6c6f7775705f696e74656e745f696e666f" . - "18122003280b32352e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e496e74656e742e466f6c6c6f777570496e74656e74496e66" . - "6f1acf020a0e547261696e696e67506872617365120c0a046e616d651801" . - "2001280912440a047479706518022001280e32362e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e496e74656e742e547261696e" . - "696e675068726173652e5479706512450a05706172747318032003280b32" . - "362e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . - "6e74656e742e547261696e696e675068726173652e5061727412190a1174" . - "696d65735f61646465645f636f756e741804200128051a4e0a0450617274" . - "120c0a047465787418012001280912130a0b656e746974795f7479706518" . - "0220012809120d0a05616c69617318032001280912140a0c757365725f64" . - "6566696e656418042001280822370a045479706512140a10545950455f55" . - "4e5350454349464945441000120b0a074558414d504c451001120c0a0854" . - "454d504c41544510021aac010a09506172616d65746572120c0a046e616d" . - "6518012001280912140a0c646973706c61795f6e616d6518022001280912" . - "0d0a0576616c756518032001280912150a0d64656661756c745f76616c75" . - "6518042001280912200a18656e746974795f747970655f646973706c6179" . - "5f6e616d6518052001280912110a096d616e6461746f7279180620012808" . - "120f0a0770726f6d707473180720032809120f0a0769735f6c6973741808" . - "200128081a9a150a074d657373616765123f0a047465787418012001280b" . - "322f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . - "496e74656e742e4d6573736167652e54657874480012410a05696d616765" . - "18022001280b32302e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e496e74656e742e4d6573736167652e496d61676548001250" . - "0a0d717569636b5f7265706c69657318032001280b32372e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d65" . - "73736167652e517569636b5265706c6965734800123f0a04636172641804" . - "2001280b322f2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e496e74656e742e4d6573736167652e436172644800122a0a0770" . - "61796c6f616418052001280b32172e676f6f676c652e70726f746f627566" . - "2e537472756374480012560a1073696d706c655f726573706f6e73657318" . - "072001280b323a2e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e496e74656e742e4d6573736167652e53696d706c6552657370" . - "6f6e7365734800124a0a0a62617369635f6361726418082001280b32342e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . - "656e742e4d6573736167652e4261736963436172644800124d0a0b737567" . - "67657374696f6e7318092001280b32362e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e496e74656e742e4d6573736167652e53" . - "756767657374696f6e734800125b0a136c696e6b5f6f75745f7375676765" . - "7374696f6e180a2001280b323c2e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e496e74656e742e4d6573736167652e4c696e6b" . - "4f757453756767657374696f6e4800124c0a0b6c6973745f73656c656374" . - "180b2001280b32352e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e496e74656e742e4d6573736167652e4c69737453656c6563" . - "74480012540a0f6361726f7573656c5f73656c656374180c2001280b3239" . + "69616c6f67666c6f772e76321a19676f6f676c652f6170692f7265736f75" . + "7263652e70726f746f1a28676f6f676c652f636c6f75642f6469616c6f67" . + "666c6f772f76322f636f6e746578742e70726f746f1a23676f6f676c652f" . + "6c6f6e6772756e6e696e672f6f7065726174696f6e732e70726f746f1a1e" . + "676f6f676c652f70726f746f6275662f6475726174696f6e2e70726f746f" . + "1a1b676f6f676c652f70726f746f6275662f656d7074792e70726f746f1a" . + "20676f6f676c652f70726f746f6275662f6669656c645f6d61736b2e7072" . + "6f746f1a1c676f6f676c652f70726f746f6275662f7374727563742e7072" . + "6f746f22f7200a06496e74656e74120c0a046e616d651801200128091214" . + "0a0c646973706c61795f6e616d6518022001280912460a0d776562686f6f" . + "6b5f737461746518062001280e322f2e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e496e74656e742e576562686f6f6b537461" . + "746512100a087072696f7269747918032001280512130a0b69735f66616c" . + "6c6261636b18042001280812130a0b6d6c5f64697361626c656418132001" . + "2808121b0a13696e7075745f636f6e746578745f6e616d65731807200328" . + "09120e0a066576656e7473180820032809124b0a10747261696e696e675f" . + "7068726173657318092003280b32312e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e496e74656e742e547261696e696e675068" . + "72617365120e0a06616374696f6e180a20012809123c0a0f6f7574707574" . + "5f636f6e7465787473180b2003280b32232e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e436f6e7465787412160a0e72657365" . + "745f636f6e7465787473180c2001280812400a0a706172616d6574657273" . + "180d2003280b322c2e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e496e74656e742e506172616d65746572123c0a086d657373" . + "61676573180e2003280b322a2e676f6f676c652e636c6f75642e6469616c" . + "6f67666c6f772e76322e496e74656e742e4d65737361676512570a1a6465" . + "6661756c745f726573706f6e73655f706c6174666f726d73180f2003280e" . + "32332e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "496e74656e742e4d6573736167652e506c6174666f726d12210a19726f6f" . + "745f666f6c6c6f7775705f696e74656e745f6e616d651810200128091223" . + "0a1b706172656e745f666f6c6c6f7775705f696e74656e745f6e616d6518" . + "112001280912530a14666f6c6c6f7775705f696e74656e745f696e666f18" . + "122003280b32352e676f6f676c652e636c6f75642e6469616c6f67666c6f" . + "772e76322e496e74656e742e466f6c6c6f777570496e74656e74496e666f" . + "1ad3020a0e547261696e696e67506872617365120c0a046e616d65180120" . + "01280912440a047479706518022001280e32362e676f6f676c652e636c6f" . + "75642e6469616c6f67666c6f772e76322e496e74656e742e547261696e69" . + "6e675068726173652e5479706512450a05706172747318032003280b3236" . "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . - "74656e742e4d6573736167652e4361726f7573656c53656c656374480012" . - "450a08706c6174666f726d18062001280e32332e676f6f676c652e636c6f" . + "74656e742e547261696e696e675068726173652e5061727412190a117469" . + "6d65735f61646465645f636f756e741804200128051a4e0a045061727412" . + "0c0a047465787418012001280912130a0b656e746974795f747970651802" . + "20012809120d0a05616c69617318032001280912140a0c757365725f6465" . + "66696e6564180420012808223b0a045479706512140a10545950455f554e" . + "5350454349464945441000120b0a074558414d504c45100112100a085445" . + "4d504c41544510021a0208011aac010a09506172616d65746572120c0a04" . + "6e616d6518012001280912140a0c646973706c61795f6e616d6518022001" . + "2809120d0a0576616c756518032001280912150a0d64656661756c745f76" . + "616c756518042001280912200a18656e746974795f747970655f64697370" . + "6c61795f6e616d6518052001280912110a096d616e6461746f7279180620" . + "012808120f0a0770726f6d707473180720032809120f0a0769735f6c6973" . + "741808200128081a9a150a074d657373616765123f0a0474657874180120" . + "01280b322f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . + "76322e496e74656e742e4d6573736167652e54657874480012410a05696d" . + "61676518022001280b32302e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e496e74656e742e4d6573736167652e496d61676548" . + "0012500a0d717569636b5f7265706c69657318032001280b32372e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . + "2e4d6573736167652e517569636b5265706c6965734800123f0a04636172" . + "6418042001280b322f2e676f6f676c652e636c6f75642e6469616c6f6766" . + "6c6f772e76322e496e74656e742e4d6573736167652e436172644800122a" . + "0a077061796c6f616418052001280b32172e676f6f676c652e70726f746f" . + "6275662e537472756374480012560a1073696d706c655f726573706f6e73" . + "657318072001280b323a2e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e496e74656e742e4d6573736167652e53696d706c6552" . + "6573706f6e7365734800124a0a0a62617369635f6361726418082001280b" . + "32342e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "496e74656e742e4d6573736167652e4261736963436172644800124d0a0b" . + "73756767657374696f6e7318092001280b32362e676f6f676c652e636c6f" . "75642e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167" . - "652e506c6174666f726d1a140a0454657874120c0a047465787418012003" . - "28091a360a05496d61676512110a09696d6167655f757269180120012809" . - "121a0a126163636573736962696c6974795f746578741802200128091a34" . - "0a0c517569636b5265706c696573120d0a057469746c6518012001280912" . - "150a0d717569636b5f7265706c6965731802200328091aad010a04436172" . - "64120d0a057469746c6518012001280912100a087375627469746c651802" . - "2001280912110a09696d6167655f75726918032001280912470a07627574" . - "746f6e7318042003280b32362e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e496e74656e742e4d6573736167652e436172642e" . - "427574746f6e1a280a06427574746f6e120c0a0474657874180120012809" . - "12100a08706f73746261636b1802200128091a4c0a0e53696d706c655265" . - "73706f6e736512160a0e746578745f746f5f737065656368180120012809" . - "120c0a0473736d6c18022001280912140a0c646973706c61795f74657874" . - "1803200128091a660a0f53696d706c65526573706f6e73657312530a1073" . - "696d706c655f726573706f6e73657318012003280b32392e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d65" . - "73736167652e53696d706c65526573706f6e73651aef020a094261736963" . + "652e53756767657374696f6e734800125b0a136c696e6b5f6f75745f7375" . + "6767657374696f6e180a2001280b323c2e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e496e74656e742e4d6573736167652e4c" . + "696e6b4f757453756767657374696f6e4800124c0a0b6c6973745f73656c" . + "656374180b2001280b32352e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e496e74656e742e4d6573736167652e4c6973745365" . + "6c656374480012540a0f6361726f7573656c5f73656c656374180c200128" . + "0b32392e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e496e74656e742e4d6573736167652e4361726f7573656c53656c656374" . + "480012450a08706c6174666f726d18062001280e32332e676f6f676c652e" . + "636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d6573" . + "736167652e506c6174666f726d1a140a0454657874120c0a047465787418" . + "01200328091a360a05496d61676512110a09696d6167655f757269180120" . + "012809121a0a126163636573736962696c6974795f746578741802200128" . + "091a340a0c517569636b5265706c696573120d0a057469746c6518012001" . + "280912150a0d717569636b5f7265706c6965731802200328091aad010a04" . "43617264120d0a057469746c6518012001280912100a087375627469746c" . - "6518022001280912160a0e666f726d61747465645f746578741803200128" . - "09123f0a05696d61676518042001280b32302e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e496e74656e742e4d657373616765" . - "2e496d616765124c0a07627574746f6e7318052003280b323b2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e" . - "4d6573736167652e4261736963436172642e427574746f6e1a99010a0642" . - "7574746f6e120d0a057469746c6518012001280912620a0f6f70656e5f75" . - "72695f616374696f6e18022001280b32492e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167652e" . - "4261736963436172642e427574746f6e2e4f70656e557269416374696f6e" . - "1a1c0a0d4f70656e557269416374696f6e120b0a03757269180120012809" . - "1a1b0a0a53756767657374696f6e120d0a057469746c651801200128091a" . - "590a0b53756767657374696f6e73124a0a0b73756767657374696f6e7318" . - "012003280b32352e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e496e74656e742e4d6573736167652e53756767657374696f6e" . - "1a3a0a114c696e6b4f757453756767657374696f6e12180a106465737469" . - "6e6174696f6e5f6e616d65180120012809120b0a03757269180220012809" . - "1a9d020a0a4c69737453656c656374120d0a057469746c65180120012809" . - "12490a056974656d7318022003280b323a2e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e496e74656e742e4d6573736167652e" . - "4c69737453656c6563742e4974656d1ab4010a044974656d12470a04696e" . - "666f18012001280b32392e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e496e74656e742e4d6573736167652e53656c65637449" . - "74656d496e666f120d0a057469746c6518022001280912130a0b64657363" . - "72697074696f6e180320012809123f0a05696d61676518042001280b3230" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . - "74656e742e4d6573736167652e496d6167651a96020a0e4361726f757365" . - "6c53656c656374124d0a056974656d7318012003280b323e2e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d" . - "6573736167652e4361726f7573656c53656c6563742e4974656d1ab4010a" . - "044974656d12470a04696e666f18012001280b32392e676f6f676c652e63" . + "6518022001280912110a09696d6167655f75726918032001280912470a07" . + "627574746f6e7318042003280b32362e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e496e74656e742e4d6573736167652e4361" . + "72642e427574746f6e1a280a06427574746f6e120c0a0474657874180120" . + "01280912100a08706f73746261636b1802200128091a4c0a0e53696d706c" . + "65526573706f6e736512160a0e746578745f746f5f737065656368180120" . + "012809120c0a0473736d6c18022001280912140a0c646973706c61795f74" . + "6578741803200128091a660a0f53696d706c65526573706f6e7365731253" . + "0a1073696d706c655f726573706f6e73657318012003280b32392e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . + "2e4d6573736167652e53696d706c65526573706f6e73651aef020a094261" . + "73696343617264120d0a057469746c6518012001280912100a0873756274" . + "69746c6518022001280912160a0e666f726d61747465645f746578741803" . + "20012809123f0a05696d61676518042001280b32302e676f6f676c652e63" . "6c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d657373" . - "6167652e53656c6563744974656d496e666f120d0a057469746c65180220" . - "01280912130a0b6465736372697074696f6e180320012809123f0a05696d" . - "61676518042001280b32302e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e496e74656e742e4d6573736167652e496d6167651a" . - "2f0a0e53656c6563744974656d496e666f120b0a036b6579180120012809" . - "12100a0873796e6f6e796d73180220032809228b010a08506c6174666f72" . - "6d12180a14504c4154464f524d5f554e5350454349464945441000120c0a" . - "0846414345424f4f4b100112090a05534c41434b1002120c0a0854454c45" . - "4752414d100312070a034b494b100412090a05534b595045100512080a04" . - "4c494e45100612090a055649424552100712150a11414354494f4e535f4f" . - "4e5f474f4f474c45100842090a076d6573736167651a570a12466f6c6c6f" . - "777570496e74656e74496e666f121c0a14666f6c6c6f7775705f696e7465" . - "6e745f6e616d6518012001280912230a1b706172656e745f666f6c6c6f77" . - "75705f696e74656e745f6e616d6518022001280922740a0c576562686f6f" . - "6b5374617465121d0a19574542484f4f4b5f53544154455f554e53504543" . - "4946494544100012190a15574542484f4f4b5f53544154455f454e41424c" . - "45441001122a0a26574542484f4f4b5f53544154455f454e41424c45445f" . - "464f525f534c4f545f46494c4c494e471002229f010a124c697374496e74" . - "656e747352657175657374120e0a06706172656e7418012001280912150a" . - "0d6c616e67756167655f636f6465180220012809123b0a0b696e74656e74" . - "5f7669657718032001280e32262e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e496e74656e745669657712110a09706167655f" . - "73697a6518042001280512120a0a706167655f746f6b656e180520012809" . - "22630a134c697374496e74656e7473526573706f6e736512330a07696e74" . - "656e747318012003280b32222e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e496e74656e7412170a0f6e6578745f706167655f" . - "746f6b656e18022001280922740a10476574496e74656e74526571756573" . - "74120c0a046e616d6518012001280912150a0d6c616e67756167655f636f" . - "6465180220012809123b0a0b696e74656e745f7669657718032001280e32" . - "262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . - "6e74656e745669657722ad010a13437265617465496e74656e7452657175" . - "657374120e0a06706172656e7418012001280912320a06696e74656e7418" . - "022001280b32222e676f6f676c652e636c6f75642e6469616c6f67666c6f" . - "772e76322e496e74656e7412150a0d6c616e67756167655f636f64651803" . - "20012809123b0a0b696e74656e745f7669657718042001280e32262e676f" . + "6167652e496d616765124c0a07627574746f6e7318052003280b323b2e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . + "6e742e4d6573736167652e4261736963436172642e427574746f6e1a9901" . + "0a06427574746f6e120d0a057469746c6518012001280912620a0f6f7065" . + "6e5f7572695f616374696f6e18022001280b32492e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d65737361" . + "67652e4261736963436172642e427574746f6e2e4f70656e557269416374" . + "696f6e1a1c0a0d4f70656e557269416374696f6e120b0a03757269180120" . + "0128091a1b0a0a53756767657374696f6e120d0a057469746c6518012001" . + "28091a590a0b53756767657374696f6e73124a0a0b73756767657374696f" . + "6e7318012003280b32352e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e496e74656e742e4d6573736167652e53756767657374" . + "696f6e1a3a0a114c696e6b4f757453756767657374696f6e12180a106465" . + "7374696e6174696f6e5f6e616d65180120012809120b0a03757269180220" . + "0128091a9d020a0a4c69737453656c656374120d0a057469746c65180120" . + "01280912490a056974656d7318022003280b323a2e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d65737361" . + "67652e4c69737453656c6563742e4974656d1ab4010a044974656d12470a" . + "04696e666f18012001280b32392e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e496e74656e742e4d6573736167652e53656c65" . + "63744974656d496e666f120d0a057469746c6518022001280912130a0b64" . + "65736372697074696f6e180320012809123f0a05696d6167651804200128" . + "0b32302e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e496e74656e742e4d6573736167652e496d6167651a96020a0e4361726f" . + "7573656c53656c656374124d0a056974656d7318012003280b323e2e676f" . "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e" . - "745669657722ce010a13557064617465496e74656e745265717565737412" . - "320a06696e74656e7418012001280b32222e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e496e74656e7412150a0d6c616e6775" . - "6167655f636f6465180220012809122f0a0b7570646174655f6d61736b18" . - "032001280b321a2e676f6f676c652e70726f746f6275662e4669656c644d" . - "61736b123b0a0b696e74656e745f7669657718042001280e32262e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . - "5669657722230a1344656c657465496e74656e7452657175657374120c0a" . - "046e616d6518012001280922a4020a194261746368557064617465496e74" . - "656e747352657175657374120e0a06706172656e74180120012809121a0a" . - "10696e74656e745f62617463685f757269180220012809480012460a1369" . - "6e74656e745f62617463685f696e6c696e6518032001280b32272e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74" . - "4261746368480012150a0d6c616e67756167655f636f6465180420012809" . - "122f0a0b7570646174655f6d61736b18052001280b321a2e676f6f676c65" . - "2e70726f746f6275662e4669656c644d61736b123b0a0b696e74656e745f" . - "7669657718062001280e32262e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e496e74656e7456696577420e0a0c696e74656e74" . - "5f626174636822510a1a4261746368557064617465496e74656e74735265" . - "73706f6e736512330a07696e74656e747318012003280b32222e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e7422" . - "600a19426174636844656c657465496e74656e747352657175657374120e" . - "0a06706172656e7418012001280912330a07696e74656e74731802200328" . - "0b32222e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e496e74656e7422420a0b496e74656e74426174636812330a07696e7465" . - "6e747318012003280b32222e676f6f676c652e636c6f75642e6469616c6f" . - "67666c6f772e76322e496e74656e742a3f0a0a496e74656e745669657712" . - "1b0a17494e54454e545f564945575f554e53504543494649454410001214" . - "0a10494e54454e545f564945575f46554c4c100132d8080a07496e74656e" . - "7473129d010a0b4c697374496e74656e7473122e2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e4c697374496e74656e747352" . - "6571756573741a2f2e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e4c697374496e74656e7473526573706f6e7365222d82d3e4" . - "93022712252f76322f7b706172656e743d70726f6a656374732f2a2f6167" . - "656e747d2f696e74656e7473128c010a09476574496e74656e74122c2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e47657449" . - "6e74656e74526571756573741a222e676f6f676c652e636c6f75642e6469" . - "616c6f67666c6f772e76322e496e74656e74222d82d3e493022712252f76" . - "322f7b6e616d653d70726f6a656374732f2a2f6167656e742f696e74656e" . - "74732f2a7d129a010a0c437265617465496e74656e74122f2e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e437265617465496e" . - "74656e74526571756573741a222e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e496e74656e74223582d3e493022f22252f7632" . - "2f7b706172656e743d70726f6a656374732f2a2f6167656e747d2f696e74" . - "656e74733a06696e74656e7412a1010a0c557064617465496e74656e7412" . - "2f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e55" . - "7064617465496e74656e74526571756573741a222e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e496e74656e74223c82d3e493" . - "0236322c2f76322f7b696e74656e742e6e616d653d70726f6a656374732f" . - "2a2f6167656e742f696e74656e74732f2a7d3a06696e74656e741286010a" . - "0c44656c657465496e74656e74122f2e676f6f676c652e636c6f75642e64" . - "69616c6f67666c6f772e76322e44656c657465496e74656e745265717565" . - "73741a162e676f6f676c652e70726f746f6275662e456d707479222d82d3" . - "e49302272a252f76322f7b6e616d653d70726f6a656374732f2a2f616765" . - "6e742f696e74656e74732f2a7d12a8010a12426174636855706461746549" . - "6e74656e747312352e676f6f676c652e636c6f75642e6469616c6f67666c" . - "6f772e76322e4261746368557064617465496e74656e7473526571756573" . - "741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f706572617469" . - "6f6e223c82d3e493023622312f76322f7b706172656e743d70726f6a6563" . - "74732f2a2f6167656e747d2f696e74656e74733a62617463685570646174" . - "653a012a12a8010a12426174636844656c657465496e74656e747312352e" . - "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e426174" . - "636844656c657465496e74656e7473526571756573741a1d2e676f6f676c" . - "652e6c6f6e6772756e6e696e672e4f7065726174696f6e223c82d3e49302" . - "3622312f76322f7b706172656e743d70726f6a656374732f2a2f6167656e" . - "747d2f696e74656e74733a626174636844656c6574653a012a429a010a1e" . - "636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "420b496e74656e7450726f746f50015a44676f6f676c652e676f6c616e67" . - "2e6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f7564" . - "2f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f80101a202" . - "024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c6f772e" . - "5632620670726f746f33" + "742e4d6573736167652e4361726f7573656c53656c6563742e4974656d1a" . + "b4010a044974656d12470a04696e666f18012001280b32392e676f6f676c" . + "652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d" . + "6573736167652e53656c6563744974656d496e666f120d0a057469746c65" . + "18022001280912130a0b6465736372697074696f6e180320012809123f0a" . + "05696d61676518042001280b32302e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e496e74656e742e4d6573736167652e496d61" . + "67651a2f0a0e53656c6563744974656d496e666f120b0a036b6579180120" . + "01280912100a0873796e6f6e796d73180220032809228b010a08506c6174" . + "666f726d12180a14504c4154464f524d5f554e5350454349464945441000" . + "120c0a0846414345424f4f4b100112090a05534c41434b1002120c0a0854" . + "454c454752414d100312070a034b494b100412090a05534b595045100512" . + "080a044c494e45100612090a055649424552100712150a11414354494f4e" . + "535f4f4e5f474f4f474c45100842090a076d6573736167651a570a12466f" . + "6c6c6f777570496e74656e74496e666f121c0a14666f6c6c6f7775705f69" . + "6e74656e745f6e616d6518012001280912230a1b706172656e745f666f6c" . + "6c6f7775705f696e74656e745f6e616d6518022001280922740a0c576562" . + "686f6f6b5374617465121d0a19574542484f4f4b5f53544154455f554e53" . + "5045434946494544100012190a15574542484f4f4b5f53544154455f454e" . + "41424c45441001122a0a26574542484f4f4b5f53544154455f454e41424c" . + "45445f464f525f534c4f545f46494c4c494e471002229f010a124c697374" . + "496e74656e747352657175657374120e0a06706172656e74180120012809" . + "12150a0d6c616e67756167655f636f6465180220012809123b0a0b696e74" . + "656e745f7669657718032001280e32262e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e496e74656e745669657712110a097061" . + "67655f73697a6518042001280512120a0a706167655f746f6b656e180520" . + "01280922630a134c697374496e74656e7473526573706f6e736512330a07" . + "696e74656e747318012003280b32222e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e496e74656e7412170a0f6e6578745f7061" . + "67655f746f6b656e18022001280922740a10476574496e74656e74526571" . + "75657374120c0a046e616d6518012001280912150a0d6c616e6775616765" . + "5f636f6465180220012809123b0a0b696e74656e745f7669657718032001" . + "280e32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e496e74656e745669657722ad010a13437265617465496e74656e7452" . + "657175657374120e0a06706172656e7418012001280912320a06696e7465" . + "6e7418022001280b32222e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e496e74656e7412150a0d6c616e67756167655f636f64" . + "65180320012809123b0a0b696e74656e745f7669657718042001280e3226" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e" . + "74656e745669657722ce010a13557064617465496e74656e745265717565" . + "737412320a06696e74656e7418012001280b32222e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e496e74656e7412150a0d6c61" . + "6e67756167655f636f6465180220012809122f0a0b7570646174655f6d61" . + "736b18032001280b321a2e676f6f676c652e70726f746f6275662e466965" . + "6c644d61736b123b0a0b696e74656e745f7669657718042001280e32262e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . + "656e745669657722230a1344656c657465496e74656e7452657175657374" . + "120c0a046e616d6518012001280922a4020a194261746368557064617465" . + "496e74656e747352657175657374120e0a06706172656e74180120012809" . + "121a0a10696e74656e745f62617463685f75726918022001280948001246" . + "0a13696e74656e745f62617463685f696e6c696e6518032001280b32272e" . + "676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e74" . + "656e744261746368480012150a0d6c616e67756167655f636f6465180420" . + "012809122f0a0b7570646174655f6d61736b18052001280b321a2e676f6f" . + "676c652e70726f746f6275662e4669656c644d61736b123b0a0b696e7465" . + "6e745f7669657718062001280e32262e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e496e74656e7456696577420e0a0c696e74" . + "656e745f626174636822510a1a4261746368557064617465496e74656e74" . + "73526573706f6e736512330a07696e74656e747318012003280b32222e67" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e496e7465" . + "6e7422600a19426174636844656c657465496e74656e7473526571756573" . + "74120e0a06706172656e7418012001280912330a07696e74656e74731802" . + "2003280b32222e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e496e74656e7422420a0b496e74656e74426174636812330a0769" . + "6e74656e747318012003280b32222e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e496e74656e742a3f0a0a496e74656e745669" . + "6577121b0a17494e54454e545f564945575f554e53504543494649454410" . + "0012140a10494e54454e545f564945575f46554c4c100132d8080a07496e" . + "74656e7473129d010a0b4c697374496e74656e7473122e2e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e4c697374496e74656e" . + "7473526571756573741a2f2e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e4c697374496e74656e7473526573706f6e7365222d" . + "82d3e493022712252f76322f7b706172656e743d70726f6a656374732f2a" . + "2f6167656e747d2f696e74656e7473128c010a09476574496e74656e7412" . + "2c2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e47" . + "6574496e74656e74526571756573741a222e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e496e74656e74222d82d3e493022712" . + "252f76322f7b6e616d653d70726f6a656374732f2a2f6167656e742f696e" . + "74656e74732f2a7d129a010a0c437265617465496e74656e74122f2e676f" . + "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4372656174" . + "65496e74656e74526571756573741a222e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e496e74656e74223582d3e493022f2225" . + "2f76322f7b706172656e743d70726f6a656374732f2a2f6167656e747d2f" . + "696e74656e74733a06696e74656e7412a1010a0c557064617465496e7465" . + "6e74122f2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76" . + "322e557064617465496e74656e74526571756573741a222e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e496e74656e74223c82" . + "d3e4930236322c2f76322f7b696e74656e742e6e616d653d70726f6a6563" . + "74732f2a2f6167656e742f696e74656e74732f2a7d3a06696e74656e7412" . + "86010a0c44656c657465496e74656e74122f2e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e44656c657465496e74656e745265" . + "71756573741a162e676f6f676c652e70726f746f6275662e456d70747922" . + "2d82d3e49302272a252f76322f7b6e616d653d70726f6a656374732f2a2f" . + "6167656e742f696e74656e74732f2a7d12a8010a12426174636855706461" . + "7465496e74656e747312352e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e4261746368557064617465496e74656e7473526571" . + "756573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f706572" . + "6174696f6e223c82d3e493023622312f76322f7b706172656e743d70726f" . + "6a656374732f2a2f6167656e747d2f696e74656e74733a62617463685570" . + "646174653a012a12a8010a12426174636844656c657465496e74656e7473" . + "12352e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "426174636844656c657465496e74656e7473526571756573741a1d2e676f" . + "6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e223c82d3" . + "e493023622312f76322f7b706172656e743d70726f6a656374732f2a2f61" . + "67656e747d2f696e74656e74733a626174636844656c6574653a012a429a" . + "010a1e636f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e7632420b496e74656e7450726f746f50015a44676f6f676c652e676f6c" . + "616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c" . + "6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f801" . + "01a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c" . + "6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Session.php b/Dialogflow/metadata/V2/Session.php index 47eb9ed1764a..e2100b1d9974 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\Resource::initOnce(); + \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Context::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\SessionEntityType::initOnce(); @@ -22,123 +24,151 @@ public static function initOnce() { \GPBMetadata\Google\Rpc\Status::initOnce(); \GPBMetadata\Google\Type\Latlng::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aa91b0a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0ae7210a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f73657373696f6e2e70726f746f121a676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76321a28676f6f676c652f636c6f75642f6469" . - "616c6f67666c6f772f76322f636f6e746578742e70726f746f1a27676f6f" . - "676c652f636c6f75642f6469616c6f67666c6f772f76322f696e74656e74" . - "2e70726f746f1a34676f6f676c652f636c6f75642f6469616c6f67666c6f" . - "772f76322f73657373696f6e5f656e746974795f747970652e70726f746f" . - "1a1c676f6f676c652f70726f746f6275662f7374727563742e70726f746f" . - "1a17676f6f676c652f7270632f7374617475732e70726f746f1a18676f6f" . - "676c652f747970652f6c61746c6e672e70726f746f22bb010a1344657465" . - "6374496e74656e7452657175657374120f0a0773657373696f6e18012001" . - "280912410a0c71756572795f706172616d7318022001280b322b2e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e517565727950" . - "6172616d6574657273123b0a0b71756572795f696e70757418032001280b" . - "32262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . - "5175657279496e70757412130a0b696e7075745f617564696f1805200128" . - "0c2296010a14446574656374496e74656e74526573706f6e736512130a0b" . + "6469616c6f67666c6f772e76321a19676f6f676c652f6170692f7265736f" . + "757263652e70726f746f1a2d676f6f676c652f636c6f75642f6469616c6f" . + "67666c6f772f76322f617564696f5f636f6e6669672e70726f746f1a2867" . + "6f6f676c652f636c6f75642f6469616c6f67666c6f772f76322f636f6e74" . + "6578742e70726f746f1a27676f6f676c652f636c6f75642f6469616c6f67" . + "666c6f772f76322f696e74656e742e70726f746f1a34676f6f676c652f63" . + "6c6f75642f6469616c6f67666c6f772f76322f73657373696f6e5f656e74" . + "6974795f747970652e70726f746f1a1c676f6f676c652f70726f746f6275" . + "662f7374727563742e70726f746f1a17676f6f676c652f7270632f737461" . + "7475732e70726f746f1a18676f6f676c652f747970652f6c61746c6e672e" . + "70726f746f2287020a13446574656374496e74656e745265717565737412" . + "0f0a0773657373696f6e18012001280912410a0c71756572795f70617261" . + "6d7318022001280b322b2e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e5175657279506172616d6574657273123b0a0b717565" . + "72795f696e70757418032001280b32262e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e5175657279496e707574124a0a136f75" . + "747075745f617564696f5f636f6e66696718042001280b322d2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e4f757470757441" . + "7564696f436f6e66696712130a0b696e7075745f617564696f1805200128" . + "0c22f8010a14446574656374496e74656e74526573706f6e736512130a0b" . "726573706f6e73655f6964180120012809123d0a0c71756572795f726573" . "756c7418022001280b32272e676f6f676c652e636c6f75642e6469616c6f" . "67666c6f772e76322e5175657279526573756c74122a0a0e776562686f6f" . "6b5f73746174757318032001280b32122e676f6f676c652e7270632e5374" . - "617475732295020a0f5175657279506172616d657465727312110a097469" . - "6d655f7a6f6e6518012001280912290a0c67656f5f6c6f636174696f6e18" . - "022001280b32132e676f6f676c652e747970652e4c61744c6e6712350a08" . - "636f6e746578747318032003280b32232e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e436f6e7465787412160a0e7265736574" . - "5f636f6e7465787473180420012808124b0a1473657373696f6e5f656e74" . - "6974795f747970657318052003280b322d2e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e53657373696f6e456e746974795479" . - "706512280a077061796c6f616418062001280b32172e676f6f676c652e70" . - "726f746f6275662e53747275637422cb010a0a5175657279496e70757412" . - "440a0c617564696f5f636f6e66696718012001280b322c2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e496e70757441756469" . - "6f436f6e666967480012350a047465787418022001280b32252e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e54657874496e70" . - "7574480012370a056576656e7418032001280b32262e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e4576656e74496e70757448" . - "0042070a05696e70757422b8040a0b5175657279526573756c7412120a0a" . - "71756572795f7465787418012001280912150a0d6c616e67756167655f63" . - "6f6465180f2001280912250a1d7370656563685f7265636f676e6974696f" . - "6e5f636f6e666964656e6365180220012802120e0a06616374696f6e1803" . - "20012809122b0a0a706172616d657465727318042001280b32172e676f6f" . - "676c652e70726f746f6275662e53747275637412230a1b616c6c5f726571" . - "75697265645f706172616d735f70726573656e7418052001280812180a10" . - "66756c66696c6c6d656e745f7465787418062001280912480a1466756c66" . - "696c6c6d656e745f6d6573736167657318072003280b322a2e676f6f676c" . - "652e636c6f75642e6469616c6f67666c6f772e76322e496e74656e742e4d" . - "65737361676512160a0e776562686f6f6b5f736f75726365180820012809" . - "12300a0f776562686f6f6b5f7061796c6f616418092001280b32172e676f" . - "6f676c652e70726f746f6275662e537472756374123c0a0f6f7574707574" . - "5f636f6e7465787473180a2003280b32232e676f6f676c652e636c6f7564" . - "2e6469616c6f67666c6f772e76322e436f6e7465787412320a06696e7465" . - "6e74180b2001280b32222e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e496e74656e7412230a1b696e74656e745f6465746563" . - "74696f6e5f636f6e666964656e6365180c2001280212300a0f646961676e" . - "6f737469635f696e666f180e2001280b32172e676f6f676c652e70726f74" . - "6f6275662e53747275637422de010a1c53747265616d696e674465746563" . - "74496e74656e7452657175657374120f0a0773657373696f6e1801200128" . - "0912410a0c71756572795f706172616d7318022001280b322b2e676f6f67" . - "6c652e636c6f75642e6469616c6f67666c6f772e76322e51756572795061" . - "72616d6574657273123b0a0b71756572795f696e70757418032001280b32" . - "262e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e51" . - "75657279496e70757412180a1073696e676c655f7574746572616e636518" . - "042001280812130a0b696e7075745f617564696f18062001280c22f3010a" . - "1d53747265616d696e67446574656374496e74656e74526573706f6e7365" . - "12130a0b726573706f6e73655f696418012001280912520a127265636f67" . - "6e6974696f6e5f726573756c7418022001280b32362e676f6f676c652e63" . - "6c6f75642e6469616c6f67666c6f772e76322e53747265616d696e675265" . - "636f676e6974696f6e526573756c74123d0a0c71756572795f726573756c" . - "7418032001280b32272e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e5175657279526573756c74122a0a0e776562686f6f6b5f" . - "73746174757318042001280b32122e676f6f676c652e7270632e53746174" . - "7573228a020a1a53747265616d696e675265636f676e6974696f6e526573" . - "756c7412580a0c6d6573736167655f7479706518012001280e32422e676f" . - "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5374726561" . - "6d696e675265636f676e6974696f6e526573756c742e4d65737361676554" . - "79706512120a0a7472616e73637269707418022001280912100a0869735f" . - "66696e616c18032001280812120a0a636f6e666964656e63651804200128" . - "0222580a0b4d65737361676554797065121c0a184d4553534147455f5459" . - "50455f554e5350454349464945441000120e0a0a5452414e534352495054" . - "1001121b0a17454e445f4f465f53494e474c455f5554544552414e434510" . - "02229d010a10496e707574417564696f436f6e66696712410a0e61756469" . - "6f5f656e636f64696e6718012001280e32292e676f6f676c652e636c6f75" . - "642e6469616c6f67666c6f772e76322e417564696f456e636f64696e6712" . - "190a1173616d706c655f726174655f686572747a18022001280512150a0d" . - "6c616e67756167655f636f646518032001280912140a0c7068726173655f" . - "68696e747318042003280922300a0954657874496e707574120c0a047465" . - "787418012001280912150a0d6c616e67756167655f636f64651802200128" . - "09225e0a0a4576656e74496e707574120c0a046e616d6518012001280912" . - "2b0a0a706172616d657465727318022001280b32172e676f6f676c652e70" . - "726f746f6275662e53747275637412150a0d6c616e67756167655f636f64" . - "651803200128092afb010a0d417564696f456e636f64696e67121e0a1a41" . - "5544494f5f454e434f44494e475f554e5350454349464945441000121c0a" . - "18415544494f5f454e434f44494e475f4c494e4541525f3136100112170a" . - "13415544494f5f454e434f44494e475f464c4143100212180a1441554449" . - "4f5f454e434f44494e475f4d554c4157100312160a12415544494f5f454e" . - "434f44494e475f414d52100412190a15415544494f5f454e434f44494e47" . - "5f414d525f57421005121b0a17415544494f5f454e434f44494e475f4f47" . - "475f4f505553100612290a25415544494f5f454e434f44494e475f535045" . - "45585f574954485f4845414445525f42595445100732d4020a0853657373" . - "696f6e7312b4010a0c446574656374496e74656e74122f2e676f6f676c65" . - "2e636c6f75642e6469616c6f67666c6f772e76322e446574656374496e74" . - "656e74526571756573741a302e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e76322e446574656374496e74656e74526573706f6e7365" . - "224182d3e493023b22362f76322f7b73657373696f6e3d70726f6a656374" . - "732f2a2f6167656e742f73657373696f6e732f2a7d3a646574656374496e" . - "74656e743a012a1290010a1553747265616d696e67446574656374496e74" . - "656e7412382e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e53747265616d696e67446574656374496e74656e74526571756573" . - "741a392e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e53747265616d696e67446574656374496e74656e74526573706f6e7365" . - "28013001429b010a1e636f6d2e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e7632420c53657373696f6e50726f746f50015a44676f6f" . - "676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65" . - "617069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f" . - "67666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e44" . - "69616c6f67666c6f772e5632620670726f746f33" + "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" . + "22aa020a1c53747265616d696e67446574656374496e74656e7452657175" . + "657374120f0a0773657373696f6e18012001280912410a0c71756572795f" . + "706172616d7318022001280b322b2e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e5175657279506172616d6574657273123b0a" . + "0b71756572795f696e70757418032001280b32262e676f6f676c652e636c" . + "6f75642e6469616c6f67666c6f772e76322e5175657279496e7075741218" . + "0a1073696e676c655f7574746572616e6365180420012808124a0a136f75" . + "747075745f617564696f5f636f6e66696718052001280b322d2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e4f757470757441" . + "7564696f436f6e66696712130a0b696e7075745f617564696f1806200128" . + "0c22d5020a1d53747265616d696e67446574656374496e74656e74526573" . + "706f6e736512130a0b726573706f6e73655f696418012001280912520a12" . + "7265636f676e6974696f6e5f726573756c7418022001280b32362e676f6f" . + "676c652e636c6f75642e6469616c6f67666c6f772e76322e53747265616d" . + "696e675265636f676e6974696f6e526573756c74123d0a0c71756572795f" . + "726573756c7418032001280b32272e676f6f676c652e636c6f75642e6469" . + "616c6f67666c6f772e76322e5175657279526573756c74122a0a0e776562" . + "686f6f6b5f73746174757318042001280b32122e676f6f676c652e727063" . + "2e53746174757312140a0c6f75747075745f617564696f18052001280c12" . + "4a0a136f75747075745f617564696f5f636f6e66696718062001280b322d" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4f75" . + "74707574417564696f436f6e666967228a020a1a53747265616d696e6752" . + "65636f676e6974696f6e526573756c7412580a0c6d6573736167655f7479" . + "706518012001280e32422e676f6f676c652e636c6f75642e6469616c6f67" . + "666c6f772e76322e53747265616d696e675265636f676e6974696f6e5265" . + "73756c742e4d6573736167655479706512120a0a7472616e736372697074" . + "18022001280912100a0869735f66696e616c18032001280812120a0a636f" . + "6e666964656e636518042001280222580a0b4d6573736167655479706512" . + "1c0a184d4553534147455f545950455f554e535045434946494544100012" . + "0e0a0a5452414e5343524950541001121b0a17454e445f4f465f53494e47" . + "4c455f5554544552414e43451002229d010a10496e707574417564696f43" . + "6f6e66696712410a0e617564696f5f656e636f64696e6718012001280e32" . + "292e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e41" . + "7564696f456e636f64696e6712190a1173616d706c655f726174655f6865" . + "72747a18022001280512150a0d6c616e67756167655f636f646518032001" . + "280912140a0c7068726173655f68696e747318042003280922300a095465" . + "7874496e707574120c0a047465787418012001280912150a0d6c616e6775" . + "6167655f636f6465180220012809225e0a0a4576656e74496e707574120c" . + "0a046e616d65180120012809122b0a0a706172616d657465727318022001" . + "280b32172e676f6f676c652e70726f746f6275662e53747275637412150a" . + "0d6c616e67756167655f636f646518032001280922460a1e53656e74696d" . + "656e74416e616c7973697352657175657374436f6e66696712240a1c616e" . + "616c797a655f71756572795f746578745f73656e74696d656e7418012001" . + "2808225e0a1753656e74696d656e74416e616c79736973526573756c7412" . + "430a1471756572795f746578745f73656e74696d656e7418012001280b32" . + "252e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53" . + "656e74696d656e74222d0a0953656e74696d656e74120d0a0573636f7265" . + "18012001280212110a096d61676e69747564651802200128022afb010a0d" . + "417564696f456e636f64696e67121e0a1a415544494f5f454e434f44494e" . + "475f554e5350454349464945441000121c0a18415544494f5f454e434f44" . + "494e475f4c494e4541525f3136100112170a13415544494f5f454e434f44" . + "494e475f464c4143100212180a14415544494f5f454e434f44494e475f4d" . + "554c4157100312160a12415544494f5f454e434f44494e475f414d521004" . + "12190a15415544494f5f454e434f44494e475f414d525f57421005121b0a" . + "17415544494f5f454e434f44494e475f4f47475f4f505553100612290a25" . + "415544494f5f454e434f44494e475f53504545585f574954485f48454144" . + "45525f42595445100732d6020a0853657373696f6e7312b4010a0c446574" . + "656374496e74656e74122f2e676f6f676c652e636c6f75642e6469616c6f" . + "67666c6f772e76322e446574656374496e74656e74526571756573741a30" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4465" . + "74656374496e74656e74526573706f6e7365224182d3e493023b22362f76" . + "322f7b73657373696f6e3d70726f6a656374732f2a2f6167656e742f7365" . + "7373696f6e732f2a7d3a646574656374496e74656e743a012a1292010a15" . + "53747265616d696e67446574656374496e74656e7412382e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e53747265616d696e67" . + "446574656374496e74656e74526571756573741a392e676f6f676c652e63" . + "6c6f75642e6469616c6f67666c6f772e76322e53747265616d696e674465" . + "74656374496e74656e74526573706f6e7365220028013001429b010a1e63" . + "6f6d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e763242" . + "0c53657373696f6e50726f746f50015a44676f6f676c652e676f6c616e67" . + "2e6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f7564" . + "2f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f80101a202" . + "024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c6f772e" . + "5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/SessionEntityType.php b/Dialogflow/metadata/V2/SessionEntityType.php index 7560f404a26b..3a09d118414e 100644 --- a/Dialogflow/metadata/V2/SessionEntityType.php +++ b/Dialogflow/metadata/V2/SessionEntityType.php @@ -15,89 +15,91 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\EntityType::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ab1120a34676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0acc120a34676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f73657373696f6e5f656e746974795f747970652e70726f746f121a67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76321a2c676f6f" . - "676c652f636c6f75642f6469616c6f67666c6f772f76322f656e74697479" . - "5f747970652e70726f746f1a1b676f6f676c652f70726f746f6275662f65" . - "6d7074792e70726f746f1a20676f6f676c652f70726f746f6275662f6669" . - "656c645f6d61736b2e70726f746f22c7020a1153657373696f6e456e7469" . - "747954797065120c0a046e616d65180120012809125e0a14656e74697479" . - "5f6f766572726964655f6d6f646518022001280e32402e676f6f676c652e" . - "636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e74" . - "697479547970652e456e746974794f766572726964654d6f6465123f0a08" . - "656e74697469657318032003280b322d2e676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76322e456e74697479547970652e456e746974" . - "792282010a12456e746974794f766572726964654d6f646512240a20454e" . - "544954595f4f564552524944455f4d4f44455f554e535045434946494544" . - "100012210a1d454e544954595f4f564552524944455f4d4f44455f4f5645" . - "5252494445100112230a1f454e544954595f4f564552524944455f4d4f44" . - "455f535550504c454d454e54100222560a1d4c69737453657373696f6e45" . - "6e74697479547970657352657175657374120e0a06706172656e74180120" . - "01280912110a09706167655f73697a6518022001280512120a0a70616765" . - "5f746f6b656e1803200128092286010a1e4c69737453657373696f6e456e" . - "746974795479706573526573706f6e7365124b0a1473657373696f6e5f65" . - "6e746974795f747970657318012003280b322d2e676f6f676c652e636c6f" . + "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76321a19676f6f" . + "676c652f6170692f7265736f757263652e70726f746f1a2c676f6f676c65" . + "2f636c6f75642f6469616c6f67666c6f772f76322f656e746974795f7479" . + "70652e70726f746f1a1b676f6f676c652f70726f746f6275662f656d7074" . + "792e70726f746f1a20676f6f676c652f70726f746f6275662f6669656c64" . + "5f6d61736b2e70726f746f22c7020a1153657373696f6e456e7469747954" . + "797065120c0a046e616d65180120012809125e0a14656e746974795f6f76" . + "6572726964655f6d6f646518022001280e32402e676f6f676c652e636c6f" . "75642e6469616c6f67666c6f772e76322e53657373696f6e456e74697479" . - "5479706512170a0f6e6578745f706167655f746f6b656e18022001280922" . - "2b0a1b47657453657373696f6e456e746974795479706552657175657374" . - "120c0a046e616d65180120012809227c0a1e43726561746553657373696f" . - "6e456e746974795479706552657175657374120e0a06706172656e741801" . - "20012809124a0a1373657373696f6e5f656e746974795f74797065180220" . - "01280b322d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e" . - "76322e53657373696f6e456e7469747954797065229d010a1e5570646174" . - "6553657373696f6e456e746974795479706552657175657374124a0a1373" . - "657373696f6e5f656e746974795f7479706518012001280b322d2e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e53657373696f" . - "6e456e7469747954797065122f0a0b7570646174655f6d61736b18022001" . - "280b321a2e676f6f676c652e70726f746f6275662e4669656c644d61736b" . - "222e0a1e44656c65746553657373696f6e456e7469747954797065526571" . - "75657374120c0a046e616d651801200128093299080a1253657373696f6e" . - "456e74697479547970657312cd010a164c69737453657373696f6e456e74" . - "697479547970657312392e676f6f676c652e636c6f75642e6469616c6f67" . - "666c6f772e76322e4c69737453657373696f6e456e746974795479706573" . - "526571756573741a3a2e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e4c69737453657373696f6e456e74697479547970657352" . - "6573706f6e7365223c82d3e493023612342f76322f7b706172656e743d70" . - "726f6a656374732f2a2f6167656e742f73657373696f6e732f2a7d2f656e" . - "74697479547970657312bc010a1447657453657373696f6e456e74697479" . - "5479706512372e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . - "2e76322e47657453657373696f6e456e7469747954797065526571756573" . - "741a2d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . - "2e53657373696f6e456e7469747954797065223c82d3e493023612342f76" . - "322f7b6e616d653d70726f6a656374732f2a2f6167656e742f7365737369" . - "6f6e732f2a2f656e7469747954797065732f2a7d12d7010a174372656174" . - "6553657373696f6e456e7469747954797065123a2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e43726561746553657373696f" . - "6e456e7469747954797065526571756573741a2d2e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e746974" . - "7954797065225182d3e493024b22342f76322f7b706172656e743d70726f" . - "6a656374732f2a2f6167656e742f73657373696f6e732f2a7d2f656e7469" . - "747954797065733a1373657373696f6e5f656e746974795f7479706512eb" . - "010a1755706461746553657373696f6e456e7469747954797065123a2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e55706461" . - "746553657373696f6e456e7469747954797065526571756573741a2d2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e53657373" . - "696f6e456e7469747954797065226582d3e493025f32482f76322f7b7365" . - "7373696f6e5f656e746974795f747970652e6e616d653d70726f6a656374" . - "732f2a2f6167656e742f73657373696f6e732f2a2f656e74697479547970" . - "65732f2a7d3a1373657373696f6e5f656e746974795f7479706512ab010a" . - "1744656c65746553657373696f6e456e7469747954797065123a2e676f6f" . - "676c652e636c6f75642e6469616c6f67666c6f772e76322e44656c657465" . - "53657373696f6e456e7469747954797065526571756573741a162e676f6f" . - "676c652e70726f746f6275662e456d707479223c82d3e49302362a342f76" . - "322f7b6e616d653d70726f6a656374732f2a2f6167656e742f7365737369" . - "6f6e732f2a2f656e7469747954797065732f2a7d42a5010a1e636f6d2e67" . - "6f6f676c652e636c6f75642e6469616c6f67666c6f772e76324216536573" . - "73696f6e456e746974795479706550726f746f50015a44676f6f676c652e" . - "676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561706973" . - "2f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f" . - "77f80101a202024446aa021a476f6f676c652e436c6f75642e4469616c6f" . - "67666c6f772e5632620670726f746f33" + "547970652e456e746974794f766572726964654d6f6465123f0a08656e74" . + "697469657318032003280b322d2e676f6f676c652e636c6f75642e646961" . + "6c6f67666c6f772e76322e456e74697479547970652e456e746974792282" . + "010a12456e746974794f766572726964654d6f646512240a20454e544954" . + "595f4f564552524944455f4d4f44455f554e535045434946494544100012" . + "210a1d454e544954595f4f564552524944455f4d4f44455f4f5645525249" . + "4445100112230a1f454e544954595f4f564552524944455f4d4f44455f53" . + "5550504c454d454e54100222560a1d4c69737453657373696f6e456e7469" . + "7479547970657352657175657374120e0a06706172656e74180120012809" . + "12110a09706167655f73697a6518022001280512120a0a706167655f746f" . + "6b656e1803200128092286010a1e4c69737453657373696f6e456e746974" . + "795479706573526573706f6e7365124b0a1473657373696f6e5f656e7469" . + "74795f747970657318012003280b322d2e676f6f676c652e636c6f75642e" . + "6469616c6f67666c6f772e76322e53657373696f6e456e74697479547970" . + "6512170a0f6e6578745f706167655f746f6b656e180220012809222b0a1b" . + "47657453657373696f6e456e746974795479706552657175657374120c0a" . + "046e616d65180120012809227c0a1e43726561746553657373696f6e456e" . + "746974795479706552657175657374120e0a06706172656e741801200128" . + "09124a0a1373657373696f6e5f656e746974795f7479706518022001280b" . + "322d2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e" . + "53657373696f6e456e7469747954797065229d010a1e5570646174655365" . + "7373696f6e456e746974795479706552657175657374124a0a1373657373" . + "696f6e5f656e746974795f7479706518012001280b322d2e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e456e" . + "7469747954797065122f0a0b7570646174655f6d61736b18022001280b32" . + "1a2e676f6f676c652e70726f746f6275662e4669656c644d61736b222e0a" . + "1e44656c65746553657373696f6e456e7469747954797065526571756573" . + "74120c0a046e616d651801200128093299080a1253657373696f6e456e74" . + "697479547970657312cd010a164c69737453657373696f6e456e74697479" . + "547970657312392e676f6f676c652e636c6f75642e6469616c6f67666c6f" . + "772e76322e4c69737453657373696f6e456e746974795479706573526571" . + "756573741a3a2e676f6f676c652e636c6f75642e6469616c6f67666c6f77" . + "2e76322e4c69737453657373696f6e456e74697479547970657352657370" . + "6f6e7365223c82d3e493023612342f76322f7b706172656e743d70726f6a" . + "656374732f2a2f6167656e742f73657373696f6e732f2a7d2f656e746974" . + "79547970657312bc010a1447657453657373696f6e456e74697479547970" . + "6512372e676f6f676c652e636c6f75642e6469616c6f67666c6f772e7632" . + "2e47657453657373696f6e456e7469747954797065526571756573741a2d" . + "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5365" . + "7373696f6e456e7469747954797065223c82d3e493023612342f76322f7b" . + "6e616d653d70726f6a656374732f2a2f6167656e742f73657373696f6e73" . + "2f2a2f656e7469747954797065732f2a7d12d7010a174372656174655365" . + "7373696f6e456e7469747954797065123a2e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e43726561746553657373696f6e456e" . + "7469747954797065526571756573741a2d2e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e76322e53657373696f6e456e746974795479" . + "7065225182d3e493024b22342f76322f7b706172656e743d70726f6a6563" . + "74732f2a2f6167656e742f73657373696f6e732f2a7d2f656e7469747954" . + "797065733a1373657373696f6e5f656e746974795f7479706512eb010a17" . + "55706461746553657373696f6e456e7469747954797065123a2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e55706461746553" . + "657373696f6e456e7469747954797065526571756573741a2d2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e76322e53657373696f6e" . + "456e7469747954797065226582d3e493025f32482f76322f7b7365737369" . + "6f6e5f656e746974795f747970652e6e616d653d70726f6a656374732f2a" . + "2f6167656e742f73657373696f6e732f2a2f656e7469747954797065732f" . + "2a7d3a1373657373696f6e5f656e746974795f7479706512ab010a174465" . + "6c65746553657373696f6e456e7469747954797065123a2e676f6f676c65" . + "2e636c6f75642e6469616c6f67666c6f772e76322e44656c657465536573" . + "73696f6e456e7469747954797065526571756573741a162e676f6f676c65" . + "2e70726f746f6275662e456d707479223c82d3e49302362a342f76322f7b" . + "6e616d653d70726f6a656374732f2a2f6167656e742f73657373696f6e73" . + "2f2a2f656e7469747954797065732f2a7d42a5010a1e636f6d2e676f6f67" . + "6c652e636c6f75642e6469616c6f67666c6f772e7632421653657373696f" . + "6e456e746974795479706550726f746f50015a44676f6f676c652e676f6c" . + "616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f636c" . + "6f75642f6469616c6f67666c6f772f76323b6469616c6f67666c6f77f801" . + "01a202024446aa021a476f6f676c652e436c6f75642e4469616c6f67666c" . + "6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Webhook.php b/Dialogflow/metadata/V2/Webhook.php index 919a7b6d332d..6e9de53b1268 100644 --- a/Dialogflow/metadata/V2/Webhook.php +++ b/Dialogflow/metadata/V2/Webhook.php @@ -14,46 +14,46 @@ public static function initOnce() { if (static::$is_initialized == true) { return; } - \GPBMetadata\Google\Api\Annotations::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Context::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); + \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aef070a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . + "0af4070a28676f6f676c652f636c6f75642f6469616c6f67666c6f772f76" . "322f776562686f6f6b2e70726f746f121a676f6f676c652e636c6f75642e" . - "6469616c6f67666c6f772e76321a28676f6f676c652f636c6f75642f6469" . - "616c6f67666c6f772f76322f636f6e746578742e70726f746f1a27676f6f" . - "676c652f636c6f75642f6469616c6f67666c6f772f76322f696e74656e74" . - "2e70726f746f1a28676f6f676c652f636c6f75642f6469616c6f67666c6f" . - "772f76322f73657373696f6e2e70726f746f1a1c676f6f676c652f70726f" . - "746f6275662f7374727563742e70726f746f22d6010a0e576562686f6f6b" . - "52657175657374120f0a0773657373696f6e18042001280912130a0b7265" . - "73706f6e73655f6964180120012809123d0a0c71756572795f726573756c" . - "7418022001280b32272e676f6f676c652e636c6f75642e6469616c6f6766" . - "6c6f772e76322e5175657279526573756c74125f0a1e6f726967696e616c" . - "5f6465746563745f696e74656e745f7265717565737418032001280b3237" . - "2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4f72" . - "6967696e616c446574656374496e74656e745265717565737422b3020a0f" . - "576562686f6f6b526573706f6e736512180a1066756c66696c6c6d656e74" . - "5f7465787418012001280912480a1466756c66696c6c6d656e745f6d6573" . - "736167657318022003280b322a2e676f6f676c652e636c6f75642e646961" . - "6c6f67666c6f772e76322e496e74656e742e4d657373616765120e0a0673" . - "6f7572636518032001280912280a077061796c6f616418042001280b3217" . - "2e676f6f676c652e70726f746f6275662e537472756374123c0a0f6f7574" . - "7075745f636f6e746578747318052003280b32232e676f6f676c652e636c" . - "6f75642e6469616c6f67666c6f772e76322e436f6e7465787412440a1466" . - "6f6c6c6f7775705f6576656e745f696e70757418062001280b32262e676f" . - "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e4576656e74" . - "496e70757422570a1b4f726967696e616c446574656374496e74656e7452" . - "657175657374120e0a06736f7572636518012001280912280a077061796c" . - "6f616418032001280b32172e676f6f676c652e70726f746f6275662e5374" . - "72756374429b010a1e636f6d2e676f6f676c652e636c6f75642e6469616c" . - "6f67666c6f772e7632420c576562686f6f6b50726f746f50015a44676f6f" . - "676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65" . - "617069732f636c6f75642f6469616c6f67666c6f772f76323b6469616c6f" . - "67666c6f77f80101a202024446aa021a476f6f676c652e436c6f75642e44" . - "69616c6f67666c6f772e5632620670726f746f33" + "6469616c6f67666c6f772e76321a27676f6f676c652f636c6f75642f6469" . + "616c6f67666c6f772f76322f696e74656e742e70726f746f1a28676f6f67" . + "6c652f636c6f75642f6469616c6f67666c6f772f76322f73657373696f6e" . + "2e70726f746f1a1c676f6f676c652f70726f746f6275662f737472756374" . + "2e70726f746f1a1c676f6f676c652f6170692f616e6e6f746174696f6e73" . + "2e70726f746f22d6010a0e576562686f6f6b52657175657374120f0a0773" . + "657373696f6e18042001280912130a0b726573706f6e73655f6964180120" . + "012809123d0a0c71756572795f726573756c7418022001280b32272e676f" . + "6f676c652e636c6f75642e6469616c6f67666c6f772e76322e5175657279" . + "526573756c74125f0a1e6f726967696e616c5f6465746563745f696e7465" . + "6e745f7265717565737418032001280b32372e676f6f676c652e636c6f75" . + "642e6469616c6f67666c6f772e76322e4f726967696e616c446574656374" . + "496e74656e745265717565737422b3020a0f576562686f6f6b526573706f" . + "6e736512180a1066756c66696c6c6d656e745f7465787418012001280912" . + "480a1466756c66696c6c6d656e745f6d6573736167657318022003280b32" . + "2a2e676f6f676c652e636c6f75642e6469616c6f67666c6f772e76322e49" . + "6e74656e742e4d657373616765120e0a06736f7572636518032001280912" . + "280a077061796c6f616418042001280b32172e676f6f676c652e70726f74" . + "6f6275662e537472756374123c0a0f6f75747075745f636f6e7465787473" . + "18052003280b32232e676f6f676c652e636c6f75642e6469616c6f67666c" . + "6f772e76322e436f6e7465787412440a14666f6c6c6f7775705f6576656e" . + "745f696e70757418062001280b32262e676f6f676c652e636c6f75642e64" . + "69616c6f67666c6f772e76322e4576656e74496e70757422680a1b4f7269" . + "67696e616c446574656374496e74656e7452657175657374120e0a06736f" . + "75726365180120012809120f0a0776657273696f6e18022001280912280a" . + "077061796c6f616418032001280b32172e676f6f676c652e70726f746f62" . + "75662e537472756374429b010a1e636f6d2e676f6f676c652e636c6f7564" . + "2e6469616c6f67666c6f772e7632420c576562686f6f6b50726f746f5001" . + "5a44676f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f67" . + "6f6f676c65617069732f636c6f75642f6469616c6f67666c6f772f76323b" . + "6469616c6f67666c6f77f80101a202024446aa021a476f6f676c652e436c" . + "6f75642e4469616c6f67666c6f772e5632620670726f746f33" ), true); static::$is_initialized = true; diff --git a/Dialogflow/src/V2/Agent.php b/Dialogflow/src/V2/Agent.php index ee30df75ab55..984ebae4df53 100644 --- a/Dialogflow/src/V2/Agent.php +++ b/Dialogflow/src/V2/Agent.php @@ -30,9 +30,10 @@ class Agent extends \Google\Protobuf\Internal\Message private $display_name = ''; /** * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * 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; */ @@ -62,7 +63,9 @@ class Agent extends \Google\Protobuf\Internal\Message /** * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. * * Generated from protobuf field string avatar_uri = 7; */ @@ -83,7 +86,7 @@ class Agent extends \Google\Protobuf\Internal\Message * Optional. To filter out false positive results and still get variety in * matched natural language inputs for your agent, you can tune the machine * learning classification threshold. If the returned score value is less than - * the threshold value, then a fallback intent is be triggered or, if there + * the threshold value, then a fallback intent will be triggered or, if there * are no fallback intents defined, no intent will be triggered. The score * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. @@ -105,9 +108,10 @@ class Agent extends \Google\Protobuf\Internal\Message * Required. The name of this agent. * @type string $default_language_code * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. * @type string[]|\Google\Protobuf\Internal\RepeatedField $supported_language_codes * Optional. The list of all languages supported by this agent (except for the * `default_language_code`). @@ -121,7 +125,9 @@ class Agent extends \Google\Protobuf\Internal\Message * @type string $avatar_uri * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. * @type bool $enable_logging * Optional. Determines whether this agent should log conversation queries. * @type int $match_mode @@ -130,7 +136,7 @@ class Agent extends \Google\Protobuf\Internal\Message * Optional. To filter out false positive results and still get variety in * matched natural language inputs for your agent, you can tune the machine * learning classification threshold. If the returned score value is less than - * the threshold value, then a fallback intent is be triggered or, if there + * the threshold value, then a fallback intent will be triggered or, if there * are no fallback intents defined, no intent will be triggered. The score * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. @@ -197,9 +203,10 @@ public function setDisplayName($var) /** * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * 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; * @return string @@ -211,9 +218,10 @@ public function getDefaultLanguageCode() /** * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * 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; * @param string $var @@ -316,7 +324,9 @@ public function setDescription($var) /** * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. * * Generated from protobuf field string avatar_uri = 7; * @return string @@ -329,7 +339,9 @@ public function getAvatarUri() /** * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. * * Generated from protobuf field string avatar_uri = 7; * @param string $var @@ -399,7 +411,7 @@ public function setMatchMode($var) * Optional. To filter out false positive results and still get variety in * matched natural language inputs for your agent, you can tune the machine * learning classification threshold. If the returned score value is less than - * the threshold value, then a fallback intent is be triggered or, if there + * the threshold value, then a fallback intent will be triggered or, if there * are no fallback intents defined, no intent will be triggered. The score * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. @@ -416,7 +428,7 @@ public function getClassificationThreshold() * Optional. To filter out false positive results and still get variety in * matched natural language inputs for your agent, you can tune the machine * learning classification threshold. If the returned score value is less than - * the threshold value, then a fallback intent is be triggered or, if there + * the threshold value, then a fallback intent will be triggered or, if there * are no fallback intents defined, no intent will be triggered. The score * values range from 0.0 (completely uncertain) to 1.0 (completely certain). * If set to 0.0, the default of 0.3 is used. diff --git a/Dialogflow/src/V2/AgentsGrpcClient.php b/Dialogflow/src/V2/AgentsGrpcClient.php index 7b8fe845eea5..e6c06b213e0a 100644 --- a/Dialogflow/src/V2/AgentsGrpcClient.php +++ b/Dialogflow/src/V2/AgentsGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Dialogflow\V2; /** @@ -24,30 +25,29 @@ * in your app, product, or service to determine user intent and respond to the * user in a natural way. * - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * and actions. * * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * * You can save your agent for backup or versioning by exporting the agent by - * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). */ class AgentsGrpcClient extends \Grpc\BaseStub { @@ -97,8 +97,7 @@ public function SearchAgents(\Google\Cloud\Dialogflow\V2\SearchAgentsRequest $ar /** * Trains the specified agent. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\TrainAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -114,9 +113,7 @@ public function TrainAgent(\Google\Cloud\Dialogflow\V2\TrainAgentRequest $argume /** * Exports the specified agent to a ZIP file. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\ExportAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -136,8 +133,7 @@ public function ExportAgent(\Google\Cloud\Dialogflow\V2\ExportAgentRequest $argu * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\ImportAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -156,8 +152,7 @@ public function ImportAgent(\Google\Cloud\Dialogflow\V2\ImportAgentRequest $argu * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\RestoreAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Dialogflow/src/V2/AudioEncoding.php b/Dialogflow/src/V2/AudioEncoding.php index 1329f523f94f..bf6d4467b1f7 100644 --- a/Dialogflow/src/V2/AudioEncoding.php +++ b/Dialogflow/src/V2/AudioEncoding.php @@ -8,7 +8,9 @@ /** * Audio encoding of the audio content sent in the conversational query request. - * Refer to the [Cloud Speech API documentation](/speech/docs/basics) for more + * Refer to the + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for more * details. * * Protobuf type google.cloud.dialogflow.v2.AudioEncoding diff --git a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php index 53932f2d7b12..3bc816bad971 100644 --- a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchCreateEntitiesRequest */ @@ -24,7 +23,7 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The collection of entities to create. + * Required. The entities to create. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; */ @@ -32,9 +31,10 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; */ @@ -50,13 +50,14 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message * Required. The name of the entity type to create entities in. Format: * `projects//agent/entityTypes/`. * @type \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $entities - * Required. The collection of entities to create. + * Required. The entities to create. * @type string $language_code * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * } */ public function __construct($data = NULL) { @@ -93,7 +94,7 @@ public function setParent($var) } /** - * Required. The collection of entities to create. + * Required. The entities to create. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; * @return \Google\Protobuf\Internal\RepeatedField @@ -104,7 +105,7 @@ public function getEntities() } /** - * Required. The collection of entities to create. + * Required. The entities to create. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var @@ -121,9 +122,10 @@ public function setEntities($var) /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @return string @@ -136,9 +138,10 @@ public function getLanguageCode() /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @param string $var diff --git a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php index 8c891a04eb2b..49487dcfd416 100644 --- a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. + * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest */ @@ -34,9 +33,10 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; */ @@ -58,9 +58,10 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * } */ public function __construct($data = NULL) { @@ -129,9 +130,10 @@ public function setEntityValues($var) /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @return string @@ -144,9 +146,10 @@ public function getLanguageCode() /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @param string $var diff --git a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php index b2bdae73ba39..1466e74de9a3 100644 --- a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php +++ b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. + * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest */ diff --git a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php index abd70219aa95..9c881fd6a211 100644 --- a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php +++ b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. + * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteIntentsRequest */ diff --git a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php index e9e19afa6f19..f27c9e7f354d 100644 --- a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php @@ -9,22 +9,21 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest */ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the entity type to update the entities in. Format: - * `projects//agent/entityTypes/`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string parent = 1; */ private $parent = ''; /** - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; */ @@ -32,9 +31,10 @@ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; */ @@ -53,16 +53,17 @@ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The name of the entity type to update the entities in. Format: - * `projects//agent/entityTypes/`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects//agent/entityTypes/`. * @type \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $entities - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. * @type string $language_code * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type \Google\Protobuf\FieldMask $update_mask * Optional. The mask to control which fields get updated. * } @@ -73,8 +74,8 @@ public function __construct($data = NULL) { } /** - * Required. The name of the entity type to update the entities in. Format: - * `projects//agent/entityTypes/`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string parent = 1; * @return string @@ -85,8 +86,8 @@ public function getParent() } /** - * Required. The name of the entity type to update the entities in. Format: - * `projects//agent/entityTypes/`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string parent = 1; * @param string $var @@ -101,7 +102,7 @@ public function setParent($var) } /** - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; * @return \Google\Protobuf\Internal\RepeatedField @@ -112,7 +113,7 @@ public function getEntities() } /** - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var @@ -129,9 +130,10 @@ public function setEntities($var) /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @return string @@ -144,9 +146,10 @@ public function getLanguageCode() /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @param string $var diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php index 484cf52bb503..ad5364a89bcf 100644 --- a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php +++ b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest */ @@ -26,9 +25,10 @@ class BatchUpdateEntityTypesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 4; */ @@ -56,13 +56,14 @@ class BatchUpdateEntityTypesRequest extends \Google\Protobuf\Internal\Message * EntityBatch type) or a JSON object. Note: The URI must start with * "gs://". * @type \Google\Cloud\Dialogflow\V2\EntityTypeBatch $entity_type_batch_inline - * The collection of entity type to update or create. + * The collection of entity types to update or create. * @type string $language_code * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type \Google\Protobuf\FieldMask $update_mask * Optional. The mask to control which fields get updated. * } @@ -133,7 +134,7 @@ public function setEntityTypeBatchUri($var) } /** - * The collection of entity type to update or create. + * The collection of entity types to update or create. * * Generated from protobuf field .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; * @return \Google\Cloud\Dialogflow\V2\EntityTypeBatch @@ -144,7 +145,7 @@ public function getEntityTypeBatchInline() } /** - * The collection of entity type to update or create. + * The collection of entity types to update or create. * * Generated from protobuf field .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; * @param \Google\Cloud\Dialogflow\V2\EntityTypeBatch $var @@ -161,9 +162,10 @@ public function setEntityTypeBatchInline($var) /** * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 4; * @return string @@ -176,9 +178,10 @@ public function getLanguageCode() /** * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 4; * @param string $var diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php b/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php index 0743a4cd4bc2..82bc01b945ad 100644 --- a/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php +++ b/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse */ diff --git a/Dialogflow/src/V2/BatchUpdateIntentsRequest.php b/Dialogflow/src/V2/BatchUpdateIntentsRequest.php index 730f21a96c2e..be00de5762d1 100644 --- a/Dialogflow/src/V2/BatchUpdateIntentsRequest.php +++ b/Dialogflow/src/V2/BatchUpdateIntentsRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateIntentsRequest */ @@ -26,9 +25,10 @@ class BatchUpdateIntentsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 4; */ @@ -65,9 +65,10 @@ class BatchUpdateIntentsRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type \Google\Protobuf\FieldMask $update_mask * Optional. The mask to control which fields get updated. * @type int $intent_view @@ -166,9 +167,10 @@ public function setIntentBatchInline($var) /** * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 4; * @return string @@ -181,9 +183,10 @@ public function getLanguageCode() /** * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 4; * @param string $var diff --git a/Dialogflow/src/V2/BatchUpdateIntentsResponse.php b/Dialogflow/src/V2/BatchUpdateIntentsResponse.php index 4c4efe04c843..340a4b8e9666 100644 --- a/Dialogflow/src/V2/BatchUpdateIntentsResponse.php +++ b/Dialogflow/src/V2/BatchUpdateIntentsResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateIntentsResponse */ diff --git a/Dialogflow/src/V2/Context.php b/Dialogflow/src/V2/Context.php index 15e842729b60..e2053b09a05b 100644 --- a/Dialogflow/src/V2/Context.php +++ b/Dialogflow/src/V2/Context.php @@ -18,6 +18,8 @@ class Context extends \Google\Protobuf\Internal\Message /** * Required. The unique identifier of the context. Format: * `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. * * Generated from protobuf field string name = 1; */ @@ -25,7 +27,7 @@ class Context extends \Google\Protobuf\Internal\Message /** * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * * Generated from protobuf field int32 lifespan_count = 2; @@ -33,8 +35,9 @@ class Context extends \Google\Protobuf\Internal\Message private $lifespan_count = 0; /** * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. * * Generated from protobuf field .google.protobuf.Struct parameters = 3; */ @@ -49,15 +52,18 @@ class Context extends \Google\Protobuf\Internal\Message * @type string $name * Required. The unique identifier of the context. Format: * `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. * @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 - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * @type \Google\Protobuf\Struct $parameters * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. * } */ public function __construct($data = NULL) { @@ -68,6 +74,8 @@ public function __construct($data = NULL) { /** * Required. The unique identifier of the context. Format: * `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. * * Generated from protobuf field string name = 1; * @return string @@ -80,6 +88,8 @@ public function getName() /** * Required. The unique identifier of the context. Format: * `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. * * Generated from protobuf field string name = 1; * @param string $var @@ -96,7 +106,7 @@ public function setName($var) /** * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * * Generated from protobuf field int32 lifespan_count = 2; @@ -110,7 +120,7 @@ public function getLifespanCount() /** * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. * * Generated from protobuf field int32 lifespan_count = 2; @@ -127,8 +137,9 @@ public function setLifespanCount($var) /** * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. * * Generated from protobuf field .google.protobuf.Struct parameters = 3; * @return \Google\Protobuf\Struct @@ -140,8 +151,9 @@ public function getParameters() /** * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. * * Generated from protobuf field .google.protobuf.Struct parameters = 3; * @param \Google\Protobuf\Struct $var diff --git a/Dialogflow/src/V2/ContextsGrpcClient.php b/Dialogflow/src/V2/ContextsGrpcClient.php index c332541f033b..2fcd80900a47 100644 --- a/Dialogflow/src/V2/ContextsGrpcClient.php +++ b/Dialogflow/src/V2/ContextsGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Dialogflow\V2; /** @@ -28,14 +29,15 @@ * * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). */ class ContextsGrpcClient extends \Grpc\BaseStub { @@ -78,6 +80,8 @@ public function GetContext(\Google\Cloud\Dialogflow\V2\GetContextRequest $argume /** * Creates a context. + * + * If the specified context already exists, overrides the context. * @param \Google\Cloud\Dialogflow\V2\CreateContextRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Dialogflow/src/V2/CreateContextRequest.php b/Dialogflow/src/V2/CreateContextRequest.php index 284948cdd54e..e8060b94cbbb 100644 --- a/Dialogflow/src/V2/CreateContextRequest.php +++ b/Dialogflow/src/V2/CreateContextRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. + * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateContextRequest */ diff --git a/Dialogflow/src/V2/CreateEntityTypeRequest.php b/Dialogflow/src/V2/CreateEntityTypeRequest.php index e9653b9592dd..33ee872d9e32 100644 --- a/Dialogflow/src/V2/CreateEntityTypeRequest.php +++ b/Dialogflow/src/V2/CreateEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. + * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateEntityTypeRequest */ @@ -32,9 +31,10 @@ class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; */ @@ -54,9 +54,10 @@ class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * } */ public function __construct($data = NULL) { @@ -121,9 +122,10 @@ public function setEntityType($var) /** * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @return string @@ -136,9 +138,10 @@ public function getLanguageCode() /** * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @param string $var diff --git a/Dialogflow/src/V2/CreateIntentRequest.php b/Dialogflow/src/V2/CreateIntentRequest.php index 6d39a31bc8f3..d651155947aa 100644 --- a/Dialogflow/src/V2/CreateIntentRequest.php +++ b/Dialogflow/src/V2/CreateIntentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. + * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateIntentRequest */ @@ -32,9 +31,10 @@ class CreateIntentRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; */ @@ -60,9 +60,10 @@ class CreateIntentRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $intent_view * Optional. The resource view to apply to the returned intent. * } @@ -129,9 +130,10 @@ public function setIntent($var) /** * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @return string @@ -144,9 +146,10 @@ public function getLanguageCode() /** * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 3; * @param string $var diff --git a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php index 2b22b63bcaf4..99f803bacf08 100644 --- a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. + * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/DeleteAllContextsRequest.php b/Dialogflow/src/V2/DeleteAllContextsRequest.php index be679cc387ba..2a898129542c 100644 --- a/Dialogflow/src/V2/DeleteAllContextsRequest.php +++ b/Dialogflow/src/V2/DeleteAllContextsRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. + * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteAllContextsRequest */ diff --git a/Dialogflow/src/V2/DeleteContextRequest.php b/Dialogflow/src/V2/DeleteContextRequest.php index 0b0f6e30f523..84d417c6edb2 100644 --- a/Dialogflow/src/V2/DeleteContextRequest.php +++ b/Dialogflow/src/V2/DeleteContextRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. + * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteContextRequest */ diff --git a/Dialogflow/src/V2/DeleteEntityTypeRequest.php b/Dialogflow/src/V2/DeleteEntityTypeRequest.php index e4d26de18464..d13868e37029 100644 --- a/Dialogflow/src/V2/DeleteEntityTypeRequest.php +++ b/Dialogflow/src/V2/DeleteEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. + * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteEntityTypeRequest */ diff --git a/Dialogflow/src/V2/DeleteIntentRequest.php b/Dialogflow/src/V2/DeleteIntentRequest.php index c212ae8f69e7..b6a8a91351fd 100644 --- a/Dialogflow/src/V2/DeleteIntentRequest.php +++ b/Dialogflow/src/V2/DeleteIntentRequest.php @@ -9,15 +9,15 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. + * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteIntentRequest */ class DeleteIntentRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * * Generated from protobuf field string name = 1; @@ -31,7 +31,8 @@ class DeleteIntentRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * } */ @@ -41,7 +42,8 @@ public function __construct($data = NULL) { } /** - * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * * Generated from protobuf field string name = 1; @@ -53,7 +55,8 @@ public function getName() } /** - * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * * Generated from protobuf field string name = 1; diff --git a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php index c354fe4a7d55..3bfd39891e72 100644 --- a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. + * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/DetectIntentRequest.php b/Dialogflow/src/V2/DetectIntentRequest.php index dd603f037ac1..5b652874d74c 100644 --- a/Dialogflow/src/V2/DetectIntentRequest.php +++ b/Dialogflow/src/V2/DetectIntentRequest.php @@ -41,6 +41,14 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3; */ private $query_input = null; + /** + * Optional. Instructs the speech synthesizer how to generate the output + * 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; + */ + private $output_audio_config = null; /** * Optional. The natural language speech audio to be processed. This field * should be populated iff `query_input` is set to an input audio config. @@ -70,6 +78,10 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * which instructs the speech recognizer how to process the speech audio, * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. + * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. * @type string $input_audio * Optional. The natural language speech audio to be processed. This field * should be populated iff `query_input` is set to an input audio config. @@ -175,6 +187,36 @@ public function setQueryInput($var) return $this; } + /** + * Optional. Instructs the speech synthesizer how to generate the output + * 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; + * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig + */ + public function getOutputAudioConfig() + { + return $this->output_audio_config; + } + + /** + * Optional. Instructs the speech synthesizer how to generate the output + * 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; + * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var + * @return $this + */ + public function setOutputAudioConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class); + $this->output_audio_config = $var; + + return $this; + } + /** * Optional. The natural language speech audio to be processed. This field * should be populated iff `query_input` is set to an input audio config. diff --git a/Dialogflow/src/V2/DetectIntentResponse.php b/Dialogflow/src/V2/DetectIntentResponse.php index 7953fda9bf57..25d65c7270d6 100644 --- a/Dialogflow/src/V2/DetectIntentResponse.php +++ b/Dialogflow/src/V2/DetectIntentResponse.php @@ -23,18 +23,35 @@ class DetectIntentResponse extends \Google\Protobuf\Internal\Message */ private $response_id = ''; /** - * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. * * Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2; */ private $query_result = null; /** - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. * * Generated from protobuf field .google.rpc.Status webhook_status = 3; */ private $webhook_status = null; + /** + * The audio data bytes encoded as specified in the request. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + * + * Generated from protobuf field bytes output_audio = 4; + */ + private $output_audio = ''; + /** + * The config used by the speech synthesizer to generate the output audio. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; + */ + private $output_audio_config = null; /** * Constructor. @@ -46,10 +63,19 @@ class DetectIntentResponse extends \Google\Protobuf\Internal\Message * The unique identifier of the response. It can be used to * locate a response in the training example set or for reporting issues. * @type \Google\Cloud\Dialogflow\V2\QueryResult $query_result - * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. * @type \Google\Rpc\Status $webhook_status - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. + * @type string $output_audio + * The audio data bytes encoded as specified in the request. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config + * The config used by the speech synthesizer to generate the output audio. * } */ public function __construct($data = NULL) { @@ -86,7 +112,8 @@ public function setResponseId($var) } /** - * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. * * Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2; * @return \Google\Cloud\Dialogflow\V2\QueryResult @@ -97,7 +124,8 @@ public function getQueryResult() } /** - * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. * * Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2; * @param \Google\Cloud\Dialogflow\V2\QueryResult $var @@ -112,8 +140,7 @@ public function setQueryResult($var) } /** - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. * * Generated from protobuf field .google.rpc.Status webhook_status = 3; * @return \Google\Rpc\Status @@ -124,8 +151,7 @@ public function getWebhookStatus() } /** - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. * * Generated from protobuf field .google.rpc.Status webhook_status = 3; * @param \Google\Rpc\Status $var @@ -139,5 +165,67 @@ public function setWebhookStatus($var) return $this; } + /** + * The audio data bytes encoded as specified in the request. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + * + * Generated from protobuf field bytes output_audio = 4; + * @return string + */ + public function getOutputAudio() + { + return $this->output_audio; + } + + /** + * The audio data bytes encoded as specified in the request. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + * + * Generated from protobuf field bytes output_audio = 4; + * @param string $var + * @return $this + */ + public function setOutputAudio($var) + { + GPBUtil::checkString($var, False); + $this->output_audio = $var; + + return $this; + } + + /** + * The config used by the speech synthesizer to generate the output audio. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; + * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig + */ + public function getOutputAudioConfig() + { + return $this->output_audio_config; + } + + /** + * The config used by the speech synthesizer to generate the output audio. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; + * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var + * @return $this + */ + public function setOutputAudioConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class); + $this->output_audio_config = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/EntityType.php b/Dialogflow/src/V2/EntityType.php index da4283b2f61a..7ac7ffad017a 100644 --- a/Dialogflow/src/V2/EntityType.php +++ b/Dialogflow/src/V2/EntityType.php @@ -18,16 +18,16 @@ class EntityType extends \Google\Protobuf\Internal\Message { /** - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects//agent/entityTypes/`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string name = 1; */ private $name = ''; /** - * Required. The name of the entity. + * Required. The name of the entity type. * * Generated from protobuf field string display_name = 2; */ @@ -46,7 +46,7 @@ class EntityType extends \Google\Protobuf\Internal\Message */ private $auto_expansion_mode = 0; /** - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6; */ @@ -59,19 +59,19 @@ class EntityType extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects//agent/entityTypes/`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects//agent/entityTypes/`. * @type string $display_name - * Required. The name of the entity. + * Required. The name of the entity type. * @type int $kind * Required. Indicates the kind of entity type. * @type int $auto_expansion_mode * Optional. Indicates whether the entity type can be automatically * expanded. * @type \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $entities - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. * } */ public function __construct($data = NULL) { @@ -80,10 +80,10 @@ public function __construct($data = NULL) { } /** - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects//agent/entityTypes/`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string name = 1; * @return string @@ -94,10 +94,10 @@ public function getName() } /** - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects//agent/entityTypes/`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string name = 1; * @param string $var @@ -112,7 +112,7 @@ public function setName($var) } /** - * Required. The name of the entity. + * Required. The name of the entity type. * * Generated from protobuf field string display_name = 2; * @return string @@ -123,7 +123,7 @@ public function getDisplayName() } /** - * Required. The name of the entity. + * Required. The name of the entity type. * * Generated from protobuf field string display_name = 2; * @param string $var @@ -192,7 +192,7 @@ public function setAutoExpansionMode($var) } /** - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6; * @return \Google\Protobuf\Internal\RepeatedField @@ -203,7 +203,7 @@ public function getEntities() } /** - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6; * @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Dialogflow/src/V2/EntityType/Entity.php b/Dialogflow/src/V2/EntityType/Entity.php index e3fe67125532..1f052ae03390 100644 --- a/Dialogflow/src/V2/EntityType/Entity.php +++ b/Dialogflow/src/V2/EntityType/Entity.php @@ -9,26 +9,31 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Optional. Represents an entity. + * An **entity entry** for an associated entity type. * * Generated from protobuf message google.cloud.dialogflow.v2.EntityType.Entity */ class Entity extends \Google\Protobuf\Internal\Message { /** - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical 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). + * * A string that can contain references to other entity types (with or + * without aliases). * * Generated from protobuf field string value = 1; */ private $value = ''; /** - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. * * Generated from protobuf field repeated string synonyms = 2; */ @@ -41,15 +46,20 @@ class Entity extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $value - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical 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). + * * A string that can contain references to other entity types (with or + * without aliases). * @type string[]|\Google\Protobuf\Internal\RepeatedField $synonyms - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. * } */ public function __construct($data = NULL) { @@ -58,12 +68,14 @@ public function __construct($data = NULL) { } /** - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical 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). + * * A string that can contain references to other entity types (with or + * without aliases). * * Generated from protobuf field string value = 1; * @return string @@ -74,12 +86,14 @@ public function getValue() } /** - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical 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). + * * A string that can contain references to other entity types (with or + * without aliases). * * Generated from protobuf field string value = 1; * @param string $var @@ -94,8 +108,11 @@ public function setValue($var) } /** - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. * * Generated from protobuf field repeated string synonyms = 2; * @return \Google\Protobuf\Internal\RepeatedField @@ -106,8 +123,11 @@ public function getSynonyms() } /** - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. * * Generated from protobuf field repeated string synonyms = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Dialogflow/src/V2/EntityTypesGrpcClient.php b/Dialogflow/src/V2/EntityTypesGrpcClient.php index 7682867019cd..18013a1573c9 100644 --- a/Dialogflow/src/V2/EntityTypesGrpcClient.php +++ b/Dialogflow/src/V2/EntityTypesGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Dialogflow\V2; /** @@ -42,11 +43,11 @@ * * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). */ class EntityTypesGrpcClient extends \Grpc\BaseStub { @@ -132,9 +133,7 @@ public function DeleteEntityType(\Google\Cloud\Dialogflow\V2\DeleteEntityTypeReq /** * Updates/Creates multiple entity types in the specified agent. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\BatchUpdateEntityTypesRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -150,8 +149,7 @@ public function BatchUpdateEntityTypes(\Google\Cloud\Dialogflow\V2\BatchUpdateEn /** * Deletes entity types in the specified agent. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\BatchDeleteEntityTypesRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -165,8 +163,7 @@ public function BatchDeleteEntityTypes(\Google\Cloud\Dialogflow\V2\BatchDeleteEn } /** - * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * * Operation * @param \Google\Cloud\Dialogflow\V2\BatchCreateEntitiesRequest $argument input argument @@ -182,11 +179,11 @@ public function BatchCreateEntities(\Google\Cloud\Dialogflow\V2\BatchCreateEntit } /** - * Updates entities in the specified entity type (replaces the existing - * collection of entries). + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\BatchUpdateEntitiesRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -202,8 +199,7 @@ public function BatchUpdateEntities(\Google\Cloud\Dialogflow\V2\BatchUpdateEntit /** * Deletes entities in the specified entity type. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\BatchDeleteEntitiesRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Dialogflow/src/V2/EventInput.php b/Dialogflow/src/V2/EventInput.php index d76a8b70909f..79f573262d55 100644 --- a/Dialogflow/src/V2/EventInput.php +++ b/Dialogflow/src/V2/EventInput.php @@ -10,10 +10,10 @@ /** * Events allow for matching intents by event name instead of the natural - * language input. For instance, input `` can trigger a personalized welcome response. + * language input. For instance, input `` can trigger a personalized welcome response. * The parameter `name` may be used by the agent in the response: - * `“Hello #welcome_event.name! What can I do for you today?”`. + * `"Hello #welcome_event.name! What can I do for you today?"`. * * Generated from protobuf message google.cloud.dialogflow.v2.EventInput */ @@ -33,9 +33,9 @@ class EventInput extends \Google\Protobuf\Internal\Message private $parameters = null; /** * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 3; */ @@ -53,9 +53,9 @@ class EventInput extends \Google\Protobuf\Internal\Message * Optional. The collection of parameters associated with the event. * @type string $language_code * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * } */ public function __construct($data = NULL) { @@ -117,9 +117,9 @@ public function setParameters($var) /** * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 3; * @return string @@ -131,9 +131,9 @@ public function getLanguageCode() /** * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 3; * @param string $var diff --git a/Dialogflow/src/V2/ExportAgentRequest.php b/Dialogflow/src/V2/ExportAgentRequest.php index 28b239c58280..d701e39bc77d 100644 --- a/Dialogflow/src/V2/ExportAgentRequest.php +++ b/Dialogflow/src/V2/ExportAgentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.ExportAgentRequest */ @@ -24,9 +23,11 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. 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; */ @@ -42,9 +43,11 @@ 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 URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. 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. * } */ public function __construct($data = NULL) { @@ -81,9 +84,11 @@ public function setParent($var) } /** - * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. 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; * @return string @@ -94,9 +99,11 @@ public function getAgentUri() } /** - * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. 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; * @param string $var diff --git a/Dialogflow/src/V2/ExportAgentResponse.php b/Dialogflow/src/V2/ExportAgentResponse.php index 4a118b99b17e..4874ae952fbf 100644 --- a/Dialogflow/src/V2/ExportAgentResponse.php +++ b/Dialogflow/src/V2/ExportAgentResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.ExportAgentResponse */ @@ -30,16 +29,17 @@ class ExportAgentResponse extends \Google\Protobuf\Internal\Message * @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//agent:export'\ + *
curl \
+     *             'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
      *             -X POST \
-     *             -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *             -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 > 
+     *           | base64 --decode > <agent zip file>
* } */ public function __construct($data = NULL) { @@ -78,16 +78,17 @@ 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//agent:export'\ + *
curl \
+     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
      *   -X POST \
-     *   -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *   -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 > 
+     * | base64 --decode > <agent zip file>
* * Generated from protobuf field bytes agent_content = 2; * @return string @@ -100,16 +101,17 @@ 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//agent:export'\ + *
curl \
+     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
      *   -X POST \
-     *   -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *   -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 > 
+     * | base64 --decode > <agent zip file>
* * 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 fa04739768a7..0afd58e1a6ea 100644 --- a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php @@ -47,7 +47,6 @@ use Google\Cloud\Dialogflow\V2\SearchAgentsResponse; use Google\Cloud\Dialogflow\V2\TrainAgentRequest; use Google\LongRunning\Operation; -use Google\Protobuf\Struct; /** * Service Description: Agents are best described as Natural Language Understanding (NLU) modules @@ -55,30 +54,29 @@ * in your app, product, or service to determine user intent and respond to the * user in a natural way. * - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * and actions. * * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * * You can save your agent for backup or versioning by exporting the agent by - * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -129,6 +127,7 @@ class AgentsGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $projectNameTemplate; private static $pathTemplateMap; @@ -466,8 +465,7 @@ public function searchAgents($parent, array $optionalArgs = []) /** * Trains the specified agent. * - * Operation + * Operation * * Sample code: * ``` @@ -546,9 +544,7 @@ public function trainAgent($parent, array $optionalArgs = []) /** * Exports the specified agent to a ZIP file. * - * Operation + * Operation * * Sample code: * ``` @@ -595,9 +591,11 @@ public function trainAgent($parent, array $optionalArgs = []) * Optional. * * @type string $agentUri - * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. 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. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -640,8 +638,7 @@ public function exportAgent($parent, array $optionalArgs = []) * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. * - * Operation + * Operation * * Sample code: * ``` @@ -692,17 +689,17 @@ public function exportAgent($parent, array $optionalArgs = []) * The agent to import. * * Example for how to import an agent via the command line: - * - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects//agent:import\ + *
curl \
+     *            'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
      *             -X POST \
-     *             -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *             -H 'Authorization: Bearer '$(gcloud auth application-default
+     *             print-access-token) \
      *             -H 'Accept: application/json' \
      *             -H 'Content-Type: application/json' \
      *             --compressed \
      *             --data-binary "{
-     *                'agentContent': '$(cat  | base64 -w 0)'
-     *             }"
+     *                'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *             }"
* @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -747,8 +744,7 @@ public function importAgent($parent, array $optionalArgs = []) * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. * - * Operation + * Operation * * Sample code: * ``` @@ -799,17 +795,17 @@ public function importAgent($parent, array $optionalArgs = []) * The agent to restore. * * Example for how to restore an agent via the command line: - * - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects//agent:restore\ + *
curl \
+     *            'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
      *             -X POST \
-     *             -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *             -H 'Authorization: Bearer '$(gcloud auth application-default
+     *             print-access-token) \
      *             -H 'Accept: application/json' \
      *             -H 'Content-Type: application/json' \
      *             --compressed \
      *             --data-binary "{
-     *                 'agentContent': '$(cat  | base64 -w 0)'
-     *             }" \
+     *                 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *             }"
* @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/ContextsGapicClient.php b/Dialogflow/src/V2/Gapic/ContextsGapicClient.php index 3681b07c8806..ee7d53ccb42f 100644 --- a/Dialogflow/src/V2/Gapic/ContextsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ContextsGapicClient.php @@ -56,14 +56,15 @@ * * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -129,6 +130,7 @@ class ContextsGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $sessionNameTemplate; private static $contextNameTemplate; @@ -456,6 +458,8 @@ public function getContext($name, array $optionalArgs = []) /** * Creates a context. * + * If the specified context already exists, overrides the context. + * * Sample code: * ``` * $contextsClient = new ContextsClient(); diff --git a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php index 01f375ae744f..2eafba3d7f6a 100644 --- a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php @@ -55,7 +55,6 @@ use Google\LongRunning\Operation; use Google\Protobuf\FieldMask; use Google\Protobuf\GPBEmpty; -use Google\Protobuf\Struct; /** * Service Description: Entities are extracted from user input and represent parameters that are @@ -81,11 +80,11 @@ * * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -151,6 +150,7 @@ class EntityTypesGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $projectAgentNameTemplate; private static $entityTypeNameTemplate; @@ -414,9 +414,10 @@ public function __construct(array $options = []) * @type string $languageCode * Optional. The language to list entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $pageSize * The maximum number of resources contained in the underlying API * response. The API may return fewer values in a page, even if @@ -489,9 +490,10 @@ public function listEntityTypes($parent, array $optionalArgs = []) * @type string $languageCode * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -551,9 +553,10 @@ public function getEntityType($name, array $optionalArgs = []) * @type string $languageCode * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -605,16 +608,16 @@ public function createEntityType($parent, $entityType, array $optionalArgs = []) * ``` * * @param EntityType $entityType Required. The entity type to update. - * Format: `projects//agent/entityTypes/`. * @param array $optionalArgs { * Optional. * * @type string $languageCode * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type FieldMask $updateMask * Optional. The mask to control which fields get updated. * @type RetrySettings|array $retrySettings @@ -707,9 +710,7 @@ public function deleteEntityType($name, array $optionalArgs = []) /** * Updates/Creates multiple entity types in the specified agent. * - * Operation + * Operation * * Sample code: * ``` @@ -761,13 +762,14 @@ public function deleteEntityType($name, array $optionalArgs = []) * EntityBatch type) or a JSON object. Note: The URI must start with * "gs://". * @type EntityTypeBatch $entityTypeBatchInline - * The collection of entity type to update or create. + * The collection of entity types to update or create. * @type string $languageCode * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type FieldMask $updateMask * Optional. The mask to control which fields get updated. * @type RetrySettings|array $retrySettings @@ -817,8 +819,7 @@ public function batchUpdateEntityTypes($parent, array $optionalArgs = []) /** * Deletes entity types in the specified agent. * - * Operation + * Operation * * Sample code: * ``` @@ -899,8 +900,7 @@ public function batchDeleteEntityTypes($parent, $entityTypeNames, array $optiona } /** - * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * * Operation * @@ -944,16 +944,17 @@ public function batchDeleteEntityTypes($parent, $entityTypeNames, array $optiona * * @param string $parent Required. The name of the entity type to create entities in. Format: * `projects//agent/entityTypes/`. - * @param Entity[] $entities Required. The collection of entities to create. + * @param Entity[] $entities Required. The entities to create. * @param array $optionalArgs { * Optional. * * @type string $languageCode * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -991,11 +992,11 @@ public function batchCreateEntities($parent, $entities, array $optionalArgs = [] } /** - * Updates entities in the specified entity type (replaces the existing - * collection of entries). + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. * - * Operation + * Operation * * Sample code: * ``` @@ -1035,18 +1036,19 @@ public function batchCreateEntities($parent, $entities, array $optionalArgs = [] * } * ``` * - * @param string $parent Required. The name of the entity type to update the entities in. Format: - * `projects//agent/entityTypes/`. - * @param Entity[] $entities Required. The collection of new entities to replace the existing entities. + * @param string $parent Required. The name of the entity type to update or create entities in. + * Format: `projects//agent/entityTypes/`. + * @param Entity[] $entities Required. The entities to update or create. * @param array $optionalArgs { * Optional. * * @type string $languageCode * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type FieldMask $updateMask * Optional. The mask to control which fields get updated. * @type RetrySettings|array $retrySettings @@ -1091,8 +1093,7 @@ public function batchUpdateEntities($parent, $entities, array $optionalArgs = [] /** * Deletes entities in the specified entity type. * - * Operation + * Operation * * Sample code: * ``` @@ -1143,9 +1144,10 @@ public function batchUpdateEntities($parent, $entities, array $optionalArgs = [] * @type string $languageCode * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @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/IntentsGapicClient.php b/Dialogflow/src/V2/Gapic/IntentsGapicClient.php index a37724d706b3..dff7fbbdc274 100644 --- a/Dialogflow/src/V2/Gapic/IntentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/IntentsGapicClient.php @@ -57,10 +57,10 @@ * Service Description: An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. @@ -68,7 +68,7 @@ * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -84,7 +84,8 @@ * Dialogflow API agent to better match intents. * * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -150,6 +151,7 @@ class IntentsGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $projectAgentNameTemplate; private static $intentNameTemplate; @@ -443,9 +445,10 @@ public function __construct(array $options = []) * @type string $languageCode * Optional. The language to list training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $intentView * Optional. The resource view to apply to the returned intent. * For allowed values, use constants defined on {@see \Google\Cloud\Dialogflow\V2\IntentView} @@ -524,9 +527,10 @@ public function listIntents($parent, array $optionalArgs = []) * @type string $languageCode * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $intentView * Optional. The resource view to apply to the returned intent. * For allowed values, use constants defined on {@see \Google\Cloud\Dialogflow\V2\IntentView} @@ -592,9 +596,10 @@ public function getIntent($name, array $optionalArgs = []) * @type string $languageCode * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $intentView * Optional. The resource view to apply to the returned intent. * For allowed values, use constants defined on {@see \Google\Cloud\Dialogflow\V2\IntentView} @@ -653,12 +658,12 @@ public function createIntent($parent, $intent, array $optionalArgs = []) * ``` * * @param Intent $intent Required. The intent to update. - * Format: `projects//agent/intents/`. * @param string $languageCode Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @param array $optionalArgs { * Optional. * @@ -707,7 +712,7 @@ public function updateIntent($intent, $languageCode, array $optionalArgs = []) } /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * * Sample code: * ``` @@ -720,7 +725,8 @@ public function updateIntent($intent, $languageCode, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The name of the intent to delete. + * @param string $name Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects//agent/intents/`. * @param array $optionalArgs { * Optional. @@ -758,8 +764,7 @@ public function deleteIntent($name, array $optionalArgs = []) /** * Updates/Creates multiple intents in the specified agent. * - * Operation + * Operation * * Sample code: * ``` @@ -805,9 +810,10 @@ public function deleteIntent($name, array $optionalArgs = []) * Format: `projects//agent`. * @param string $languageCode Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @param array $optionalArgs { * Optional. * diff --git a/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php index d5965e7f8980..6dc0ccb27769 100644 --- a/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php @@ -57,7 +57,8 @@ * entity type at the session level. * * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -123,6 +124,7 @@ class SessionEntityTypesGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $sessionNameTemplate; private static $sessionEntityTypeNameTemplate; @@ -451,6 +453,9 @@ public function getSessionEntityType($name, array $optionalArgs = []) /** * Creates a session entity type. * + * If the specified session entity type already exists, overrides the session + * entity type. + * * Sample code: * ``` * $sessionEntityTypesClient = new SessionEntityTypesClient(); diff --git a/Dialogflow/src/V2/Gapic/SessionsGapicClient.php b/Dialogflow/src/V2/Gapic/SessionsGapicClient.php index 4e34e0e69bbf..0d507d39fe58 100644 --- a/Dialogflow/src/V2/Gapic/SessionsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/SessionsGapicClient.php @@ -38,6 +38,7 @@ use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Dialogflow\V2\DetectIntentRequest; use Google\Cloud\Dialogflow\V2\DetectIntentResponse; +use Google\Cloud\Dialogflow\V2\OutputAudioConfig; use Google\Cloud\Dialogflow\V2\QueryInput; use Google\Cloud\Dialogflow\V2\QueryParameters; use Google\Cloud\Dialogflow\V2\StreamingDetectIntentRequest; @@ -45,10 +46,9 @@ /** * Service Description: A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -100,6 +100,7 @@ class SessionsGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $sessionNameTemplate; private static $pathTemplateMap; @@ -296,6 +297,10 @@ public function __construct(array $options = []) * * @type QueryParameters $queryParams * Optional. The parameters of this query. + * @type OutputAudioConfig $outputAudioConfig + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. * @type string $inputAudio * Optional. The natural language speech audio to be processed. This field * should be populated iff `query_input` is set to an input audio config. @@ -320,6 +325,9 @@ public function detectIntent($session, $queryInput, array $optionalArgs = []) if (isset($optionalArgs['queryParams'])) { $request->setQueryParams($optionalArgs['queryParams']); } + if (isset($optionalArgs['outputAudioConfig'])) { + $request->setOutputAudioConfig($optionalArgs['outputAudioConfig']); + } if (isset($optionalArgs['inputAudio'])) { $request->setInputAudio($optionalArgs['inputAudio']); } diff --git a/Dialogflow/src/V2/GetAgentRequest.php b/Dialogflow/src/V2/GetAgentRequest.php index 0f3c3cd087e1..2cdc69a285c0 100644 --- a/Dialogflow/src/V2/GetAgentRequest.php +++ b/Dialogflow/src/V2/GetAgentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. + * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetAgentRequest */ diff --git a/Dialogflow/src/V2/GetContextRequest.php b/Dialogflow/src/V2/GetContextRequest.php index 41150071fc7e..f66d1d9d84a6 100644 --- a/Dialogflow/src/V2/GetContextRequest.php +++ b/Dialogflow/src/V2/GetContextRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. + * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetContextRequest */ diff --git a/Dialogflow/src/V2/GetEntityTypeRequest.php b/Dialogflow/src/V2/GetEntityTypeRequest.php index d40f1f069e14..d9fb090b3787 100644 --- a/Dialogflow/src/V2/GetEntityTypeRequest.php +++ b/Dialogflow/src/V2/GetEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. + * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetEntityTypeRequest */ @@ -26,9 +25,10 @@ class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; */ @@ -46,9 +46,10 @@ class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * } */ public function __construct($data = NULL) { @@ -87,9 +88,10 @@ public function setName($var) /** * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @return string @@ -102,9 +104,10 @@ public function getLanguageCode() /** * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/GetIntentRequest.php b/Dialogflow/src/V2/GetIntentRequest.php index 3b728d86aa4a..789631f1f4d2 100644 --- a/Dialogflow/src/V2/GetIntentRequest.php +++ b/Dialogflow/src/V2/GetIntentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. + * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetIntentRequest */ @@ -26,9 +25,10 @@ class GetIntentRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; */ @@ -52,9 +52,10 @@ class GetIntentRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $intent_view * Optional. The resource view to apply to the returned intent. * } @@ -95,9 +96,10 @@ public function setName($var) /** * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @return string @@ -110,9 +112,10 @@ public function getLanguageCode() /** * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php index 0e5a7ec3a27f..eac518242105 100644 --- a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. + * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/ImportAgentRequest.php b/Dialogflow/src/V2/ImportAgentRequest.php index c0d0523236ad..49daa7d32b38 100644 --- a/Dialogflow/src/V2/ImportAgentRequest.php +++ b/Dialogflow/src/V2/ImportAgentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. + * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportAgentRequest */ @@ -40,16 +39,17 @@ class ImportAgentRequest extends \Google\Protobuf\Internal\Message * @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//agent:import\ + *
curl \
+     *             'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
      *              -X POST \
-     *              -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *              -H 'Authorization: Bearer '$(gcloud auth application-default
+     *              print-access-token) \
      *              -H 'Accept: application/json' \
      *              -H 'Content-Type: application/json' \
      *              --compressed \
      *              --data-binary "{
-     *                 'agentContent': '$(cat  | base64 -w 0)'
-     *              }"
+     *                 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *              }"
* } */ public function __construct($data = NULL) { @@ -116,16 +116,17 @@ 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//agent:import\ + *
curl \
+     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
      *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *    -H 'Authorization: Bearer '$(gcloud auth application-default
+     *    print-access-token) \
      *    -H 'Accept: application/json' \
      *    -H 'Content-Type: application/json' \
      *    --compressed \
      *    --data-binary "{
-     *       'agentContent': '$(cat  | base64 -w 0)'
-     *    }"
+     *       'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *    }"
* * Generated from protobuf field bytes agent_content = 3; * @return string @@ -138,16 +139,17 @@ 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//agent:import\ + *
curl \
+     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
      *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *    -H 'Authorization: Bearer '$(gcloud auth application-default
+     *    print-access-token) \
      *    -H 'Accept: application/json' \
      *    -H 'Content-Type: application/json' \
      *    --compressed \
      *    --data-binary "{
-     *       'agentContent': '$(cat  | base64 -w 0)'
-     *    }"
+     *       'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *    }"
* * 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 865a88940fb2..b1fc08f607e2 100644 --- a/Dialogflow/src/V2/InputAudioConfig.php +++ b/Dialogflow/src/V2/InputAudioConfig.php @@ -23,8 +23,10 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message private $audio_encoding = 0; /** * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. * * Generated from protobuf field int32 sample_rate_hertz = 2; */ @@ -32,9 +34,9 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message /** * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 3; */ @@ -42,7 +44,9 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message /** * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. * * Generated from protobuf field repeated string phrase_hints = 4; @@ -59,18 +63,22 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message * Required. Audio encoding of the audio content to process. * @type int $sample_rate_hertz * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. * @type string $language_code * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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 string[]|\Google\Protobuf\Internal\RepeatedField $phrase_hints * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. * } */ @@ -107,8 +115,10 @@ public function setAudioEncoding($var) /** * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. * * Generated from protobuf field int32 sample_rate_hertz = 2; * @return int @@ -120,8 +130,10 @@ public function getSampleRateHertz() /** * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. * * Generated from protobuf field int32 sample_rate_hertz = 2; * @param int $var @@ -138,9 +150,9 @@ public function setSampleRateHertz($var) /** * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 3; * @return string @@ -153,9 +165,9 @@ public function getLanguageCode() /** * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 3; * @param string $var @@ -172,7 +184,9 @@ public function setLanguageCode($var) /** * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. * * Generated from protobuf field repeated string phrase_hints = 4; @@ -186,7 +200,9 @@ public function getPhraseHints() /** * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. * * Generated from protobuf field repeated string phrase_hints = 4; diff --git a/Dialogflow/src/V2/Intent.php b/Dialogflow/src/V2/Intent.php index 8acceb68717c..a48f5db7a543 100644 --- a/Dialogflow/src/V2/Intent.php +++ b/Dialogflow/src/V2/Intent.php @@ -18,9 +18,9 @@ class Intent extends \Google\Protobuf\Internal\Message { /** - * Required for all methods except `create` (`create` populates the name - * automatically. * The unique identifier of this intent. + * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * methods. * Format: `projects//agent/intents/`. * * Generated from protobuf field string name = 1; @@ -33,14 +33,16 @@ class Intent extends \Google\Protobuf\Internal\Message */ private $display_name = ''; /** - * Required. Indicates whether webhooks are enabled for the intent. + * Optional. Indicates whether webhooks are enabled for the intent. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6; */ private $webhook_state = 0; /** * Optional. The priority of this intent. Higher numbers represent higher - * priorities. Zero or negative numbers mean that the intent is disabled. + * 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; */ @@ -77,7 +79,7 @@ class Intent extends \Google\Protobuf\Internal\Message */ private $events; /** - * Optional. The collection of examples/templates that the agent is + * 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; @@ -85,6 +87,7 @@ class Intent extends \Google\Protobuf\Internal\Message 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; */ @@ -127,16 +130,19 @@ class Intent extends \Google\Protobuf\Internal\Message */ private $default_response_platforms; /** - * The unique identifier of the root intent in the chain of followup intents. - * It identifies the correct followup intents chain for this intent. + * Read-only. The unique identifier of the root intent in the chain of + * followup intents. It identifies the correct followup intents chain for + * this intent. We populate this field only in the output. * Format: `projects//agent/intents/`. * * Generated from protobuf field string root_followup_intent_name = 16; */ private $root_followup_intent_name = ''; /** - * The unique identifier of the parent intent in the chain of followup - * intents. + * 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. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -144,8 +150,8 @@ class Intent extends \Google\Protobuf\Internal\Message */ private $parent_followup_intent_name = ''; /** - * Optional. Collection of information about all followup intents that have - * name of this intent as a root_name. + * Read-only. Information about all followup intents that have this intent as + * a direct or indirect parent. We populate this field only in the output. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18; */ @@ -158,17 +164,19 @@ class Intent extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required for all methods except `create` (`create` populates the name - * automatically. * The unique identifier of this intent. + * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * methods. * Format: `projects//agent/intents/`. * @type string $display_name * Required. The name of this intent. * @type int $webhook_state - * Required. Indicates whether webhooks are enabled for the intent. + * Optional. Indicates whether webhooks are enabled for the intent. * @type int $priority * Optional. The priority of this intent. Higher numbers represent higher - * priorities. Zero or negative numbers mean that the intent is disabled. + * priorities. If this is zero or unspecified, we use the default + * priority 500000. + * Negative numbers mean that the intent is disabled. * @type bool $is_fallback * Optional. Indicates whether this is a fallback intent. * @type bool $ml_disabled @@ -185,10 +193,11 @@ 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. * @type \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase[]|\Google\Protobuf\Internal\RepeatedField $training_phrases - * Optional. The collection of examples/templates that the agent is + * Optional. The collection of examples that the agent is * trained on. * @type string $action * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. * @type \Google\Cloud\Dialogflow\V2\Context[]|\Google\Protobuf\Internal\RepeatedField $output_contexts * Optional. The collection of contexts that are activated when the intent * is matched. Context messages in this collection should not set the @@ -207,17 +216,20 @@ class Intent extends \Google\Protobuf\Internal\Message * Optional. The list of platforms for which the first response will be * taken from among the messages assigned to the DEFAULT_PLATFORM. * @type string $root_followup_intent_name - * The unique identifier of the root intent in the chain of followup intents. - * It identifies the correct followup intents chain for this intent. + * Read-only. The unique identifier of the root intent in the chain of + * followup intents. It identifies the correct followup intents chain for + * this intent. We populate this field only in the output. * Format: `projects//agent/intents/`. * @type string $parent_followup_intent_name - * The unique identifier of the parent intent in the chain of followup - * intents. + * 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. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @type \Google\Cloud\Dialogflow\V2\Intent\FollowupIntentInfo[]|\Google\Protobuf\Internal\RepeatedField $followup_intent_info - * Optional. Collection of information about all followup intents that have - * name of this intent as a root_name. + * Read-only. Information about all followup intents that have this intent as + * a direct or indirect parent. We populate this field only in the output. * } */ public function __construct($data = NULL) { @@ -226,9 +238,9 @@ public function __construct($data = NULL) { } /** - * Required for all methods except `create` (`create` populates the name - * automatically. * The unique identifier of this intent. + * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * methods. * Format: `projects//agent/intents/`. * * Generated from protobuf field string name = 1; @@ -240,9 +252,9 @@ public function getName() } /** - * Required for all methods except `create` (`create` populates the name - * automatically. * The unique identifier of this intent. + * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * methods. * Format: `projects//agent/intents/`. * * Generated from protobuf field string name = 1; @@ -284,7 +296,7 @@ public function setDisplayName($var) } /** - * Required. Indicates whether webhooks are enabled for the intent. + * Optional. Indicates whether webhooks are enabled for the intent. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6; * @return int @@ -295,7 +307,7 @@ public function getWebhookState() } /** - * Required. Indicates whether webhooks are enabled for the intent. + * Optional. Indicates whether webhooks are enabled for the intent. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6; * @param int $var @@ -311,7 +323,9 @@ public function setWebhookState($var) /** * Optional. The priority of this intent. Higher numbers represent higher - * priorities. Zero or negative numbers mean that the intent is disabled. + * 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; * @return int @@ -323,7 +337,9 @@ public function getPriority() /** * Optional. The priority of this intent. Higher numbers represent higher - * priorities. Zero or negative numbers mean that the intent is disabled. + * 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; * @param int $var @@ -456,7 +472,7 @@ public function setEvents($var) } /** - * Optional. The collection of examples/templates that the agent is + * 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; @@ -468,7 +484,7 @@ public function getTrainingPhrases() } /** - * Optional. The collection of examples/templates that the agent is + * 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; @@ -485,6 +501,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; * @return string @@ -496,6 +513,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; * @param string $var @@ -654,8 +672,9 @@ public function setDefaultResponsePlatforms($var) } /** - * The unique identifier of the root intent in the chain of followup intents. - * It identifies the correct followup intents chain for this intent. + * Read-only. The unique identifier of the root intent in the chain of + * followup intents. It identifies the correct followup intents chain for + * this intent. We populate this field only in the output. * Format: `projects//agent/intents/`. * * Generated from protobuf field string root_followup_intent_name = 16; @@ -667,8 +686,9 @@ public function getRootFollowupIntentName() } /** - * The unique identifier of the root intent in the chain of followup intents. - * It identifies the correct followup intents chain for this intent. + * Read-only. The unique identifier of the root intent in the chain of + * followup intents. It identifies the correct followup intents chain for + * this intent. We populate this field only in the output. * Format: `projects//agent/intents/`. * * Generated from protobuf field string root_followup_intent_name = 16; @@ -684,8 +704,10 @@ public function setRootFollowupIntentName($var) } /** - * The unique identifier of the parent intent in the chain of followup - * intents. + * 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. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -698,8 +720,10 @@ public function getParentFollowupIntentName() } /** - * The unique identifier of the parent intent in the chain of followup - * intents. + * 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. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -716,8 +740,8 @@ public function setParentFollowupIntentName($var) } /** - * Optional. Collection of information about all followup intents that have - * name of this intent as a root_name. + * Read-only. Information about all followup intents that have this intent as + * a direct or indirect parent. We populate this field only in the output. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18; * @return \Google\Protobuf\Internal\RepeatedField @@ -728,8 +752,8 @@ public function getFollowupIntentInfo() } /** - * Optional. Collection of information about all followup intents that have - * name of this intent as a root_name. + * Read-only. Information about all followup intents that have this intent as + * a direct or indirect parent. We populate this field only in the output. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18; * @param \Google\Cloud\Dialogflow\V2\Intent\FollowupIntentInfo[]|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Dialogflow/src/V2/Intent/FollowupIntentInfo.php b/Dialogflow/src/V2/Intent/FollowupIntentInfo.php index e20f4c9c35b4..8be9bb7dfdb0 100644 --- a/Dialogflow/src/V2/Intent/FollowupIntentInfo.php +++ b/Dialogflow/src/V2/Intent/FollowupIntentInfo.php @@ -23,7 +23,7 @@ class FollowupIntentInfo extends \Google\Protobuf\Internal\Message */ private $followup_intent_name = ''; /** - * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects//agent/intents/`. * * Generated from protobuf field string parent_followup_intent_name = 2; @@ -40,7 +40,7 @@ class FollowupIntentInfo extends \Google\Protobuf\Internal\Message * The unique identifier of the followup intent. * Format: `projects//agent/intents/`. * @type string $parent_followup_intent_name - * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects//agent/intents/`. * } */ @@ -78,7 +78,7 @@ public function setFollowupIntentName($var) } /** - * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects//agent/intents/`. * * Generated from protobuf field string parent_followup_intent_name = 2; @@ -90,7 +90,7 @@ public function getParentFollowupIntentName() } /** - * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects//agent/intents/`. * * Generated from protobuf field string parent_followup_intent_name = 2; diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase.php b/Dialogflow/src/V2/Intent/TrainingPhrase.php index 6452b1363244..9c6ff268e4e2 100644 --- a/Dialogflow/src/V2/Intent/TrainingPhrase.php +++ b/Dialogflow/src/V2/Intent/TrainingPhrase.php @@ -9,14 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. * * Generated from protobuf message google.cloud.dialogflow.v2.Intent.TrainingPhrase */ class TrainingPhrase extends \Google\Protobuf\Internal\Message { /** - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. * * Generated from protobuf field string name = 1; */ @@ -28,15 +28,26 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message */ private $type = 0; /** - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * 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; */ private $parts; /** - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * @@ -51,15 +62,26 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. * @type int $type * Required. The type of the training phrase. * @type \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase\Part[]|\Google\Protobuf\Internal\RepeatedField $parts - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. * @type int $times_added_count - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * } @@ -70,7 +92,7 @@ public function __construct($data = NULL) { } /** - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. * * Generated from protobuf field string name = 1; * @return string @@ -81,7 +103,7 @@ public function getName() } /** - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. * * Generated from protobuf field string name = 1; * @param string $var @@ -122,9 +144,20 @@ public function setType($var) } /** - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * 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; * @return \Google\Protobuf\Internal\RepeatedField @@ -135,9 +168,20 @@ public function getParts() } /** - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * 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; * @param \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase\Part[]|\Google\Protobuf\Internal\RepeatedField $var @@ -152,7 +196,7 @@ public function setParts($var) } /** - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * @@ -165,7 +209,7 @@ public function getTimesAddedCount() } /** - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. * diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php b/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php index ef33ad1caa32..bd640e007a18 100644 --- a/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php +++ b/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php @@ -16,17 +16,14 @@ class Part extends \Google\Protobuf\Internal\Message { /** - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. * * Generated from protobuf field string text = 1; */ private $text = ''; /** - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * 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; */ @@ -34,13 +31,16 @@ class Part extends \Google\Protobuf\Internal\Message /** * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. * * Generated from protobuf field string alias = 3; */ private $alias = ''; /** - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * 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; */ @@ -53,19 +53,19 @@ class Part extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $text - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. * @type string $entity_type - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. * @type string $alias * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. * @type bool $user_defined - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * manually annotate the part. When creating an annotated part with the + * API, you must set this to true. * } */ public function __construct($data = NULL) { @@ -74,9 +74,7 @@ public function __construct($data = NULL) { } /** - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. * * Generated from protobuf field string text = 1; * @return string @@ -87,9 +85,7 @@ public function getText() } /** - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. * * Generated from protobuf field string text = 1; * @param string $var @@ -104,9 +100,8 @@ public function setText($var) } /** - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * 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; * @return string @@ -117,9 +112,8 @@ public function getEntityType() } /** - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * 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; * @param string $var @@ -136,6 +130,7 @@ public function setEntityType($var) /** * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. * * Generated from protobuf field string alias = 3; * @return string @@ -148,6 +143,7 @@ public function getAlias() /** * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. * * Generated from protobuf field string alias = 3; * @param string $var @@ -162,8 +158,10 @@ public function setAlias($var) } /** - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * 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; * @return bool @@ -174,8 +172,10 @@ public function getUserDefined() } /** - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * 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; * @param bool $var diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php b/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php index 85578c2ff950..a0a5ef200c1e 100644 --- a/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php +++ b/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php @@ -29,8 +29,12 @@ class Type /** * Templates are not annotated with entity types, but they can contain * @-prefixed entity type names as substrings. + * Template mode has been deprecated. Example mode is the only supported + * way to create new training phrases. If you have existing training + * phrases that you've created in template mode, those will continue to + * work. * - * Generated from protobuf enum TEMPLATE = 2; + * Generated from protobuf enum TEMPLATE = 2 [deprecated = true]; */ const TEMPLATE = 2; diff --git a/Dialogflow/src/V2/IntentsGrpcClient.php b/Dialogflow/src/V2/IntentsGrpcClient.php index 736412506ed8..003c340321ce 100644 --- a/Dialogflow/src/V2/IntentsGrpcClient.php +++ b/Dialogflow/src/V2/IntentsGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,16 +16,17 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Dialogflow\V2; /** * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. @@ -33,7 +34,7 @@ * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -49,7 +50,8 @@ * Dialogflow API agent to better match intents. * * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). */ class IntentsGrpcClient extends \Grpc\BaseStub { @@ -119,7 +121,7 @@ public function UpdateIntent(\Google\Cloud\Dialogflow\V2\UpdateIntentRequest $ar } /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * @param \Google\Cloud\Dialogflow\V2\DeleteIntentRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -135,8 +137,7 @@ public function DeleteIntent(\Google\Cloud\Dialogflow\V2\DeleteIntentRequest $ar /** * Updates/Creates multiple intents in the specified agent. * - * Operation + * Operation * @param \Google\Cloud\Dialogflow\V2\BatchUpdateIntentsRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Dialogflow/src/V2/ListContextsRequest.php b/Dialogflow/src/V2/ListContextsRequest.php index 7684ab6ff5fd..f5bcbda93969 100644 --- a/Dialogflow/src/V2/ListContextsRequest.php +++ b/Dialogflow/src/V2/ListContextsRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. + * The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListContextsRequest */ diff --git a/Dialogflow/src/V2/ListContextsResponse.php b/Dialogflow/src/V2/ListContextsResponse.php index c3081ef1851a..7ea74ba66e7e 100644 --- a/Dialogflow/src/V2/ListContextsResponse.php +++ b/Dialogflow/src/V2/ListContextsResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. + * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListContextsResponse */ diff --git a/Dialogflow/src/V2/ListEntityTypesRequest.php b/Dialogflow/src/V2/ListEntityTypesRequest.php index 2411fddb80a2..2f7ee7dd54bf 100644 --- a/Dialogflow/src/V2/ListEntityTypesRequest.php +++ b/Dialogflow/src/V2/ListEntityTypesRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. + * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListEntityTypesRequest */ @@ -26,9 +25,10 @@ class ListEntityTypesRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language to list entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; */ @@ -59,9 +59,10 @@ class ListEntityTypesRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language to list entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $page_size * Optional. The maximum number of items to return in a single page. By * default 100 and at most 1000. @@ -105,9 +106,10 @@ public function setParent($var) /** * Optional. The language to list entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @return string @@ -120,9 +122,10 @@ public function getLanguageCode() /** * Optional. The language to list entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/ListEntityTypesResponse.php b/Dialogflow/src/V2/ListEntityTypesResponse.php index 15eae2d5e118..7dd3102fcb2a 100644 --- a/Dialogflow/src/V2/ListEntityTypesResponse.php +++ b/Dialogflow/src/V2/ListEntityTypesResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. + * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListEntityTypesResponse */ diff --git a/Dialogflow/src/V2/ListIntentsRequest.php b/Dialogflow/src/V2/ListIntentsRequest.php index 00878725955a..b798c3f8365c 100644 --- a/Dialogflow/src/V2/ListIntentsRequest.php +++ b/Dialogflow/src/V2/ListIntentsRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. + * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListIntentsRequest */ @@ -26,9 +25,10 @@ class ListIntentsRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language to list training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; */ @@ -65,9 +65,10 @@ class ListIntentsRequest extends \Google\Protobuf\Internal\Message * @type string $language_code * Optional. The language to list training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $intent_view * Optional. The resource view to apply to the returned intent. * @type int $page_size @@ -113,9 +114,10 @@ public function setParent($var) /** * Optional. The language to list training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @return string @@ -128,9 +130,10 @@ public function getLanguageCode() /** * Optional. The language to list training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/ListIntentsResponse.php b/Dialogflow/src/V2/ListIntentsResponse.php index 59d78f5e4e1a..54d73937ddcd 100644 --- a/Dialogflow/src/V2/ListIntentsResponse.php +++ b/Dialogflow/src/V2/ListIntentsResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. + * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListIntentsResponse */ diff --git a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php index db3ccb582a80..7853a299a053 100644 --- a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php +++ b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. + * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListSessionEntityTypesRequest */ diff --git a/Dialogflow/src/V2/ListSessionEntityTypesResponse.php b/Dialogflow/src/V2/ListSessionEntityTypesResponse.php index 86c2e4d5c22c..ee8cb9753cf1 100644 --- a/Dialogflow/src/V2/ListSessionEntityTypesResponse.php +++ b/Dialogflow/src/V2/ListSessionEntityTypesResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. + * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListSessionEntityTypesResponse */ diff --git a/Dialogflow/src/V2/OriginalDetectIntentRequest.php b/Dialogflow/src/V2/OriginalDetectIntentRequest.php index dc426d36d885..618ac49ef52a 100644 --- a/Dialogflow/src/V2/OriginalDetectIntentRequest.php +++ b/Dialogflow/src/V2/OriginalDetectIntentRequest.php @@ -24,8 +24,25 @@ class OriginalDetectIntentRequest extends \Google\Protobuf\Internal\Message */ private $source = ''; /** - * Optional. This field is set to the value of `QueryParameters.payload` field - * passed in the request. + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + * + * Generated from protobuf field string version = 2; + */ + private $version = ''; + /** + * Optional. This field is set to the value of the `QueryParameters.payload` + * field passed in the request. Some integrations that query a Dialogflow + * agent may provide additional information in the payload. + * In particular for the Telephony Gateway this field has the form: + *
{
+     *  "telephony": {
+     *    "caller_id": "+18558363987"
+     *  }
+     * }
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * * Generated from protobuf field .google.protobuf.Struct payload = 3; */ @@ -40,9 +57,22 @@ class OriginalDetectIntentRequest extends \Google\Protobuf\Internal\Message * @type string $source * The source of this request, e.g., `google`, `facebook`, `slack`. It is set * by Dialogflow-owned servers. + * @type string $version + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. * @type \Google\Protobuf\Struct $payload - * Optional. This field is set to the value of `QueryParameters.payload` field - * passed in the request. + * Optional. This field is set to the value of the `QueryParameters.payload` + * field passed in the request. Some integrations that query a Dialogflow + * agent may provide additional information in the payload. + * In particular for the Telephony Gateway this field has the form: + *
{
+     *            "telephony": {
+     *              "caller_id": "+18558363987"
+     *            }
+     *           }
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * } */ public function __construct($data = NULL) { @@ -79,8 +109,46 @@ public function setSource($var) } /** - * Optional. This field is set to the value of `QueryParameters.payload` field - * passed in the request. + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. This field is set to the value of the `QueryParameters.payload` + * field passed in the request. Some integrations that query a Dialogflow + * agent may provide additional information in the payload. + * In particular for the Telephony Gateway this field has the form: + *
{
+     *  "telephony": {
+     *    "caller_id": "+18558363987"
+     *  }
+     * }
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * * Generated from protobuf field .google.protobuf.Struct payload = 3; * @return \Google\Protobuf\Struct @@ -91,8 +159,18 @@ public function getPayload() } /** - * Optional. This field is set to the value of `QueryParameters.payload` field - * passed in the request. + * Optional. This field is set to the value of the `QueryParameters.payload` + * field passed in the request. Some integrations that query a Dialogflow + * agent may provide additional information in the payload. + * In particular for the Telephony Gateway this field has the form: + *
{
+     *  "telephony": {
+     *    "caller_id": "+18558363987"
+     *  }
+     * }
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * * Generated from protobuf field .google.protobuf.Struct payload = 3; * @param \Google\Protobuf\Struct $var diff --git a/Dialogflow/src/V2/OutputAudioConfig.php b/Dialogflow/src/V2/OutputAudioConfig.php new file mode 100644 index 000000000000..14c11add5a90 --- /dev/null +++ b/Dialogflow/src/V2/OutputAudioConfig.php @@ -0,0 +1,151 @@ +google.cloud.dialogflow.v2.OutputAudioConfig + */ +class OutputAudioConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Audio encoding of the synthesized audio content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1; + */ + private $audio_encoding = 0; + /** + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + * + * Generated from protobuf field int32 sample_rate_hertz = 2; + */ + private $sample_rate_hertz = 0; + /** + * Optional. Configuration of how speech should be synthesized. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3; + */ + private $synthesize_speech_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $audio_encoding + * Required. Audio encoding of the synthesized audio content. + * @type int $sample_rate_hertz + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + * @type \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig $synthesize_speech_config + * Optional. Configuration of how speech should be synthesized. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); + parent::__construct($data); + } + + /** + * Required. Audio encoding of the synthesized audio content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1; + * @return int + */ + public function getAudioEncoding() + { + return $this->audio_encoding; + } + + /** + * Required. Audio encoding of the synthesized audio content. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1; + * @param int $var + * @return $this + */ + public function setAudioEncoding($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\OutputAudioEncoding::class); + $this->audio_encoding = $var; + + return $this; + } + + /** + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + * + * Generated from protobuf field int32 sample_rate_hertz = 2; + * @return int + */ + public function getSampleRateHertz() + { + return $this->sample_rate_hertz; + } + + /** + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + * + * Generated from protobuf field int32 sample_rate_hertz = 2; + * @param int $var + * @return $this + */ + public function setSampleRateHertz($var) + { + GPBUtil::checkInt32($var); + $this->sample_rate_hertz = $var; + + return $this; + } + + /** + * Optional. Configuration of how speech should be synthesized. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3; + * @return \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig + */ + public function getSynthesizeSpeechConfig() + { + return $this->synthesize_speech_config; + } + + /** + * Optional. Configuration of how speech should be synthesized. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3; + * @param \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig $var + * @return $this + */ + public function setSynthesizeSpeechConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig::class); + $this->synthesize_speech_config = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/OutputAudioEncoding.php b/Dialogflow/src/V2/OutputAudioEncoding.php new file mode 100644 index 000000000000..14542a75c33f --- /dev/null +++ b/Dialogflow/src/V2/OutputAudioEncoding.php @@ -0,0 +1,72 @@ +google.cloud.dialogflow.v2.OutputAudioEncoding + */ +class OutputAudioEncoding +{ + /** + * Not specified. + * + * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; + */ + const OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; + /** + * Uncompressed 16-bit signed little-endian samples (Linear PCM). + * Audio content returned as LINEAR16 also contains a WAV header. + * + * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; + */ + const OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; + /** + * MP3 audio. + * + * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_MP3 = 2; + */ + const OUTPUT_AUDIO_ENCODING_MP3 = 2; + /** + * Opus encoded audio wrapped in an ogg container. The result will be a + * file which can be played natively on Android, and in browsers (at least + * Chrome and Firefox). The quality of the encoding is considerably higher + * than MP3 while using approximately the same bitrate. + * + * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; + */ + const OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; + + private static $valueToName = [ + self::OUTPUT_AUDIO_ENCODING_UNSPECIFIED => 'OUTPUT_AUDIO_ENCODING_UNSPECIFIED', + self::OUTPUT_AUDIO_ENCODING_LINEAR_16 => 'OUTPUT_AUDIO_ENCODING_LINEAR_16', + self::OUTPUT_AUDIO_ENCODING_MP3 => 'OUTPUT_AUDIO_ENCODING_MP3', + self::OUTPUT_AUDIO_ENCODING_OGG_OPUS => 'OUTPUT_AUDIO_ENCODING_OGG_OPUS', + ]; + + 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); + } +} + diff --git a/Dialogflow/src/V2/QueryParameters.php b/Dialogflow/src/V2/QueryParameters.php index 8f8b6e9ba57e..e41f8942c482 100644 --- a/Dialogflow/src/V2/QueryParameters.php +++ b/Dialogflow/src/V2/QueryParameters.php @@ -45,9 +45,9 @@ class QueryParameters extends \Google\Protobuf\Internal\Message */ private $reset_contexts = false; /** - * Optional. The collection of session entity types to replace or extend - * developer entities with for this query only. The entity synonyms apply - * to all languages. + * 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. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5; */ @@ -59,6 +59,13 @@ class QueryParameters extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Struct payload = 6; */ 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; + */ + private $sentiment_analysis_request_config = null; /** * Constructor. @@ -80,12 +87,15 @@ class QueryParameters extends \Google\Protobuf\Internal\Message * Optional. Specifies whether to delete all contexts in the current session * before the new ones are activated. * @type \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $session_entity_types - * Optional. The collection of session entity types to replace or extend - * developer entities with for this query only. The entity synonyms apply - * to all languages. + * 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. * @type \Google\Protobuf\Struct $payload * Optional. This field can be used to pass custom data into the webhook * associated with the agent. Arbitrary JSON objects are supported. + * @type \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig $sentiment_analysis_request_config + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. * } */ public function __construct($data = NULL) { @@ -208,9 +218,9 @@ public function setResetContexts($var) } /** - * Optional. The collection of session entity types to replace or extend - * developer entities with for this query only. The entity synonyms apply - * to all languages. + * 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. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5; * @return \Google\Protobuf\Internal\RepeatedField @@ -221,9 +231,9 @@ public function getSessionEntityTypes() } /** - * Optional. The collection of session entity types to replace or extend - * developer entities with for this query only. The entity synonyms apply - * to all languages. + * 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. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5; * @param \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $var @@ -265,5 +275,33 @@ public function setPayload($var) return $this; } + /** + * 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; + * @return \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig + */ + public function getSentimentAnalysisRequestConfig() + { + return $this->sentiment_analysis_request_config; + } + + /** + * 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; + * @param \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig $var + * @return $this + */ + public function setSentimentAnalysisRequestConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig::class); + $this->sentiment_analysis_request_config = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/QueryResult.php b/Dialogflow/src/V2/QueryResult.php index 5a947c28d43a..3178621c405d 100644 --- a/Dialogflow/src/V2/QueryResult.php +++ b/Dialogflow/src/V2/QueryResult.php @@ -29,7 +29,8 @@ class QueryResult extends \Google\Protobuf\Internal\Message private $query_text = ''; /** * The language that was triggered during intent detection. - * See [Language Support](https://dialogflow.com/docs/reference/language) + * See [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) * for a list of the currently supported language codes. * * Generated from protobuf field string language_code = 15; @@ -40,10 +41,10 @@ class QueryResult extends \Google\Protobuf\Internal\Message * indicates an estimated greater likelihood that the recognized words are * correct. The default of 0.0 is a sentinel value indicating that confidence * was not set. - * You should not rely on this field as it isn't guaranteed to be accurate, or - * even set. In particular this field isn't set in Webhook calls and for - * StreamingDetectIntent since the streaming endpoint has separate confidence - * estimates per portion of the audio in StreamingRecognitionResult. + * This field is not guaranteed to be accurate or set. In particular this + * field isn't set for StreamingDetectIntent since the streaming endpoint has + * separate confidence estimates per portion of the audio in + * StreamingRecognitionResult. * * Generated from protobuf field float speech_recognition_confidence = 2; */ @@ -72,6 +73,7 @@ class QueryResult extends \Google\Protobuf\Internal\Message private $all_required_params_present = false; /** * The text to be pronounced to the user or shown on the screen. + * Note: This is a legacy field, `fulfillment_messages` should be preferred. * * Generated from protobuf field string fulfillment_text = 6; */ @@ -116,17 +118,27 @@ class QueryResult extends \Google\Protobuf\Internal\Message /** * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. * * Generated from protobuf field float intent_detection_confidence = 12; */ private $intent_detection_confidence = 0.0; /** - * The free-form diagnostic info. For example, this field - * could contain webhook call latency. + * 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. * * Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14; */ private $diagnostic_info = null; + /** + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17; + */ + private $sentiment_analysis_result = null; /** * Constructor. @@ -144,17 +156,18 @@ class QueryResult extends \Google\Protobuf\Internal\Message * - If an event was provided as input, `query_text` is not set. * @type string $language_code * The language that was triggered during intent detection. - * See [Language Support](https://dialogflow.com/docs/reference/language) + * See [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) * for a list of the currently supported language codes. * @type float $speech_recognition_confidence * The Speech recognition confidence between 0.0 and 1.0. A higher number * indicates an estimated greater likelihood that the recognized words are * correct. The default of 0.0 is a sentinel value indicating that confidence * was not set. - * You should not rely on this field as it isn't guaranteed to be accurate, or - * even set. In particular this field isn't set in Webhook calls and for - * StreamingDetectIntent since the streaming endpoint has separate confidence - * estimates per portion of the audio in StreamingRecognitionResult. + * This field is not guaranteed to be accurate or set. In particular this + * field isn't set for StreamingDetectIntent since the streaming endpoint has + * separate confidence estimates per portion of the audio in + * StreamingRecognitionResult. * @type string $action * The action name from the matched intent. * @type \Google\Protobuf\Struct $parameters @@ -167,6 +180,7 @@ class QueryResult extends \Google\Protobuf\Internal\Message * matched intent doesn't contain any required parameters. * @type string $fulfillment_text * The text to be pronounced to the user or shown on the screen. + * Note: This is a legacy field, `fulfillment_messages` should be preferred. * @type \Google\Cloud\Dialogflow\V2\Intent\Message[]|\Google\Protobuf\Internal\RepeatedField $fulfillment_messages * The collection of rich messages to present to the user. * @type string $webhook_source @@ -187,9 +201,15 @@ class QueryResult extends \Google\Protobuf\Internal\Message * @type float $intent_detection_confidence * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * 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 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. + * @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. * } */ public function __construct($data = NULL) { @@ -237,7 +257,8 @@ public function setQueryText($var) /** * The language that was triggered during intent detection. - * See [Language Support](https://dialogflow.com/docs/reference/language) + * See [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) * for a list of the currently supported language codes. * * Generated from protobuf field string language_code = 15; @@ -250,7 +271,8 @@ public function getLanguageCode() /** * The language that was triggered during intent detection. - * See [Language Support](https://dialogflow.com/docs/reference/language) + * See [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) * for a list of the currently supported language codes. * * Generated from protobuf field string language_code = 15; @@ -270,10 +292,10 @@ public function setLanguageCode($var) * indicates an estimated greater likelihood that the recognized words are * correct. The default of 0.0 is a sentinel value indicating that confidence * was not set. - * You should not rely on this field as it isn't guaranteed to be accurate, or - * even set. In particular this field isn't set in Webhook calls and for - * StreamingDetectIntent since the streaming endpoint has separate confidence - * estimates per portion of the audio in StreamingRecognitionResult. + * This field is not guaranteed to be accurate or set. In particular this + * field isn't set for StreamingDetectIntent since the streaming endpoint has + * separate confidence estimates per portion of the audio in + * StreamingRecognitionResult. * * Generated from protobuf field float speech_recognition_confidence = 2; * @return float @@ -288,10 +310,10 @@ public function getSpeechRecognitionConfidence() * indicates an estimated greater likelihood that the recognized words are * correct. The default of 0.0 is a sentinel value indicating that confidence * was not set. - * You should not rely on this field as it isn't guaranteed to be accurate, or - * even set. In particular this field isn't set in Webhook calls and for - * StreamingDetectIntent since the streaming endpoint has separate confidence - * estimates per portion of the audio in StreamingRecognitionResult. + * This field is not guaranteed to be accurate or set. In particular this + * field isn't set for StreamingDetectIntent since the streaming endpoint has + * separate confidence estimates per portion of the audio in + * StreamingRecognitionResult. * * Generated from protobuf field float speech_recognition_confidence = 2; * @param float $var @@ -393,6 +415,7 @@ public function setAllRequiredParamsPresent($var) /** * The text to be pronounced to the user or shown on the screen. + * Note: This is a legacy field, `fulfillment_messages` should be preferred. * * Generated from protobuf field string fulfillment_text = 6; * @return string @@ -404,6 +427,7 @@ public function getFulfillmentText() /** * The text to be pronounced to the user or shown on the screen. + * Note: This is a legacy field, `fulfillment_messages` should be preferred. * * Generated from protobuf field string fulfillment_text = 6; * @param string $var @@ -564,6 +588,8 @@ public function setIntent($var) /** * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. * * Generated from protobuf field float intent_detection_confidence = 12; * @return float @@ -576,6 +602,8 @@ public function getIntentDetectionConfidence() /** * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. * * Generated from protobuf field float intent_detection_confidence = 12; * @param float $var @@ -590,8 +618,9 @@ public function setIntentDetectionConfidence($var) } /** - * The free-form diagnostic info. For example, this field - * could contain webhook call latency. + * 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. * * Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14; * @return \Google\Protobuf\Struct @@ -602,8 +631,9 @@ public function getDiagnosticInfo() } /** - * The free-form diagnostic info. For example, this field - * could contain webhook call latency. + * 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. * * Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14; * @param \Google\Protobuf\Struct $var @@ -617,5 +647,33 @@ public function setDiagnosticInfo($var) return $this; } + /** + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17; + * @return \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult + */ + public function getSentimentAnalysisResult() + { + return $this->sentiment_analysis_result; + } + + /** + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17; + * @param \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult $var + * @return $this + */ + public function setSentimentAnalysisResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult::class); + $this->sentiment_analysis_result = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/RestoreAgentRequest.php b/Dialogflow/src/V2/RestoreAgentRequest.php index 38f9e6b13afd..c470c1dd1ea6 100644 --- a/Dialogflow/src/V2/RestoreAgentRequest.php +++ b/Dialogflow/src/V2/RestoreAgentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent]. + * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.RestoreAgentRequest */ @@ -40,16 +39,17 @@ class RestoreAgentRequest extends \Google\Protobuf\Internal\Message * @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//agent:restore\ + *
curl \
+     *             'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
      *              -X POST \
-     *              -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *              -H 'Authorization: Bearer '$(gcloud auth application-default
+     *              print-access-token) \
      *              -H 'Accept: application/json' \
      *              -H 'Content-Type: application/json' \
      *              --compressed \
      *              --data-binary "{
-     *                  'agentContent': '$(cat  | base64 -w 0)'
-     *              }" \
+     *                  'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *              }"
* } */ public function __construct($data = NULL) { @@ -116,16 +116,17 @@ 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//agent:restore\ + *
curl \
+     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
      *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *    -H 'Authorization: Bearer '$(gcloud auth application-default
+     *    print-access-token) \
      *    -H 'Accept: application/json' \
      *    -H 'Content-Type: application/json' \
      *    --compressed \
      *    --data-binary "{
-     *        'agentContent': '$(cat  | base64 -w 0)'
-     *    }" \
+     *        'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *    }"
* * Generated from protobuf field bytes agent_content = 3; * @return string @@ -138,16 +139,17 @@ 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//agent:restore\ + *
curl \
+     *   'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
      *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
+     *    -H 'Authorization: Bearer '$(gcloud auth application-default
+     *    print-access-token) \
      *    -H 'Accept: application/json' \
      *    -H 'Content-Type: application/json' \
      *    --compressed \
      *    --data-binary "{
-     *        'agentContent': '$(cat  | base64 -w 0)'
-     *    }" \
+     *        'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+     *    }"
* * 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 5db383fe31e8..63228f42a24d 100644 --- a/Dialogflow/src/V2/SearchAgentsRequest.php +++ b/Dialogflow/src/V2/SearchAgentsRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. + * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. * * Generated from protobuf message google.cloud.dialogflow.v2.SearchAgentsRequest */ diff --git a/Dialogflow/src/V2/SearchAgentsResponse.php b/Dialogflow/src/V2/SearchAgentsResponse.php index 2d50e5823998..2838371a4678 100644 --- a/Dialogflow/src/V2/SearchAgentsResponse.php +++ b/Dialogflow/src/V2/SearchAgentsResponse.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for - * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. + * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. * * Generated from protobuf message google.cloud.dialogflow.v2.SearchAgentsResponse */ diff --git a/Dialogflow/src/V2/Sentiment.php b/Dialogflow/src/V2/Sentiment.php new file mode 100644 index 000000000000..00e82b52a665 --- /dev/null +++ b/Dialogflow/src/V2/Sentiment.php @@ -0,0 +1,110 @@ +google.cloud.dialogflow.v2.Sentiment + */ +class Sentiment extends \Google\Protobuf\Internal\Message +{ + /** + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + * + * Generated from protobuf field float score = 1; + */ + private $score = 0.0; + /** + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + * + * Generated from protobuf field float magnitude = 2; + */ + private $magnitude = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $score + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + * @type float $magnitude + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); + parent::__construct($data); + } + + /** + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + * + * Generated from protobuf field float score = 1; + * @return float + */ + public function getScore() + { + return $this->score; + } + + /** + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + * + * Generated from protobuf field float score = 1; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + + /** + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + * + * Generated from protobuf field float magnitude = 2; + * @return float + */ + public function getMagnitude() + { + return $this->magnitude; + } + + /** + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + * + * Generated from protobuf field float magnitude = 2; + * @param float $var + * @return $this + */ + public function setMagnitude($var) + { + GPBUtil::checkFloat($var); + $this->magnitude = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php b/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php new file mode 100644 index 000000000000..937c87335df7 --- /dev/null +++ b/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php @@ -0,0 +1,75 @@ +google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig + */ +class SentimentAnalysisRequestConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + * + * Generated from protobuf field bool analyze_query_text_sentiment = 1; + */ + private $analyze_query_text_sentiment = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $analyze_query_text_sentiment + * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + * + * Generated from protobuf field bool analyze_query_text_sentiment = 1; + * @return bool + */ + public function getAnalyzeQueryTextSentiment() + { + return $this->analyze_query_text_sentiment; + } + + /** + * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + * + * Generated from protobuf field bool analyze_query_text_sentiment = 1; + * @param bool $var + * @return $this + */ + public function setAnalyzeQueryTextSentiment($var) + { + GPBUtil::checkBool($var); + $this->analyze_query_text_sentiment = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/SentimentAnalysisResult.php b/Dialogflow/src/V2/SentimentAnalysisResult.php new file mode 100644 index 000000000000..beaa827d1651 --- /dev/null +++ b/Dialogflow/src/V2/SentimentAnalysisResult.php @@ -0,0 +1,68 @@ +google.cloud.dialogflow.v2.SentimentAnalysisResult + */ +class SentimentAnalysisResult extends \Google\Protobuf\Internal\Message +{ + /** + * The sentiment analysis result for `query_text`. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1; + */ + private $query_text_sentiment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dialogflow\V2\Sentiment $query_text_sentiment + * The sentiment analysis result for `query_text`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); + parent::__construct($data); + } + + /** + * The sentiment analysis result for `query_text`. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1; + * @return \Google\Cloud\Dialogflow\V2\Sentiment + */ + public function getQueryTextSentiment() + { + return $this->query_text_sentiment; + } + + /** + * The sentiment analysis result for `query_text`. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1; + * @param \Google\Cloud\Dialogflow\V2\Sentiment $var + * @return $this + */ + public function setQueryTextSentiment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Sentiment::class); + $this->query_text_sentiment = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/SessionEntityType.php b/Dialogflow/src/V2/SessionEntityType.php index 813edbd96331..93d3ab279233 100644 --- a/Dialogflow/src/V2/SessionEntityType.php +++ b/Dialogflow/src/V2/SessionEntityType.php @@ -23,6 +23,8 @@ class SessionEntityType extends \Google\Protobuf\Internal\Message * Required. The unique identifier of this session entity type. Format: * `projects//agent/sessions//entityTypes/`. + * `` 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; */ @@ -52,6 +54,8 @@ class SessionEntityType extends \Google\Protobuf\Internal\Message * Required. The unique identifier of this session entity type. Format: * `projects//agent/sessions//entityTypes/`. + * `` must be the display name of an existing entity + * 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. @@ -69,6 +73,8 @@ public function __construct($data = NULL) { * Required. The unique identifier of this session entity type. Format: * `projects//agent/sessions//entityTypes/`. + * `` 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; * @return string @@ -82,6 +88,8 @@ public function getName() * Required. The unique identifier of this session entity type. Format: * `projects//agent/sessions//entityTypes/`. + * `` 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; * @param string $var diff --git a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php index af5a026dbdda..38e1903c753b 100644 --- a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php +++ b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php @@ -29,10 +29,12 @@ class EntityOverrideMode /** * The collection of session entities extends the collection of entities in * the corresponding developer entity type. - * Calls to `ListSessionEntityTypes`, `GetSessionEntityType`, - * `CreateSessionEntityType` and `UpdateSessionEntityType` return the full - * collection of entities from the developer entity type in the agent's - * default language and the session 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 + * 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 489aa399b2f6..94ec2dd9f5f1 100644 --- a/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php +++ b/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Dialogflow\V2; /** @@ -30,7 +31,8 @@ * entity type at the session level. * * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). */ class SessionEntityTypesGrpcClient extends \Grpc\BaseStub { @@ -73,6 +75,9 @@ public function GetSessionEntityType(\Google\Cloud\Dialogflow\V2\GetSessionEntit /** * Creates a session entity type. + * + * If the specified session entity type already exists, overrides the session + * entity type. * @param \Google\Cloud\Dialogflow\V2\CreateSessionEntityTypeRequest $argument input argument * @param array $metadata metadata * @param array $options call options diff --git a/Dialogflow/src/V2/SessionsGrpcClient.php b/Dialogflow/src/V2/SessionsGrpcClient.php index 8aaa92f24672..6eb52ded9d57 100644 --- a/Dialogflow/src/V2/SessionsGrpcClient.php +++ b/Dialogflow/src/V2/SessionsGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,14 +16,14 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Dialogflow\V2; /** * A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. */ class SessionsGrpcClient extends \Grpc\BaseStub { diff --git a/Dialogflow/src/V2/SsmlVoiceGender.php b/Dialogflow/src/V2/SsmlVoiceGender.php new file mode 100644 index 000000000000..2508c1bc6e5e --- /dev/null +++ b/Dialogflow/src/V2/SsmlVoiceGender.php @@ -0,0 +1,70 @@ +google.cloud.dialogflow.v2.SsmlVoiceGender + */ +class SsmlVoiceGender +{ + /** + * An unspecified gender, which means that the client doesn't care which + * gender the selected voice will have. + * + * Generated from protobuf enum SSML_VOICE_GENDER_UNSPECIFIED = 0; + */ + const SSML_VOICE_GENDER_UNSPECIFIED = 0; + /** + * A male voice. + * + * Generated from protobuf enum SSML_VOICE_GENDER_MALE = 1; + */ + const SSML_VOICE_GENDER_MALE = 1; + /** + * A female voice. + * + * Generated from protobuf enum SSML_VOICE_GENDER_FEMALE = 2; + */ + const SSML_VOICE_GENDER_FEMALE = 2; + /** + * A gender-neutral voice. + * + * Generated from protobuf enum SSML_VOICE_GENDER_NEUTRAL = 3; + */ + const SSML_VOICE_GENDER_NEUTRAL = 3; + + private static $valueToName = [ + self::SSML_VOICE_GENDER_UNSPECIFIED => 'SSML_VOICE_GENDER_UNSPECIFIED', + self::SSML_VOICE_GENDER_MALE => 'SSML_VOICE_GENDER_MALE', + self::SSML_VOICE_GENDER_FEMALE => 'SSML_VOICE_GENDER_FEMALE', + self::SSML_VOICE_GENDER_NEUTRAL => 'SSML_VOICE_GENDER_NEUTRAL', + ]; + + 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); + } +} + diff --git a/Dialogflow/src/V2/StreamingDetectIntentRequest.php b/Dialogflow/src/V2/StreamingDetectIntentRequest.php index 4e4a11225d30..93fbe51b3660 100644 --- a/Dialogflow/src/V2/StreamingDetectIntentRequest.php +++ b/Dialogflow/src/V2/StreamingDetectIntentRequest.php @@ -13,8 +13,7 @@ * `StreamingDetectIntent` method. * Multiple request messages should be sent in order: * 1. The first message must contain `session`, `query_input` plus optionally - * `query_params` and/or `single_utterance`. The message must not contain - * `input_audio`. + * `query_params` and/or `single_utterance`. 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. @@ -27,7 +26,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * Required. The name of the session the query is sent to. * Format of the session name: * `projects//agent/sessions/`. It’s up to the API - * caller to choose an appropriate . It can be a random number or + * caller to choose an appropriate `Session ID`. It can be a random number or * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * @@ -63,6 +62,14 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool single_utterance = 4; */ private $single_utterance = false; + /** + * Optional. Instructs the speech synthesizer how to generate the output + * 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; + */ + private $output_audio_config = null; /** * Optional. The input audio content to be recognized. Must be sent if * `query_input` was set to a streaming input audio config. The complete audio @@ -82,7 +89,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * Required. The name of the session the query is sent to. * Format of the session name: * `projects//agent/sessions/`. It’s up to the API - * caller to choose an appropriate . It can be a random number or + * caller to choose an appropriate `Session ID`. It can be a random number or * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * @type \Google\Cloud\Dialogflow\V2\QueryParameters $query_params @@ -102,6 +109,10 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * client should close the stream and start a new request with a new stream as * needed. * This setting is ignored when `query_input` is a piece of text or an event. + * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. * @type string $input_audio * Optional. The input audio content to be recognized. Must be sent if * `query_input` was set to a streaming input audio config. The complete audio @@ -117,7 +128,7 @@ public function __construct($data = NULL) { * Required. The name of the session the query is sent to. * Format of the session name: * `projects//agent/sessions/`. It’s up to the API - * caller to choose an appropriate . It can be a random number or + * caller to choose an appropriate `Session ID`. It can be a random number or * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * @@ -133,7 +144,7 @@ public function getSession() * Required. The name of the session the query is sent to. * Format of the session name: * `projects//agent/sessions/`. It’s up to the API - * caller to choose an appropriate . It can be a random number or + * caller to choose an appropriate `Session ID`. It can be a random number or * some type of user identifier (preferably hashed). The length of the session * ID must not exceed 36 characters. * @@ -249,6 +260,36 @@ public function setSingleUtterance($var) return $this; } + /** + * Optional. Instructs the speech synthesizer how to generate the output + * 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; + * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig + */ + public function getOutputAudioConfig() + { + return $this->output_audio_config; + } + + /** + * Optional. Instructs the speech synthesizer how to generate the output + * 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; + * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var + * @return $this + */ + public function setOutputAudioConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class); + $this->output_audio_config = $var; + + return $this; + } + /** * Optional. The input audio content to be recognized. Must be sent if * `query_input` was set to a streaming input audio config. The complete audio diff --git a/Dialogflow/src/V2/StreamingDetectIntentResponse.php b/Dialogflow/src/V2/StreamingDetectIntentResponse.php index 36abeebb70d4..3fc2de93c309 100644 --- a/Dialogflow/src/V2/StreamingDetectIntentResponse.php +++ b/Dialogflow/src/V2/StreamingDetectIntentResponse.php @@ -48,6 +48,20 @@ class StreamingDetectIntentResponse extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.rpc.Status webhook_status = 4; */ private $webhook_status = null; + /** + * The audio data bytes encoded as specified in the request. + * + * Generated from protobuf field bytes output_audio = 5; + */ + private $output_audio = ''; + /** + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; + */ + private $output_audio_config = null; /** * Constructor. @@ -64,6 +78,12 @@ class StreamingDetectIntentResponse extends \Google\Protobuf\Internal\Message * The result of the conversational query or event processing. * @type \Google\Rpc\Status $webhook_status * Specifies the status of the webhook request. + * @type string $output_audio + * The audio data bytes encoded as specified in the request. + * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. * } */ public function __construct($data = NULL) { @@ -177,5 +197,61 @@ public function setWebhookStatus($var) return $this; } + /** + * The audio data bytes encoded as specified in the request. + * + * Generated from protobuf field bytes output_audio = 5; + * @return string + */ + public function getOutputAudio() + { + return $this->output_audio; + } + + /** + * The audio data bytes encoded as specified in the request. + * + * Generated from protobuf field bytes output_audio = 5; + * @param string $var + * @return $this + */ + public function setOutputAudio($var) + { + GPBUtil::checkString($var, False); + $this->output_audio = $var; + + return $this; + } + + /** + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; + * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig + */ + public function getOutputAudioConfig() + { + return $this->output_audio_config; + } + + /** + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; + * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var + * @return $this + */ + public function setOutputAudioConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class); + $this->output_audio_config = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/StreamingRecognitionResult.php b/Dialogflow/src/V2/StreamingRecognitionResult.php index 2a298cc2b95c..72b9a8cc7f90 100644 --- a/Dialogflow/src/V2/StreamingRecognitionResult.php +++ b/Dialogflow/src/V2/StreamingRecognitionResult.php @@ -20,7 +20,7 @@ * is_final: true * 5. transcript: " that's" * 6. transcript: " that is" - * 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE` + * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE` * 8. transcript: " that is the question" * is_final: true * Only two of the responses contain final results (#4 and #8 indicated by @@ -28,7 +28,7 @@ * or not to be that is the question". * In each response we populate: * * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`. - * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`. + * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`. * * Generated from protobuf message google.cloud.dialogflow.v2.StreamingRecognitionResult */ @@ -42,17 +42,16 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message private $message_type = 0; /** * Transcript text representing the words that the user spoke. - * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * * Generated from protobuf field string transcript = 2; */ private $transcript = ''; /** - * The default of 0.0 is a sentinel value indicating `confidence` was not set. * If `false`, the `StreamingRecognitionResult` represents an * interim result that may change. If `true`, the recognizer will not return * any further hypotheses about this piece of the audio. May only be populated - * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * * Generated from protobuf field bool is_final = 3; */ @@ -79,13 +78,12 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message * Type of the result message. * @type string $transcript * Transcript text representing the words that the user spoke. - * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * @type bool $is_final - * The default of 0.0 is a sentinel value indicating `confidence` was not set. * If `false`, the `StreamingRecognitionResult` represents an * interim result that may change. If `true`, the recognizer will not return * any further hypotheses about this piece of the audio. May only be populated - * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * @type float $confidence * The Speech confidence between 0.0 and 1.0 for the current portion of audio. * A higher number indicates an estimated greater likelihood that the @@ -128,7 +126,7 @@ public function setMessageType($var) /** * Transcript text representing the words that the user spoke. - * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * * Generated from protobuf field string transcript = 2; * @return string @@ -140,7 +138,7 @@ public function getTranscript() /** * Transcript text representing the words that the user spoke. - * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * * Generated from protobuf field string transcript = 2; * @param string $var @@ -155,11 +153,10 @@ public function setTranscript($var) } /** - * The default of 0.0 is a sentinel value indicating `confidence` was not set. * If `false`, the `StreamingRecognitionResult` represents an * interim result that may change. If `true`, the recognizer will not return * any further hypotheses about this piece of the audio. May only be populated - * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * * Generated from protobuf field bool is_final = 3; * @return bool @@ -170,11 +167,10 @@ public function getIsFinal() } /** - * The default of 0.0 is a sentinel value indicating `confidence` was not set. * If `false`, the `StreamingRecognitionResult` represents an * interim result that may change. If `true`, the recognizer will not return * any further hypotheses about this piece of the audio. May only be populated - * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`. * * Generated from protobuf field bool is_final = 3; * @param bool $var diff --git a/Dialogflow/src/V2/SynthesizeSpeechConfig.php b/Dialogflow/src/V2/SynthesizeSpeechConfig.php new file mode 100644 index 000000000000..b8cff8928d57 --- /dev/null +++ b/Dialogflow/src/V2/SynthesizeSpeechConfig.php @@ -0,0 +1,259 @@ +google.cloud.dialogflow.v2.SynthesizeSpeechConfig + */ +class SynthesizeSpeechConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + * + * Generated from protobuf field double speaking_rate = 1; + */ + private $speaking_rate = 0.0; + /** + * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + * + * Generated from protobuf field double pitch = 2; + */ + private $pitch = 0.0; + /** + * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + * + * Generated from protobuf field double volume_gain_db = 3; + */ + private $volume_gain_db = 0.0; + /** + * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + * + * Generated from protobuf field repeated string effects_profile_id = 5; + */ + private $effects_profile_id; + /** + * Optional. The desired voice of the synthesized audio. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + */ + private $voice = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $speaking_rate + * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + * @type float $pitch + * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + * @type float $volume_gain_db + * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + * @type string[]|\Google\Protobuf\Internal\RepeatedField $effects_profile_id + * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + * @type \Google\Cloud\Dialogflow\V2\VoiceSelectionParams $voice + * Optional. The desired voice of the synthesized audio. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + * + * Generated from protobuf field double speaking_rate = 1; + * @return float + */ + public function getSpeakingRate() + { + return $this->speaking_rate; + } + + /** + * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + * + * Generated from protobuf field double speaking_rate = 1; + * @param float $var + * @return $this + */ + public function setSpeakingRate($var) + { + GPBUtil::checkDouble($var); + $this->speaking_rate = $var; + + return $this; + } + + /** + * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + * + * Generated from protobuf field double pitch = 2; + * @return float + */ + public function getPitch() + { + return $this->pitch; + } + + /** + * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + * + * Generated from protobuf field double pitch = 2; + * @param float $var + * @return $this + */ + public function setPitch($var) + { + GPBUtil::checkDouble($var); + $this->pitch = $var; + + return $this; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + * + * Generated from protobuf field double volume_gain_db = 3; + * @return float + */ + public function getVolumeGainDb() + { + return $this->volume_gain_db; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + * + * Generated from protobuf field double volume_gain_db = 3; + * @param float $var + * @return $this + */ + public function setVolumeGainDb($var) + { + GPBUtil::checkDouble($var); + $this->volume_gain_db = $var; + + return $this; + } + + /** + * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + * + * Generated from protobuf field repeated string effects_profile_id = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEffectsProfileId() + { + return $this->effects_profile_id; + } + + /** + * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + * + * Generated from protobuf field repeated string effects_profile_id = 5; + * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEffectsProfileId($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->effects_profile_id = $arr; + + return $this; + } + + /** + * Optional. The desired voice of the synthesized audio. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * @return \Google\Cloud\Dialogflow\V2\VoiceSelectionParams + */ + public function getVoice() + { + return $this->voice; + } + + /** + * Optional. The desired voice of the synthesized audio. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * @param \Google\Cloud\Dialogflow\V2\VoiceSelectionParams $var + * @return $this + */ + public function setVoice($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\VoiceSelectionParams::class); + $this->voice = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/TextInput.php b/Dialogflow/src/V2/TextInput.php index 27685eee46ac..a2cc18788798 100644 --- a/Dialogflow/src/V2/TextInput.php +++ b/Dialogflow/src/V2/TextInput.php @@ -17,16 +17,16 @@ class TextInput extends \Google\Protobuf\Internal\Message { /** * Required. The UTF-8 encoded natural language text to be processed. - * Text length must not exceed 256 bytes. + * Text length must not exceed 256 characters. * * Generated from protobuf field string text = 1; */ private $text = ''; /** * Required. The language of this conversational query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 2; */ @@ -40,12 +40,12 @@ class TextInput extends \Google\Protobuf\Internal\Message * * @type string $text * Required. The UTF-8 encoded natural language text to be processed. - * Text length must not exceed 256 bytes. + * Text length must not exceed 256 characters. * @type string $language_code * Required. The language of this conversational query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * } */ public function __construct($data = NULL) { @@ -55,7 +55,7 @@ public function __construct($data = NULL) { /** * Required. The UTF-8 encoded natural language text to be processed. - * Text length must not exceed 256 bytes. + * Text length must not exceed 256 characters. * * Generated from protobuf field string text = 1; * @return string @@ -67,7 +67,7 @@ public function getText() /** * Required. The UTF-8 encoded natural language text to be processed. - * Text length must not exceed 256 bytes. + * Text length must not exceed 256 characters. * * Generated from protobuf field string text = 1; * @param string $var @@ -83,9 +83,9 @@ public function setText($var) /** * Required. The language of this conversational query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 2; * @return string @@ -97,9 +97,9 @@ public function getLanguageCode() /** * Required. The language of this conversational query. See [Language - * Support](https://dialogflow.com/docs/languages) 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. + * Support](https://cloud.google.com/dialogflow-enterprise/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. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/TrainAgentRequest.php b/Dialogflow/src/V2/TrainAgentRequest.php index bf6dd815b444..ce6727501c39 100644 --- a/Dialogflow/src/V2/TrainAgentRequest.php +++ b/Dialogflow/src/V2/TrainAgentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent]. + * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.TrainAgentRequest */ diff --git a/Dialogflow/src/V2/UpdateContextRequest.php b/Dialogflow/src/V2/UpdateContextRequest.php index 289546230d45..ba057c39a98c 100644 --- a/Dialogflow/src/V2/UpdateContextRequest.php +++ b/Dialogflow/src/V2/UpdateContextRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext]. + * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateContextRequest */ diff --git a/Dialogflow/src/V2/UpdateEntityTypeRequest.php b/Dialogflow/src/V2/UpdateEntityTypeRequest.php index 88621edbf958..6d95edde531a 100644 --- a/Dialogflow/src/V2/UpdateEntityTypeRequest.php +++ b/Dialogflow/src/V2/UpdateEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]. + * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateEntityTypeRequest */ @@ -18,7 +17,6 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message { /** * Required. The entity type to update. - * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1; */ @@ -26,9 +24,10 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; */ @@ -48,13 +47,13 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message * * @type \Google\Cloud\Dialogflow\V2\EntityType $entity_type * Required. The entity type to update. - * Format: `projects//agent/entityTypes/`. * @type string $language_code * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type \Google\Protobuf\FieldMask $update_mask * Optional. The mask to control which fields get updated. * } @@ -66,7 +65,6 @@ public function __construct($data = NULL) { /** * Required. The entity type to update. - * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1; * @return \Google\Cloud\Dialogflow\V2\EntityType @@ -78,7 +76,6 @@ public function getEntityType() /** * Required. The entity type to update. - * Format: `projects//agent/entityTypes/`. * * Generated from protobuf field .google.cloud.dialogflow.v2.EntityType entity_type = 1; * @param \Google\Cloud\Dialogflow\V2\EntityType $var @@ -95,9 +92,10 @@ public function setEntityType($var) /** * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @return string @@ -110,9 +108,10 @@ public function getLanguageCode() /** * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/UpdateIntentRequest.php b/Dialogflow/src/V2/UpdateIntentRequest.php index 5429c06f6bc5..e0b0aba31f86 100644 --- a/Dialogflow/src/V2/UpdateIntentRequest.php +++ b/Dialogflow/src/V2/UpdateIntentRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent]. + * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateIntentRequest */ @@ -18,7 +17,6 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message { /** * Required. The intent to update. - * Format: `projects//agent/intents/`. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1; */ @@ -26,9 +24,10 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message /** * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; */ @@ -54,13 +53,13 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message * * @type \Google\Cloud\Dialogflow\V2\Intent $intent * Required. The intent to update. - * Format: `projects//agent/intents/`. * @type string $language_code * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type \Google\Protobuf\FieldMask $update_mask * Optional. The mask to control which fields get updated. * @type int $intent_view @@ -74,7 +73,6 @@ public function __construct($data = NULL) { /** * Required. The intent to update. - * Format: `projects//agent/intents/`. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1; * @return \Google\Cloud\Dialogflow\V2\Intent @@ -86,7 +84,6 @@ public function getIntent() /** * Required. The intent to update. - * Format: `projects//agent/intents/`. * * Generated from protobuf field .google.cloud.dialogflow.v2.Intent intent = 1; * @param \Google\Cloud\Dialogflow\V2\Intent $var @@ -103,9 +100,10 @@ public function setIntent($var) /** * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @return string @@ -118,9 +116,10 @@ public function getLanguageCode() /** * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * * Generated from protobuf field string language_code = 2; * @param string $var diff --git a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php index e6d5c8c2ff65..39c24724fa0a 100644 --- a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php @@ -9,8 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for - * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType]. + * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/VoiceSelectionParams.php b/Dialogflow/src/V2/VoiceSelectionParams.php new file mode 100644 index 000000000000..cb9f714f0bb3 --- /dev/null +++ b/Dialogflow/src/V2/VoiceSelectionParams.php @@ -0,0 +1,121 @@ +google.cloud.dialogflow.v2.VoiceSelectionParams + */ +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. + * + * Generated from protobuf field string name = 1; + */ + private $name = ''; + /** + * 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 + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + */ + private $ssml_gender = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @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. + * @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 + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->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. + * + * 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. 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 + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * @return int + */ + public function getSsmlGender() + { + return $this->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 + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * @param int $var + * @return $this + */ + public function setSsmlGender($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SsmlVoiceGender::class); + $this->ssml_gender = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/WebhookRequest.php b/Dialogflow/src/V2/WebhookRequest.php index d9bad4740e17..9985e882248c 100644 --- a/Dialogflow/src/V2/WebhookRequest.php +++ b/Dialogflow/src/V2/WebhookRequest.php @@ -18,7 +18,9 @@ class WebhookRequest extends \Google\Protobuf\Internal\Message /** * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. - * Format: `projects//agent/sessions/`. + * Format: `projects//agent/sessions/`, or + * `projects//agent/environments//users//sessions/`. * * Generated from protobuf field string session = 4; */ @@ -54,7 +56,9 @@ class WebhookRequest extends \Google\Protobuf\Internal\Message * @type string $session * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. - * Format: `projects//agent/sessions/`. + * Format: `projects//agent/sessions/`, or + * `projects//agent/environments//users//sessions/`. * @type string $response_id * The unique identifier of the response. Contains the same value as * `[Streaming]DetectIntentResponse.response_id`. @@ -74,7 +78,9 @@ public function __construct($data = NULL) { /** * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. - * Format: `projects//agent/sessions/`. + * Format: `projects//agent/sessions/`, or + * `projects//agent/environments//users//sessions/`. * * Generated from protobuf field string session = 4; * @return string @@ -87,7 +93,9 @@ public function getSession() /** * The unique identifier of detectIntent request session. * Can be used to identify end-user inside webhook implementation. - * Format: `projects//agent/sessions/`. + * Format: `projects//agent/sessions/`, or + * `projects//agent/environments//users//sessions/`. * * Generated from protobuf field string session = 4; * @param string $var diff --git a/Dialogflow/src/V2/resources/agents_rest_client_config.php b/Dialogflow/src/V2/resources/agents_rest_client_config.php index 10c1480cc4b3..7e730273acef 100644 --- a/Dialogflow/src/V2/resources/agents_rest_client_config.php +++ b/Dialogflow/src/V2/resources/agents_rest_client_config.php @@ -74,24 +74,5 @@ ], ], ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], ], ]; diff --git a/Dialogflow/src/V2/resources/contexts_rest_client_config.php b/Dialogflow/src/V2/resources/contexts_rest_client_config.php index 62fbce7524d8..2eb0dfaa974e 100644 --- a/Dialogflow/src/V2/resources/contexts_rest_client_config.php +++ b/Dialogflow/src/V2/resources/contexts_rest_client_config.php @@ -73,24 +73,5 @@ ], ], ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], ], ]; diff --git a/Dialogflow/src/V2/resources/entity_types_rest_client_config.php b/Dialogflow/src/V2/resources/entity_types_rest_client_config.php index 60bd6f9994cb..2ee5bcffa291 100644 --- a/Dialogflow/src/V2/resources/entity_types_rest_client_config.php +++ b/Dialogflow/src/V2/resources/entity_types_rest_client_config.php @@ -122,24 +122,5 @@ ], ], ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], ], ]; diff --git a/Dialogflow/src/V2/resources/intents_rest_client_config.php b/Dialogflow/src/V2/resources/intents_rest_client_config.php index f23c55d32d89..cc129dc87bbe 100644 --- a/Dialogflow/src/V2/resources/intents_rest_client_config.php +++ b/Dialogflow/src/V2/resources/intents_rest_client_config.php @@ -86,24 +86,5 @@ ], ], ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], ], ]; diff --git a/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php b/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php index 414937a77d11..635073911f1a 100644 --- a/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php +++ b/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php @@ -62,24 +62,5 @@ ], ], ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], ], ]; diff --git a/Dialogflow/src/V2/resources/sessions_rest_client_config.php b/Dialogflow/src/V2/resources/sessions_rest_client_config.php index 6b9dda509a16..eff586c2c813 100644 --- a/Dialogflow/src/V2/resources/sessions_rest_client_config.php +++ b/Dialogflow/src/V2/resources/sessions_rest_client_config.php @@ -16,24 +16,5 @@ ], ], ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], ], ]; diff --git a/Dialogflow/synth.metadata b/Dialogflow/synth.metadata index 24e496bd2929..79830039f2bc 100644 --- a/Dialogflow/synth.metadata +++ b/Dialogflow/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-03-29T10:00:11.614693Z", + "updateTime": "2019-03-30T10:00:03.351509Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "37386f1ebcaed51bcb7d15d00124d22c38606e45", - "internalRef": "240841842" + "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b", + "internalRef": "241096997" } } ], diff --git a/Dialogflow/tests/Unit/V2/SessionsClientTest.php b/Dialogflow/tests/Unit/V2/SessionsClientTest.php index 0d9885da4110..8dda722a7f14 100644 --- a/Dialogflow/tests/Unit/V2/SessionsClientTest.php +++ b/Dialogflow/tests/Unit/V2/SessionsClientTest.php @@ -76,8 +76,10 @@ public function detectIntentTest() // Mock response $responseId = 'responseId1847552473'; + $outputAudio = '24'; $expectedResponse = new DetectIntentResponse(); $expectedResponse->setResponseId($responseId); + $expectedResponse->setOutputAudio($outputAudio); $transport->addResponse($expectedResponse); // Mock request @@ -154,16 +156,22 @@ public function streamingDetectIntentTest() // Mock response $responseId = 'responseId1847552473'; + $outputAudio = '24'; $expectedResponse = new StreamingDetectIntentResponse(); $expectedResponse->setResponseId($responseId); + $expectedResponse->setOutputAudio($outputAudio); $transport->addResponse($expectedResponse); $responseId2 = 'responseId21676436300'; + $outputAudio2 = '-53'; $expectedResponse2 = new StreamingDetectIntentResponse(); $expectedResponse2->setResponseId($responseId2); + $expectedResponse2->setOutputAudio($outputAudio2); $transport->addResponse($expectedResponse2); $responseId3 = 'responseId31676436301'; + $outputAudio3 = '-52'; $expectedResponse3 = new StreamingDetectIntentResponse(); $expectedResponse3->setResponseId($responseId3); + $expectedResponse3->setOutputAudio($outputAudio3); $transport->addResponse($expectedResponse3); // Mock request