google-cloud-translate-v3 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #
@@ -24,6 +24,46 @@ module Google
24
24
  module TranslationService
25
25
  # Path helper methods for the TranslationService API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified AdaptiveMtDataset resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param dataset [String]
37
+ #
38
+ # @return [::String]
39
+ def adaptive_mt_dataset_path project:, location:, dataset:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/adaptiveMtDatasets/#{dataset}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified AdaptiveMtFile resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param dataset [String]
56
+ # @param file [String]
57
+ #
58
+ # @return [::String]
59
+ def adaptive_mt_file_path project:, location:, dataset:, file:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/adaptiveMtDatasets/#{dataset}/adaptiveMtFiles/#{file}"
65
+ end
66
+
27
67
  ##
28
68
  # Create a fully-qualified Glossary resource string.
29
69
  #