google-cloud-dialogflow-v2 0.5.0 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +5 -1
  4. data/lib/google/cloud/dialogflow/v2.rb +1 -1
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +1 -28
  6. data/lib/google/cloud/dialogflow/v2/agents.rb +2 -29
  7. data/lib/google/cloud/dialogflow/v2/agents/client.rb +209 -231
  8. data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
  9. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +109 -103
  10. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
  11. data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
  12. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +148 -143
  13. data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
  14. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
  15. data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
  16. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +238 -233
  17. data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
  18. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +109 -103
  19. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
  20. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  21. data/lib/google/cloud/dialogflow/v2/environments/client.rb +64 -59
  22. data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +1 -1
  23. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +1 -1
  24. data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
  25. data/lib/google/cloud/dialogflow/v2/intents/client.rb +183 -178
  26. data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
  27. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +109 -103
  28. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
  29. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
  30. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +130 -125
  31. data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
  32. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
  33. data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
  34. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +86 -81
  35. data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
  36. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
  37. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  38. data/proto_docs/google/api/resource.rb +12 -12
  39. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +79 -70
  40. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
  41. data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
  42. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
  43. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +19 -19
  44. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +251 -250
  45. data/proto_docs/google/cloud/dialogflow/v2/session.rb +114 -106
  46. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
  47. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
  48. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +27 -27
  49. data/proto_docs/google/longrunning/operations.rb +30 -30
  50. data/proto_docs/google/protobuf/any.rb +4 -4
  51. data/proto_docs/google/protobuf/duration.rb +4 -4
  52. data/proto_docs/google/protobuf/empty.rb +2 -2
  53. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  54. data/proto_docs/google/protobuf/struct.rb +18 -18
  55. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  56. data/proto_docs/google/rpc/status.rb +6 -6
  57. data/proto_docs/google/type/latlng.rb +4 -4
  58. metadata +33 -6
  59. data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -24,7 +24,7 @@ module Google
24
24
  module V2
25
25
  module Sessions
26
26
  # Credentials for the Sessions API.
27
- class Credentials < Google::Auth::Credentials
27
+ class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform",
30
30
  "https://www.googleapis.com/auth/dialogflow"
@@ -47,27 +47,27 @@ module Google
47
47
  # @param session [String]
48
48
  # @param context [String]
49
49
  #
50
- # @return [String]
50
+ # @return [::String]
51
51
  def context_path **args
52
52
  resources = {
53
53
  "context:project:session" => (proc do |project:, session:, context:|
54
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
55
- raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
54
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
55
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
56
56
 
57
57
  "projects/#{project}/agent/sessions/#{session}/contexts/#{context}"
58
58
  end),
59
59
  "context:environment:project:session:user" => (proc do |project:, environment:, user:, session:, context:|
60
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
- raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
62
- raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
63
- raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
62
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
63
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
64
64
 
65
65
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
66
66
  end)
67
67
  }
68
68
 
69
69
  resource = resources[args.keys.sort.join(":")]
70
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
70
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
71
71
  resource.call(**args)
72
72
  end
73
73
 
@@ -92,25 +92,25 @@ module Google
92
92
  # @param user [String]
93
93
  # @param session [String]
94
94
  #
95
- # @return [String]
95
+ # @return [::String]
96
96
  def session_path **args
97
97
  resources = {
98
98
  "project:session" => (proc do |project:, session:|
99
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
99
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
100
100
 
101
101
  "projects/#{project}/agent/sessions/#{session}"
102
102
  end),
103
103
  "environment:project:session:user" => (proc do |project:, environment:, user:, session:|
104
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
105
- raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
106
- raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
104
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
105
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
106
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
107
107
 
108
108
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
109
109
  end)
110
110
  }
111
111
 
112
112
  resource = resources[args.keys.sort.join(":")]
113
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
113
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
114
114
  resource.call(**args)
115
115
  end
116
116
 
@@ -137,27 +137,27 @@ module Google
137
137
  # @param session [String]
138
138
  # @param entity_type [String]
139
139
  #
140
- # @return [String]
140
+ # @return [::String]
141
141
  def session_entity_type_path **args
142
142
  resources = {
143
143
  "entity_type:project:session" => (proc do |project:, session:, entity_type:|
144
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
145
- raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
144
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
145
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
146
146
 
147
147
  "projects/#{project}/agent/sessions/#{session}/entityTypes/#{entity_type}"
148
148
  end),
149
149
  "entity_type:environment:project:session:user" => (proc do |project:, environment:, user:, session:, entity_type:|
150
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
151
- raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
152
- raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
153
- raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
150
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
151
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
152
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
153
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
154
154
 
155
155
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
156
156
  end)
157
157
  }
158
158
 
159
159
  resource = resources[args.keys.sort.join(":")]
160
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
160
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
161
161
  resource.call(**args)
162
162
  end
163
163
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.3"
25
25
  end
26
26
  end
27
27
  end
@@ -128,7 +128,7 @@ module Google
128
128
  # - pattern: "shelves/{shelf}"
129
129
  # parent_type: "cloudresourcemanager.googleapis.com/Folder"
130
130
  # @!attribute [rw] type
131
- # @return [String]
131
+ # @return [::String]
132
132
  # The resource type. It must be in the format of
133
133
  # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
134
134
  # singular and must not include version numbers.
@@ -140,7 +140,7 @@ module Google
140
140
  # should use PascalCase (UpperCamelCase). The maximum number of
141
141
  # characters allowed for the `resource_type_kind` is 100.
142
142
  # @!attribute [rw] pattern
143
- # @return [Array<String>]
143
+ # @return [::Array<::String>]
144
144
  # Optional. The relative resource name pattern associated with this resource
145
145
  # type. The DNS prefix of the full resource name shouldn't be specified here.
146
146
  #
@@ -161,11 +161,11 @@ module Google
161
161
  # the same component name (e.g. "project") refers to IDs of the same
162
162
  # type of resource.
163
163
  # @!attribute [rw] name_field
164
- # @return [String]
164
+ # @return [::String]
165
165
  # Optional. The field on the resource that designates the resource name
166
166
  # field. If omitted, this is assumed to be "name".
167
167
  # @!attribute [rw] history
168
- # @return [Google::Api::ResourceDescriptor::History]
168
+ # @return [::Google::Api::ResourceDescriptor::History]
169
169
  # Optional. The historical or future-looking state of the resource pattern.
170
170
  #
171
171
  # Example:
@@ -182,19 +182,19 @@ module Google
182
182
  # };
183
183
  # }
184
184
  # @!attribute [rw] plural
185
- # @return [String]
185
+ # @return [::String]
186
186
  # The plural name used in the resource name, such as 'projects' for
187
187
  # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
188
  # field in k8s CRD spec
189
189
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
190
  # @!attribute [rw] singular
191
- # @return [String]
191
+ # @return [::String]
192
192
  # The same concept of the `singular` field in k8s CRD spec
193
193
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
194
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
195
195
  class ResourceDescriptor
196
- include Google::Protobuf::MessageExts
197
- extend Google::Protobuf::MessageExts::ClassMethods
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
198
 
199
199
  # A description of the historical or future-looking state of the
200
200
  # resource pattern.
@@ -216,7 +216,7 @@ module Google
216
216
  # Defines a proto annotation that describes a string field that refers to
217
217
  # an API resource.
218
218
  # @!attribute [rw] type
219
- # @return [String]
219
+ # @return [::String]
220
220
  # The resource type that the annotated field references.
221
221
  #
222
222
  # Example:
@@ -227,7 +227,7 @@ module Google
227
227
  # }];
228
228
  # }
229
229
  # @!attribute [rw] child_type
230
- # @return [String]
230
+ # @return [::String]
231
231
  # The resource type of a child collection that the annotated field
232
232
  # references. This is useful for annotating the `parent` field that
233
233
  # doesn't have a fixed resource type.
@@ -240,8 +240,8 @@ module Google
240
240
  # };
241
241
  # }
242
242
  class ResourceReference
243
- include Google::Protobuf::MessageExts
244
- extend Google::Protobuf::MessageExts::ClassMethods
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
245
  end
246
246
  end
247
247
  end
@@ -21,49 +21,58 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- # Represents a conversational agent.
24
+ # A Dialogflow agent is a virtual agent that handles conversations with your
25
+ # end-users. It is a natural language understanding module that understands the
26
+ # nuances of human language. Dialogflow translates end-user text or audio
27
+ # during a conversation to structured data that your apps and services can
28
+ # understand. You design and build a Dialogflow agent to handle the types of
29
+ # conversations required for your system.
30
+ #
31
+ # For more information about agents, see the
32
+ # [Agents
33
+ # documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
25
34
  # @!attribute [rw] parent
26
- # @return [String]
35
+ # @return [::String]
27
36
  # Required. The project of this agent.
28
37
  # Format: `projects/<Project ID>`.
29
38
  # @!attribute [rw] display_name
30
- # @return [String]
39
+ # @return [::String]
31
40
  # Required. The name of this agent.
32
41
  # @!attribute [rw] default_language_code
33
- # @return [String]
42
+ # @return [::String]
34
43
  # Required. The default language of the agent as a language tag. See
35
44
  # [Language
36
45
  # Support](https://cloud.google.com/dialogflow/docs/reference/language)
37
46
  # for a list of the currently supported language codes. This field cannot be
38
47
  # set by the `Update` method.
39
48
  # @!attribute [rw] supported_language_codes
40
- # @return [Array<String>]
49
+ # @return [::Array<::String>]
41
50
  # Optional. The list of all languages supported by this agent (except for the
42
51
  # `default_language_code`).
43
52
  # @!attribute [rw] time_zone
44
- # @return [String]
53
+ # @return [::String]
45
54
  # Required. The time zone of this agent from the
46
55
  # [time zone database](https://www.iana.org/time-zones), e.g.,
47
56
  # America/New_York, Europe/Paris.
48
57
  # @!attribute [rw] description
49
- # @return [String]
58
+ # @return [::String]
50
59
  # Optional. The description of this agent.
51
60
  # The maximum length is 500 characters. If exceeded, the request is rejected.
52
61
  # @!attribute [rw] avatar_uri
53
- # @return [String]
62
+ # @return [::String]
54
63
  # Optional. The URI of the agent's avatar.
55
64
  # Avatars are used throughout the Dialogflow console and in the self-hosted
56
65
  # [Web
57
66
  # Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
58
67
  # integration.
59
68
  # @!attribute [rw] enable_logging
60
- # @return [Boolean]
69
+ # @return [::Boolean]
61
70
  # Optional. Determines whether this agent should log conversation queries.
62
71
  # @!attribute [rw] match_mode
63
- # @return [Google::Cloud::Dialogflow::V2::Agent::MatchMode]
72
+ # @return [::Google::Cloud::Dialogflow::V2::Agent::MatchMode]
64
73
  # Optional. Determines how intents are detected from user queries.
65
74
  # @!attribute [rw] classification_threshold
66
- # @return [Float]
75
+ # @return [::Float]
67
76
  # Optional. To filter out false positive results and still get variety in
68
77
  # matched natural language inputs for your agent, you can tune the machine
69
78
  # learning classification threshold. If the returned score value is less than
@@ -72,17 +81,17 @@ module Google
72
81
  # values range from 0.0 (completely uncertain) to 1.0 (completely certain).
73
82
  # If set to 0.0, the default of 0.3 is used.
74
83
  # @!attribute [rw] api_version
75
- # @return [Google::Cloud::Dialogflow::V2::Agent::ApiVersion]
84
+ # @return [::Google::Cloud::Dialogflow::V2::Agent::ApiVersion]
76
85
  # Optional. API version displayed in Dialogflow console. If not specified,
77
86
  # V2 API is assumed. Clients are free to query different service endpoints
78
87
  # for different API versions. However, bots connectors and webhook calls will
79
88
  # follow the specified API version.
80
89
  # @!attribute [rw] tier
81
- # @return [Google::Cloud::Dialogflow::V2::Agent::Tier]
90
+ # @return [::Google::Cloud::Dialogflow::V2::Agent::Tier]
82
91
  # Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
83
92
  class Agent
84
- include Google::Protobuf::MessageExts
85
- extend Google::Protobuf::MessageExts::ClassMethods
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
95
 
87
96
  # Match mode determines how intents are detected from user queries.
88
97
  module MatchMode
@@ -129,157 +138,157 @@ module Google
129
138
  end
130
139
  end
131
140
 
132
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#get_agent Agents.GetAgent}.
141
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#get_agent Agents.GetAgent}.
133
142
  # @!attribute [rw] parent
134
- # @return [String]
143
+ # @return [::String]
135
144
  # Required. The project that the agent to fetch is associated with.
136
145
  # Format: `projects/<Project ID>`.
137
146
  class GetAgentRequest
138
- include Google::Protobuf::MessageExts
139
- extend Google::Protobuf::MessageExts::ClassMethods
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
149
  end
141
150
 
142
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#set_agent Agents.SetAgent}.
151
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#set_agent Agents.SetAgent}.
143
152
  # @!attribute [rw] agent
144
- # @return [Google::Cloud::Dialogflow::V2::Agent]
153
+ # @return [::Google::Cloud::Dialogflow::V2::Agent]
145
154
  # Required. The agent to update.
146
155
  # @!attribute [rw] update_mask
147
- # @return [Google::Protobuf::FieldMask]
156
+ # @return [::Google::Protobuf::FieldMask]
148
157
  # Optional. The mask to control which fields get updated.
149
158
  class SetAgentRequest
150
- include Google::Protobuf::MessageExts
151
- extend Google::Protobuf::MessageExts::ClassMethods
159
+ include ::Google::Protobuf::MessageExts
160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
152
161
  end
153
162
 
154
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#delete_agent Agents.DeleteAgent}.
163
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#delete_agent Agents.DeleteAgent}.
155
164
  # @!attribute [rw] parent
156
- # @return [String]
165
+ # @return [::String]
157
166
  # Required. The project that the agent to delete is associated with.
158
167
  # Format: `projects/<Project ID>`.
159
168
  class DeleteAgentRequest
160
- include Google::Protobuf::MessageExts
161
- extend Google::Protobuf::MessageExts::ClassMethods
169
+ include ::Google::Protobuf::MessageExts
170
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
171
  end
163
172
 
164
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
173
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
165
174
  # @!attribute [rw] parent
166
- # @return [String]
175
+ # @return [::String]
167
176
  # Required. The project to list agents from.
168
177
  # Format: `projects/<Project ID or '-'>`.
169
178
  # @!attribute [rw] page_size
170
- # @return [Integer]
179
+ # @return [::Integer]
171
180
  # Optional. The maximum number of items to return in a single page. By
172
181
  # default 100 and at most 1000.
173
182
  # @!attribute [rw] page_token
174
- # @return [String]
183
+ # @return [::String]
175
184
  # The next_page_token value returned from a previous list request.
176
185
  class SearchAgentsRequest
177
- include Google::Protobuf::MessageExts
178
- extend Google::Protobuf::MessageExts::ClassMethods
186
+ include ::Google::Protobuf::MessageExts
187
+ extend ::Google::Protobuf::MessageExts::ClassMethods
179
188
  end
180
189
 
181
- # The response message for {Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
190
+ # The response message for {::Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
182
191
  # @!attribute [rw] agents
183
- # @return [Array<Google::Cloud::Dialogflow::V2::Agent>]
192
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Agent>]
184
193
  # The list of agents. There will be a maximum number of items returned based
185
194
  # on the page_size field in the request.
186
195
  # @!attribute [rw] next_page_token
187
- # @return [String]
196
+ # @return [::String]
188
197
  # Token to retrieve the next page of results, or empty if there are no
189
198
  # more results in the list.
190
199
  class SearchAgentsResponse
191
- include Google::Protobuf::MessageExts
192
- extend Google::Protobuf::MessageExts::ClassMethods
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
202
  end
194
203
 
195
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#train_agent Agents.TrainAgent}.
204
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent Agents.TrainAgent}.
196
205
  # @!attribute [rw] parent
197
- # @return [String]
206
+ # @return [::String]
198
207
  # Required. The project that the agent to train is associated with.
199
208
  # Format: `projects/<Project ID>`.
200
209
  class TrainAgentRequest
201
- include Google::Protobuf::MessageExts
202
- extend Google::Protobuf::MessageExts::ClassMethods
210
+ include ::Google::Protobuf::MessageExts
211
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
212
  end
204
213
 
205
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
214
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
206
215
  # @!attribute [rw] parent
207
- # @return [String]
216
+ # @return [::String]
208
217
  # Required. The project that the agent to export is associated with.
209
218
  # Format: `projects/<Project ID>`.
210
219
  # @!attribute [rw] agent_uri
211
- # @return [String]
220
+ # @return [::String]
212
221
  # Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
213
222
  # URI to export the agent to.
214
223
  # The format of this URI must be `gs://<bucket-name>/<object-name>`.
215
224
  # If left unspecified, the serialized agent is returned inline.
216
225
  class ExportAgentRequest
217
- include Google::Protobuf::MessageExts
218
- extend Google::Protobuf::MessageExts::ClassMethods
226
+ include ::Google::Protobuf::MessageExts
227
+ extend ::Google::Protobuf::MessageExts::ClassMethods
219
228
  end
220
229
 
221
- # The response message for {Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
230
+ # The response message for {::Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
222
231
  # @!attribute [rw] agent_uri
223
- # @return [String]
232
+ # @return [::String]
224
233
  # The URI to a file containing the exported agent. This field is populated
225
234
  # only if `agent_uri` is specified in `ExportAgentRequest`.
226
235
  # @!attribute [rw] agent_content
227
- # @return [String]
236
+ # @return [::String]
228
237
  # Zip compressed raw byte content for agent.
229
238
  class ExportAgentResponse
230
- include Google::Protobuf::MessageExts
231
- extend Google::Protobuf::MessageExts::ClassMethods
239
+ include ::Google::Protobuf::MessageExts
240
+ extend ::Google::Protobuf::MessageExts::ClassMethods
232
241
  end
233
242
 
234
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#import_agent Agents.ImportAgent}.
243
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#import_agent Agents.ImportAgent}.
235
244
  # @!attribute [rw] parent
236
- # @return [String]
245
+ # @return [::String]
237
246
  # Required. The project that the agent to import is associated with.
238
247
  # Format: `projects/<Project ID>`.
239
248
  # @!attribute [rw] agent_uri
240
- # @return [String]
249
+ # @return [::String]
241
250
  # The URI to a Google Cloud Storage file containing the agent to import.
242
251
  # Note: The URI must start with "gs://".
243
252
  # @!attribute [rw] agent_content
244
- # @return [String]
253
+ # @return [::String]
245
254
  # Zip compressed raw byte content for agent.
246
255
  class ImportAgentRequest
247
- include Google::Protobuf::MessageExts
248
- extend Google::Protobuf::MessageExts::ClassMethods
256
+ include ::Google::Protobuf::MessageExts
257
+ extend ::Google::Protobuf::MessageExts::ClassMethods
249
258
  end
250
259
 
251
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#restore_agent Agents.RestoreAgent}.
260
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#restore_agent Agents.RestoreAgent}.
252
261
  # @!attribute [rw] parent
253
- # @return [String]
262
+ # @return [::String]
254
263
  # Required. The project that the agent to restore is associated with.
255
264
  # Format: `projects/<Project ID>`.
256
265
  # @!attribute [rw] agent_uri
257
- # @return [String]
266
+ # @return [::String]
258
267
  # The URI to a Google Cloud Storage file containing the agent to restore.
259
268
  # Note: The URI must start with "gs://".
260
269
  # @!attribute [rw] agent_content
261
- # @return [String]
270
+ # @return [::String]
262
271
  # Zip compressed raw byte content for agent.
263
272
  class RestoreAgentRequest
264
- include Google::Protobuf::MessageExts
265
- extend Google::Protobuf::MessageExts::ClassMethods
273
+ include ::Google::Protobuf::MessageExts
274
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
275
  end
267
276
 
268
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#get_validation_result Agents.GetValidationResult}.
277
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#get_validation_result Agents.GetValidationResult}.
269
278
  # @!attribute [rw] parent
270
- # @return [String]
279
+ # @return [::String]
271
280
  # Required. The project that the agent is associated with.
272
281
  # Format: `projects/<Project ID>`.
273
282
  # @!attribute [rw] language_code
274
- # @return [String]
283
+ # @return [::String]
275
284
  # Optional. The language for which you want a validation result. If not
276
285
  # specified, the agent's default language is used. [Many
277
286
  # languages](https://cloud.google.com/dialogflow/docs/reference/language)
278
287
  # are supported. Note: languages must be enabled in the agent before they can
279
288
  # be used.
280
289
  class GetValidationResultRequest
281
- include Google::Protobuf::MessageExts
282
- extend Google::Protobuf::MessageExts::ClassMethods
290
+ include ::Google::Protobuf::MessageExts
291
+ extend ::Google::Protobuf::MessageExts::ClassMethods
283
292
  end
284
293
  end
285
294
  end