google-cloud-dialogflow 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/lib/google/cloud/dialogflow/v2/agents_client.rb +6 -6
  4. data/lib/google/cloud/dialogflow/v2/contexts_client.rb +10 -10
  5. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +10 -10
  6. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +7 -7
  7. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +25 -25
  8. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +35 -35
  9. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +53 -53
  10. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb +12 -12
  11. data/lib/google/cloud/dialogflow/v2/doc/google/longrunning/operations.rb +9 -9
  12. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/any.rb +8 -8
  13. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/empty.rb +1 -1
  14. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/field_mask.rb +7 -7
  15. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/struct.rb +11 -11
  16. data/lib/google/cloud/dialogflow/v2/doc/google/rpc/status.rb +11 -11
  17. data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +30 -30
  18. data/lib/google/cloud/dialogflow/v2/intents_client.rb +17 -17
  19. data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +10 -10
  20. data/lib/google/cloud/dialogflow/v2/sessions_client.rb +5 -5
  21. data/lib/google/cloud/dialogflow/v2.rb +13 -13
  22. data/lib/google/cloud/dialogflow.rb +13 -13
  23. metadata +3 -4
  24. data/lib/google/cloud/dialogflow/v2/doc/overview.rb +0 -81
@@ -201,7 +201,7 @@ module Google
201
201
  #
202
202
  # @param session [String]
203
203
  # Required. The name of the session this query is sent to. Format:
204
- # +projects/<Project ID>/agent/sessions/<Session ID>+. It's up to the API
204
+ # `projects/<Project ID>/agent/sessions/<Session ID>`. It's up to the API
205
205
  # caller to choose an appropriate session ID. It can be a random number or
206
206
  # some type of user identifier (preferably hashed). The length of the session
207
207
  # ID must not exceed 36 bytes.
@@ -222,7 +222,7 @@ module Google
222
222
  # can also be provided.
223
223
  # @param input_audio [String]
224
224
  # Optional. The natural language speech audio to be processed. This field
225
- # should be populated iff +query_input+ is set to an input audio config.
225
+ # should be populated iff `query_input` is set to an input audio config.
226
226
  # A single request can contain up to 1 minute of speech audio data.
227
227
  # @param options [Google::Gax::CallOptions]
228
228
  # Overrides the default settings for this call, e.g, timeout,
@@ -238,7 +238,7 @@ module Google
238
238
  # sessions_client = Google::Cloud::Dialogflow::Sessions.new(version: :v2)
239
239
  # formatted_session = Google::Cloud::Dialogflow::V2::SessionsClient.session_path("[PROJECT]", "[SESSION]")
240
240
  #
241
- # # TODO: Initialize +query_input+:
241
+ # # TODO: Initialize `query_input`:
242
242
  # query_input = {}
243
243
  # response = sessions_client.detect_intent(formatted_session, query_input)
244
244
 
@@ -283,10 +283,10 @@ module Google
283
283
  #
284
284
  # sessions_client = Google::Cloud::Dialogflow::Sessions.new(version: :v2)
285
285
  #
286
- # # TODO: Initialize +session+:
286
+ # # TODO: Initialize `session`:
287
287
  # session = ''
288
288
  #
289
- # # TODO: Initialize +query_input+:
289
+ # # TODO: Initialize `query_input`:
290
290
  # query_input = {}
291
291
  # request = { session: session, query_input: query_input }
292
292
  # requests = [request]
@@ -30,7 +30,7 @@ module Google
30
30
  # rubocop:disable LineLength
31
31
 
32
32
  ##
33
- # # Ruby Client for Dialogflow API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
33
+ # # Ruby Client for Dialogflow API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
34
34
  #
35
35
  # [Dialogflow API][Product Documentation]:
36
36
  # An end-to-end development suite for conversational interfaces (e.g.,
@@ -44,7 +44,7 @@ module Google
44
44
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
45
45
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
46
46
  # 3. [Enable the Dialogflow API.](https://console.cloud.google.com/apis/library/dialogflow.googleapis.com)
47
- # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
47
+ # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
48
48
  #
49
49
  # ### Installation
50
50
  # ```
@@ -54,7 +54,7 @@ module Google
54
54
  # ### Next Steps
55
55
  # - Read the [Dialogflow API Product documentation][Product Documentation]
56
56
  # to learn more about the product and see How-to Guides.
57
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
57
+ # - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
58
58
  # to see the full list of Cloud APIs that we cover.
59
59
  #
60
60
  # [Product Documentation]: https://cloud.google.com/dialogflow
@@ -63,7 +63,7 @@ module Google
63
63
  #
64
64
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
65
65
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
66
- # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
66
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
67
67
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
68
68
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
69
69
  #
@@ -181,9 +181,9 @@ module Google
181
181
  # {Google::Cloud::Dialogflow::V2::Sessions::DetectIntent DetectIntent} (or
182
182
  # {Google::Cloud::Dialogflow::V2::Sessions::StreamingDetectIntent StreamingDetectIntent}) request,
183
183
  # or as output contexts included in the returned intent.
184
- # Contexts expire when an intent is matched, after the number of +DetectIntent+
185
- # requests specified by the +lifespan_count+ parameter, or after 10 minutes
186
- # if no intents are matched for a +DetectIntent+ request.
184
+ # Contexts expire when an intent is matched, after the number of `DetectIntent`
185
+ # requests specified by the `lifespan_count` parameter, or after 10 minutes
186
+ # if no intents are matched for a `DetectIntent` request.
187
187
  #
188
188
  # For more information about contexts, see the
189
189
  # [Dialogflow documentation](https://dialogflow.com/docs/contexts).
@@ -254,14 +254,14 @@ module Google
254
254
  #
255
255
  # * **System** - entities that are defined by the Dialogflow API for common
256
256
  # data types such as date, time, currency, and so on. A system entity is
257
- # represented by the +EntityType+ type.
257
+ # represented by the `EntityType` type.
258
258
  #
259
259
  # * **Developer** - entities that are defined by you that represent
260
260
  # actionable data that is meaningful to your application. For example,
261
- # you could define a +pizza.sauce+ entity for red or white pizza sauce,
262
- # a +pizza.cheese+ entity for the different types of cheese on a pizza,
263
- # a +pizza.topping+ entity for different toppings, and so on. A developer
264
- # entity is represented by the +EntityType+ type.
261
+ # you could define a `pizza.sauce` entity for red or white pizza sauce,
262
+ # a `pizza.cheese` entity for the different types of cheese on a pizza,
263
+ # a `pizza.topping` entity for different toppings, and so on. A developer
264
+ # entity is represented by the `EntityType` type.
265
265
  #
266
266
  # * **User** - entities that are built for an individual user such as
267
267
  # favorites, preferences, playlists, and so on. A user entity is
@@ -330,7 +330,7 @@ module Google
330
330
  # {Google::Cloud::Dialogflow::V2::Sessions::StreamingDetectIntent StreamingDetectIntent}) method, the
331
331
  # Dialogflow API analyzes the input and searches
332
332
  # for a matching intent. If no match is found, the Dialogflow API returns a
333
- # fallback intent (+is_fallback+ = true).
333
+ # fallback intent (`is_fallback` = true).
334
334
  #
335
335
  # You can provide additional information for the Dialogflow API to use to
336
336
  # match user input to an intent by adding the following to your intent.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Dialogflow API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Dialogflow API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
25
25
  #
26
26
  # [Dialogflow API][Product Documentation]:
27
27
  # An end-to-end development suite for conversational interfaces (e.g.,
@@ -35,7 +35,7 @@ module Google
35
35
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
36
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
37
37
  # 3. [Enable the Dialogflow API.](https://console.cloud.google.com/apis/library/dialogflow.googleapis.com)
38
- # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
+ # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
39
39
  #
40
40
  # ### Installation
41
41
  # ```
@@ -45,7 +45,7 @@ module Google
45
45
  # ### Next Steps
46
46
  # - Read the [Dialogflow API Product documentation][Product Documentation]
47
47
  # to learn more about the product and see How-to Guides.
48
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
48
+ # - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
49
49
  # to see the full list of Cloud APIs that we cover.
50
50
  #
51
51
  # [Product Documentation]: https://cloud.google.com/dialogflow
@@ -54,7 +54,7 @@ module Google
54
54
  #
55
55
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
56
56
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
57
- # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
57
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
58
58
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
59
59
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
60
60
  #
@@ -176,9 +176,9 @@ module Google
176
176
  # {Google::Cloud::Dialogflow::V2::Sessions::DetectIntent DetectIntent} (or
177
177
  # {Google::Cloud::Dialogflow::V2::Sessions::StreamingDetectIntent StreamingDetectIntent}) request,
178
178
  # or as output contexts included in the returned intent.
179
- # Contexts expire when an intent is matched, after the number of +DetectIntent+
180
- # requests specified by the +lifespan_count+ parameter, or after 10 minutes
181
- # if no intents are matched for a +DetectIntent+ request.
179
+ # Contexts expire when an intent is matched, after the number of `DetectIntent`
180
+ # requests specified by the `lifespan_count` parameter, or after 10 minutes
181
+ # if no intents are matched for a `DetectIntent` request.
182
182
  #
183
183
  # For more information about contexts, see the
184
184
  # [Dialogflow documentation](https://dialogflow.com/docs/contexts).
@@ -245,14 +245,14 @@ module Google
245
245
  #
246
246
  # * **System** - entities that are defined by the Dialogflow API for common
247
247
  # data types such as date, time, currency, and so on. A system entity is
248
- # represented by the +EntityType+ type.
248
+ # represented by the `EntityType` type.
249
249
  #
250
250
  # * **Developer** - entities that are defined by you that represent
251
251
  # actionable data that is meaningful to your application. For example,
252
- # you could define a +pizza.sauce+ entity for red or white pizza sauce,
253
- # a +pizza.cheese+ entity for the different types of cheese on a pizza,
254
- # a +pizza.topping+ entity for different toppings, and so on. A developer
255
- # entity is represented by the +EntityType+ type.
252
+ # you could define a `pizza.sauce` entity for red or white pizza sauce,
253
+ # a `pizza.cheese` entity for the different types of cheese on a pizza,
254
+ # a `pizza.topping` entity for different toppings, and so on. A developer
255
+ # entity is represented by the `EntityType` type.
256
256
  #
257
257
  # * **User** - entities that are built for an individual user such as
258
258
  # favorites, preferences, playlists, and so on. A user entity is
@@ -317,7 +317,7 @@ module Google
317
317
  # {Google::Cloud::Dialogflow::V2::Sessions::StreamingDetectIntent StreamingDetectIntent}) method, the
318
318
  # Dialogflow API analyzes the input and searches
319
319
  # for a matching intent. If no match is found, the Dialogflow API returns a
320
- # fallback intent (+is_fallback+ = true).
320
+ # fallback intent (`is_fallback` = true).
321
321
  #
322
322
  # You can provide additional information for the Dialogflow API to use to
323
323
  # match user input to an intent by adding the following to your intent.
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -127,7 +127,6 @@ files:
127
127
  - lib/google/cloud/dialogflow/v2/doc/google/protobuf/struct.rb
128
128
  - lib/google/cloud/dialogflow/v2/doc/google/rpc/status.rb
129
129
  - lib/google/cloud/dialogflow/v2/doc/google/type/latlng.rb
130
- - lib/google/cloud/dialogflow/v2/doc/overview.rb
131
130
  - lib/google/cloud/dialogflow/v2/entity_type_pb.rb
132
131
  - lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb
133
132
  - lib/google/cloud/dialogflow/v2/entity_types_client.rb
@@ -145,7 +144,7 @@ files:
145
144
  - lib/google/cloud/dialogflow/v2/sessions_client.rb
146
145
  - lib/google/cloud/dialogflow/v2/sessions_client_config.json
147
146
  - lib/google/cloud/dialogflow/v2/webhook_pb.rb
148
- homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-dialogflow
147
+ homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-dialogflow
149
148
  licenses:
150
149
  - Apache-2.0
151
150
  metadata: {}
@@ -1,81 +0,0 @@
1
- # Copyright 2018 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- # rubocop:disable LineLength
19
-
20
- ##
21
- # # Ruby Client for Dialogflow API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
22
- #
23
- # [Dialogflow API][Product Documentation]:
24
- # An end-to-end development suite for conversational interfaces (e.g.,
25
- # chatbots, voice-powered apps and devices).
26
- # - [Product Documentation][]
27
- #
28
- # ## Quick Start
29
- # In order to use this library, you first need to go through the following
30
- # steps:
31
- #
32
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
33
- # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
34
- # 3. [Enable the Dialogflow API.](https://console.cloud.google.com/apis/library/dialogflow.googleapis.com)
35
- # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
36
- #
37
- # ### Installation
38
- # ```
39
- # $ gem install google-cloud-dialogflow
40
- # ```
41
- #
42
- # ### Next Steps
43
- # - Read the [Dialogflow API Product documentation][Product Documentation]
44
- # to learn more about the product and see How-to Guides.
45
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
46
- # to see the full list of Cloud APIs that we cover.
47
- #
48
- # [Product Documentation]: https://cloud.google.com/dialogflow
49
- #
50
- # ## Enabling Logging
51
- #
52
- # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
53
- # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
54
- # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
55
- # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
56
- # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
57
- #
58
- # Configuring a Ruby stdlib logger:
59
- #
60
- # ```ruby
61
- # require "logger"
62
- #
63
- # module MyLogger
64
- # LOGGER = Logger.new $stderr, level: Logger::WARN
65
- # def logger
66
- # LOGGER
67
- # end
68
- # end
69
- #
70
- # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
71
- # module GRPC
72
- # extend MyLogger
73
- # end
74
- # ```
75
- #
76
- module Dialogflow
77
- module V2
78
- end
79
- end
80
- end
81
- end