google-cloud-dialogflow-v2 0.6.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +66 -2
  4. data/lib/google/cloud/dialogflow/v2.rb +13 -2
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +24 -12
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +40 -72
  7. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +96 -11
  8. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  9. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +100 -0
  10. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +48 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_records.rb +49 -0
  12. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +478 -0
  13. data/lib/google/cloud/dialogflow/v2/answer_records/credentials.rb +52 -0
  14. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +105 -0
  15. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +7 -0
  16. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +8 -25
  17. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -18
  18. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +24 -63
  19. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +74 -2
  20. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +39 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +89 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +182 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +61 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +49 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +699 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb +52 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +246 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +75 -0
  29. data/lib/google/cloud/dialogflow/v2/conversations.rb +49 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +757 -0
  31. data/lib/google/cloud/dialogflow/v2/conversations/credentials.rb +52 -0
  32. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +146 -0
  33. data/lib/google/cloud/dialogflow/v2/document_pb.rb +99 -0
  34. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +73 -0
  35. data/lib/google/cloud/dialogflow/v2/documents.rb +50 -0
  36. data/lib/google/cloud/dialogflow/v2/documents/client.rb +810 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/credentials.rb +52 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +655 -0
  39. data/lib/google/cloud/dialogflow/v2/documents/paths.rb +119 -0
  40. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -39
  41. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -28
  42. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +28 -91
  43. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +96 -11
  44. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  45. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  46. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +24 -3
  47. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  48. data/lib/google/cloud/dialogflow/v2/environments/client.rb +430 -14
  49. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
  50. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  51. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  52. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  53. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
  54. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  55. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  56. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +20 -0
  57. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +26 -0
  58. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  59. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +9 -40
  60. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -32
  61. data/lib/google/cloud/dialogflow/v2/intents/client.rb +34 -81
  62. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +96 -11
  63. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +97 -13
  64. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +60 -0
  65. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +53 -0
  66. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +49 -0
  67. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +696 -0
  68. data/lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb +52 -0
  69. data/lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb +105 -0
  70. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +181 -0
  71. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +64 -0
  72. data/lib/google/cloud/dialogflow/v2/participants.rb +49 -0
  73. data/lib/google/cloud/dialogflow/v2/participants/client.rb +894 -0
  74. data/lib/google/cloud/dialogflow/v2/participants/credentials.rb +52 -0
  75. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +334 -0
  76. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -23
  77. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -17
  78. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +23 -53
  79. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +74 -2
  80. data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -0
  81. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -7
  82. data/lib/google/cloud/dialogflow/v2/sessions.rb +4 -4
  83. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +51 -15
  84. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +113 -3
  85. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  86. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  87. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  88. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  89. data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
  90. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  91. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  92. data/proto_docs/google/api/field_behavior.rb +6 -0
  93. data/proto_docs/google/api/resource.rb +50 -14
  94. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +1 -2
  95. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +252 -0
  96. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +25 -0
  97. data/proto_docs/google/cloud/dialogflow/v2/context.rb +17 -2
  98. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +253 -0
  99. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +83 -0
  100. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +522 -0
  101. data/proto_docs/google/cloud/dialogflow/v2/document.rb +267 -0
  102. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +12 -3
  103. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +187 -5
  104. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  105. data/proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb +45 -0
  106. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +29 -4
  107. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +139 -0
  108. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +525 -0
  109. data/proto_docs/google/cloud/dialogflow/v2/session.rb +56 -7
  110. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +7 -6
  111. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  112. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  113. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +2 -2
  114. data/proto_docs/google/longrunning/operations.rb +17 -3
  115. data/proto_docs/google/protobuf/any.rb +5 -2
  116. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  117. data/proto_docs/google/type/latlng.rb +2 -2
  118. metadata +81 -11
@@ -28,11 +28,19 @@ module Google
28
28
  # `projects/<Project ID>/agent/sessions/<Session ID>`, or
29
29
  # `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
30
30
  # ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
31
- # default 'draft' environment. If `User ID` is not specified, we are using
32
- # "-". It's up to the API caller to choose an appropriate `Session ID` and
33
- # `User Id`. They can be a random number or some type of user and session
31
+ # default 'draft' environment (`Environment ID` might be referred to as
32
+ # environment name at some places). If `User ID` is not specified, we are
33
+ # using "-". It's up to the API caller to choose an appropriate `Session ID`
34
+ # and `User Id`. They can be a random number or some type of user and session
34
35
  # identifiers (preferably hashed). The length of the `Session ID` and
35
36
  # `User ID` must not exceed 36 characters.
37
+ #
38
+ # For more information, see the [API interactions
39
+ # guide](https://cloud.google.com/dialogflow/docs/api-overview).
40
+ #
41
+ # Note: Always use agent versions for production traffic.
42
+ # See [Versions and
43
+ # environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
36
44
  # @!attribute [rw] query_params
37
45
  # @return [::Google::Cloud::Dialogflow::V2::QueryParameters]
38
46
  # The parameters of this query.
@@ -135,9 +143,29 @@ module Google
135
143
  # @return [::Google::Cloud::Dialogflow::V2::SentimentAnalysisRequestConfig]
136
144
  # Configures the type of sentiment analysis to perform. If not
137
145
  # provided, sentiment analysis is not performed.
146
+ # @!attribute [rw] webhook_headers
147
+ # @return [::Google::Protobuf::Map{::String => ::String}]
148
+ # This field can be used to pass HTTP headers for a webhook
149
+ # call. These headers will be sent to webhook along with the headers that
150
+ # have been configured through the Dialogflow web console. The headers
151
+ # defined within this field will overwrite the headers configured through the
152
+ # Dialogflow console if there is a conflict. Header names are
153
+ # case-insensitive. Google's specified headers are not allowed. Including:
154
+ # "Host", "Content-Length", "Connection", "From", "User-Agent",
155
+ # "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For",
156
+ # etc.
138
157
  class QueryParameters
139
158
  include ::Google::Protobuf::MessageExts
140
159
  extend ::Google::Protobuf::MessageExts::ClassMethods
160
+
161
+ # @!attribute [rw] key
162
+ # @return [::String]
163
+ # @!attribute [rw] value
164
+ # @return [::String]
165
+ class WebhookHeadersEntry
166
+ include ::Google::Protobuf::MessageExts
167
+ extend ::Google::Protobuf::MessageExts::ClassMethods
168
+ end
141
169
  end
142
170
 
143
171
  # Represents the query input. It can contain either:
@@ -206,7 +234,8 @@ module Google
206
234
  # - MapKey value: parameter name
207
235
  # - MapValue type:
208
236
  # - If parameter's entity type is a composite entity: map
209
- # - Else: string or number, depending on parameter value type
237
+ # - Else: depending on parameter value type, could be one of string,
238
+ # number, boolean, null, list or map
210
239
  # - MapValue value:
211
240
  # - If parameter's entity type is a composite entity:
212
241
  # map from composite entity property names to property values
@@ -219,6 +248,10 @@ module Google
219
248
  # the required parameter values have been collected.
220
249
  # - `true` if all required parameter values have been collected, or if the
221
250
  # matched intent doesn't contain any required parameters.
251
+ # @!attribute [rw] cancels_slot_filling
252
+ # @return [::Boolean]
253
+ # Indicates whether the conversational query triggers a cancellation for slot
254
+ # filling.
222
255
  # @!attribute [rw] fulfillment_text
223
256
  # @return [::String]
224
257
  # The text to be pronounced to the user or shown on the screen.
@@ -315,6 +348,13 @@ module Google
315
348
  # `User Id`. They can be a random number or some type of user and session
316
349
  # identifiers (preferably hashed). The length of the `Session ID` and
317
350
  # `User ID` must not exceed 36 characters.
351
+ #
352
+ # For more information, see the [API interactions
353
+ # guide](https://cloud.google.com/dialogflow/docs/api-overview).
354
+ #
355
+ # Note: Always use agent versions for production traffic.
356
+ # See [Versions and
357
+ # environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
318
358
  # @!attribute [rw] query_params
319
359
  # @return [::Google::Cloud::Dialogflow::V2::QueryParameters]
320
360
  # The parameters of this query.
@@ -529,7 +569,8 @@ module Google
529
569
  # - MapKey value: parameter name
530
570
  # - MapValue type:
531
571
  # - If parameter's entity type is a composite entity: map
532
- # - Else: string or number, depending on parameter value type
572
+ # - Else: depending on parameter value type, could be one of string,
573
+ # number, boolean, null, list or map
533
574
  # - MapValue value:
534
575
  # - If parameter's entity type is a composite entity:
535
576
  # map from composite entity property names to property values
@@ -556,8 +597,16 @@ module Google
556
597
  extend ::Google::Protobuf::MessageExts::ClassMethods
557
598
  end
558
599
 
559
- # The result of sentiment analysis as configured by
560
- # `sentiment_analysis_request_config`.
600
+ # The result of sentiment analysis. Sentiment analysis inspects user input
601
+ # and identifies the prevailing subjective opinion, especially to determine a
602
+ # user's attitude as positive, negative, or neutral.
603
+ # For [Participants.DetectIntent][], it needs to be configured in
604
+ # {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#query_params DetectIntentRequest.query_params}. For
605
+ # [Participants.StreamingDetectIntent][], it needs to be configured in
606
+ # {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_params StreamingDetectIntentRequest.query_params}.
607
+ # And for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent} and
608
+ # [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent], it needs to be configured in
609
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile#human_agent_assistant_config ConversationProfile.human_agent_assistant_config}
561
610
  # @!attribute [rw] query_text_sentiment
562
611
  # @return [::Google::Cloud::Dialogflow::V2::Sentiment]
563
612
  # The sentiment analysis result for `query_text`.
@@ -21,13 +21,14 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- # Represents a session entity type.
24
+ # A session represents a conversation between a Dialogflow agent and an
25
+ # end-user. You can create special entities, called session entities, during a
26
+ # session. Session entities can extend or replace custom entity types and only
27
+ # exist during the session that they were created for. All session data,
28
+ # including session entities, is stored by Dialogflow for 20 minutes.
25
29
  #
26
- # Extends or replaces a custom entity type at the user session level (we
27
- # refer to the entity types defined at the agent level as "custom entity
28
- # types").
29
- #
30
- # Note: session entity types apply to all queries, regardless of the language.
30
+ # For more information, see the [session entity
31
+ # guide](https://cloud.google.com/dialogflow/docs/entities-session).
31
32
  # @!attribute [rw] name
32
33
  # @return [::String]
33
34
  # Required. The unique identifier of this session entity type. Format:
@@ -53,7 +53,7 @@ module Google
53
53
  # Not specified. This value should never be used.
54
54
  SEVERITY_UNSPECIFIED = 0
55
55
 
56
- # The agent doesn't follow Dialogflow best practicies.
56
+ # The agent doesn't follow Dialogflow best practices.
57
57
  INFO = 1
58
58
 
59
59
  # The agent may not behave as expected.
@@ -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
@@ -135,9 +135,9 @@ module Google
135
135
  # "caller_id": "+18558363987"
136
136
  # }
137
137
  # }</pre>
138
- # Note: The caller ID field (`caller_id`) will be redacted for Standard
138
+ # Note: The caller ID field (`caller_id`) will be redacted for Trial
139
139
  # Edition agents and populated with the caller ID in [E.164
140
- # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
140
+ # format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
141
141
  class OriginalDetectIntentRequest
142
142
  include ::Google::Protobuf::MessageExts
143
143
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -25,7 +25,7 @@ module Google
25
25
  # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
- # `name` should have the format of `operations/some/unique/name`.
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
29
  # @!attribute [rw] metadata
30
30
  # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
@@ -35,7 +35,7 @@ module Google
35
35
  # @!attribute [rw] done
36
36
  # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
- # If true, the operation is completed, and either `error` or `response` is
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
@@ -67,7 +67,7 @@ module Google
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
69
  # @return [::String]
70
- # The name of the operation collection.
70
+ # The name of the operation's parent resource.
71
71
  # @!attribute [rw] filter
72
72
  # @return [::String]
73
73
  # The standard list filter.
@@ -112,6 +112,20 @@ module Google
112
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
115
129
  # A message representing the message types used by a long-running operation.
116
130
  #
117
131
  # Example:
@@ -57,10 +57,13 @@ module Google
57
57
  # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
- # any, err := ptypes.MarshalAny(foo)
60
+ # any, err := anypb.New(foo)
61
+ # if err != nil {
62
+ # ...
63
+ # }
61
64
  # ...
62
65
  # foo := &pb.Foo{}
63
- # if err := ptypes.UnmarshalAny(any, foo); err != nil {
66
+ # if err := any.UnmarshalTo(foo); err != nil {
64
67
  # ...
65
68
  # }
66
69
  #
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
@@ -19,8 +19,8 @@
19
19
 
20
20
  module Google
21
21
  module Type
22
- # An object representing a latitude/longitude pair. This is expressed as a pair
23
- # of doubles representing degrees latitude and degrees longitude. Unless
22
+ # An object that represents a latitude/longitude pair. This is expressed as a
23
+ # pair of doubles to represent degrees latitude and degrees longitude. Unless
24
24
  # specified otherwise, this must conform to the
25
25
  # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
26
26
  # standard</a>. Values must be within normalized ranges.
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.9.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: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.2'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.2'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +50,14 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 1.24.0
53
+ version: 1.25.1
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: 1.24.0
60
+ version: 1.25.1
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: minitest
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +160,9 @@ description: Dialogflow is an end-to-end, build-once deploy-everywhere developme
154
160
  suite for creating conversational interfaces for websites, mobile applications,
155
161
  popular messaging platforms, and IoT devices. You can use it to build interfaces
156
162
  (such as chatbots and conversational IVR) that enable natural and rich interactions
157
- between your users and your business.
163
+ between your users and your business. Note that google-cloud-dialogflow-v2 is a
164
+ version-specific client library. For most uses, we recommend installing the main
165
+ client library google-cloud-dialogflow instead. See the readme for more details.
158
166
  email: googleapis-packages@google.com
159
167
  executables: []
160
168
  extensions: []
@@ -173,6 +181,12 @@ files:
173
181
  - lib/google/cloud/dialogflow/v2/agents/credentials.rb
174
182
  - lib/google/cloud/dialogflow/v2/agents/operations.rb
175
183
  - lib/google/cloud/dialogflow/v2/agents/paths.rb
184
+ - lib/google/cloud/dialogflow/v2/answer_record_pb.rb
185
+ - lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb
186
+ - lib/google/cloud/dialogflow/v2/answer_records.rb
187
+ - lib/google/cloud/dialogflow/v2/answer_records/client.rb
188
+ - lib/google/cloud/dialogflow/v2/answer_records/credentials.rb
189
+ - lib/google/cloud/dialogflow/v2/answer_records/paths.rb
176
190
  - lib/google/cloud/dialogflow/v2/audio_config_pb.rb
177
191
  - lib/google/cloud/dialogflow/v2/context_pb.rb
178
192
  - lib/google/cloud/dialogflow/v2/context_services_pb.rb
@@ -180,6 +194,26 @@ files:
180
194
  - lib/google/cloud/dialogflow/v2/contexts/client.rb
181
195
  - lib/google/cloud/dialogflow/v2/contexts/credentials.rb
182
196
  - lib/google/cloud/dialogflow/v2/contexts/paths.rb
197
+ - lib/google/cloud/dialogflow/v2/conversation_event_pb.rb
198
+ - lib/google/cloud/dialogflow/v2/conversation_pb.rb
199
+ - lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb
200
+ - lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb
201
+ - lib/google/cloud/dialogflow/v2/conversation_profiles.rb
202
+ - lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb
203
+ - lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb
204
+ - lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb
205
+ - lib/google/cloud/dialogflow/v2/conversation_services_pb.rb
206
+ - lib/google/cloud/dialogflow/v2/conversations.rb
207
+ - lib/google/cloud/dialogflow/v2/conversations/client.rb
208
+ - lib/google/cloud/dialogflow/v2/conversations/credentials.rb
209
+ - lib/google/cloud/dialogflow/v2/conversations/paths.rb
210
+ - lib/google/cloud/dialogflow/v2/document_pb.rb
211
+ - lib/google/cloud/dialogflow/v2/document_services_pb.rb
212
+ - lib/google/cloud/dialogflow/v2/documents.rb
213
+ - lib/google/cloud/dialogflow/v2/documents/client.rb
214
+ - lib/google/cloud/dialogflow/v2/documents/credentials.rb
215
+ - lib/google/cloud/dialogflow/v2/documents/operations.rb
216
+ - lib/google/cloud/dialogflow/v2/documents/paths.rb
183
217
  - lib/google/cloud/dialogflow/v2/entity_type_pb.rb
184
218
  - lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb
185
219
  - lib/google/cloud/dialogflow/v2/entity_types.rb
@@ -193,6 +227,14 @@ files:
193
227
  - lib/google/cloud/dialogflow/v2/environments/client.rb
194
228
  - lib/google/cloud/dialogflow/v2/environments/credentials.rb
195
229
  - lib/google/cloud/dialogflow/v2/environments/paths.rb
230
+ - lib/google/cloud/dialogflow/v2/fulfillment_pb.rb
231
+ - lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb
232
+ - lib/google/cloud/dialogflow/v2/fulfillments.rb
233
+ - lib/google/cloud/dialogflow/v2/fulfillments/client.rb
234
+ - lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb
235
+ - lib/google/cloud/dialogflow/v2/fulfillments/paths.rb
236
+ - lib/google/cloud/dialogflow/v2/gcs_pb.rb
237
+ - lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb
196
238
  - lib/google/cloud/dialogflow/v2/intent_pb.rb
197
239
  - lib/google/cloud/dialogflow/v2/intent_services_pb.rb
198
240
  - lib/google/cloud/dialogflow/v2/intents.rb
@@ -200,6 +242,18 @@ files:
200
242
  - lib/google/cloud/dialogflow/v2/intents/credentials.rb
201
243
  - lib/google/cloud/dialogflow/v2/intents/operations.rb
202
244
  - lib/google/cloud/dialogflow/v2/intents/paths.rb
245
+ - lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb
246
+ - lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb
247
+ - lib/google/cloud/dialogflow/v2/knowledge_bases.rb
248
+ - lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb
249
+ - lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb
250
+ - lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb
251
+ - lib/google/cloud/dialogflow/v2/participant_pb.rb
252
+ - lib/google/cloud/dialogflow/v2/participant_services_pb.rb
253
+ - lib/google/cloud/dialogflow/v2/participants.rb
254
+ - lib/google/cloud/dialogflow/v2/participants/client.rb
255
+ - lib/google/cloud/dialogflow/v2/participants/credentials.rb
256
+ - lib/google/cloud/dialogflow/v2/participants/paths.rb
203
257
  - lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb
204
258
  - lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb
205
259
  - lib/google/cloud/dialogflow/v2/session_entity_types.rb
@@ -214,19 +268,35 @@ files:
214
268
  - lib/google/cloud/dialogflow/v2/sessions/paths.rb
215
269
  - lib/google/cloud/dialogflow/v2/validation_result_pb.rb
216
270
  - lib/google/cloud/dialogflow/v2/version.rb
271
+ - lib/google/cloud/dialogflow/v2/version_pb.rb
272
+ - lib/google/cloud/dialogflow/v2/version_services_pb.rb
273
+ - lib/google/cloud/dialogflow/v2/versions.rb
274
+ - lib/google/cloud/dialogflow/v2/versions/client.rb
275
+ - lib/google/cloud/dialogflow/v2/versions/credentials.rb
276
+ - lib/google/cloud/dialogflow/v2/versions/paths.rb
217
277
  - lib/google/cloud/dialogflow/v2/webhook_pb.rb
218
278
  - proto_docs/README.md
219
279
  - proto_docs/google/api/field_behavior.rb
220
280
  - proto_docs/google/api/resource.rb
221
281
  - proto_docs/google/cloud/dialogflow/v2/agent.rb
282
+ - proto_docs/google/cloud/dialogflow/v2/answer_record.rb
222
283
  - proto_docs/google/cloud/dialogflow/v2/audio_config.rb
223
284
  - proto_docs/google/cloud/dialogflow/v2/context.rb
285
+ - proto_docs/google/cloud/dialogflow/v2/conversation.rb
286
+ - proto_docs/google/cloud/dialogflow/v2/conversation_event.rb
287
+ - proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb
288
+ - proto_docs/google/cloud/dialogflow/v2/document.rb
224
289
  - proto_docs/google/cloud/dialogflow/v2/entity_type.rb
225
290
  - proto_docs/google/cloud/dialogflow/v2/environment.rb
291
+ - proto_docs/google/cloud/dialogflow/v2/fulfillment.rb
292
+ - proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb
226
293
  - proto_docs/google/cloud/dialogflow/v2/intent.rb
294
+ - proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb
295
+ - proto_docs/google/cloud/dialogflow/v2/participant.rb
227
296
  - proto_docs/google/cloud/dialogflow/v2/session.rb
228
297
  - proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb
229
298
  - proto_docs/google/cloud/dialogflow/v2/validation_result.rb
299
+ - proto_docs/google/cloud/dialogflow/v2/version.rb
230
300
  - proto_docs/google/cloud/dialogflow/v2/webhook.rb
231
301
  - proto_docs/google/longrunning/operations.rb
232
302
  - proto_docs/google/protobuf/any.rb
@@ -249,14 +319,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
249
319
  requirements:
250
320
  - - ">="
251
321
  - !ruby/object:Gem::Version
252
- version: '2.4'
322
+ version: '2.5'
253
323
  required_rubygems_version: !ruby/object:Gem::Requirement
254
324
  requirements:
255
325
  - - ">="
256
326
  - !ruby/object:Gem::Version
257
327
  version: '0'
258
328
  requirements: []
259
- rubygems_version: 3.1.3
329
+ rubygems_version: 3.2.17
260
330
  signing_key:
261
331
  specification_version: 4
262
332
  summary: API Client library for the Dialogflow V2 API