google-cloud-dialogflow-v2 1.15.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/ces_app_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/generators/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/generators/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +5 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/tools/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/tools/rest/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +2 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/ces_app.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +6 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +50 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +98 -7
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +14 -11
- data/proto_docs/google/type/latlng.rb +3 -3
- metadata +3 -3
|
@@ -29,6 +29,18 @@ module Google
|
|
|
29
29
|
# @!attribute [rw] confirmation_requirement
|
|
30
30
|
# @return [::Google::Cloud::Dialogflow::V2::Tool::ConfirmationRequirement]
|
|
31
31
|
# Optional. Indicates whether the app requires human confirmation.
|
|
32
|
+
# @!attribute [rw] proactive_enabled
|
|
33
|
+
# @return [::Boolean]
|
|
34
|
+
# Optional. Only applicable for CompanionAgent.
|
|
35
|
+
# Indicates whether the ces app is enabled in proactive mode.
|
|
36
|
+
# At least one of `proactive_enabled` or `reactive_enabled` should be
|
|
37
|
+
# true; otherwise, the ces app will be ignored.
|
|
38
|
+
# @!attribute [rw] reactive_enabled
|
|
39
|
+
# @return [::Boolean]
|
|
40
|
+
# Optional. Only applicable for CompanionAgent.
|
|
41
|
+
# Indicates whether the ces app is enabled in reactive mode.
|
|
42
|
+
# At least one of `proactive_enabled` or `reactive_enabled` should be
|
|
43
|
+
# true; otherwise, the ces app will be ignored.
|
|
32
44
|
class CesAppSpec
|
|
33
45
|
include ::Google::Protobuf::MessageExts
|
|
34
46
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -79,6 +79,9 @@ module Google
|
|
|
79
79
|
# languages.
|
|
80
80
|
# This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
|
81
81
|
# language tag. Example: "en-US".
|
|
82
|
+
# @!attribute [rw] sip_config
|
|
83
|
+
# @return [::Google::Cloud::Dialogflow::V2::SipConfig]
|
|
84
|
+
# Optional. Configuration for SIP connections.
|
|
82
85
|
# @!attribute [rw] time_zone
|
|
83
86
|
# @return [::String]
|
|
84
87
|
# The time zone of this conversational profile from the
|
|
@@ -295,6 +298,20 @@ module Google
|
|
|
295
298
|
# @return [::Google::Cloud::Dialogflow::V2::RaiSettings]
|
|
296
299
|
# Optional. Settings for Responsible AI checks.
|
|
297
300
|
# Supported features: KNOWLEDGE_ASSIST
|
|
301
|
+
# @!attribute [rw] suggestion_trigger_event
|
|
302
|
+
# @return [::Google::Cloud::Dialogflow::V2::TriggerEvent]
|
|
303
|
+
# Optional. The trigger event for suggestion.
|
|
304
|
+
# If unspecified, it will be `CUSTOMER_MESSAGE`.
|
|
305
|
+
# Supported features: KNOWLEDGE_ASSIST
|
|
306
|
+
# For KNOWLEDGE_ASSIST, these four trigger events are supported:
|
|
307
|
+
# 1. TRIGGER_EVENT_UNSPECIFIED
|
|
308
|
+
# 2. END_OF_UTTERANCE
|
|
309
|
+
# 3. CUSTOMER_MESSAGE
|
|
310
|
+
# 4. AGENT_MESSAGE
|
|
311
|
+
# @!attribute [rw] disable_query_search_context
|
|
312
|
+
# @return [::Boolean]
|
|
313
|
+
# Optional. If true, disable appending available search context to the
|
|
314
|
+
# search query. Supported features: KNOWLEDGE_ASSIST
|
|
298
315
|
# @!attribute [rw] suggestion_trigger_settings
|
|
299
316
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionTriggerSettings]
|
|
300
317
|
# Settings of suggestion trigger.
|
|
@@ -749,6 +766,39 @@ module Google
|
|
|
749
766
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
750
767
|
end
|
|
751
768
|
|
|
769
|
+
# Defines the SIP configuration.
|
|
770
|
+
# @!attribute [rw] create_conversation_on_the_fly
|
|
771
|
+
# @return [::Boolean]
|
|
772
|
+
# Asks Dialogflow Telephony to create the conversation provided in the SIP
|
|
773
|
+
# header on the fly when the call comes in.
|
|
774
|
+
# @!attribute [rw] inactive_start
|
|
775
|
+
# @return [::Boolean]
|
|
776
|
+
# Starts the conversation with inactive SDP directives
|
|
777
|
+
# @!attribute [rw] max_audio_recording_duration
|
|
778
|
+
# @return [::Google::Protobuf::Duration]
|
|
779
|
+
# Max duration for audio recording.
|
|
780
|
+
# Overrides the default value of 15 min.
|
|
781
|
+
# Max value is 8 hours.
|
|
782
|
+
# @!attribute [rw] allow_virtual_agent_interaction
|
|
783
|
+
# @return [::Boolean]
|
|
784
|
+
# Allows interactions with a Dialogflow virtual agent even if the call is
|
|
785
|
+
# connected for SIPREC purposes.
|
|
786
|
+
# @!attribute [rw] keep_conversation_running
|
|
787
|
+
# @return [::Boolean]
|
|
788
|
+
# Keeps the conversation running even if the call is disconnected.
|
|
789
|
+
# @!attribute [rw] copy_inbound_call_leg_headers
|
|
790
|
+
# @return [::Array<::String>]
|
|
791
|
+
# List of inbound call leg headers to be copied to outbound call legs created
|
|
792
|
+
# later.
|
|
793
|
+
# @!attribute [rw] ignore_reinvite_media_direction
|
|
794
|
+
# @return [::Boolean]
|
|
795
|
+
# Ignores any media direction in the reINVITE SDP offer. Reuse the previous
|
|
796
|
+
# media direction.
|
|
797
|
+
class SipConfig
|
|
798
|
+
include ::Google::Protobuf::MessageExts
|
|
799
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
800
|
+
end
|
|
801
|
+
|
|
752
802
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
|
753
803
|
# number of results to return for that type. Multiple `Feature` objects can
|
|
754
804
|
# be specified in the `features` list.
|
|
@@ -50,9 +50,9 @@ module Google
|
|
|
50
50
|
# Dialogflow adds the obfuscated user id with the participant.
|
|
51
51
|
#
|
|
52
52
|
# 2. If you set this field in
|
|
53
|
-
#
|
|
54
|
-
# or
|
|
55
|
-
#
|
|
53
|
+
# [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id]
|
|
54
|
+
# or [StreamingAnalyzeContent]
|
|
55
|
+
# [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id],
|
|
56
56
|
# Dialogflow will update
|
|
57
57
|
# {::Google::Cloud::Dialogflow::V2::Participant#obfuscated_external_user_id Participant.obfuscated_external_user_id}.
|
|
58
58
|
#
|
|
@@ -64,6 +64,11 @@ module Google
|
|
|
64
64
|
# example, Dialogflow determines whether a user in one conversation returned
|
|
65
65
|
# in a later conversation.
|
|
66
66
|
#
|
|
67
|
+
# Additionally, to link an escalated Virtual Agent conversation
|
|
68
|
+
# with its corresponding Agent Assist conversation for analytics, this field
|
|
69
|
+
# in Agent Assist conversations should be populated to indicate the user id
|
|
70
|
+
# of the `END_USER` participant in the escalated conversation.
|
|
71
|
+
#
|
|
67
72
|
# Note:
|
|
68
73
|
#
|
|
69
74
|
# * Please never pass raw user ids to Dialogflow. Always obfuscate your user
|
|
@@ -542,8 +547,11 @@ module Google
|
|
|
542
547
|
#
|
|
543
548
|
# 1. If the input was set to streaming audio, the first one or more messages
|
|
544
549
|
# contain `recognition_result`. Each `recognition_result` represents a more
|
|
545
|
-
# complete transcript of what the user said.
|
|
546
|
-
#
|
|
550
|
+
# complete transcript of what the user said. When a user speaks multiple
|
|
551
|
+
# sentences, the API will emit multiple messages where `is_final = true`.
|
|
552
|
+
# Each time the system detects a distinct pause or completed thought, it
|
|
553
|
+
# locks in that segment, marks it `is_final = true`, and then immediately
|
|
554
|
+
# starts a new recognition cycle for the next sentence on the same stream.
|
|
547
555
|
#
|
|
548
556
|
# 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is
|
|
549
557
|
# true, the following N (currently 1 <= N <= 4) messages
|
|
@@ -1237,6 +1245,11 @@ module Google
|
|
|
1237
1245
|
# to compile the suggestion. It may be smaller than the
|
|
1238
1246
|
# {::Google::Cloud::Dialogflow::V2::SuggestKnowledgeAssistRequest#context_size SuggestKnowledgeAssistRequest.context_size}
|
|
1239
1247
|
# field in the request if there are fewer messages in the conversation.
|
|
1248
|
+
# @!attribute [rw] additional_suggested_query_results
|
|
1249
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::AdditionalSuggestedQueryResult>]
|
|
1250
|
+
# Optional. The list of additional suggested queries based on the context.
|
|
1251
|
+
# This is used for the cases when we want to generate multiple queries
|
|
1252
|
+
# for a single request.
|
|
1240
1253
|
class SuggestKnowledgeAssistResponse
|
|
1241
1254
|
include ::Google::Protobuf::MessageExts
|
|
1242
1255
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1344,6 +1357,12 @@ module Google
|
|
|
1344
1357
|
# @!attribute [rw] service_latency
|
|
1345
1358
|
# @return [::Google::Cloud::Dialogflow::V2::ServiceLatency]
|
|
1346
1359
|
# The latency of the service.
|
|
1360
|
+
# @!attribute [rw] query_generation_debug_info
|
|
1361
|
+
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistDebugInfo::QueryGenerationDebugInfo]
|
|
1362
|
+
# Token usage metadata for query generation.
|
|
1363
|
+
# @!attribute [rw] ces_debug_info
|
|
1364
|
+
# @return [::Google::Protobuf::Struct]
|
|
1365
|
+
# Debug information from CES runtime API.
|
|
1347
1366
|
class KnowledgeAssistDebugInfo
|
|
1348
1367
|
include ::Google::Protobuf::MessageExts
|
|
1349
1368
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1412,6 +1431,21 @@ module Google
|
|
|
1412
1431
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1413
1432
|
end
|
|
1414
1433
|
|
|
1434
|
+
# Token usage metadata for query generation.
|
|
1435
|
+
# @!attribute [rw] prompt_token_count
|
|
1436
|
+
# @return [::Integer]
|
|
1437
|
+
# The total number of tokens in the prompt.
|
|
1438
|
+
# @!attribute [rw] candidates_token_count
|
|
1439
|
+
# @return [::Integer]
|
|
1440
|
+
# The total number of tokens in the generated candidates.
|
|
1441
|
+
# @!attribute [rw] total_token_count
|
|
1442
|
+
# @return [::Integer]
|
|
1443
|
+
# The total number of tokens for the entire request.
|
|
1444
|
+
class QueryGenerationDebugInfo
|
|
1445
|
+
include ::Google::Protobuf::MessageExts
|
|
1446
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1415
1449
|
# Reason for query generation failure.
|
|
1416
1450
|
module QueryGenerationFailureReason
|
|
1417
1451
|
# Default value.
|
|
@@ -1496,9 +1530,44 @@ module Google
|
|
|
1496
1530
|
# @!attribute [rw] query_text
|
|
1497
1531
|
# @return [::String]
|
|
1498
1532
|
# Suggested query text.
|
|
1533
|
+
# @!attribute [rw] search_contexts
|
|
1534
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery::SearchContext>]
|
|
1535
|
+
# Optional. The search contexts for the query.
|
|
1499
1536
|
class SuggestedQuery
|
|
1500
1537
|
include ::Google::Protobuf::MessageExts
|
|
1501
1538
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1539
|
+
|
|
1540
|
+
# Search context is information useful for knowledge search that helps
|
|
1541
|
+
# enrich the query.
|
|
1542
|
+
# Example:
|
|
1543
|
+
# search_context {
|
|
1544
|
+
# key: "application name"
|
|
1545
|
+
# value: "DesignApp"
|
|
1546
|
+
# }
|
|
1547
|
+
# @!attribute [rw] key
|
|
1548
|
+
# @return [::String]
|
|
1549
|
+
# Optional. The key of the search context, e.g. "application name".
|
|
1550
|
+
# @!attribute [rw] value
|
|
1551
|
+
# @return [::String]
|
|
1552
|
+
# Optional. The value of the search context, e.g. "DesignApp".
|
|
1553
|
+
class SearchContext
|
|
1554
|
+
include ::Google::Protobuf::MessageExts
|
|
1555
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1556
|
+
end
|
|
1557
|
+
end
|
|
1558
|
+
|
|
1559
|
+
# Represents a single suggested query result.
|
|
1560
|
+
# @!attribute [r] suggested_query
|
|
1561
|
+
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery]
|
|
1562
|
+
# Output only. The suggested query based on the context.
|
|
1563
|
+
# @!attribute [r] answer_record
|
|
1564
|
+
# @return [::String]
|
|
1565
|
+
# Output only. The name of the answer record.
|
|
1566
|
+
# Format: `projects/<Project ID>/locations/<Location
|
|
1567
|
+
# ID>/answerRecords/<Answer Record ID>`
|
|
1568
|
+
class AdditionalSuggestedQueryResult
|
|
1569
|
+
include ::Google::Protobuf::MessageExts
|
|
1570
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1502
1571
|
end
|
|
1503
1572
|
|
|
1504
1573
|
# Represents an answer from Knowledge. Currently supports FAQ and Generative
|
|
@@ -1510,12 +1579,22 @@ module Google
|
|
|
1510
1579
|
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource]
|
|
1511
1580
|
# Populated if the prediction came from FAQ.
|
|
1512
1581
|
#
|
|
1513
|
-
# Note: The following fields are mutually exclusive: `faq_source`, `generative_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1582
|
+
# Note: The following fields are mutually exclusive: `faq_source`, `generative_source`, `playbook_source`, `event_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1514
1583
|
# @!attribute [rw] generative_source
|
|
1515
1584
|
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource]
|
|
1516
1585
|
# Populated if the prediction was Generative.
|
|
1517
1586
|
#
|
|
1518
|
-
# Note: The following fields are mutually exclusive: `generative_source`, `faq_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1587
|
+
# Note: The following fields are mutually exclusive: `generative_source`, `faq_source`, `playbook_source`, `event_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1588
|
+
# @!attribute [rw] playbook_source
|
|
1589
|
+
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource]
|
|
1590
|
+
# Populated if the prediction was from Playbook.
|
|
1591
|
+
#
|
|
1592
|
+
# Note: The following fields are mutually exclusive: `playbook_source`, `faq_source`, `generative_source`, `event_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1593
|
+
# @!attribute [rw] event_source
|
|
1594
|
+
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::EventSource]
|
|
1595
|
+
# Populated if the prediction was from an event.
|
|
1596
|
+
#
|
|
1597
|
+
# Note: The following fields are mutually exclusive: `event_source`, `faq_source`, `generative_source`, `playbook_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1519
1598
|
class KnowledgeAnswer
|
|
1520
1599
|
include ::Google::Protobuf::MessageExts
|
|
1521
1600
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1556,6 +1635,18 @@ module Google
|
|
|
1556
1635
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1557
1636
|
end
|
|
1558
1637
|
end
|
|
1638
|
+
|
|
1639
|
+
# Details about source of Event answer.
|
|
1640
|
+
# @!attribute [rw] event
|
|
1641
|
+
# @return [::String]
|
|
1642
|
+
# Name of the triggered event.
|
|
1643
|
+
# @!attribute [rw] snippets
|
|
1644
|
+
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource]
|
|
1645
|
+
# Sources used in event fulfillment.
|
|
1646
|
+
class EventSource
|
|
1647
|
+
include ::Google::Protobuf::MessageExts
|
|
1648
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1649
|
+
end
|
|
1559
1650
|
end
|
|
1560
1651
|
end
|
|
1561
1652
|
|
|
@@ -571,19 +571,22 @@ module Google
|
|
|
571
571
|
# finalized transcript values received for the series of results.
|
|
572
572
|
#
|
|
573
573
|
# In the following example, single utterance is enabled. In the case where
|
|
574
|
-
# single utterance is not enabled, result
|
|
574
|
+
# single utterance is not enabled, result 8 would not occur.
|
|
575
575
|
#
|
|
576
576
|
# ```
|
|
577
|
-
# Num | transcript
|
|
578
|
-
# --- |
|
|
579
|
-
# 1 | "tube"
|
|
580
|
-
# 2 | "to be a"
|
|
581
|
-
# 3 | "to be"
|
|
582
|
-
# 4 | "to be or not to be"
|
|
583
|
-
# 5 | "that's"
|
|
584
|
-
# 6 | "that is
|
|
585
|
-
# 7 |
|
|
586
|
-
# 8 |
|
|
577
|
+
# Num | transcript | message_type | is_final
|
|
578
|
+
# --- | ------------------------ | ----------------------- | --------
|
|
579
|
+
# 1 | "tube" | TRANSCRIPT | false
|
|
580
|
+
# 2 | "to be a" | TRANSCRIPT | false
|
|
581
|
+
# 3 | "to be" | TRANSCRIPT | false
|
|
582
|
+
# 4 | "to be or not to be" | TRANSCRIPT | true
|
|
583
|
+
# 5 | "that's" | TRANSCRIPT | false
|
|
584
|
+
# 6 | "that is | TRANSCRIPT | false
|
|
585
|
+
# 7 | " that is the question" | TRANSCRIPT | true
|
|
586
|
+
# 8 | unset | END_OF_SINGLE_UTTERANCE | unset
|
|
587
|
+
# 9 | ". Whether 'tis nobler" | TRANSCRIPT | true
|
|
588
|
+
# 10 | " in the mind" | TRANSCRIPT | false
|
|
589
|
+
# 11 | " in the mind to suffer" | TRANSCRIPT | true
|
|
587
590
|
# ```
|
|
588
591
|
#
|
|
589
592
|
# Concatenating the finalized transcripts with `is_final` set to true,
|
|
@@ -21,9 +21,9 @@ module Google
|
|
|
21
21
|
module Type
|
|
22
22
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
23
23
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
|
24
|
-
# specified otherwise, this must conform to the
|
|
25
|
-
# <a href="
|
|
26
|
-
# standard</a>. Values must be within normalized ranges.
|
|
24
|
+
# specified otherwise, this object must conform to the
|
|
25
|
+
# <a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
|
|
26
|
+
# WGS84 standard</a>. Values must be within normalized ranges.
|
|
27
27
|
# @!attribute [rw] latitude
|
|
28
28
|
# @return [::Float]
|
|
29
29
|
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dialogflow-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.16.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.3'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.3'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|