google-cloud-dialogflow-v2 0.19.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +12 -8
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +16 -12
- data/lib/google/cloud/dialogflow/v2/agents.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +7 -0
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/answer_records.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +10 -5
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +12 -7
- data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +10 -5
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -5
- data/lib/google/cloud/dialogflow/v2/conversation_models.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +18 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +14 -7
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +14 -7
- data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +14 -6
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +119 -8
- data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +45 -0
- data/lib/google/cloud/dialogflow/v2/conversations.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +16 -8
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +20 -12
- data/lib/google/cloud/dialogflow/v2/documents.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +4 -4
- data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/intents.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/participants.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +8 -6
- data/lib/google/cloud/dialogflow/v2/sessions.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/versions.rb +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +2 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +26 -15
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +34 -9
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +28 -18
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +14 -7
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -14
- data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +15 -10
- data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +41 -14
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +28 -15
- data/proto_docs/google/cloud/dialogflow/v2/document.rb +26 -15
- data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +30 -15
- data/proto_docs/google/cloud/dialogflow/v2/environment.rb +37 -29
- data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +12 -7
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +33 -17
- data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +12 -6
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +110 -59
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +63 -46
- data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +15 -8
- data/proto_docs/google/cloud/dialogflow/v2/version.rb +20 -14
- data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +20 -13
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +7 -5
@@ -61,12 +61,14 @@ module Google
|
|
61
61
|
# configured, no output audio is generated.
|
62
62
|
# @!attribute [rw] output_audio_config_mask
|
63
63
|
# @return [::Google::Protobuf::FieldMask]
|
64
|
-
# Mask for
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
64
|
+
# Mask for
|
65
|
+
# {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config}
|
66
|
+
# indicating which settings in this request-level config should override
|
67
|
+
# speech synthesizer settings defined at agent-level.
|
68
|
+
#
|
69
|
+
# If unspecified or empty,
|
70
|
+
# {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config}
|
71
|
+
# replaces the agent-level config in its entirety.
|
70
72
|
# @!attribute [rw] input_audio
|
71
73
|
# @return [::String]
|
72
74
|
# The natural language speech audio to be processed. This field
|
@@ -309,25 +311,29 @@ module Google
|
|
309
311
|
end
|
310
312
|
|
311
313
|
# The top-level message sent by the client to the
|
312
|
-
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent Sessions.StreamingDetectIntent}
|
314
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent Sessions.StreamingDetectIntent}
|
315
|
+
# method.
|
313
316
|
#
|
314
317
|
# Multiple request messages should be sent in order:
|
315
318
|
#
|
316
319
|
# 1. The first message must contain
|
317
320
|
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#session session},
|
318
|
-
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_input query_input}
|
319
|
-
#
|
320
|
-
#
|
321
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_input query_input}
|
322
|
+
# plus optionally
|
323
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_params query_params}.
|
324
|
+
# If the client wants to receive an audio response, it should also contain
|
321
325
|
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#output_audio_config output_audio_config}.
|
322
326
|
# The message must not contain
|
323
327
|
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#input_audio input_audio}.
|
324
|
-
# 2. If
|
325
|
-
#
|
326
|
-
#
|
327
|
-
# {::Google::Cloud::Dialogflow::V2::
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
328
|
+
# 2. If
|
329
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_input query_input}
|
330
|
+
# was set to
|
331
|
+
# {::Google::Cloud::Dialogflow::V2::InputAudioConfig query_input.audio_config},
|
332
|
+
# all subsequent messages must contain
|
333
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#input_audio input_audio}
|
334
|
+
# to continue with Speech recognition. If you decide to rather detect an
|
335
|
+
# intent from text input after you already started Speech recognition,
|
336
|
+
# please send a message with
|
331
337
|
# {::Google::Cloud::Dialogflow::V2::QueryInput#text query_input.text}.
|
332
338
|
#
|
333
339
|
# However, note that:
|
@@ -372,14 +378,15 @@ module Google
|
|
372
378
|
# 3. an event that specifies which intent to trigger.
|
373
379
|
# @!attribute [rw] single_utterance
|
374
380
|
# @return [::Boolean]
|
375
|
-
# Please use
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
# This setting is ignored when `query_input` is a piece
|
381
|
+
# Please use
|
382
|
+
# {::Google::Cloud::Dialogflow::V2::InputAudioConfig#single_utterance InputAudioConfig.single_utterance}
|
383
|
+
# instead. If `false` (default), recognition does not cease until the client
|
384
|
+
# closes the stream. If `true`, the recognizer will detect a single spoken
|
385
|
+
# utterance in input audio. Recognition ceases when it detects the audio's
|
386
|
+
# voice has stopped or paused. In this case, once a detected intent is
|
387
|
+
# received, the client should close the stream and start a new request with a
|
388
|
+
# new stream as needed. This setting is ignored when `query_input` is a piece
|
389
|
+
# of text or an event.
|
383
390
|
# @!attribute [rw] output_audio_config
|
384
391
|
# @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
|
385
392
|
# Instructs the speech synthesizer how to generate the output
|
@@ -387,12 +394,14 @@ module Google
|
|
387
394
|
# configured, no output audio is generated.
|
388
395
|
# @!attribute [rw] output_audio_config_mask
|
389
396
|
# @return [::Google::Protobuf::FieldMask]
|
390
|
-
# Mask for
|
391
|
-
#
|
392
|
-
#
|
393
|
-
#
|
394
|
-
#
|
395
|
-
#
|
397
|
+
# Mask for
|
398
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#output_audio_config output_audio_config}
|
399
|
+
# indicating which settings in this request-level config should override
|
400
|
+
# speech synthesizer settings defined at agent-level.
|
401
|
+
#
|
402
|
+
# If unspecified or empty,
|
403
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#output_audio_config output_audio_config}
|
404
|
+
# replaces the agent-level config in its entirety.
|
396
405
|
# @!attribute [rw] input_audio
|
397
406
|
# @return [::String]
|
398
407
|
# The input audio content to be recognized. Must be sent if
|
@@ -411,8 +420,9 @@ module Google
|
|
411
420
|
# 1. If the `StreamingDetectIntentRequest.input_audio` field was
|
412
421
|
# set, the `recognition_result` field is populated for one
|
413
422
|
# or more messages.
|
414
|
-
# See the
|
415
|
-
#
|
423
|
+
# See the
|
424
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult StreamingRecognitionResult}
|
425
|
+
# message for details about the result message sequence.
|
416
426
|
#
|
417
427
|
# 2. The next message contains `response_id`, `query_result`
|
418
428
|
# and optionally `webhook_status` if a WebHook was called.
|
@@ -511,7 +521,8 @@ module Google
|
|
511
521
|
# @!attribute [rw] speech_word_info
|
512
522
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SpeechWordInfo>]
|
513
523
|
# Word-specific information for the words recognized by Speech in
|
514
|
-
# {::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult#transcript transcript}.
|
524
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult#transcript transcript}.
|
525
|
+
# Populated if and only if `message_type` = `TRANSCRIPT` and
|
515
526
|
# [InputAudioConfig.enable_word_info] is set.
|
516
527
|
# @!attribute [rw] speech_end_offset
|
517
528
|
# @return [::Google::Protobuf::Duration]
|
@@ -534,11 +545,12 @@ module Google
|
|
534
545
|
|
535
546
|
# Event indicates that the server has detected the end of the user's speech
|
536
547
|
# utterance and expects no additional inputs.
|
537
|
-
# Therefore, the server will not process additional audio (although it may
|
538
|
-
#
|
539
|
-
# connection, and wait for any
|
540
|
-
#
|
541
|
-
# set to `true`, and is not
|
548
|
+
# Therefore, the server will not process additional audio (although it may
|
549
|
+
# subsequently return additional results). The client should stop sending
|
550
|
+
# additional audio data, half-close the gRPC connection, and wait for any
|
551
|
+
# additional results until the server closes the gRPC connection. This
|
552
|
+
# message is only sent if `single_utterance` was set to `true`, and is not
|
553
|
+
# used otherwise.
|
542
554
|
END_OF_SINGLE_UTTERANCE = 2
|
543
555
|
end
|
544
556
|
end
|
@@ -596,8 +608,8 @@ module Google
|
|
596
608
|
# the same session do not necessarily need to specify the same language.
|
597
609
|
#
|
598
610
|
# This field is ignored when used in the context of a
|
599
|
-
# {::Google::Cloud::Dialogflow::V2::WebhookResponse#followup_event_input WebhookResponse.followup_event_input}
|
600
|
-
# because the language was already defined in the originating detect
|
611
|
+
# {::Google::Cloud::Dialogflow::V2::WebhookResponse#followup_event_input WebhookResponse.followup_event_input}
|
612
|
+
# field, because the language was already defined in the originating detect
|
601
613
|
# intent request.
|
602
614
|
class EventInput
|
603
615
|
include ::Google::Protobuf::MessageExts
|
@@ -619,11 +631,14 @@ module Google
|
|
619
631
|
# and identifies the prevailing subjective opinion, especially to determine a
|
620
632
|
# user's attitude as positive, negative, or neutral.
|
621
633
|
# For [Participants.DetectIntent][], it needs to be configured in
|
622
|
-
# {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#query_params DetectIntentRequest.query_params}.
|
623
|
-
# [Participants.StreamingDetectIntent][], it needs to be configured in
|
634
|
+
# {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#query_params DetectIntentRequest.query_params}.
|
635
|
+
# For [Participants.StreamingDetectIntent][], it needs to be configured in
|
624
636
|
# {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_params StreamingDetectIntentRequest.query_params}.
|
625
|
-
# And for
|
626
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#
|
637
|
+
# And for
|
638
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
|
639
|
+
# and
|
640
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#streaming_analyze_content Participants.StreamingAnalyzeContent},
|
641
|
+
# it needs to be configured in
|
627
642
|
# {::Google::Cloud::Dialogflow::V2::ConversationProfile#human_agent_assistant_config ConversationProfile.human_agent_assistant_config}
|
628
643
|
# @!attribute [rw] query_text_sentiment
|
629
644
|
# @return [::Google::Cloud::Dialogflow::V2::Sentiment]
|
@@ -634,7 +649,9 @@ module Google
|
|
634
649
|
end
|
635
650
|
|
636
651
|
# The sentiment, such as positive/negative feeling or association, for a unit
|
637
|
-
# of analysis, such as the query text.
|
652
|
+
# of analysis, such as the query text. See:
|
653
|
+
# https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
|
654
|
+
# for how to interpret the result.
|
638
655
|
# @!attribute [rw] score
|
639
656
|
# @return [::Float]
|
640
657
|
# Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
|
@@ -69,13 +69,15 @@ module Google
|
|
69
69
|
# `GetSessionEntityType`, `CreateSessionEntityType` and
|
70
70
|
# `UpdateSessionEntityType` only return the additional entities added in
|
71
71
|
# this session entity type. If you want to get the supplemented list,
|
72
|
-
# please call
|
73
|
-
#
|
72
|
+
# please call
|
73
|
+
# {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType}
|
74
|
+
# on the custom entity type and merge.
|
74
75
|
ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
78
|
-
# The request message for
|
79
|
+
# The request message for
|
80
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
|
79
81
|
# @!attribute [rw] parent
|
80
82
|
# @return [::String]
|
81
83
|
# Required. The session to list all session entity types from.
|
@@ -96,7 +98,8 @@ module Google
|
|
96
98
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
99
|
end
|
98
100
|
|
99
|
-
# The response message for
|
101
|
+
# The response message for
|
102
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
|
100
103
|
# @!attribute [rw] session_entity_types
|
101
104
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SessionEntityType>]
|
102
105
|
# The list of session entity types. There will be a maximum number of items
|
@@ -110,7 +113,8 @@ module Google
|
|
110
113
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
114
|
end
|
112
115
|
|
113
|
-
# The request message for
|
116
|
+
# The request message for
|
117
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#get_session_entity_type SessionEntityTypes.GetSessionEntityType}.
|
114
118
|
# @!attribute [rw] name
|
115
119
|
# @return [::String]
|
116
120
|
# Required. The name of the session entity type. Format:
|
@@ -125,7 +129,8 @@ module Google
|
|
125
129
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
130
|
end
|
127
131
|
|
128
|
-
# The request message for
|
132
|
+
# The request message for
|
133
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#create_session_entity_type SessionEntityTypes.CreateSessionEntityType}.
|
129
134
|
# @!attribute [rw] parent
|
130
135
|
# @return [::String]
|
131
136
|
# Required. The session to create a session entity type for.
|
@@ -142,7 +147,8 @@ module Google
|
|
142
147
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
148
|
end
|
144
149
|
|
145
|
-
# The request message for
|
150
|
+
# The request message for
|
151
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#update_session_entity_type SessionEntityTypes.UpdateSessionEntityType}.
|
146
152
|
# @!attribute [rw] session_entity_type
|
147
153
|
# @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
|
148
154
|
# Required. The session entity type to update.
|
@@ -154,7 +160,8 @@ module Google
|
|
154
160
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
161
|
end
|
156
162
|
|
157
|
-
# The request message for
|
163
|
+
# The request message for
|
164
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#delete_session_entity_type SessionEntityTypes.DeleteSessionEntityType}.
|
158
165
|
# @!attribute [rw] name
|
159
166
|
# @return [::String]
|
160
167
|
# Required. The name of the entity type to delete. Format:
|
@@ -52,16 +52,16 @@ module Google
|
|
52
52
|
# Optional. The developer-provided description of this version.
|
53
53
|
# @!attribute [r] version_number
|
54
54
|
# @return [::Integer]
|
55
|
-
# Output only. The sequential number of this version. This field is read-only
|
56
|
-
# it cannot be set by create and update methods.
|
55
|
+
# Output only. The sequential number of this version. This field is read-only
|
56
|
+
# which means it cannot be set by create and update methods.
|
57
57
|
# @!attribute [r] create_time
|
58
58
|
# @return [::Google::Protobuf::Timestamp]
|
59
|
-
# Output only. The creation time of this version. This field is read-only,
|
60
|
-
# be set by create and update methods.
|
59
|
+
# Output only. The creation time of this version. This field is read-only,
|
60
|
+
# i.e., it cannot be set by create and update methods.
|
61
61
|
# @!attribute [r] status
|
62
62
|
# @return [::Google::Cloud::Dialogflow::V2::Version::VersionStatus]
|
63
|
-
# Output only. The status of this version. This field is read-only and cannot
|
64
|
-
# create and update methods.
|
63
|
+
# Output only. The status of this version. This field is read-only and cannot
|
64
|
+
# be set by create and update methods.
|
65
65
|
class Version
|
66
66
|
include ::Google::Protobuf::MessageExts
|
67
67
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -82,7 +82,8 @@ module Google
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
# The request message for
|
85
|
+
# The request message for
|
86
|
+
# {::Google::Cloud::Dialogflow::V2::Versions::Client#list_versions Versions.ListVersions}.
|
86
87
|
# @!attribute [rw] parent
|
87
88
|
# @return [::String]
|
88
89
|
# Required. The agent to list all versions from.
|
@@ -92,8 +93,8 @@ module Google
|
|
92
93
|
# - `projects/<Project ID>/locations/<Location ID>/agent`
|
93
94
|
# @!attribute [rw] page_size
|
94
95
|
# @return [::Integer]
|
95
|
-
# Optional. The maximum number of items to return in a single page. By
|
96
|
-
# at most 1000.
|
96
|
+
# Optional. The maximum number of items to return in a single page. By
|
97
|
+
# default 100 and at most 1000.
|
97
98
|
# @!attribute [rw] page_token
|
98
99
|
# @return [::String]
|
99
100
|
# Optional. The next_page_token value returned from a previous list request.
|
@@ -102,7 +103,8 @@ module Google
|
|
102
103
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
104
|
end
|
104
105
|
|
105
|
-
# The response message for
|
106
|
+
# The response message for
|
107
|
+
# {::Google::Cloud::Dialogflow::V2::Versions::Client#list_versions Versions.ListVersions}.
|
106
108
|
# @!attribute [rw] versions
|
107
109
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::Version>]
|
108
110
|
# The list of agent versions. There will be a maximum number of items
|
@@ -116,7 +118,8 @@ module Google
|
|
116
118
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
119
|
end
|
118
120
|
|
119
|
-
# The request message for
|
121
|
+
# The request message for
|
122
|
+
# {::Google::Cloud::Dialogflow::V2::Versions::Client#get_version Versions.GetVersion}.
|
120
123
|
# @!attribute [rw] name
|
121
124
|
# @return [::String]
|
122
125
|
# Required. The name of the version.
|
@@ -130,7 +133,8 @@ module Google
|
|
130
133
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
134
|
end
|
132
135
|
|
133
|
-
# The request message for
|
136
|
+
# The request message for
|
137
|
+
# {::Google::Cloud::Dialogflow::V2::Versions::Client#create_version Versions.CreateVersion}.
|
134
138
|
# @!attribute [rw] parent
|
135
139
|
# @return [::String]
|
136
140
|
# Required. The agent to create a version for.
|
@@ -146,7 +150,8 @@ module Google
|
|
146
150
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
147
151
|
end
|
148
152
|
|
149
|
-
# The request message for
|
153
|
+
# The request message for
|
154
|
+
# {::Google::Cloud::Dialogflow::V2::Versions::Client#update_version Versions.UpdateVersion}.
|
150
155
|
# @!attribute [rw] version
|
151
156
|
# @return [::Google::Cloud::Dialogflow::V2::Version]
|
152
157
|
# Required. The version to update.
|
@@ -163,7 +168,8 @@ module Google
|
|
163
168
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
164
169
|
end
|
165
170
|
|
166
|
-
# The request message for
|
171
|
+
# The request message for
|
172
|
+
# {::Google::Cloud::Dialogflow::V2::Versions::Client#delete_version Versions.DeleteVersion}.
|
167
173
|
# @!attribute [rw] name
|
168
174
|
# @return [::String]
|
169
175
|
# Required. The name of the version to delete.
|
@@ -49,9 +49,10 @@ module Google
|
|
49
49
|
# The response message for a webhook call.
|
50
50
|
#
|
51
51
|
# This response is validated by the Dialogflow server. If validation fails,
|
52
|
-
# an error will be returned in the
|
53
|
-
#
|
54
|
-
#
|
52
|
+
# an error will be returned in the
|
53
|
+
# {::Google::Cloud::Dialogflow::V2::QueryResult#diagnostic_info QueryResult.diagnostic_info}
|
54
|
+
# field. Setting JSON fields to an empty value with the wrong type is a common
|
55
|
+
# error. To avoid this error:
|
55
56
|
#
|
56
57
|
# - Use `""` for empty strings
|
57
58
|
# - Use `{}` or `null` for empty objects
|
@@ -65,25 +66,28 @@ module Google
|
|
65
66
|
# Optional. The text response message intended for the end-user.
|
66
67
|
# It is recommended to use `fulfillment_messages.text.text[0]` instead.
|
67
68
|
# When provided, Dialogflow uses this field to populate
|
68
|
-
# {::Google::Cloud::Dialogflow::V2::QueryResult#fulfillment_text QueryResult.fulfillment_text}
|
69
|
+
# {::Google::Cloud::Dialogflow::V2::QueryResult#fulfillment_text QueryResult.fulfillment_text}
|
70
|
+
# sent to the integration or API caller.
|
69
71
|
# @!attribute [rw] fulfillment_messages
|
70
72
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message>]
|
71
73
|
# Optional. The rich response messages intended for the end-user.
|
72
74
|
# When provided, Dialogflow uses this field to populate
|
73
|
-
# {::Google::Cloud::Dialogflow::V2::QueryResult#fulfillment_messages QueryResult.fulfillment_messages}
|
75
|
+
# {::Google::Cloud::Dialogflow::V2::QueryResult#fulfillment_messages QueryResult.fulfillment_messages}
|
76
|
+
# sent to the integration or API caller.
|
74
77
|
# @!attribute [rw] source
|
75
78
|
# @return [::String]
|
76
79
|
# Optional. A custom field used to identify the webhook source.
|
77
80
|
# Arbitrary strings are supported.
|
78
81
|
# When provided, Dialogflow uses this field to populate
|
79
|
-
# {::Google::Cloud::Dialogflow::V2::QueryResult#webhook_source QueryResult.webhook_source}
|
82
|
+
# {::Google::Cloud::Dialogflow::V2::QueryResult#webhook_source QueryResult.webhook_source}
|
83
|
+
# sent to the integration or API caller.
|
80
84
|
# @!attribute [rw] payload
|
81
85
|
# @return [::Google::Protobuf::Struct]
|
82
|
-
# Optional. This field can be used to pass custom data from your webhook to
|
83
|
-
# integration or API caller. Arbitrary JSON objects are supported.
|
84
|
-
#
|
85
|
-
# {::Google::Cloud::Dialogflow::V2::QueryResult#webhook_payload QueryResult.webhook_payload}
|
86
|
-
# This field is also used by the
|
86
|
+
# Optional. This field can be used to pass custom data from your webhook to
|
87
|
+
# the integration or API caller. Arbitrary JSON objects are supported. When
|
88
|
+
# provided, Dialogflow uses this field to populate
|
89
|
+
# {::Google::Cloud::Dialogflow::V2::QueryResult#webhook_payload QueryResult.webhook_payload}
|
90
|
+
# sent to the integration or API caller. This field is also used by the
|
87
91
|
# [Google Assistant
|
88
92
|
# integration](https://cloud.google.com/dialogflow/docs/integrations/aog)
|
89
93
|
# for rich response messages.
|
@@ -94,7 +98,8 @@ module Google
|
|
94
98
|
# Optional. The collection of output contexts that will overwrite currently
|
95
99
|
# active contexts for the session and reset their lifespans.
|
96
100
|
# When provided, Dialogflow uses this field to populate
|
97
|
-
# {::Google::Cloud::Dialogflow::V2::QueryResult#output_contexts QueryResult.output_contexts}
|
101
|
+
# {::Google::Cloud::Dialogflow::V2::QueryResult#output_contexts QueryResult.output_contexts}
|
102
|
+
# sent to the integration or API caller.
|
98
103
|
# @!attribute [rw] followup_event_input
|
99
104
|
# @return [::Google::Cloud::Dialogflow::V2::EventInput]
|
100
105
|
# Optional. Invokes the supplied events.
|
@@ -106,7 +111,9 @@ module Google
|
|
106
111
|
# entity types with. The entity synonyms apply to all languages and persist
|
107
112
|
# for the session. Setting this data from a webhook overwrites
|
108
113
|
# the session entity types that have been set using `detectIntent`,
|
109
|
-
# `streamingDetectIntent` or
|
114
|
+
# `streamingDetectIntent` or
|
115
|
+
# {::Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType}
|
116
|
+
# management methods.
|
110
117
|
class WebhookResponse
|
111
118
|
include ::Google::Protobuf::MessageExts
|
112
119
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.16.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.16.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -312,7 +312,9 @@ files:
|
|
312
312
|
- lib/google/cloud/dialogflow/v2/versions/paths.rb
|
313
313
|
- lib/google/cloud/dialogflow/v2/webhook_pb.rb
|
314
314
|
- proto_docs/README.md
|
315
|
+
- proto_docs/google/api/client.rb
|
315
316
|
- proto_docs/google/api/field_behavior.rb
|
317
|
+
- proto_docs/google/api/launch_stage.rb
|
316
318
|
- proto_docs/google/api/resource.rb
|
317
319
|
- proto_docs/google/cloud/dialogflow/v2/agent.rb
|
318
320
|
- proto_docs/google/cloud/dialogflow/v2/answer_record.rb
|
@@ -365,7 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
365
367
|
- !ruby/object:Gem::Version
|
366
368
|
version: '0'
|
367
369
|
requirements: []
|
368
|
-
rubygems_version: 3.
|
370
|
+
rubygems_version: 3.4.2
|
369
371
|
signing_key:
|
370
372
|
specification_version: 4
|
371
373
|
summary: API Client library for the Dialogflow V2 API
|