google-cloud-dialogflow 1.3.4 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50244b0832b04e189c7e5b3627572f3dd9746fdc79ab474e106bb8b8ae6b0144
4
- data.tar.gz: 82147178a825b342a50fa50cf9c73bbd8a560e6d75263a69345466cc8639786a
3
+ metadata.gz: 74d87e0f9f4a6d82b295ac0d20f574725ebe3847c8a91daedfc0388874fd2de1
4
+ data.tar.gz: 0160c9dd199cfd9308dacba5307393762bec613b0511b71469b9b470c8ea7742
5
5
  SHA512:
6
- metadata.gz: ac598a8e8d61a5ce2bc8b7571da4951be921a3e104f93c438acd2bafffdd54ea37125aaee46244d61bc811ceafa90d1668305e1be641d3b90f0cb6cb87c22120
7
- data.tar.gz: 7684c4a47cb66060eb9af821898f9e2b9bebd71ac5d5bd8f3839090e8fb21617703820c4dd1fa94abf35691f4c982c4958c929f51236a6a22decdbc387c2cccd
6
+ metadata.gz: 052a346c633cb0cfa49906c12939412b92a89a6c28ef9f56f5444cffa60d4da041b0c51eccaa52574b0d96af76bd96af8f9f0004b39ed3d6cff086310a374b95
7
+ data.tar.gz: 91675e1875e0f872546f7ccfd009247d9b9e4560f679a8a693a10c776ef42cff70d03a1cfd634275499cf7243e09e4d917310fd79cbb03e6ad848893da0f2198
data/README.md CHANGED
@@ -11,7 +11,7 @@ verisoned gems in as dependencies, and provides high-level methods for
11
11
  constructing clients. More information on versioned clients can be found below
12
12
  in the section titled *Which client should I use?*.
13
13
 
14
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dialogflow/latest)
14
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow/latest)
15
15
  for this library, google-cloud-dialogflow, to see the convenience methods for
16
16
  constructing client objects. Reference documentation for the client objects
17
17
  themselves can be found in the client library documentation for the versioned
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dialogflow
19
- VERSION = "1.3.4".freeze
19
+ VERSION = "1.4.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -317,6 +317,69 @@ module Google
317
317
  package_module.const_get(:Conversations).const_get(:Client).new(&block)
318
318
  end
319
319
 
320
+ ##
321
+ # Create a new client object for ConversationDatasets.
322
+ #
323
+ # By default, this returns an instance of
324
+ # [Google::Cloud::Dialogflow::V2::ConversationDatasets::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationDatasets/Client.html)
325
+ # for version V2 of the API.
326
+ # However, you can specify specify a different API version by passing it in the
327
+ # `version` parameter. If the ConversationDatasets service is
328
+ # supported by that API version, and the corresponding gem is available, the
329
+ # appropriate versioned client will be returned.
330
+ #
331
+ # ## About ConversationDatasets
332
+ #
333
+ # Conversation datasets.
334
+ #
335
+ # Conversation datasets contain raw conversation files and their
336
+ # customizable metadata that can be used for model training.
337
+ #
338
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
339
+ # Defaults to `:v2`.
340
+ # @return [ConversationDatasets::Client] A client object for the specified version.
341
+ #
342
+ def self.conversation_datasets version: :v2, &block
343
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
344
+
345
+ package_name = Google::Cloud::Dialogflow
346
+ .constants
347
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
348
+ .first
349
+ package_module = Google::Cloud::Dialogflow.const_get package_name
350
+ package_module.const_get(:ConversationDatasets).const_get(:Client).new(&block)
351
+ end
352
+
353
+ ##
354
+ # Create a new client object for ConversationModels.
355
+ #
356
+ # By default, this returns an instance of
357
+ # [Google::Cloud::Dialogflow::V2::ConversationModels::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationModels/Client.html)
358
+ # for version V2 of the API.
359
+ # However, you can specify specify a different API version by passing it in the
360
+ # `version` parameter. If the ConversationModels service is
361
+ # supported by that API version, and the corresponding gem is available, the
362
+ # appropriate versioned client will be returned.
363
+ #
364
+ # ## About ConversationModels
365
+ #
366
+ # Manages a collection of models for human agent assistant.
367
+ #
368
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
369
+ # Defaults to `:v2`.
370
+ # @return [ConversationModels::Client] A client object for the specified version.
371
+ #
372
+ def self.conversation_models version: :v2, &block
373
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
374
+
375
+ package_name = Google::Cloud::Dialogflow
376
+ .constants
377
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
378
+ .first
379
+ package_module = Google::Cloud::Dialogflow.const_get package_name
380
+ package_module.const_get(:ConversationModels).const_get(:Client).new(&block)
381
+ end
382
+
320
383
  ##
321
384
  # Create a new client object for ConversationProfiles.
322
385
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.4.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-01-11 00:00:00.000000000 Z
11
+ date: 2022-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.8'
33
+ version: '0.15'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.8'
43
+ version: '0.15'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubygems_version: 3.3.4
197
+ rubygems_version: 3.3.5
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: API Client library for the Dialogflow API