google-cloud-dialogflow-v2 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2.rb +2 -0
  3. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  4. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -2
  5. data/lib/google/cloud/dialogflow/v2/answer_records.rb +1 -2
  6. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +1 -2
  7. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +72 -0
  8. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +44 -3
  9. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  10. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  11. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +21 -0
  12. data/lib/google/cloud/dialogflow/v2/environments/client.rb +411 -1
  13. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
  14. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  15. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  16. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  17. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
  18. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  19. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  20. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +96 -12
  21. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +76 -0
  22. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +72 -0
  23. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +110 -0
  24. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  25. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  26. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  27. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  28. data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
  29. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  30. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  31. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +9 -16
  32. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +14 -2
  33. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +169 -4
  34. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  35. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  36. metadata +17 -3
@@ -0,0 +1,144 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ # By default, your agent responds to a matched intent with a static response.
25
+ # As an alternative, you can provide a more dynamic response by using
26
+ # fulfillment. When you enable fulfillment for an intent, Dialogflow responds
27
+ # to that intent by calling a service that you define. For example, if an
28
+ # end-user wants to schedule a haircut on Friday, your service can check your
29
+ # database and respond to the end-user with availability information for
30
+ # Friday.
31
+ #
32
+ # For more information, see the [fulfillment
33
+ # guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
34
+ # @!attribute [rw] name
35
+ # @return [::String]
36
+ # Required. The unique identifier of the fulfillment.
37
+ # Supported formats:
38
+ # - `projects/<Project ID>/agent/fulfillment`
39
+ # - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment`
40
+ #
41
+ # This field is not used for Fulfillment in an Environment.
42
+ # @!attribute [rw] display_name
43
+ # @return [::String]
44
+ # Optional. The human-readable name of the fulfillment, unique within the agent.
45
+ #
46
+ # This field is not used for Fulfillment in an Environment.
47
+ # @!attribute [rw] generic_web_service
48
+ # @return [::Google::Cloud::Dialogflow::V2::Fulfillment::GenericWebService]
49
+ # Configuration for a generic web service.
50
+ # @!attribute [rw] enabled
51
+ # @return [::Boolean]
52
+ # Optional. Whether fulfillment is enabled.
53
+ # @!attribute [rw] features
54
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Fulfillment::Feature>]
55
+ # Optional. The field defines whether the fulfillment is enabled for certain features.
56
+ class Fulfillment
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+
60
+ # Represents configuration for a generic web service.
61
+ # Dialogflow supports two mechanisms for authentications:
62
+ # - Basic authentication with username and password.
63
+ # - Authentication with additional authentication headers.
64
+ # More information could be found at:
65
+ # https://cloud.google.com/dialogflow/docs/fulfillment-configure.
66
+ # @!attribute [rw] uri
67
+ # @return [::String]
68
+ # Required. The fulfillment URI for receiving POST requests.
69
+ # It must use https protocol.
70
+ # @!attribute [rw] username
71
+ # @return [::String]
72
+ # Optional. The user name for HTTP Basic authentication.
73
+ # @!attribute [rw] password
74
+ # @return [::String]
75
+ # Optional. The password for HTTP Basic authentication.
76
+ # @!attribute [rw] request_headers
77
+ # @return [::Google::Protobuf::Map{::String => ::String}]
78
+ # Optional. The HTTP request headers to send together with fulfillment requests.
79
+ # @!attribute [rw] is_cloud_function
80
+ # @return [::Boolean]
81
+ # Optional. Indicates if generic web service is created through Cloud Functions
82
+ # integration. Defaults to false.
83
+ #
84
+ # is_cloud_function is deprecated. Cloud functions can be configured by
85
+ # its uri as a regular web service now.
86
+ class GenericWebService
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+
90
+ # @!attribute [rw] key
91
+ # @return [::String]
92
+ # @!attribute [rw] value
93
+ # @return [::String]
94
+ class RequestHeadersEntry
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+ end
99
+
100
+ # Whether fulfillment is enabled for the specific feature.
101
+ # @!attribute [rw] type
102
+ # @return [::Google::Cloud::Dialogflow::V2::Fulfillment::Feature::Type]
103
+ # The type of the feature that enabled for fulfillment.
104
+ class Feature
105
+ include ::Google::Protobuf::MessageExts
106
+ extend ::Google::Protobuf::MessageExts::ClassMethods
107
+
108
+ # The type of the feature.
109
+ module Type
110
+ # Feature type not specified.
111
+ TYPE_UNSPECIFIED = 0
112
+
113
+ # Fulfillment is enabled for SmallTalk.
114
+ SMALLTALK = 1
115
+ end
116
+ end
117
+ end
118
+
119
+ # The request message for {::Google::Cloud::Dialogflow::V2::Fulfillments::Client#get_fulfillment Fulfillments.GetFulfillment}.
120
+ # @!attribute [rw] name
121
+ # @return [::String]
122
+ # Required. The name of the fulfillment.
123
+ # Format: `projects/<Project ID>/agent/fulfillment`.
124
+ class GetFulfillmentRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
129
+ # The request message for {::Google::Cloud::Dialogflow::V2::Fulfillments::Client#update_fulfillment Fulfillments.UpdateFulfillment}.
130
+ # @!attribute [rw] fulfillment
131
+ # @return [::Google::Cloud::Dialogflow::V2::Fulfillment]
132
+ # Required. The fulfillment to update.
133
+ # @!attribute [rw] update_mask
134
+ # @return [::Google::Protobuf::FieldMask]
135
+ # Required. The mask to control which fields get updated. If the mask is not
136
+ # present, all fields will be updated.
137
+ class UpdateFulfillmentRequest
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,176 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ # You can create multiple versions of your agent and publish them to separate
25
+ # environments.
26
+ #
27
+ # When you edit an agent, you are editing the draft agent. At any point, you
28
+ # can save the draft agent as an agent version, which is an immutable snapshot
29
+ # of your agent.
30
+ #
31
+ # When you save the draft agent, it is published to the default environment.
32
+ # When you create agent versions, you can publish them to custom environments.
33
+ # You can create a variety of custom environments for:
34
+ #
35
+ # - testing
36
+ # - development
37
+ # - production
38
+ # - etc.
39
+ #
40
+ # For more information, see the [versions and environments
41
+ # guide](https://cloud.google.com/dialogflow/docs/agents-versions).
42
+ # @!attribute [r] name
43
+ # @return [::String]
44
+ # Output only. The unique identifier of this agent version.
45
+ # Supported formats:
46
+ # - `projects/<Project ID>/agent/versions/<Version ID>`
47
+ # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
48
+ # ID>`
49
+ # @!attribute [rw] description
50
+ # @return [::String]
51
+ # Optional. The developer-provided description of this version.
52
+ # @!attribute [r] version_number
53
+ # @return [::Integer]
54
+ # Output only. The sequential number of this version. This field is read-only which means
55
+ # it cannot be set by create and update methods.
56
+ # @!attribute [r] create_time
57
+ # @return [::Google::Protobuf::Timestamp]
58
+ # Output only. The creation time of this version. This field is read-only, i.e., it cannot
59
+ # be set by create and update methods.
60
+ # @!attribute [r] status
61
+ # @return [::Google::Cloud::Dialogflow::V2::Version::VersionStatus]
62
+ # Output only. The status of this version. This field is read-only and cannot be set by
63
+ # create and update methods.
64
+ class Version
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
+
68
+ # The status of a version.
69
+ module VersionStatus
70
+ # Not specified. This value is not used.
71
+ VERSION_STATUS_UNSPECIFIED = 0
72
+
73
+ # Version is not ready to serve (e.g. training is in progress).
74
+ IN_PROGRESS = 1
75
+
76
+ # Version is ready to serve.
77
+ READY = 2
78
+
79
+ # Version training failed.
80
+ FAILED = 3
81
+ end
82
+ end
83
+
84
+ # The request message for {::Google::Cloud::Dialogflow::V2::Versions::Client#list_versions Versions.ListVersions}.
85
+ # @!attribute [rw] parent
86
+ # @return [::String]
87
+ # Required. The agent to list all versions from.
88
+ # Supported formats:
89
+ # - `projects/<Project ID>/agent`
90
+ # - `projects/<Project ID>/locations/<Location ID>/agent`
91
+ # @!attribute [rw] page_size
92
+ # @return [::Integer]
93
+ # Optional. The maximum number of items to return in a single page. By default 100 and
94
+ # at most 1000.
95
+ # @!attribute [rw] page_token
96
+ # @return [::String]
97
+ # Optional. The next_page_token value returned from a previous list request.
98
+ class ListVersionsRequest
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # The response message for {::Google::Cloud::Dialogflow::V2::Versions::Client#list_versions Versions.ListVersions}.
104
+ # @!attribute [rw] versions
105
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Version>]
106
+ # The list of agent versions. There will be a maximum number of items
107
+ # returned based on the page_size field in the request.
108
+ # @!attribute [rw] next_page_token
109
+ # @return [::String]
110
+ # Token to retrieve the next page of results, or empty if there are no
111
+ # more results in the list.
112
+ class ListVersionsResponse
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+
117
+ # The request message for {::Google::Cloud::Dialogflow::V2::Versions::Client#get_version Versions.GetVersion}.
118
+ # @!attribute [rw] name
119
+ # @return [::String]
120
+ # Required. The name of the version.
121
+ # Supported formats:
122
+ # - `projects/<Project ID>/agent/versions/<Version ID>`
123
+ # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
124
+ # ID>`
125
+ class GetVersionRequest
126
+ include ::Google::Protobuf::MessageExts
127
+ extend ::Google::Protobuf::MessageExts::ClassMethods
128
+ end
129
+
130
+ # The request message for {::Google::Cloud::Dialogflow::V2::Versions::Client#create_version Versions.CreateVersion}.
131
+ # @!attribute [rw] parent
132
+ # @return [::String]
133
+ # Required. The agent to create a version for.
134
+ # Supported formats:
135
+ # - `projects/<Project ID>/agent`
136
+ # - `projects/<Project ID>/locations/<Location ID>/agent`
137
+ # @!attribute [rw] version
138
+ # @return [::Google::Cloud::Dialogflow::V2::Version]
139
+ # Required. The version to create.
140
+ class CreateVersionRequest
141
+ include ::Google::Protobuf::MessageExts
142
+ extend ::Google::Protobuf::MessageExts::ClassMethods
143
+ end
144
+
145
+ # The request message for {::Google::Cloud::Dialogflow::V2::Versions::Client#update_version Versions.UpdateVersion}.
146
+ # @!attribute [rw] version
147
+ # @return [::Google::Cloud::Dialogflow::V2::Version]
148
+ # Required. The version to update.
149
+ # Supported formats:
150
+ # - `projects/<Project ID>/agent/versions/<Version ID>`
151
+ # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
152
+ # ID>`
153
+ # @!attribute [rw] update_mask
154
+ # @return [::Google::Protobuf::FieldMask]
155
+ # Required. The mask to control which fields get updated.
156
+ class UpdateVersionRequest
157
+ include ::Google::Protobuf::MessageExts
158
+ extend ::Google::Protobuf::MessageExts::ClassMethods
159
+ end
160
+
161
+ # The request message for {::Google::Cloud::Dialogflow::V2::Versions::Client#delete_version Versions.DeleteVersion}.
162
+ # @!attribute [rw] name
163
+ # @return [::String]
164
+ # Required. The name of the version to delete.
165
+ # Supported formats:
166
+ # - `projects/<Project ID>/agent/versions/<Version ID>`
167
+ # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
168
+ # ID>`
169
+ class DeleteVersionRequest
170
+ include ::Google::Protobuf::MessageExts
171
+ extend ::Google::Protobuf::MessageExts::ClassMethods
172
+ end
173
+ end
174
+ end
175
+ end
176
+ end
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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -221,6 +221,12 @@ files:
221
221
  - lib/google/cloud/dialogflow/v2/environments/client.rb
222
222
  - lib/google/cloud/dialogflow/v2/environments/credentials.rb
223
223
  - lib/google/cloud/dialogflow/v2/environments/paths.rb
224
+ - lib/google/cloud/dialogflow/v2/fulfillment_pb.rb
225
+ - lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb
226
+ - lib/google/cloud/dialogflow/v2/fulfillments.rb
227
+ - lib/google/cloud/dialogflow/v2/fulfillments/client.rb
228
+ - lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb
229
+ - lib/google/cloud/dialogflow/v2/fulfillments/paths.rb
224
230
  - lib/google/cloud/dialogflow/v2/gcs_pb.rb
225
231
  - lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb
226
232
  - lib/google/cloud/dialogflow/v2/intent_pb.rb
@@ -256,6 +262,12 @@ files:
256
262
  - lib/google/cloud/dialogflow/v2/sessions/paths.rb
257
263
  - lib/google/cloud/dialogflow/v2/validation_result_pb.rb
258
264
  - lib/google/cloud/dialogflow/v2/version.rb
265
+ - lib/google/cloud/dialogflow/v2/version_pb.rb
266
+ - lib/google/cloud/dialogflow/v2/version_services_pb.rb
267
+ - lib/google/cloud/dialogflow/v2/versions.rb
268
+ - lib/google/cloud/dialogflow/v2/versions/client.rb
269
+ - lib/google/cloud/dialogflow/v2/versions/credentials.rb
270
+ - lib/google/cloud/dialogflow/v2/versions/paths.rb
259
271
  - lib/google/cloud/dialogflow/v2/webhook_pb.rb
260
272
  - proto_docs/README.md
261
273
  - proto_docs/google/api/field_behavior.rb
@@ -270,6 +282,7 @@ files:
270
282
  - proto_docs/google/cloud/dialogflow/v2/document.rb
271
283
  - proto_docs/google/cloud/dialogflow/v2/entity_type.rb
272
284
  - proto_docs/google/cloud/dialogflow/v2/environment.rb
285
+ - proto_docs/google/cloud/dialogflow/v2/fulfillment.rb
273
286
  - proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb
274
287
  - proto_docs/google/cloud/dialogflow/v2/intent.rb
275
288
  - proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb
@@ -277,6 +290,7 @@ files:
277
290
  - proto_docs/google/cloud/dialogflow/v2/session.rb
278
291
  - proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb
279
292
  - proto_docs/google/cloud/dialogflow/v2/validation_result.rb
293
+ - proto_docs/google/cloud/dialogflow/v2/version.rb
280
294
  - proto_docs/google/cloud/dialogflow/v2/webhook.rb
281
295
  - proto_docs/google/longrunning/operations.rb
282
296
  - proto_docs/google/protobuf/any.rb
@@ -306,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
320
  - !ruby/object:Gem::Version
307
321
  version: '0'
308
322
  requirements: []
309
- rubygems_version: 3.2.13
323
+ rubygems_version: 3.2.16
310
324
  signing_key:
311
325
  specification_version: 4
312
326
  summary: API Client library for the Dialogflow V2 API