google-cloud-dialogflow 0.12.3 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0b35290c27c7c1ac20cbecc4437e1f17a983aeab32d3f5625cf74810cfe25be
|
4
|
+
data.tar.gz: bf7c91f50263ee563b1d729e6b63e455558746b9316d1df6859b3bd2a7ff3667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449657096816c8d7335347031fa21dabe0ede63884bec39c8c126c502266b93a85eb87fb1e40623722979ee0b49701a11f467b25e32f5904dac1fdfe0a0142fd
|
7
|
+
data.tar.gz: e0cdd00ef9c01ac854e0b2912c23d624b370a438f6d7686b907ee36cd89fa5ee970e26e87421cfcd551871101914c92729b7bf47d84a8a015397c1a781ff0e87
|
@@ -536,14 +536,11 @@ module Google
|
|
536
536
|
#
|
537
537
|
# # TODO: Initialize `intent`:
|
538
538
|
# intent = {}
|
539
|
-
#
|
540
|
-
# # TODO: Initialize `language_code`:
|
541
|
-
# language_code = ''
|
542
|
-
# response = intents_client.update_intent(intent, language_code)
|
539
|
+
# response = intents_client.update_intent(intent)
|
543
540
|
|
544
541
|
def update_intent \
|
545
542
|
intent,
|
546
|
-
language_code,
|
543
|
+
language_code: nil,
|
547
544
|
update_mask: nil,
|
548
545
|
intent_view: nil,
|
549
546
|
options: nil,
|
@@ -597,13 +594,6 @@ module Google
|
|
597
594
|
# @param parent [String]
|
598
595
|
# Required. The name of the agent to update or create intents in.
|
599
596
|
# Format: `projects/<Project ID>/agent`.
|
600
|
-
# @param language_code [String]
|
601
|
-
# Optional. The language of training phrases, parameters and rich messages
|
602
|
-
# defined in `intents`. If not specified, the agent's default language is
|
603
|
-
# used. [Many
|
604
|
-
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
605
|
-
# are supported. Note: languages must be enabled in the agent before they can
|
606
|
-
# be used.
|
607
597
|
# @param intent_batch_uri [String]
|
608
598
|
# The URI to a Google Cloud Storage file containing intents to update or
|
609
599
|
# create. The file format can either be a serialized proto (of IntentBatch
|
@@ -612,6 +602,13 @@ module Google
|
|
612
602
|
# The collection of intents to update or create.
|
613
603
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::IntentBatch`
|
614
604
|
# can also be provided.
|
605
|
+
# @param language_code [String]
|
606
|
+
# Optional. The language of training phrases, parameters and rich messages
|
607
|
+
# defined in `intents`. If not specified, the agent's default language is
|
608
|
+
# used. [Many
|
609
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
610
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
611
|
+
# be used.
|
615
612
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
616
613
|
# Optional. The mask to control which fields get updated.
|
617
614
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
@@ -629,11 +626,8 @@ module Google
|
|
629
626
|
# intents_client = Google::Cloud::Dialogflow::Intents.new(version: :v2)
|
630
627
|
# formatted_parent = Google::Cloud::Dialogflow::V2::IntentsClient.project_agent_path("[PROJECT]")
|
631
628
|
#
|
632
|
-
# # TODO: Initialize `language_code`:
|
633
|
-
# language_code = ''
|
634
|
-
#
|
635
629
|
# # Register a callback during the method call.
|
636
|
-
# operation = intents_client.batch_update_intents(formatted_parent
|
630
|
+
# operation = intents_client.batch_update_intents(formatted_parent) do |op|
|
637
631
|
# raise op.results.message if op.error?
|
638
632
|
# op_results = op.results
|
639
633
|
# # Process the results.
|
@@ -661,17 +655,17 @@ module Google
|
|
661
655
|
|
662
656
|
def batch_update_intents \
|
663
657
|
parent,
|
664
|
-
language_code,
|
665
658
|
intent_batch_uri: nil,
|
666
659
|
intent_batch_inline: nil,
|
660
|
+
language_code: nil,
|
667
661
|
update_mask: nil,
|
668
662
|
intent_view: nil,
|
669
663
|
options: nil
|
670
664
|
req = {
|
671
665
|
parent: parent,
|
672
|
-
language_code: language_code,
|
673
666
|
intent_batch_uri: intent_batch_uri,
|
674
667
|
intent_batch_inline: intent_batch_inline,
|
668
|
+
language_code: language_code,
|
675
669
|
update_mask: update_mask,
|
676
670
|
intent_view: intent_view
|
677
671
|
}.delete_if { |_, v| v.nil? }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.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: 2020-02-
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|