google-cloud-dialogflow-v2 0.4.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/dialogflow/v2.rb +2 -1
  5. data/lib/google/cloud/dialogflow/v2/agents.rb +5 -5
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +212 -207
  7. data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +109 -103
  9. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
  10. data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +148 -143
  12. data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
  13. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
  14. data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +238 -233
  16. data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
  17. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +109 -103
  18. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
  19. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +51 -0
  20. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +45 -0
  21. data/lib/google/cloud/dialogflow/v2/environments.rb +49 -0
  22. data/lib/google/cloud/dialogflow/v2/environments/client.rb +384 -0
  23. data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +52 -0
  24. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +47 -0
  25. data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
  26. data/lib/google/cloud/dialogflow/v2/intents/client.rb +183 -178
  27. data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
  28. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +109 -103
  29. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
  30. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
  31. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +130 -125
  32. data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
  33. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
  34. data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
  35. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +86 -81
  36. data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
  37. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
  38. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  39. data/proto_docs/google/api/resource.rb +12 -12
  40. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +69 -69
  41. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
  42. data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
  43. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
  44. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +103 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +251 -250
  46. data/proto_docs/google/cloud/dialogflow/v2/session.rb +114 -106
  47. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
  48. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
  49. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +43 -36
  50. data/proto_docs/google/longrunning/operations.rb +30 -30
  51. data/proto_docs/google/protobuf/any.rb +4 -4
  52. data/proto_docs/google/protobuf/duration.rb +4 -4
  53. data/proto_docs/google/protobuf/empty.rb +2 -2
  54. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  55. data/proto_docs/google/protobuf/struct.rb +18 -18
  56. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  57. data/proto_docs/google/rpc/status.rb +6 -6
  58. data/proto_docs/google/type/latlng.rb +4 -4
  59. metadata +41 -6
  60. 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.4.1"
24
+ VERSION = "0.6.2"
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
@@ -23,47 +23,47 @@ module Google
23
23
  module V2
24
24
  # Represents a conversational agent.
25
25
  # @!attribute [rw] parent
26
- # @return [String]
26
+ # @return [::String]
27
27
  # Required. The project of this agent.
28
28
  # Format: `projects/<Project ID>`.
29
29
  # @!attribute [rw] display_name
30
- # @return [String]
30
+ # @return [::String]
31
31
  # Required. The name of this agent.
32
32
  # @!attribute [rw] default_language_code
33
- # @return [String]
33
+ # @return [::String]
34
34
  # Required. The default language of the agent as a language tag. See
35
35
  # [Language
36
36
  # Support](https://cloud.google.com/dialogflow/docs/reference/language)
37
37
  # for a list of the currently supported language codes. This field cannot be
38
38
  # set by the `Update` method.
39
39
  # @!attribute [rw] supported_language_codes
40
- # @return [Array<String>]
40
+ # @return [::Array<::String>]
41
41
  # Optional. The list of all languages supported by this agent (except for the
42
42
  # `default_language_code`).
43
43
  # @!attribute [rw] time_zone
44
- # @return [String]
44
+ # @return [::String]
45
45
  # Required. The time zone of this agent from the
46
46
  # [time zone database](https://www.iana.org/time-zones), e.g.,
47
47
  # America/New_York, Europe/Paris.
48
48
  # @!attribute [rw] description
49
- # @return [String]
49
+ # @return [::String]
50
50
  # Optional. The description of this agent.
51
51
  # The maximum length is 500 characters. If exceeded, the request is rejected.
52
52
  # @!attribute [rw] avatar_uri
53
- # @return [String]
53
+ # @return [::String]
54
54
  # Optional. The URI of the agent's avatar.
55
55
  # Avatars are used throughout the Dialogflow console and in the self-hosted
56
56
  # [Web
57
57
  # Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
58
58
  # integration.
59
59
  # @!attribute [rw] enable_logging
60
- # @return [Boolean]
60
+ # @return [::Boolean]
61
61
  # Optional. Determines whether this agent should log conversation queries.
62
62
  # @!attribute [rw] match_mode
63
- # @return [Google::Cloud::Dialogflow::V2::Agent::MatchMode]
63
+ # @return [::Google::Cloud::Dialogflow::V2::Agent::MatchMode]
64
64
  # Optional. Determines how intents are detected from user queries.
65
65
  # @!attribute [rw] classification_threshold
66
- # @return [Float]
66
+ # @return [::Float]
67
67
  # Optional. To filter out false positive results and still get variety in
68
68
  # matched natural language inputs for your agent, you can tune the machine
69
69
  # learning classification threshold. If the returned score value is less than
@@ -72,17 +72,17 @@ module Google
72
72
  # values range from 0.0 (completely uncertain) to 1.0 (completely certain).
73
73
  # If set to 0.0, the default of 0.3 is used.
74
74
  # @!attribute [rw] api_version
75
- # @return [Google::Cloud::Dialogflow::V2::Agent::ApiVersion]
75
+ # @return [::Google::Cloud::Dialogflow::V2::Agent::ApiVersion]
76
76
  # Optional. API version displayed in Dialogflow console. If not specified,
77
77
  # V2 API is assumed. Clients are free to query different service endpoints
78
78
  # for different API versions. However, bots connectors and webhook calls will
79
79
  # follow the specified API version.
80
80
  # @!attribute [rw] tier
81
- # @return [Google::Cloud::Dialogflow::V2::Agent::Tier]
81
+ # @return [::Google::Cloud::Dialogflow::V2::Agent::Tier]
82
82
  # Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
83
83
  class Agent
84
- include Google::Protobuf::MessageExts
85
- extend Google::Protobuf::MessageExts::ClassMethods
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
86
 
87
87
  # Match mode determines how intents are detected from user queries.
88
88
  module MatchMode
@@ -129,157 +129,157 @@ module Google
129
129
  end
130
130
  end
131
131
 
132
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#get_agent Agents.GetAgent}.
132
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#get_agent Agents.GetAgent}.
133
133
  # @!attribute [rw] parent
134
- # @return [String]
134
+ # @return [::String]
135
135
  # Required. The project that the agent to fetch is associated with.
136
136
  # Format: `projects/<Project ID>`.
137
137
  class GetAgentRequest
138
- include Google::Protobuf::MessageExts
139
- extend Google::Protobuf::MessageExts::ClassMethods
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
140
  end
141
141
 
142
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#set_agent Agents.SetAgent}.
142
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#set_agent Agents.SetAgent}.
143
143
  # @!attribute [rw] agent
144
- # @return [Google::Cloud::Dialogflow::V2::Agent]
144
+ # @return [::Google::Cloud::Dialogflow::V2::Agent]
145
145
  # Required. The agent to update.
146
146
  # @!attribute [rw] update_mask
147
- # @return [Google::Protobuf::FieldMask]
147
+ # @return [::Google::Protobuf::FieldMask]
148
148
  # Optional. The mask to control which fields get updated.
149
149
  class SetAgentRequest
150
- include Google::Protobuf::MessageExts
151
- extend Google::Protobuf::MessageExts::ClassMethods
150
+ include ::Google::Protobuf::MessageExts
151
+ extend ::Google::Protobuf::MessageExts::ClassMethods
152
152
  end
153
153
 
154
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#delete_agent Agents.DeleteAgent}.
154
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#delete_agent Agents.DeleteAgent}.
155
155
  # @!attribute [rw] parent
156
- # @return [String]
156
+ # @return [::String]
157
157
  # Required. The project that the agent to delete is associated with.
158
158
  # Format: `projects/<Project ID>`.
159
159
  class DeleteAgentRequest
160
- include Google::Protobuf::MessageExts
161
- extend Google::Protobuf::MessageExts::ClassMethods
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
162
  end
163
163
 
164
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
164
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
165
165
  # @!attribute [rw] parent
166
- # @return [String]
166
+ # @return [::String]
167
167
  # Required. The project to list agents from.
168
168
  # Format: `projects/<Project ID or '-'>`.
169
169
  # @!attribute [rw] page_size
170
- # @return [Integer]
170
+ # @return [::Integer]
171
171
  # Optional. The maximum number of items to return in a single page. By
172
172
  # default 100 and at most 1000.
173
173
  # @!attribute [rw] page_token
174
- # @return [String]
174
+ # @return [::String]
175
175
  # The next_page_token value returned from a previous list request.
176
176
  class SearchAgentsRequest
177
- include Google::Protobuf::MessageExts
178
- extend Google::Protobuf::MessageExts::ClassMethods
177
+ include ::Google::Protobuf::MessageExts
178
+ extend ::Google::Protobuf::MessageExts::ClassMethods
179
179
  end
180
180
 
181
- # The response message for {Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
181
+ # The response message for {::Google::Cloud::Dialogflow::V2::Agents::Client#search_agents Agents.SearchAgents}.
182
182
  # @!attribute [rw] agents
183
- # @return [Array<Google::Cloud::Dialogflow::V2::Agent>]
183
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Agent>]
184
184
  # The list of agents. There will be a maximum number of items returned based
185
185
  # on the page_size field in the request.
186
186
  # @!attribute [rw] next_page_token
187
- # @return [String]
187
+ # @return [::String]
188
188
  # Token to retrieve the next page of results, or empty if there are no
189
189
  # more results in the list.
190
190
  class SearchAgentsResponse
191
- include Google::Protobuf::MessageExts
192
- extend Google::Protobuf::MessageExts::ClassMethods
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
193
  end
194
194
 
195
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#train_agent Agents.TrainAgent}.
195
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#train_agent Agents.TrainAgent}.
196
196
  # @!attribute [rw] parent
197
- # @return [String]
197
+ # @return [::String]
198
198
  # Required. The project that the agent to train is associated with.
199
199
  # Format: `projects/<Project ID>`.
200
200
  class TrainAgentRequest
201
- include Google::Protobuf::MessageExts
202
- extend Google::Protobuf::MessageExts::ClassMethods
201
+ include ::Google::Protobuf::MessageExts
202
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
203
  end
204
204
 
205
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
205
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
206
206
  # @!attribute [rw] parent
207
- # @return [String]
207
+ # @return [::String]
208
208
  # Required. The project that the agent to export is associated with.
209
209
  # Format: `projects/<Project ID>`.
210
210
  # @!attribute [rw] agent_uri
211
- # @return [String]
211
+ # @return [::String]
212
212
  # Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
213
213
  # URI to export the agent to.
214
214
  # The format of this URI must be `gs://<bucket-name>/<object-name>`.
215
215
  # If left unspecified, the serialized agent is returned inline.
216
216
  class ExportAgentRequest
217
- include Google::Protobuf::MessageExts
218
- extend Google::Protobuf::MessageExts::ClassMethods
217
+ include ::Google::Protobuf::MessageExts
218
+ extend ::Google::Protobuf::MessageExts::ClassMethods
219
219
  end
220
220
 
221
- # The response message for {Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
221
+ # The response message for {::Google::Cloud::Dialogflow::V2::Agents::Client#export_agent Agents.ExportAgent}.
222
222
  # @!attribute [rw] agent_uri
223
- # @return [String]
223
+ # @return [::String]
224
224
  # The URI to a file containing the exported agent. This field is populated
225
225
  # only if `agent_uri` is specified in `ExportAgentRequest`.
226
226
  # @!attribute [rw] agent_content
227
- # @return [String]
227
+ # @return [::String]
228
228
  # Zip compressed raw byte content for agent.
229
229
  class ExportAgentResponse
230
- include Google::Protobuf::MessageExts
231
- extend Google::Protobuf::MessageExts::ClassMethods
230
+ include ::Google::Protobuf::MessageExts
231
+ extend ::Google::Protobuf::MessageExts::ClassMethods
232
232
  end
233
233
 
234
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#import_agent Agents.ImportAgent}.
234
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#import_agent Agents.ImportAgent}.
235
235
  # @!attribute [rw] parent
236
- # @return [String]
236
+ # @return [::String]
237
237
  # Required. The project that the agent to import is associated with.
238
238
  # Format: `projects/<Project ID>`.
239
239
  # @!attribute [rw] agent_uri
240
- # @return [String]
240
+ # @return [::String]
241
241
  # The URI to a Google Cloud Storage file containing the agent to import.
242
242
  # Note: The URI must start with "gs://".
243
243
  # @!attribute [rw] agent_content
244
- # @return [String]
244
+ # @return [::String]
245
245
  # Zip compressed raw byte content for agent.
246
246
  class ImportAgentRequest
247
- include Google::Protobuf::MessageExts
248
- extend Google::Protobuf::MessageExts::ClassMethods
247
+ include ::Google::Protobuf::MessageExts
248
+ extend ::Google::Protobuf::MessageExts::ClassMethods
249
249
  end
250
250
 
251
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#restore_agent Agents.RestoreAgent}.
251
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#restore_agent Agents.RestoreAgent}.
252
252
  # @!attribute [rw] parent
253
- # @return [String]
253
+ # @return [::String]
254
254
  # Required. The project that the agent to restore is associated with.
255
255
  # Format: `projects/<Project ID>`.
256
256
  # @!attribute [rw] agent_uri
257
- # @return [String]
257
+ # @return [::String]
258
258
  # The URI to a Google Cloud Storage file containing the agent to restore.
259
259
  # Note: The URI must start with "gs://".
260
260
  # @!attribute [rw] agent_content
261
- # @return [String]
261
+ # @return [::String]
262
262
  # Zip compressed raw byte content for agent.
263
263
  class RestoreAgentRequest
264
- include Google::Protobuf::MessageExts
265
- extend Google::Protobuf::MessageExts::ClassMethods
264
+ include ::Google::Protobuf::MessageExts
265
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
266
  end
267
267
 
268
- # The request message for {Google::Cloud::Dialogflow::V2::Agents::Client#get_validation_result Agents.GetValidationResult}.
268
+ # The request message for {::Google::Cloud::Dialogflow::V2::Agents::Client#get_validation_result Agents.GetValidationResult}.
269
269
  # @!attribute [rw] parent
270
- # @return [String]
270
+ # @return [::String]
271
271
  # Required. The project that the agent is associated with.
272
272
  # Format: `projects/<Project ID>`.
273
273
  # @!attribute [rw] language_code
274
- # @return [String]
274
+ # @return [::String]
275
275
  # Optional. The language for which you want a validation result. If not
276
276
  # specified, the agent's default language is used. [Many
277
277
  # languages](https://cloud.google.com/dialogflow/docs/reference/language)
278
278
  # are supported. Note: languages must be enabled in the agent before they can
279
279
  # be used.
280
280
  class GetValidationResultRequest
281
- include Google::Protobuf::MessageExts
282
- extend Google::Protobuf::MessageExts::ClassMethods
281
+ include ::Google::Protobuf::MessageExts
282
+ extend ::Google::Protobuf::MessageExts::ClassMethods
283
283
  end
284
284
  end
285
285
  end