google-cloud-dialogflow-v2 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +14 -0
  4. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +3 -0
  5. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +17 -3
  6. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +14 -0
  7. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +14 -0
  8. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +3 -0
  9. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +14 -0
  10. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +3 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +14 -0
  12. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +3 -0
  13. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +14 -0
  14. data/lib/google/cloud/dialogflow/v2/documents/client.rb +14 -0
  15. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +3 -0
  16. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +14 -0
  17. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +3 -0
  18. data/lib/google/cloud/dialogflow/v2/environments/client.rb +14 -0
  19. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +14 -0
  20. data/lib/google/cloud/dialogflow/v2/intents/client.rb +14 -0
  21. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +3 -0
  22. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +14 -0
  23. data/lib/google/cloud/dialogflow/v2/participants/client.rb +14 -0
  24. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +14 -0
  25. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +14 -0
  26. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  27. data/lib/google/cloud/dialogflow/v2/versions/client.rb +14 -0
  28. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +3 -3
  29. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +2 -1
  30. data/proto_docs/google/cloud/dialogflow/v2/session.rb +5 -1
  31. metadata +32 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 249c379f5cf6395ebb4123b5631a2031f1e834cc90a3b257a3dd22afcaf32c76
4
- data.tar.gz: 41a23cb47a7c96b38730e03f297ba86f21f937542133a5200e19f1af4725cb26
3
+ metadata.gz: '00067869e005bf56e1e22e2548cd088e1b3080b061bb3daae56b3c506aa58994'
4
+ data.tar.gz: b2cea0735bb44c5ad8e97bbdcc2be24aab4e3c5bb14b1b13529aaed3a1982dff
5
5
  SHA512:
6
- metadata.gz: 7252f30beb1f8e3c7ec6ac257c75dfb12d118c070c08b45a106ebc3de3c03e41dd1a640431cfdc91b2cdd76a97330166b6310e3df1c6d689d211ca42a94f255d
7
- data.tar.gz: 3d43f4e0153be01deb6309a89e91632d900f3941d5873adc6a2aeee99c1bfd02427924bb5e0432baa685a604b8c97ea3b9ec42622936fc005488e98c6b1cec7e
6
+ metadata.gz: d76af6676a88377f46bf9eea4b5702b34193d7033cdb9cb640fda232fc2e79f96885267700cdb8fd5f61ae2e143999eced598234c416c3237bd88eae3e42622c
7
+ data.tar.gz: 25d540069bcc237f7fa2801a572be60d36e1dc48e7833635557acaecaaa9236ca10cf5726afaf93aadb70ace5dc034e2305c1c717be5e0ce250d4ff6a4f133d1
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/agent_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @agents_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::Agents::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/answer_record_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @answer_records_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::AnswerRecords::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -173,9 +187,9 @@ module Google
173
187
  # chronological order. Format: `projects/<Project ID>/locations/<Location
174
188
  # ID>`.
175
189
  # @param filter [::String]
176
- # Required. Filters to restrict results to specific answer records.
177
- # Filter on answer record type. Currently predicates on `type` is supported,
178
- # valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`.
190
+ # Optional. Filters to restrict results to specific answer records.
191
+ #
192
+ # Marked deprecated as it hasn't been, and isn't currently, supported.
179
193
  #
180
194
  # For more information about filtering, see
181
195
  # [API Filtering](https://aip.dev/160).
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/context_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @contexts_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Contexts::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_dataset_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -147,6 +148,12 @@ module Google
147
148
  config.endpoint = @config.endpoint
148
149
  end
149
150
 
151
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ end
156
+
150
157
  @conversation_datasets_stub = ::Gapic::ServiceStub.new(
151
158
  ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Stub,
152
159
  credentials: credentials,
@@ -163,6 +170,13 @@ module Google
163
170
  #
164
171
  attr_reader :operations_client
165
172
 
173
+ ##
174
+ # Get the associated client for mix-in of the Locations.
175
+ #
176
+ # @return [Google::Cloud::Location::Locations::Client]
177
+ #
178
+ attr_reader :location_client
179
+
166
180
  # Service calls
167
181
 
168
182
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_model_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @conversation_models_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::ConversationModels::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_profile_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @conversation_profiles_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @conversations_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Conversations::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/document_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @documents_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::Documents::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/entity_type_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @entity_types_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/environment_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @environments_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Environments::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/fulfillment_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @fulfillments_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Fulfillments::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/intent_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @intents_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::Intents::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/knowledge_base_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @knowledge_bases_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/participant_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -143,6 +144,12 @@ module Google
143
144
  @quota_project_id = @config.quota_project
144
145
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
145
146
 
147
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
148
+ config.credentials = credentials
149
+ config.quota_project = @quota_project_id
150
+ config.endpoint = @config.endpoint
151
+ end
152
+
146
153
  @participants_stub = ::Gapic::ServiceStub.new(
147
154
  ::Google::Cloud::Dialogflow::V2::Participants::Stub,
148
155
  credentials: credentials,
@@ -152,6 +159,13 @@ module Google
152
159
  )
153
160
  end
154
161
 
162
+ ##
163
+ # Get the associated client for mix-in of the Locations.
164
+ #
165
+ # @return [Google::Cloud::Location::Locations::Client]
166
+ #
167
+ attr_reader :location_client
168
+
155
169
  # Service calls
156
170
 
157
171
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/session_entity_type_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @session_entity_types_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/session_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -148,6 +149,12 @@ module Google
148
149
  @quota_project_id = @config.quota_project
149
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
151
 
152
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
153
+ config.credentials = credentials
154
+ config.quota_project = @quota_project_id
155
+ config.endpoint = @config.endpoint
156
+ end
157
+
151
158
  @sessions_stub = ::Gapic::ServiceStub.new(
152
159
  ::Google::Cloud::Dialogflow::V2::Sessions::Stub,
153
160
  credentials: credentials,
@@ -157,6 +164,13 @@ module Google
157
164
  )
158
165
  end
159
166
 
167
+ ##
168
+ # Get the associated client for mix-in of the Locations.
169
+ #
170
+ # @return [Google::Cloud::Location::Locations::Client]
171
+ #
172
+ attr_reader :location_client
173
+
160
174
  # Service calls
161
175
 
162
176
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.16.0"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/version_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @versions_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Versions::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -73,9 +73,9 @@ module Google
73
73
  # ID>`.
74
74
  # @!attribute [rw] filter
75
75
  # @return [::String]
76
- # Required. Filters to restrict results to specific answer records.
77
- # Filter on answer record type. Currently predicates on `type` is supported,
78
- # valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`.
76
+ # Optional. Filters to restrict results to specific answer records.
77
+ #
78
+ # Marked deprecated as it hasn't been, and isn't currently, supported.
79
79
  #
80
80
  # For more information about filtering, see
81
81
  # [API Filtering](https://aip.dev/160).
@@ -380,7 +380,8 @@ module Google
380
380
 
381
381
  # Custom conversation models used in agent assist feature.
382
382
  #
383
- # Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
383
+ # Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
384
+ # CONVERSATION_SUMMARIZATION.
384
385
  # @!attribute [rw] model
385
386
  # @return [::String]
386
387
  # Conversation model resource name. Format: `projects/<Project
@@ -251,7 +251,8 @@ module Google
251
251
  # @!attribute [rw] cancels_slot_filling
252
252
  # @return [::Boolean]
253
253
  # Indicates whether the conversational query triggers a cancellation for slot
254
- # filling.
254
+ # filling. For more information, see the [cancel slot filling
255
+ # documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
255
256
  # @!attribute [rw] fulfillment_text
256
257
  # @return [::String]
257
258
  # The text to be pronounced to the user or shown on the screen.
@@ -541,6 +542,9 @@ module Google
541
542
  end
542
543
  end
543
544
 
545
+ # ============================================================================
546
+ # Auxiliary proto messages.
547
+ #
544
548
  # Represents the natural language text to be processed.
545
549
  # @!attribute [rw] text
546
550
  # @return [::String]
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.16.0
4
+ version: 0.17.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: 2022-05-09 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -44,34 +44,54 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
47
67
  - !ruby/object:Gem::Dependency
48
68
  name: google-style
49
69
  requirement: !ruby/object:Gem::Requirement
50
70
  requirements:
51
71
  - - "~>"
52
72
  - !ruby/object:Gem::Version
53
- version: 1.25.1
73
+ version: 1.26.1
54
74
  type: :development
55
75
  prerelease: false
56
76
  version_requirements: !ruby/object:Gem::Requirement
57
77
  requirements:
58
78
  - - "~>"
59
79
  - !ruby/object:Gem::Version
60
- version: 1.25.1
80
+ version: 1.26.1
61
81
  - !ruby/object:Gem::Dependency
62
82
  name: minitest
63
83
  requirement: !ruby/object:Gem::Requirement
64
84
  requirements:
65
85
  - - "~>"
66
86
  - !ruby/object:Gem::Version
67
- version: '5.14'
87
+ version: '5.16'
68
88
  type: :development
69
89
  prerelease: false
70
90
  version_requirements: !ruby/object:Gem::Requirement
71
91
  requirements:
72
92
  - - "~>"
73
93
  - !ruby/object:Gem::Version
74
- version: '5.14'
94
+ version: '5.16'
75
95
  - !ruby/object:Gem::Dependency
76
96
  name: minitest-focus
77
97
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +126,14 @@ dependencies:
106
126
  requirements:
107
127
  - - ">="
108
128
  - !ruby/object:Gem::Version
109
- version: '12.0'
129
+ version: '13.0'
110
130
  type: :development
111
131
  prerelease: false
112
132
  version_requirements: !ruby/object:Gem::Requirement
113
133
  requirements:
114
134
  - - ">="
115
135
  - !ruby/object:Gem::Version
116
- version: '12.0'
136
+ version: '13.0'
117
137
  - !ruby/object:Gem::Dependency
118
138
  name: redcarpet
119
139
  requirement: !ruby/object:Gem::Requirement
@@ -338,14 +358,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
338
358
  requirements:
339
359
  - - ">="
340
360
  - !ruby/object:Gem::Version
341
- version: '2.5'
361
+ version: '2.6'
342
362
  required_rubygems_version: !ruby/object:Gem::Requirement
343
363
  requirements:
344
364
  - - ">="
345
365
  - !ruby/object:Gem::Version
346
366
  version: '0'
347
367
  requirements: []
348
- rubygems_version: 3.3.5
368
+ rubygems_version: 3.3.14
349
369
  signing_key:
350
370
  specification_version: 4
351
371
  summary: API Client library for the Dialogflow V2 API