google-cloud-dialogflow-v2 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +14 -2
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +17 -55
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +3 -31
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +3 -45
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +3 -33
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +3 -23
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1614879f4c9224b78c0a043d60281229aa4d2acbf06e3d4d2eb1044ae8816124
|
4
|
+
data.tar.gz: df39f3a7f75f480a3381c091c21407949c75c46a54351d0bc73fbb39ad0f96e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d20a03c7a9294c62d38a5d84779d91391c5fa4c88e7e64b196ac105898a4c9c13891d25c0a915ab5f3632ee9421ce2d4cdeb5eacfd8c9973caf8094f1a5c1154
|
7
|
+
data.tar.gz: 2bcbcf5548130b61b32d2ba968923e7799081781ad33d383403ab3279fb09f56abc8f7c4467a54c3383f6e38e0693fd894a4e0eea51bd2aebb295753d87b006b
|
@@ -59,16 +59,28 @@ module Google
|
|
59
59
|
#
|
60
60
|
# Uploads new intents and entity types without deleting the existing ones.
|
61
61
|
# Intents and entity types with the same name are replaced with the new
|
62
|
-
# versions from ImportAgentRequest.
|
62
|
+
# versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
|
63
|
+
# agent will be trained automatically (unless disabled in agent settings).
|
64
|
+
# However, once the import is done, training may not be completed yet. Please
|
65
|
+
# call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
|
66
|
+
# explicitly.
|
63
67
|
#
|
64
68
|
# Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
|
69
|
+
# An operation which tracks when importing is complete. It only tracks
|
70
|
+
# when the draft agent is updated not when it is done training.
|
65
71
|
rpc :ImportAgent, ImportAgentRequest, Google::Longrunning::Operation
|
66
72
|
# Restores the specified agent from a ZIP file.
|
67
73
|
#
|
68
74
|
# Replaces the current agent version with a new one. All the intents and
|
69
|
-
# entity types in the older version are deleted.
|
75
|
+
# entity types in the older version are deleted. After the restore, the
|
76
|
+
# restored draft agent will be trained automatically (unless disabled in
|
77
|
+
# agent settings). However, once the restore is done, training may not be
|
78
|
+
# completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
|
79
|
+
# returns in order to train explicitly.
|
70
80
|
#
|
71
81
|
# Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
|
82
|
+
# An operation which tracks when restoring is complete. It only tracks
|
83
|
+
# when the draft agent is updated not when it is done training.
|
72
84
|
rpc :RestoreAgent, RestoreAgentRequest, Google::Longrunning::Operation
|
73
85
|
# Gets agent validation result. Agent validation is performed during
|
74
86
|
# training time and is updated automatically when training is completed.
|
@@ -65,62 +65,12 @@ module Google
|
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
67
67
|
|
68
|
-
default_config.
|
69
|
-
default_config.
|
68
|
+
default_config.timeout = 60.0
|
69
|
+
default_config.retry_policy = {
|
70
70
|
initial_delay: 0.1,
|
71
71
|
max_delay: 60.0,
|
72
72
|
multiplier: 1.3,
|
73
|
-
retry_codes: ["UNAVAILABLE"
|
74
|
-
}
|
75
|
-
|
76
|
-
default_config.rpcs.set_agent.timeout = 60.0
|
77
|
-
default_config.rpcs.set_agent.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
82
|
-
}
|
83
|
-
|
84
|
-
default_config.rpcs.delete_agent.timeout = 60.0
|
85
|
-
default_config.rpcs.delete_agent.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
90
|
-
}
|
91
|
-
|
92
|
-
default_config.rpcs.search_agents.timeout = 60.0
|
93
|
-
default_config.rpcs.search_agents.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
98
|
-
}
|
99
|
-
|
100
|
-
default_config.rpcs.train_agent.timeout = 60.0
|
101
|
-
default_config.rpcs.train_agent.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
106
|
-
}
|
107
|
-
|
108
|
-
default_config.rpcs.export_agent.timeout = 60.0
|
109
|
-
default_config.rpcs.export_agent.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
114
|
-
}
|
115
|
-
|
116
|
-
default_config.rpcs.import_agent.timeout = 60.0
|
117
|
-
|
118
|
-
default_config.rpcs.restore_agent.timeout = 60.0
|
119
|
-
default_config.rpcs.restore_agent.retry_policy = {
|
120
|
-
initial_delay: 0.1,
|
121
|
-
max_delay: 60.0,
|
122
|
-
multiplier: 1.3,
|
123
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
73
|
+
retry_codes: ["UNAVAILABLE"]
|
124
74
|
}
|
125
75
|
|
126
76
|
default_config
|
@@ -645,9 +595,15 @@ module Google
|
|
645
595
|
#
|
646
596
|
# Uploads new intents and entity types without deleting the existing ones.
|
647
597
|
# Intents and entity types with the same name are replaced with the new
|
648
|
-
# versions from ImportAgentRequest.
|
598
|
+
# versions from {::Google::Cloud::Dialogflow::V2::ImportAgentRequest ImportAgentRequest}. After the import, the imported draft
|
599
|
+
# agent will be trained automatically (unless disabled in agent settings).
|
600
|
+
# However, once the import is done, training may not be completed yet. Please
|
601
|
+
# call {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent TrainAgent} and wait for the operation it returns in order to train
|
602
|
+
# explicitly.
|
649
603
|
#
|
650
604
|
# Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
|
605
|
+
# An operation which tracks when importing is complete. It only tracks
|
606
|
+
# when the draft agent is updated not when it is done training.
|
651
607
|
#
|
652
608
|
# @overload import_agent(request, options = nil)
|
653
609
|
# Pass arguments to `import_agent` via a request object, either of type
|
@@ -723,9 +679,15 @@ module Google
|
|
723
679
|
# Restores the specified agent from a ZIP file.
|
724
680
|
#
|
725
681
|
# Replaces the current agent version with a new one. All the intents and
|
726
|
-
# entity types in the older version are deleted.
|
682
|
+
# entity types in the older version are deleted. After the restore, the
|
683
|
+
# restored draft agent will be trained automatically (unless disabled in
|
684
|
+
# agent settings). However, once the restore is done, training may not be
|
685
|
+
# completed yet. Please call {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent TrainAgent} and wait for the operation it
|
686
|
+
# returns in order to train explicitly.
|
727
687
|
#
|
728
688
|
# Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
|
689
|
+
# An operation which tracks when restoring is complete. It only tracks
|
690
|
+
# when the draft agent is updated not when it is done training.
|
729
691
|
#
|
730
692
|
# @overload restore_agent(request, options = nil)
|
731
693
|
# Pass arguments to `restore_agent` via a request object, either of type
|
@@ -82,40 +82,12 @@ module Google
|
|
82
82
|
end
|
83
83
|
default_config = Client::Configuration.new parent_config
|
84
84
|
|
85
|
-
default_config.
|
86
|
-
default_config.
|
85
|
+
default_config.timeout = 60.0
|
86
|
+
default_config.retry_policy = {
|
87
87
|
initial_delay: 0.1,
|
88
88
|
max_delay: 60.0,
|
89
89
|
multiplier: 1.3,
|
90
|
-
retry_codes: ["UNAVAILABLE"
|
91
|
-
}
|
92
|
-
|
93
|
-
default_config.rpcs.get_context.timeout = 60.0
|
94
|
-
default_config.rpcs.get_context.retry_policy = {
|
95
|
-
initial_delay: 0.1,
|
96
|
-
max_delay: 60.0,
|
97
|
-
multiplier: 1.3,
|
98
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
99
|
-
}
|
100
|
-
|
101
|
-
default_config.rpcs.create_context.timeout = 60.0
|
102
|
-
|
103
|
-
default_config.rpcs.update_context.timeout = 60.0
|
104
|
-
|
105
|
-
default_config.rpcs.delete_context.timeout = 60.0
|
106
|
-
default_config.rpcs.delete_context.retry_policy = {
|
107
|
-
initial_delay: 0.1,
|
108
|
-
max_delay: 60.0,
|
109
|
-
multiplier: 1.3,
|
110
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
111
|
-
}
|
112
|
-
|
113
|
-
default_config.rpcs.delete_all_contexts.timeout = 60.0
|
114
|
-
default_config.rpcs.delete_all_contexts.retry_policy = {
|
115
|
-
initial_delay: 0.1,
|
116
|
-
max_delay: 60.0,
|
117
|
-
multiplier: 1.3,
|
118
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
90
|
+
retry_codes: ["UNAVAILABLE"]
|
119
91
|
}
|
120
92
|
|
121
93
|
default_config
|
@@ -92,54 +92,12 @@ module Google
|
|
92
92
|
end
|
93
93
|
default_config = Client::Configuration.new parent_config
|
94
94
|
|
95
|
-
default_config.
|
96
|
-
default_config.
|
95
|
+
default_config.timeout = 60.0
|
96
|
+
default_config.retry_policy = {
|
97
97
|
initial_delay: 0.1,
|
98
98
|
max_delay: 60.0,
|
99
99
|
multiplier: 1.3,
|
100
|
-
retry_codes: ["UNAVAILABLE"
|
101
|
-
}
|
102
|
-
|
103
|
-
default_config.rpcs.get_entity_type.timeout = 60.0
|
104
|
-
default_config.rpcs.get_entity_type.retry_policy = {
|
105
|
-
initial_delay: 0.1,
|
106
|
-
max_delay: 60.0,
|
107
|
-
multiplier: 1.3,
|
108
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
109
|
-
}
|
110
|
-
|
111
|
-
default_config.rpcs.create_entity_type.timeout = 60.0
|
112
|
-
|
113
|
-
default_config.rpcs.update_entity_type.timeout = 60.0
|
114
|
-
|
115
|
-
default_config.rpcs.delete_entity_type.timeout = 60.0
|
116
|
-
default_config.rpcs.delete_entity_type.retry_policy = {
|
117
|
-
initial_delay: 0.1,
|
118
|
-
max_delay: 60.0,
|
119
|
-
multiplier: 1.3,
|
120
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
121
|
-
}
|
122
|
-
|
123
|
-
default_config.rpcs.batch_update_entity_types.timeout = 60.0
|
124
|
-
|
125
|
-
default_config.rpcs.batch_delete_entity_types.timeout = 60.0
|
126
|
-
default_config.rpcs.batch_delete_entity_types.retry_policy = {
|
127
|
-
initial_delay: 0.1,
|
128
|
-
max_delay: 60.0,
|
129
|
-
multiplier: 1.3,
|
130
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
131
|
-
}
|
132
|
-
|
133
|
-
default_config.rpcs.batch_create_entities.timeout = 60.0
|
134
|
-
|
135
|
-
default_config.rpcs.batch_update_entities.timeout = 60.0
|
136
|
-
|
137
|
-
default_config.rpcs.batch_delete_entities.timeout = 60.0
|
138
|
-
default_config.rpcs.batch_delete_entities.retry_policy = {
|
139
|
-
initial_delay: 0.1,
|
140
|
-
max_delay: 60.0,
|
141
|
-
multiplier: 1.3,
|
142
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
100
|
+
retry_codes: ["UNAVAILABLE"]
|
143
101
|
}
|
144
102
|
|
145
103
|
default_config
|
@@ -65,12 +65,12 @@ module Google
|
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
67
67
|
|
68
|
-
default_config.
|
69
|
-
default_config.
|
68
|
+
default_config.timeout = 60.0
|
69
|
+
default_config.retry_policy = {
|
70
70
|
initial_delay: 0.1,
|
71
71
|
max_delay: 60.0,
|
72
72
|
multiplier: 1.3,
|
73
|
-
retry_codes: ["UNAVAILABLE"
|
73
|
+
retry_codes: ["UNAVAILABLE"]
|
74
74
|
}
|
75
75
|
|
76
76
|
default_config
|
@@ -96,42 +96,12 @@ module Google
|
|
96
96
|
end
|
97
97
|
default_config = Client::Configuration.new parent_config
|
98
98
|
|
99
|
-
default_config.
|
100
|
-
default_config.
|
99
|
+
default_config.timeout = 60.0
|
100
|
+
default_config.retry_policy = {
|
101
101
|
initial_delay: 0.1,
|
102
102
|
max_delay: 60.0,
|
103
103
|
multiplier: 1.3,
|
104
|
-
retry_codes: ["UNAVAILABLE"
|
105
|
-
}
|
106
|
-
|
107
|
-
default_config.rpcs.get_intent.timeout = 60.0
|
108
|
-
default_config.rpcs.get_intent.retry_policy = {
|
109
|
-
initial_delay: 0.1,
|
110
|
-
max_delay: 60.0,
|
111
|
-
multiplier: 1.3,
|
112
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
113
|
-
}
|
114
|
-
|
115
|
-
default_config.rpcs.create_intent.timeout = 60.0
|
116
|
-
|
117
|
-
default_config.rpcs.update_intent.timeout = 60.0
|
118
|
-
|
119
|
-
default_config.rpcs.delete_intent.timeout = 60.0
|
120
|
-
default_config.rpcs.delete_intent.retry_policy = {
|
121
|
-
initial_delay: 0.1,
|
122
|
-
max_delay: 60.0,
|
123
|
-
multiplier: 1.3,
|
124
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
125
|
-
}
|
126
|
-
|
127
|
-
default_config.rpcs.batch_update_intents.timeout = 60.0
|
128
|
-
|
129
|
-
default_config.rpcs.batch_delete_intents.timeout = 60.0
|
130
|
-
default_config.rpcs.batch_delete_intents.retry_policy = {
|
131
|
-
initial_delay: 0.1,
|
132
|
-
max_delay: 60.0,
|
133
|
-
multiplier: 1.3,
|
134
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
104
|
+
retry_codes: ["UNAVAILABLE"]
|
135
105
|
}
|
136
106
|
|
137
107
|
default_config
|
@@ -81,32 +81,12 @@ module Google
|
|
81
81
|
end
|
82
82
|
default_config = Client::Configuration.new parent_config
|
83
83
|
|
84
|
-
default_config.
|
85
|
-
default_config.
|
84
|
+
default_config.timeout = 60.0
|
85
|
+
default_config.retry_policy = {
|
86
86
|
initial_delay: 0.1,
|
87
87
|
max_delay: 60.0,
|
88
88
|
multiplier: 1.3,
|
89
|
-
retry_codes: ["UNAVAILABLE"
|
90
|
-
}
|
91
|
-
|
92
|
-
default_config.rpcs.get_session_entity_type.timeout = 60.0
|
93
|
-
default_config.rpcs.get_session_entity_type.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
98
|
-
}
|
99
|
-
|
100
|
-
default_config.rpcs.create_session_entity_type.timeout = 60.0
|
101
|
-
|
102
|
-
default_config.rpcs.update_session_entity_type.timeout = 60.0
|
103
|
-
|
104
|
-
default_config.rpcs.delete_session_entity_type.timeout = 60.0
|
105
|
-
default_config.rpcs.delete_session_entity_type.retry_policy = {
|
106
|
-
initial_delay: 0.1,
|
107
|
-
max_delay: 60.0,
|
108
|
-
multiplier: 1.3,
|
109
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
89
|
+
retry_codes: ["UNAVAILABLE"]
|
110
90
|
}
|
111
91
|
|
112
92
|
default_config
|
@@ -68,7 +68,21 @@ module Google
|
|
68
68
|
end
|
69
69
|
default_config = Client::Configuration.new parent_config
|
70
70
|
|
71
|
+
default_config.timeout = 60.0
|
72
|
+
default_config.retry_policy = {
|
73
|
+
initial_delay: 0.1,
|
74
|
+
max_delay: 60.0,
|
75
|
+
multiplier: 1.3,
|
76
|
+
retry_codes: ["UNAVAILABLE"]
|
77
|
+
}
|
78
|
+
|
71
79
|
default_config.rpcs.detect_intent.timeout = 220.0
|
80
|
+
default_config.rpcs.detect_intent.retry_policy = {
|
81
|
+
initial_delay: 0.1,
|
82
|
+
max_delay: 60.0,
|
83
|
+
multiplier: 1.3,
|
84
|
+
retry_codes: ["UNAVAILABLE"]
|
85
|
+
}
|
72
86
|
|
73
87
|
default_config.rpcs.streaming_detect_intent.timeout = 220.0
|
74
88
|
|
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.6.
|
4
|
+
version: 0.6.4
|
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-06-
|
11
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|