google-cloud-dialogflow-v2 0.6.2 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +70 -2
  4. data/lib/google/cloud/dialogflow/v2.rb +13 -2
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +25 -40
  6. data/lib/google/cloud/dialogflow/v2/agents.rb +1 -28
  7. data/lib/google/cloud/dialogflow/v2/agents/client.rb +41 -100
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +96 -11
  9. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  10. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +100 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +48 -0
  12. data/lib/google/cloud/dialogflow/v2/answer_records.rb +49 -0
  13. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +478 -0
  14. data/lib/google/cloud/dialogflow/v2/answer_records/credentials.rb +52 -0
  15. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +105 -0
  16. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +7 -0
  17. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +8 -25
  18. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -18
  19. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +24 -63
  20. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +74 -2
  21. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +39 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +89 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +182 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +61 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +49 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +699 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb +52 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +246 -0
  29. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +75 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations.rb +49 -0
  31. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +757 -0
  32. data/lib/google/cloud/dialogflow/v2/conversations/credentials.rb +52 -0
  33. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +146 -0
  34. data/lib/google/cloud/dialogflow/v2/document_pb.rb +99 -0
  35. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +73 -0
  36. data/lib/google/cloud/dialogflow/v2/documents.rb +50 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/client.rb +810 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/credentials.rb +52 -0
  39. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +655 -0
  40. data/lib/google/cloud/dialogflow/v2/documents/paths.rb +119 -0
  41. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -39
  42. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -28
  43. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +28 -91
  44. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +96 -11
  45. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  46. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  47. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +24 -3
  48. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/environments/client.rb +430 -14
  50. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
  51. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  52. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  53. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  54. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
  55. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  56. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  57. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +20 -0
  58. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +26 -0
  59. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  60. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +9 -40
  61. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -32
  62. data/lib/google/cloud/dialogflow/v2/intents/client.rb +34 -81
  63. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +96 -11
  64. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +97 -13
  65. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +60 -0
  66. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +53 -0
  67. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +49 -0
  68. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +696 -0
  69. data/lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb +52 -0
  70. data/lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb +105 -0
  71. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +172 -0
  72. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +64 -0
  73. data/lib/google/cloud/dialogflow/v2/participants.rb +49 -0
  74. data/lib/google/cloud/dialogflow/v2/participants/client.rb +894 -0
  75. data/lib/google/cloud/dialogflow/v2/participants/credentials.rb +52 -0
  76. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +334 -0
  77. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -23
  78. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -17
  79. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +23 -53
  80. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +74 -2
  81. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
  82. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -7
  83. data/lib/google/cloud/dialogflow/v2/sessions.rb +4 -4
  84. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +51 -15
  85. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +113 -3
  86. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  87. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  88. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  89. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  90. data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
  91. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  92. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  93. data/proto_docs/google/api/field_behavior.rb +6 -0
  94. data/proto_docs/google/api/resource.rb +50 -14
  95. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +9 -1
  96. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +252 -0
  97. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +25 -0
  98. data/proto_docs/google/cloud/dialogflow/v2/context.rb +17 -2
  99. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +253 -0
  100. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +83 -0
  101. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +522 -0
  102. data/proto_docs/google/cloud/dialogflow/v2/document.rb +267 -0
  103. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +12 -3
  104. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +187 -5
  105. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  106. data/proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb +45 -0
  107. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +29 -4
  108. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +139 -0
  109. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +503 -0
  110. data/proto_docs/google/cloud/dialogflow/v2/session.rb +52 -7
  111. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +7 -6
  112. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  113. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  114. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +2 -2
  115. data/proto_docs/google/longrunning/operations.rb +17 -3
  116. data/proto_docs/google/protobuf/any.rb +5 -2
  117. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  118. data/proto_docs/google/type/latlng.rb +2 -2
  119. metadata +73 -9
@@ -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
@@ -315,6 +344,13 @@ module Google
315
344
  # `User Id`. They can be a random number or some type of user and session
316
345
  # identifiers (preferably hashed). The length of the `Session ID` and
317
346
  # `User ID` must not exceed 36 characters.
347
+ #
348
+ # For more information, see the [API interactions
349
+ # guide](https://cloud.google.com/dialogflow/docs/api-overview).
350
+ #
351
+ # Note: Always use agent versions for production traffic.
352
+ # See [Versions and
353
+ # environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
318
354
  # @!attribute [rw] query_params
319
355
  # @return [::Google::Cloud::Dialogflow::V2::QueryParameters]
320
356
  # The parameters of this query.
@@ -529,7 +565,8 @@ module Google
529
565
  # - MapKey value: parameter name
530
566
  # - MapValue type:
531
567
  # - If parameter's entity type is a composite entity: map
532
- # - Else: string or number, depending on parameter value type
568
+ # - Else: depending on parameter value type, could be one of string,
569
+ # number, boolean, null, list or map
533
570
  # - MapValue value:
534
571
  # - If parameter's entity type is a composite entity:
535
572
  # map from composite entity property names to property values
@@ -556,8 +593,16 @@ module Google
556
593
  extend ::Google::Protobuf::MessageExts::ClassMethods
557
594
  end
558
595
 
559
- # The result of sentiment analysis as configured by
560
- # `sentiment_analysis_request_config`.
596
+ # The result of sentiment analysis. Sentiment analysis inspects user input
597
+ # and identifies the prevailing subjective opinion, especially to determine a
598
+ # user's attitude as positive, negative, or neutral.
599
+ # For [Participants.DetectIntent][], it needs to be configured in
600
+ # {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#query_params DetectIntentRequest.query_params}. For
601
+ # [Participants.StreamingDetectIntent][], it needs to be configured in
602
+ # {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_params StreamingDetectIntentRequest.query_params}.
603
+ # And for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent} and
604
+ # [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent], it needs to be configured in
605
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile#human_agent_assistant_config ConversationProfile.human_agent_assistant_config}
561
606
  # @!attribute [rw] query_text_sentiment
562
607
  # @return [::Google::Cloud::Dialogflow::V2::Sentiment]
563
608
  # 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,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.6.2
4
+ version: 0.8.1
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-06 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.24.0
47
+ version: 1.25.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.24.0
54
+ version: 1.25.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,9 @@ description: Dialogflow is an end-to-end, build-once deploy-everywhere developme
154
154
  suite for creating conversational interfaces for websites, mobile applications,
155
155
  popular messaging platforms, and IoT devices. You can use it to build interfaces
156
156
  (such as chatbots and conversational IVR) that enable natural and rich interactions
157
- between your users and your business.
157
+ between your users and your business. Note that google-cloud-dialogflow-v2 is a
158
+ version-specific client library. For most uses, we recommend installing the main
159
+ client library google-cloud-dialogflow instead. See the readme for more details.
158
160
  email: googleapis-packages@google.com
159
161
  executables: []
160
162
  extensions: []
@@ -173,6 +175,12 @@ files:
173
175
  - lib/google/cloud/dialogflow/v2/agents/credentials.rb
174
176
  - lib/google/cloud/dialogflow/v2/agents/operations.rb
175
177
  - lib/google/cloud/dialogflow/v2/agents/paths.rb
178
+ - lib/google/cloud/dialogflow/v2/answer_record_pb.rb
179
+ - lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb
180
+ - lib/google/cloud/dialogflow/v2/answer_records.rb
181
+ - lib/google/cloud/dialogflow/v2/answer_records/client.rb
182
+ - lib/google/cloud/dialogflow/v2/answer_records/credentials.rb
183
+ - lib/google/cloud/dialogflow/v2/answer_records/paths.rb
176
184
  - lib/google/cloud/dialogflow/v2/audio_config_pb.rb
177
185
  - lib/google/cloud/dialogflow/v2/context_pb.rb
178
186
  - lib/google/cloud/dialogflow/v2/context_services_pb.rb
@@ -180,6 +188,26 @@ files:
180
188
  - lib/google/cloud/dialogflow/v2/contexts/client.rb
181
189
  - lib/google/cloud/dialogflow/v2/contexts/credentials.rb
182
190
  - lib/google/cloud/dialogflow/v2/contexts/paths.rb
191
+ - lib/google/cloud/dialogflow/v2/conversation_event_pb.rb
192
+ - lib/google/cloud/dialogflow/v2/conversation_pb.rb
193
+ - lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb
194
+ - lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb
195
+ - lib/google/cloud/dialogflow/v2/conversation_profiles.rb
196
+ - lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb
197
+ - lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb
198
+ - lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb
199
+ - lib/google/cloud/dialogflow/v2/conversation_services_pb.rb
200
+ - lib/google/cloud/dialogflow/v2/conversations.rb
201
+ - lib/google/cloud/dialogflow/v2/conversations/client.rb
202
+ - lib/google/cloud/dialogflow/v2/conversations/credentials.rb
203
+ - lib/google/cloud/dialogflow/v2/conversations/paths.rb
204
+ - lib/google/cloud/dialogflow/v2/document_pb.rb
205
+ - lib/google/cloud/dialogflow/v2/document_services_pb.rb
206
+ - lib/google/cloud/dialogflow/v2/documents.rb
207
+ - lib/google/cloud/dialogflow/v2/documents/client.rb
208
+ - lib/google/cloud/dialogflow/v2/documents/credentials.rb
209
+ - lib/google/cloud/dialogflow/v2/documents/operations.rb
210
+ - lib/google/cloud/dialogflow/v2/documents/paths.rb
183
211
  - lib/google/cloud/dialogflow/v2/entity_type_pb.rb
184
212
  - lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb
185
213
  - lib/google/cloud/dialogflow/v2/entity_types.rb
@@ -193,6 +221,14 @@ files:
193
221
  - lib/google/cloud/dialogflow/v2/environments/client.rb
194
222
  - lib/google/cloud/dialogflow/v2/environments/credentials.rb
195
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
230
+ - lib/google/cloud/dialogflow/v2/gcs_pb.rb
231
+ - lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb
196
232
  - lib/google/cloud/dialogflow/v2/intent_pb.rb
197
233
  - lib/google/cloud/dialogflow/v2/intent_services_pb.rb
198
234
  - lib/google/cloud/dialogflow/v2/intents.rb
@@ -200,6 +236,18 @@ files:
200
236
  - lib/google/cloud/dialogflow/v2/intents/credentials.rb
201
237
  - lib/google/cloud/dialogflow/v2/intents/operations.rb
202
238
  - lib/google/cloud/dialogflow/v2/intents/paths.rb
239
+ - lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb
240
+ - lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb
241
+ - lib/google/cloud/dialogflow/v2/knowledge_bases.rb
242
+ - lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb
243
+ - lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb
244
+ - lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb
245
+ - lib/google/cloud/dialogflow/v2/participant_pb.rb
246
+ - lib/google/cloud/dialogflow/v2/participant_services_pb.rb
247
+ - lib/google/cloud/dialogflow/v2/participants.rb
248
+ - lib/google/cloud/dialogflow/v2/participants/client.rb
249
+ - lib/google/cloud/dialogflow/v2/participants/credentials.rb
250
+ - lib/google/cloud/dialogflow/v2/participants/paths.rb
203
251
  - lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb
204
252
  - lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb
205
253
  - lib/google/cloud/dialogflow/v2/session_entity_types.rb
@@ -214,19 +262,35 @@ files:
214
262
  - lib/google/cloud/dialogflow/v2/sessions/paths.rb
215
263
  - lib/google/cloud/dialogflow/v2/validation_result_pb.rb
216
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
217
271
  - lib/google/cloud/dialogflow/v2/webhook_pb.rb
218
272
  - proto_docs/README.md
219
273
  - proto_docs/google/api/field_behavior.rb
220
274
  - proto_docs/google/api/resource.rb
221
275
  - proto_docs/google/cloud/dialogflow/v2/agent.rb
276
+ - proto_docs/google/cloud/dialogflow/v2/answer_record.rb
222
277
  - proto_docs/google/cloud/dialogflow/v2/audio_config.rb
223
278
  - proto_docs/google/cloud/dialogflow/v2/context.rb
279
+ - proto_docs/google/cloud/dialogflow/v2/conversation.rb
280
+ - proto_docs/google/cloud/dialogflow/v2/conversation_event.rb
281
+ - proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb
282
+ - proto_docs/google/cloud/dialogflow/v2/document.rb
224
283
  - proto_docs/google/cloud/dialogflow/v2/entity_type.rb
225
284
  - proto_docs/google/cloud/dialogflow/v2/environment.rb
285
+ - proto_docs/google/cloud/dialogflow/v2/fulfillment.rb
286
+ - proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb
226
287
  - proto_docs/google/cloud/dialogflow/v2/intent.rb
288
+ - proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb
289
+ - proto_docs/google/cloud/dialogflow/v2/participant.rb
227
290
  - proto_docs/google/cloud/dialogflow/v2/session.rb
228
291
  - proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb
229
292
  - proto_docs/google/cloud/dialogflow/v2/validation_result.rb
293
+ - proto_docs/google/cloud/dialogflow/v2/version.rb
230
294
  - proto_docs/google/cloud/dialogflow/v2/webhook.rb
231
295
  - proto_docs/google/longrunning/operations.rb
232
296
  - proto_docs/google/protobuf/any.rb
@@ -249,14 +313,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
249
313
  requirements:
250
314
  - - ">="
251
315
  - !ruby/object:Gem::Version
252
- version: '2.4'
316
+ version: '2.5'
253
317
  required_rubygems_version: !ruby/object:Gem::Requirement
254
318
  requirements:
255
319
  - - ">="
256
320
  - !ruby/object:Gem::Version
257
321
  version: '0'
258
322
  requirements: []
259
- rubygems_version: 3.1.3
323
+ rubygems_version: 3.2.17
260
324
  signing_key:
261
325
  specification_version: 4
262
326
  summary: API Client library for the Dialogflow V2 API