google-cloud-language 0.32.2 → 0.33.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f467c2244655311a7ecac3696863daa1fbb52536332a42f54b67e975187c3a1
4
- data.tar.gz: 2b487e60d99c6ab446e9ae1e65e5f722b6ad33a325ac9fbd87bc8a720cbe5cf4
3
+ metadata.gz: 013c81362e48ddc3e29983de2024b8ebb660b68bad1310b152f6cf6f11766698
4
+ data.tar.gz: 2f766d665842620f7685033e5e0f7627b93b6d8a80cba49783d36a406fb31921
5
5
  SHA512:
6
- metadata.gz: 74a614106403eafb24afa5e198a3c2ea1f3fb8f577a655c5192904acc821e74df004d0672f35d75c7ddc9520f27d96305a549d63441c5c0cd11f6b0af8a80901
7
- data.tar.gz: 4e05e305a1f4f088d88e0cd0628479f26c52d093f277c44d9bbf48ef1b4769c53c4039defb408cad8741927569384e8be20af1787688430a36cdd8e73778d6a8
6
+ metadata.gz: 587f235376c204f8feef8148d516d7c66c5e8776364bc4cbc9f949e9d27daf3f3580c77ab2c967b959ab856285020eb8b8acc9b70d6286d69f1fd3e078c9b43c
7
+ data.tar.gz: 9c66c866372025cd43a4408a258098183ff94a1d05edbcc90c144a1b08c0b85c842475d7e227e9d0f1a5f01dec919b96216e05f26bcce05ea804b419eb58acde
@@ -122,6 +122,10 @@ module Google
122
122
  # The default timeout, in seconds, for calls made through this client.
123
123
  # @param metadata [Hash]
124
124
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
125
+ # @param service_address [String]
126
+ # Override for the service hostname, or `nil` to leave as the default.
127
+ # @param service_port [Integer]
128
+ # Override for the service port, or `nil` to leave as the default.
125
129
  # @param exception_transformer [Proc]
126
130
  # An optional proc that intercepts any exceptions raised during an API call to inject
127
131
  # custom error handling.
@@ -110,6 +110,10 @@ module Google
110
110
  # The default timeout, in seconds, for calls made through this client.
111
111
  # @param metadata [Hash]
112
112
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
113
+ # @param service_address [String]
114
+ # Override for the service hostname, or `nil` to leave as the default.
115
+ # @param service_port [Integer]
116
+ # Override for the service port, or `nil` to leave as the default.
113
117
  # @param exception_transformer [Proc]
114
118
  # An optional proc that intercepts any exceptions raised during an API call to inject
115
119
  # custom error handling.
@@ -119,6 +123,8 @@ module Google
119
123
  client_config: nil,
120
124
  timeout: nil,
121
125
  metadata: nil,
126
+ service_address: nil,
127
+ service_port: nil,
122
128
  exception_transformer: nil,
123
129
  lib_name: nil,
124
130
  lib_version: nil
@@ -130,6 +136,8 @@ module Google
130
136
  metadata: metadata,
131
137
  exception_transformer: exception_transformer,
132
138
  lib_name: lib_name,
139
+ service_address: service_address,
140
+ service_port: service_port,
133
141
  lib_version: lib_version
134
142
  }.select { |_, v| v != nil }
135
143
  Google::Cloud::Language::V1::LanguageServiceClient.new(**kwargs)
@@ -87,6 +87,10 @@ module Google
87
87
  # The default timeout, in seconds, for calls made through this client.
88
88
  # @param metadata [Hash]
89
89
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
90
+ # @param service_address [String]
91
+ # Override for the service hostname, or `nil` to leave as the default.
92
+ # @param service_port [Integer]
93
+ # Override for the service port, or `nil` to leave as the default.
90
94
  # @param exception_transformer [Proc]
91
95
  # An optional proc that intercepts any exceptions raised during an API call to inject
92
96
  # custom error handling.
@@ -96,6 +100,8 @@ module Google
96
100
  client_config: {},
97
101
  timeout: DEFAULT_TIMEOUT,
98
102
  metadata: nil,
103
+ service_address: nil,
104
+ service_port: nil,
99
105
  exception_transformer: nil,
100
106
  lib_name: nil,
101
107
  lib_version: ""
@@ -149,8 +155,8 @@ module Google
149
155
  end
150
156
 
151
157
  # Allow overriding the service path/port in subclasses.
152
- service_path = self.class::SERVICE_ADDRESS
153
- port = self.class::DEFAULT_SERVICE_PORT
158
+ service_path = service_address || self.class::SERVICE_ADDRESS
159
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
154
160
  interceptors = self.class::GRPC_INTERCEPTORS
155
161
  @language_service_stub = Google::Gax::Grpc.create_stub(
156
162
  service_path,
@@ -122,6 +122,10 @@ module Google
122
122
  # The default timeout, in seconds, for calls made through this client.
123
123
  # @param metadata [Hash]
124
124
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
125
+ # @param service_address [String]
126
+ # Override for the service hostname, or `nil` to leave as the default.
127
+ # @param service_port [Integer]
128
+ # Override for the service port, or `nil` to leave as the default.
125
129
  # @param exception_transformer [Proc]
126
130
  # An optional proc that intercepts any exceptions raised during an API call to inject
127
131
  # custom error handling.
@@ -131,6 +135,8 @@ module Google
131
135
  client_config: nil,
132
136
  timeout: nil,
133
137
  metadata: nil,
138
+ service_address: nil,
139
+ service_port: nil,
134
140
  exception_transformer: nil,
135
141
  lib_name: nil,
136
142
  lib_version: nil
@@ -142,6 +148,8 @@ module Google
142
148
  metadata: metadata,
143
149
  exception_transformer: exception_transformer,
144
150
  lib_name: lib_name,
151
+ service_address: service_address,
152
+ service_port: service_port,
145
153
  lib_version: lib_version
146
154
  }.select { |_, v| v != nil }
147
155
  Google::Cloud::Language::V1beta2::LanguageServiceClient.new(**kwargs)
@@ -86,6 +86,10 @@ module Google
86
86
  # The default timeout, in seconds, for calls made through this client.
87
87
  # @param metadata [Hash]
88
88
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
89
+ # @param service_address [String]
90
+ # Override for the service hostname, or `nil` to leave as the default.
91
+ # @param service_port [Integer]
92
+ # Override for the service port, or `nil` to leave as the default.
89
93
  # @param exception_transformer [Proc]
90
94
  # An optional proc that intercepts any exceptions raised during an API call to inject
91
95
  # custom error handling.
@@ -95,6 +99,8 @@ module Google
95
99
  client_config: {},
96
100
  timeout: DEFAULT_TIMEOUT,
97
101
  metadata: nil,
102
+ service_address: nil,
103
+ service_port: nil,
98
104
  exception_transformer: nil,
99
105
  lib_name: nil,
100
106
  lib_version: ""
@@ -148,8 +154,8 @@ module Google
148
154
  end
149
155
 
150
156
  # Allow overriding the service path/port in subclasses.
151
- service_path = self.class::SERVICE_ADDRESS
152
- port = self.class::DEFAULT_SERVICE_PORT
157
+ service_path = service_address || self.class::SERVICE_ADDRESS
158
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
153
159
  interceptors = self.class::GRPC_INTERCEPTORS
154
160
  @language_service_stub = Google::Gax::Grpc.create_stub(
155
161
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Language
19
- VERSION = "0.32.2".freeze
19
+ VERSION = "0.33.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-language
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.2
4
+ version: 0.33.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: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.7'
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: '1.3'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos
29
29
  requirement: !ruby/object:Gem::Requirement