google-cloud-dialogflow-v2 0.7.0 → 0.8.0
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/lib/google/cloud/dialogflow/v2.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -2
- data/lib/google/cloud/dialogflow/v2/answer_records.rb +1 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +1 -2
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +72 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +44 -3
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +411 -1
- data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +96 -12
- data/lib/google/cloud/dialogflow/v2/participants/paths.rb +76 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +72 -0
- data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +110 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
- data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +9 -16
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +14 -2
- data/proto_docs/google/cloud/dialogflow/v2/environment.rb +169 -4
- data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
- data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54dcb06c3a24666e1a7216fbbd1f2ea9d248c8cfbc30319468cb55b41d1a22ef
|
4
|
+
data.tar.gz: 6e9dde1f3a6d32021c22c03f8079d033a704f1c611cc8c858d24fb63cf5286f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 582db1a5786660198cc64e680f7a3b9d1c9a68a077ef6e91112ba00d2670090537632c90386975bd9ac26de3f59a4cda7ad18c67cf04f0b57202ebd8c9b332db
|
7
|
+
data.tar.gz: 31a5eec13a28ea2eb21b45303b3f58d910378dbc59912f8d80e87239ff3d65c632f5a08d1bfb98e97e867f19a98bd09e9702481b1b26095bdaa40ba56e732793
|
@@ -27,8 +27,10 @@ require "google/cloud/dialogflow/v2/answer_records"
|
|
27
27
|
require "google/cloud/dialogflow/v2/conversations"
|
28
28
|
require "google/cloud/dialogflow/v2/conversation_profiles"
|
29
29
|
require "google/cloud/dialogflow/v2/documents"
|
30
|
+
require "google/cloud/dialogflow/v2/fulfillments"
|
30
31
|
require "google/cloud/dialogflow/v2/environments"
|
31
32
|
require "google/cloud/dialogflow/v2/knowledge_bases"
|
33
|
+
require "google/cloud/dialogflow/v2/versions"
|
32
34
|
require "google/cloud/dialogflow/v2/version"
|
33
35
|
|
34
36
|
module Google
|
@@ -27,15 +27,54 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Create a fully-qualified Agent resource string.
|
29
29
|
#
|
30
|
+
# @overload agent_path(project:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/agent`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
#
|
37
|
+
# @overload agent_path(project:, location:)
|
38
|
+
# The resource will be in the following format:
|
39
|
+
#
|
40
|
+
# `projects/{project}/locations/{location}/agent`
|
41
|
+
#
|
42
|
+
# @param project [String]
|
43
|
+
# @param location [String]
|
44
|
+
#
|
45
|
+
# @return [::String]
|
46
|
+
def agent_path **args
|
47
|
+
resources = {
|
48
|
+
"project" => (proc do |project:|
|
49
|
+
"projects/#{project}/agent"
|
50
|
+
end),
|
51
|
+
"location:project" => (proc do |project:, location:|
|
52
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
|
54
|
+
"projects/#{project}/locations/#{location}/agent"
|
55
|
+
end)
|
56
|
+
}
|
57
|
+
|
58
|
+
resource = resources[args.keys.sort.join(":")]
|
59
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
60
|
+
resource.call(**args)
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified Location resource string.
|
65
|
+
#
|
30
66
|
# The resource will be in the following format:
|
31
67
|
#
|
32
|
-
# `projects/{project}/
|
68
|
+
# `projects/{project}/locations/{location}`
|
33
69
|
#
|
34
70
|
# @param project [String]
|
71
|
+
# @param location [String]
|
35
72
|
#
|
36
73
|
# @return [::String]
|
37
|
-
def
|
38
|
-
"
|
74
|
+
def location_path project:, location:
|
75
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
76
|
+
|
77
|
+
"projects/#{project}/locations/#{location}"
|
39
78
|
end
|
40
79
|
|
41
80
|
##
|
@@ -24,8 +24,7 @@ module Google
|
|
24
24
|
module Dialogflow
|
25
25
|
module V2
|
26
26
|
module AnswerRecords
|
27
|
-
# Service for managing
|
28
|
-
# [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
|
27
|
+
# Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
|
29
28
|
class Service
|
30
29
|
|
31
30
|
include GRPC::GenericService
|
@@ -31,8 +31,7 @@ module Google
|
|
31
31
|
module Dialogflow
|
32
32
|
module V2
|
33
33
|
##
|
34
|
-
# Service for managing
|
35
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
|
34
|
+
# Service for managing {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
|
36
35
|
#
|
37
36
|
# To load this service and instantiate a client:
|
38
37
|
#
|
@@ -27,8 +27,7 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Client for the AnswerRecords service.
|
29
29
|
#
|
30
|
-
# Service for managing
|
31
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
|
30
|
+
# Service for managing {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
|
32
31
|
#
|
33
32
|
class Client
|
34
33
|
include Paths
|
@@ -47,6 +47,28 @@ module Google
|
|
47
47
|
# @param session [String]
|
48
48
|
# @param context [String]
|
49
49
|
#
|
50
|
+
# @overload context_path(project:, location:, session:, context:)
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param session [String]
|
58
|
+
# @param context [String]
|
59
|
+
#
|
60
|
+
# @overload context_path(project:, location:, environment:, user:, session:, context:)
|
61
|
+
# The resource will be in the following format:
|
62
|
+
#
|
63
|
+
# `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}`
|
64
|
+
#
|
65
|
+
# @param project [String]
|
66
|
+
# @param location [String]
|
67
|
+
# @param environment [String]
|
68
|
+
# @param user [String]
|
69
|
+
# @param session [String]
|
70
|
+
# @param context [String]
|
71
|
+
#
|
50
72
|
# @return [::String]
|
51
73
|
def context_path **args
|
52
74
|
resources = {
|
@@ -63,6 +85,22 @@ module Google
|
|
63
85
|
raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
|
64
86
|
|
65
87
|
"projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
|
88
|
+
end),
|
89
|
+
"context:location:project:session" => (proc do |project:, location:, session:, context:|
|
90
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
91
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
92
|
+
raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
|
93
|
+
|
94
|
+
"projects/#{project}/locations/#{location}/agent/sessions/#{session}/contexts/#{context}"
|
95
|
+
end),
|
96
|
+
"context:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, context:|
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
99
|
+
raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
|
100
|
+
raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
|
102
|
+
|
103
|
+
"projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
|
66
104
|
end)
|
67
105
|
}
|
68
106
|
|
@@ -92,6 +130,26 @@ module Google
|
|
92
130
|
# @param user [String]
|
93
131
|
# @param session [String]
|
94
132
|
#
|
133
|
+
# @overload session_path(project:, location:, session:)
|
134
|
+
# The resource will be in the following format:
|
135
|
+
#
|
136
|
+
# `projects/{project}/locations/{location}/agent/sessions/{session}`
|
137
|
+
#
|
138
|
+
# @param project [String]
|
139
|
+
# @param location [String]
|
140
|
+
# @param session [String]
|
141
|
+
#
|
142
|
+
# @overload session_path(project:, location:, environment:, user:, session:)
|
143
|
+
# The resource will be in the following format:
|
144
|
+
#
|
145
|
+
# `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}`
|
146
|
+
#
|
147
|
+
# @param project [String]
|
148
|
+
# @param location [String]
|
149
|
+
# @param environment [String]
|
150
|
+
# @param user [String]
|
151
|
+
# @param session [String]
|
152
|
+
#
|
95
153
|
# @return [::String]
|
96
154
|
def session_path **args
|
97
155
|
resources = {
|
@@ -106,6 +164,20 @@ module Google
|
|
106
164
|
raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
|
107
165
|
|
108
166
|
"projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
|
167
|
+
end),
|
168
|
+
"location:project:session" => (proc do |project:, location:, session:|
|
169
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
170
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
171
|
+
|
172
|
+
"projects/#{project}/locations/#{location}/agent/sessions/#{session}"
|
173
|
+
end),
|
174
|
+
"environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:|
|
175
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
176
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
177
|
+
raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
|
178
|
+
raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
|
179
|
+
|
180
|
+
"projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
|
109
181
|
end)
|
110
182
|
}
|
111
183
|
|
@@ -27,15 +27,56 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Create a fully-qualified Agent resource string.
|
29
29
|
#
|
30
|
+
# @overload agent_path(project:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/agent`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
#
|
37
|
+
# @overload agent_path(project:, location:)
|
38
|
+
# The resource will be in the following format:
|
39
|
+
#
|
40
|
+
# `projects/{project}/locations/{location}/agent`
|
41
|
+
#
|
42
|
+
# @param project [String]
|
43
|
+
# @param location [String]
|
44
|
+
#
|
45
|
+
# @return [::String]
|
46
|
+
def agent_path **args
|
47
|
+
resources = {
|
48
|
+
"project" => (proc do |project:|
|
49
|
+
"projects/#{project}/agent"
|
50
|
+
end),
|
51
|
+
"location:project" => (proc do |project:, location:|
|
52
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
|
54
|
+
"projects/#{project}/locations/#{location}/agent"
|
55
|
+
end)
|
56
|
+
}
|
57
|
+
|
58
|
+
resource = resources[args.keys.sort.join(":")]
|
59
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
60
|
+
resource.call(**args)
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified ConversationModel resource string.
|
65
|
+
#
|
30
66
|
# The resource will be in the following format:
|
31
67
|
#
|
32
|
-
# `projects/{project}/
|
68
|
+
# `projects/{project}/locations/{location}/conversationModels/{conversation_model}`
|
33
69
|
#
|
34
70
|
# @param project [String]
|
71
|
+
# @param location [String]
|
72
|
+
# @param conversation_model [String]
|
35
73
|
#
|
36
74
|
# @return [::String]
|
37
|
-
def
|
38
|
-
"
|
75
|
+
def conversation_model_path project:, location:, conversation_model:
|
76
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
77
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
78
|
+
|
79
|
+
"projects/#{project}/locations/#{location}/conversationModels/#{conversation_model}"
|
39
80
|
end
|
40
81
|
|
41
82
|
##
|
@@ -27,32 +27,78 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Create a fully-qualified Agent resource string.
|
29
29
|
#
|
30
|
-
#
|
30
|
+
# @overload agent_path(project:)
|
31
|
+
# The resource will be in the following format:
|
31
32
|
#
|
32
|
-
#
|
33
|
+
# `projects/{project}/agent`
|
33
34
|
#
|
34
|
-
#
|
35
|
+
# @param project [String]
|
36
|
+
#
|
37
|
+
# @overload agent_path(project:, location:)
|
38
|
+
# The resource will be in the following format:
|
39
|
+
#
|
40
|
+
# `projects/{project}/locations/{location}/agent`
|
41
|
+
#
|
42
|
+
# @param project [String]
|
43
|
+
# @param location [String]
|
35
44
|
#
|
36
45
|
# @return [::String]
|
37
|
-
def agent_path
|
38
|
-
|
46
|
+
def agent_path **args
|
47
|
+
resources = {
|
48
|
+
"project" => (proc do |project:|
|
49
|
+
"projects/#{project}/agent"
|
50
|
+
end),
|
51
|
+
"location:project" => (proc do |project:, location:|
|
52
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
|
54
|
+
"projects/#{project}/locations/#{location}/agent"
|
55
|
+
end)
|
56
|
+
}
|
57
|
+
|
58
|
+
resource = resources[args.keys.sort.join(":")]
|
59
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
60
|
+
resource.call(**args)
|
39
61
|
end
|
40
62
|
|
41
63
|
##
|
42
64
|
# Create a fully-qualified EntityType resource string.
|
43
65
|
#
|
44
|
-
#
|
66
|
+
# @overload entity_type_path(project:, entity_type:)
|
67
|
+
# The resource will be in the following format:
|
45
68
|
#
|
46
|
-
#
|
69
|
+
# `projects/{project}/agent/entityTypes/{entity_type}`
|
47
70
|
#
|
48
|
-
#
|
49
|
-
#
|
71
|
+
# @param project [String]
|
72
|
+
# @param entity_type [String]
|
73
|
+
#
|
74
|
+
# @overload entity_type_path(project:, location:, entity_type:)
|
75
|
+
# The resource will be in the following format:
|
76
|
+
#
|
77
|
+
# `projects/{project}/locations/{location}/agent/entityTypes/{entity_type}`
|
78
|
+
#
|
79
|
+
# @param project [String]
|
80
|
+
# @param location [String]
|
81
|
+
# @param entity_type [String]
|
50
82
|
#
|
51
83
|
# @return [::String]
|
52
|
-
def entity_type_path
|
53
|
-
|
84
|
+
def entity_type_path **args
|
85
|
+
resources = {
|
86
|
+
"entity_type:project" => (proc do |project:, entity_type:|
|
87
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
88
|
+
|
89
|
+
"projects/#{project}/agent/entityTypes/#{entity_type}"
|
90
|
+
end),
|
91
|
+
"entity_type:location:project" => (proc do |project:, location:, entity_type:|
|
92
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
94
|
+
|
95
|
+
"projects/#{project}/locations/#{location}/agent/entityTypes/#{entity_type}"
|
96
|
+
end)
|
97
|
+
}
|
54
98
|
|
55
|
-
"
|
99
|
+
resource = resources[args.keys.sort.join(":")]
|
100
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
101
|
+
resource.call(**args)
|
56
102
|
end
|
57
103
|
|
58
104
|
extend self
|
@@ -4,12 +4,14 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
7
8
|
require 'google/api/field_behavior_pb'
|
8
9
|
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/dialogflow/v2/audio_config_pb'
|
11
|
+
require 'google/cloud/dialogflow/v2/fulfillment_pb'
|
9
12
|
require 'google/protobuf/empty_pb'
|
10
13
|
require 'google/protobuf/field_mask_pb'
|
11
14
|
require 'google/protobuf/timestamp_pb'
|
12
|
-
require 'google/api/client_pb'
|
13
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
16
|
add_file("google/cloud/dialogflow/v2/environment.proto", :syntax => :proto3) do
|
15
17
|
add_message "google.cloud.dialogflow.v2.Environment" do
|
@@ -18,6 +20,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
20
|
optional :agent_version, :string, 3
|
19
21
|
optional :state, :enum, 4, "google.cloud.dialogflow.v2.Environment.State"
|
20
22
|
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
23
|
+
optional :text_to_speech_settings, :message, 7, "google.cloud.dialogflow.v2.TextToSpeechSettings"
|
24
|
+
optional :fulfillment, :message, 8, "google.cloud.dialogflow.v2.Fulfillment"
|
21
25
|
end
|
22
26
|
add_enum "google.cloud.dialogflow.v2.Environment.State" do
|
23
27
|
value :STATE_UNSPECIFIED, 0
|
@@ -25,6 +29,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
29
|
value :LOADING, 2
|
26
30
|
value :RUNNING, 3
|
27
31
|
end
|
32
|
+
add_message "google.cloud.dialogflow.v2.TextToSpeechSettings" do
|
33
|
+
optional :enable_text_to_speech, :bool, 1
|
34
|
+
optional :output_audio_encoding, :enum, 2, "google.cloud.dialogflow.v2.OutputAudioEncoding"
|
35
|
+
optional :sample_rate_hertz, :int32, 3
|
36
|
+
map :synthesize_speech_configs, :string, :message, 4, "google.cloud.dialogflow.v2.SynthesizeSpeechConfig"
|
37
|
+
end
|
28
38
|
add_message "google.cloud.dialogflow.v2.ListEnvironmentsRequest" do
|
29
39
|
optional :parent, :string, 1
|
30
40
|
optional :page_size, :int32, 2
|
@@ -34,6 +44,37 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
34
44
|
repeated :environments, :message, 1, "google.cloud.dialogflow.v2.Environment"
|
35
45
|
optional :next_page_token, :string, 2
|
36
46
|
end
|
47
|
+
add_message "google.cloud.dialogflow.v2.GetEnvironmentRequest" do
|
48
|
+
optional :name, :string, 1
|
49
|
+
end
|
50
|
+
add_message "google.cloud.dialogflow.v2.CreateEnvironmentRequest" do
|
51
|
+
optional :parent, :string, 1
|
52
|
+
optional :environment, :message, 2, "google.cloud.dialogflow.v2.Environment"
|
53
|
+
optional :environment_id, :string, 3
|
54
|
+
end
|
55
|
+
add_message "google.cloud.dialogflow.v2.UpdateEnvironmentRequest" do
|
56
|
+
optional :environment, :message, 1, "google.cloud.dialogflow.v2.Environment"
|
57
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
58
|
+
optional :allow_load_to_draft_and_discard_changes, :bool, 3
|
59
|
+
end
|
60
|
+
add_message "google.cloud.dialogflow.v2.DeleteEnvironmentRequest" do
|
61
|
+
optional :name, :string, 1
|
62
|
+
end
|
63
|
+
add_message "google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest" do
|
64
|
+
optional :parent, :string, 1
|
65
|
+
optional :page_size, :int32, 2
|
66
|
+
optional :page_token, :string, 3
|
67
|
+
end
|
68
|
+
add_message "google.cloud.dialogflow.v2.EnvironmentHistory" do
|
69
|
+
optional :parent, :string, 1
|
70
|
+
repeated :entries, :message, 2, "google.cloud.dialogflow.v2.EnvironmentHistory.Entry"
|
71
|
+
optional :next_page_token, :string, 3
|
72
|
+
end
|
73
|
+
add_message "google.cloud.dialogflow.v2.EnvironmentHistory.Entry" do
|
74
|
+
optional :agent_version, :string, 1
|
75
|
+
optional :description, :string, 2
|
76
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
77
|
+
end
|
37
78
|
end
|
38
79
|
end
|
39
80
|
|
@@ -43,8 +84,16 @@ module Google
|
|
43
84
|
module V2
|
44
85
|
Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Environment").msgclass
|
45
86
|
Environment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Environment.State").enummodule
|
87
|
+
TextToSpeechSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.TextToSpeechSettings").msgclass
|
46
88
|
ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListEnvironmentsRequest").msgclass
|
47
89
|
ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListEnvironmentsResponse").msgclass
|
90
|
+
GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetEnvironmentRequest").msgclass
|
91
|
+
CreateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateEnvironmentRequest").msgclass
|
92
|
+
UpdateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UpdateEnvironmentRequest").msgclass
|
93
|
+
DeleteEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteEnvironmentRequest").msgclass
|
94
|
+
GetEnvironmentHistoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest").msgclass
|
95
|
+
EnvironmentHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.EnvironmentHistory").msgclass
|
96
|
+
EnvironmentHistory::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.EnvironmentHistory.Entry").msgclass
|
48
97
|
end
|
49
98
|
end
|
50
99
|
end
|