google-cloud-dialogflow 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow.rb +31 -7
- data/lib/google/cloud/dialogflow/v2.rb +55 -7
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +7 -3
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +101 -5
- data/lib/google/cloud/dialogflow/v2/agents_client_config.json +10 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts_client.rb +9 -3
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +57 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +16 -13
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +20 -11
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents_client.rb +17 -8
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +9 -3
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sessions_client.rb +8 -2
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- metadata +4 -4
@@ -106,6 +106,10 @@ module Google
|
|
106
106
|
# The default timeout, in seconds, for calls made through this client.
|
107
107
|
# @param metadata [Hash]
|
108
108
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
109
|
+
# @param service_address [String]
|
110
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
111
|
+
# @param service_port [Integer]
|
112
|
+
# Override for the service port, or `nil` to leave as the default.
|
109
113
|
# @param exception_transformer [Proc]
|
110
114
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
111
115
|
# custom error handling.
|
@@ -115,6 +119,8 @@ module Google
|
|
115
119
|
client_config: {},
|
116
120
|
timeout: DEFAULT_TIMEOUT,
|
117
121
|
metadata: nil,
|
122
|
+
service_address: nil,
|
123
|
+
service_port: nil,
|
118
124
|
exception_transformer: nil,
|
119
125
|
lib_name: nil,
|
120
126
|
lib_version: ""
|
@@ -168,8 +174,8 @@ module Google
|
|
168
174
|
end
|
169
175
|
|
170
176
|
# Allow overriding the service path/port in subclasses.
|
171
|
-
service_path = self.class::SERVICE_ADDRESS
|
172
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
177
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
178
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
173
179
|
interceptors = self.class::GRPC_INTERCEPTORS
|
174
180
|
@sessions_stub = Google::Gax::Grpc.create_stub(
|
175
181
|
service_path,
|
@@ -7,6 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/cloud/dialogflow/v2/context_pb'
|
8
8
|
require 'google/cloud/dialogflow/v2/intent_pb'
|
9
9
|
require 'google/cloud/dialogflow/v2/session_pb'
|
10
|
+
require 'google/cloud/dialogflow/v2/session_entity_type_pb'
|
10
11
|
require 'google/protobuf/struct_pb'
|
11
12
|
require 'google/api/annotations_pb'
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
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: 0.
|
4
|
+
version: 0.5.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-
|
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.
|
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.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleapis-common-protos
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|