google-cloud-dialogflow 0.12.0 → 0.12.1
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 +4 -4
- data/lib/google/cloud/dialogflow.rb +3 -3
- data/lib/google/cloud/dialogflow/v2.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts_client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb +1 -1
- 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 +5 -5
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/doc/google/longrunning/operations.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/field_mask.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/struct.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/rpc/status.rb +7 -55
- data/lib/google/cloud/dialogflow/v2/doc/google/type/latlng.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +4 -4
- data/lib/google/cloud/dialogflow/v2/intents_client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/sessions_client.rb +1 -1
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 311c9170cf5491da11c683d714c118d0d07ab92ad7d13399c0625ab3cb0f09aa
|
|
4
|
+
data.tar.gz: de0dfa095b26b2fbfd16113230e9cfae52bc4037ec7bdff18bc9c25b8c58a331
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c03a337850d42554aad5ccd4a876a006dc80453f105c2d804fe3434d62905cea9459a6fd8be2b67e4df0543c3afabeb2f978dcb32221ad01103b093bf0360764
|
|
7
|
+
data.tar.gz: 2ba219553ba02c46fb9c8a7804eb03ea78fada68b6d6dfb7f502ae0fe4c5a5206ff11197cbe96733a1b0fcbb9d226b9f90b81a0e62acd09c2b15faa4be3a8aae
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -259,11 +259,11 @@ module Google
|
|
|
259
259
|
# data types such as date, time, currency, and so on. A system entity is
|
|
260
260
|
# represented by the `EntityType` type.
|
|
261
261
|
#
|
|
262
|
-
# * **
|
|
262
|
+
# * **Custom** - entities that are defined by you that represent
|
|
263
263
|
# actionable data that is meaningful to your application. For example,
|
|
264
264
|
# you could define a `pizza.sauce` entity for red or white pizza sauce,
|
|
265
265
|
# a `pizza.cheese` entity for the different types of cheese on a pizza,
|
|
266
|
-
# a `pizza.topping` entity for different toppings, and so on. A
|
|
266
|
+
# a `pizza.topping` entity for different toppings, and so on. A custom
|
|
267
267
|
# entity is represented by the `EntityType` type.
|
|
268
268
|
#
|
|
269
269
|
# * **User** - entities that are built for an individual user such as
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -276,11 +276,11 @@ module Google
|
|
|
276
276
|
# data types such as date, time, currency, and so on. A system entity is
|
|
277
277
|
# represented by the `EntityType` type.
|
|
278
278
|
#
|
|
279
|
-
# * **
|
|
279
|
+
# * **Custom** - entities that are defined by you that represent
|
|
280
280
|
# actionable data that is meaningful to your application. For example,
|
|
281
281
|
# you could define a `pizza.sauce` entity for red or white pizza sauce,
|
|
282
282
|
# a `pizza.cheese` entity for the different types of cheese on a pizza,
|
|
283
|
-
# a `pizza.topping` entity for different toppings, and so on. A
|
|
283
|
+
# a `pizza.topping` entity for different toppings, and so on. A custom
|
|
284
284
|
# entity is represented by the `EntityType` type.
|
|
285
285
|
#
|
|
286
286
|
# * **User** - entities that are built for an individual user such as
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -102,7 +102,7 @@ module Google
|
|
|
102
102
|
MATCH_MODE_HYBRID = 1
|
|
103
103
|
|
|
104
104
|
# Can be used for agents with a large number of examples in intents,
|
|
105
|
-
# especially the ones using @sys.any or very large
|
|
105
|
+
# especially the ones using @sys.any or very large custom entities.
|
|
106
106
|
MATCH_MODE_ML_ONLY = 2
|
|
107
107
|
end
|
|
108
108
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -52,7 +52,7 @@ module Google
|
|
|
52
52
|
#
|
|
53
53
|
# For `KIND_MAP` entity types:
|
|
54
54
|
#
|
|
55
|
-
# * A
|
|
55
|
+
# * A reference value to be used in place of synonyms.
|
|
56
56
|
#
|
|
57
57
|
# For `KIND_LIST` entity types:
|
|
58
58
|
#
|
|
@@ -86,11 +86,11 @@ module Google
|
|
|
86
86
|
# Not specified. This value should be never used.
|
|
87
87
|
KIND_UNSPECIFIED = 0
|
|
88
88
|
|
|
89
|
-
# Map entity types allow mapping of a group of synonyms to a
|
|
89
|
+
# Map entity types allow mapping of a group of synonyms to a reference
|
|
90
90
|
# value.
|
|
91
91
|
KIND_MAP = 1
|
|
92
92
|
|
|
93
|
-
# List entity types contain a set of entries that do not map to
|
|
93
|
+
# List entity types contain a set of entries that do not map to reference
|
|
94
94
|
# values. However, list entity types can contain references to other entity
|
|
95
95
|
# types (with or without aliases).
|
|
96
96
|
KIND_LIST = 2
|
|
@@ -281,7 +281,7 @@ module Google
|
|
|
281
281
|
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
|
282
282
|
# @!attribute [rw] entity_values
|
|
283
283
|
# @return [Array<String>]
|
|
284
|
-
# Required. The
|
|
284
|
+
# Required. The reference `values` of the entities to delete. Note that
|
|
285
285
|
# these are not fully-qualified names, i.e. they don't start with
|
|
286
286
|
# `projects/<Project ID>`.
|
|
287
287
|
# @!attribute [rw] language_code
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -19,8 +19,8 @@ module Google
|
|
|
19
19
|
module V2
|
|
20
20
|
# Represents a session entity type.
|
|
21
21
|
#
|
|
22
|
-
# Extends or replaces a
|
|
23
|
-
# refer to the entity types defined at the agent level as "
|
|
22
|
+
# Extends or replaces a custom entity type at the user session level (we
|
|
23
|
+
# refer to the entity types defined at the agent level as "custom entity
|
|
24
24
|
# types").
|
|
25
25
|
#
|
|
26
26
|
# Note: session entity types apply to all queries, regardless of the language.
|
|
@@ -35,7 +35,7 @@ module Google
|
|
|
35
35
|
# @!attribute [rw] entity_override_mode
|
|
36
36
|
# @return [Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode]
|
|
37
37
|
# Required. Indicates whether the additional data should override or
|
|
38
|
-
# supplement the
|
|
38
|
+
# supplement the custom entity type definition.
|
|
39
39
|
# @!attribute [rw] entities
|
|
40
40
|
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
|
41
41
|
# Required. The collection of entities associated with this session entity
|
|
@@ -47,17 +47,17 @@ module Google
|
|
|
47
47
|
ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0
|
|
48
48
|
|
|
49
49
|
# The collection of session entities overrides the collection of entities
|
|
50
|
-
# in the corresponding
|
|
50
|
+
# in the corresponding custom entity type.
|
|
51
51
|
ENTITY_OVERRIDE_MODE_OVERRIDE = 1
|
|
52
52
|
|
|
53
53
|
# The collection of session entities extends the collection of entities in
|
|
54
|
-
# the corresponding
|
|
54
|
+
# the corresponding custom entity type.
|
|
55
55
|
#
|
|
56
56
|
# Note: Even in this override mode calls to `ListSessionEntityTypes`,
|
|
57
57
|
# `GetSessionEntityType`, `CreateSessionEntityType` and
|
|
58
58
|
# `UpdateSessionEntityType` only return the additional entities added in
|
|
59
59
|
# this session entity type. If you want to get the supplemented list,
|
|
60
|
-
# please call {Google::Cloud::Dialogflow::V2::EntityTypes::GetEntityType EntityTypes::GetEntityType} on the
|
|
60
|
+
# please call {Google::Cloud::Dialogflow::V2::EntityTypes::GetEntityType EntityTypes::GetEntityType} on the custom entity type
|
|
61
61
|
# and merge.
|
|
62
62
|
ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2
|
|
63
63
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -21,7 +21,7 @@ module Google
|
|
|
21
21
|
# @return [String]
|
|
22
22
|
# The server-assigned name, which is only unique within the same service that
|
|
23
23
|
# originally returns it. If you use the default HTTP mapping, the
|
|
24
|
-
# `name` should
|
|
24
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
|
25
25
|
# @!attribute [rw] metadata
|
|
26
26
|
# @return [Google::Protobuf::Any]
|
|
27
27
|
# Service-specific metadata associated with the operation. It typically
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,67 +17,19 @@ module Google
|
|
|
17
17
|
module Rpc
|
|
18
18
|
# The `Status` type defines a logical error model that is suitable for
|
|
19
19
|
# different programming environments, including REST APIs and RPC APIs. It is
|
|
20
|
-
# used by [gRPC](https://github.com/grpc).
|
|
20
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
21
|
+
# three pieces of data: error code, error message, and error details.
|
|
21
22
|
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
# = Overview
|
|
26
|
-
#
|
|
27
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
28
|
-
# message, and error details. The error code should be an enum value of
|
|
29
|
-
# {Google::Rpc::Code}, but it may accept additional error codes
|
|
30
|
-
# if needed. The error message should be a developer-facing English message
|
|
31
|
-
# that helps developers *understand* and *resolve* the error. If a localized
|
|
32
|
-
# user-facing error message is needed, put the localized message in the error
|
|
33
|
-
# details or localize it in the client. The optional error details may contain
|
|
34
|
-
# arbitrary information about the error. There is a predefined set of error
|
|
35
|
-
# detail types in the package `google.rpc` that can be used for common error
|
|
36
|
-
# conditions.
|
|
37
|
-
#
|
|
38
|
-
# = Language mapping
|
|
39
|
-
#
|
|
40
|
-
# The `Status` message is the logical representation of the error model, but it
|
|
41
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
|
42
|
-
# exposed in different client libraries and different wire protocols, it can be
|
|
43
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
44
|
-
# in Java, but more likely mapped to some error codes in C.
|
|
45
|
-
#
|
|
46
|
-
# = Other uses
|
|
47
|
-
#
|
|
48
|
-
# The error model and the `Status` message can be used in a variety of
|
|
49
|
-
# environments, either with or without APIs, to provide a
|
|
50
|
-
# consistent developer experience across different environments.
|
|
51
|
-
#
|
|
52
|
-
# Example uses of this error model include:
|
|
53
|
-
#
|
|
54
|
-
# * Partial errors. If a service needs to return partial errors to the client,
|
|
55
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
|
56
|
-
# errors.
|
|
57
|
-
#
|
|
58
|
-
# * Workflow errors. A typical workflow has multiple steps. Each step may
|
|
59
|
-
# have a `Status` message for error reporting.
|
|
60
|
-
#
|
|
61
|
-
# * Batch operations. If a client uses batch request and batch response, the
|
|
62
|
-
# `Status` message should be used directly inside batch response, one for
|
|
63
|
-
# each error sub-response.
|
|
64
|
-
#
|
|
65
|
-
# * Asynchronous operations. If an API call embeds asynchronous operation
|
|
66
|
-
# results in its response, the status of those operations should be
|
|
67
|
-
# represented directly using the `Status` message.
|
|
68
|
-
#
|
|
69
|
-
# * Logging. If some API errors are stored in logs, the message `Status` could
|
|
70
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
|
23
|
+
# You can find out more about this error model and how to work with it in the
|
|
24
|
+
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
71
25
|
# @!attribute [rw] code
|
|
72
26
|
# @return [Integer]
|
|
73
|
-
# The status code, which should be an enum value of
|
|
74
|
-
# {Google::Rpc::Code}.
|
|
27
|
+
# The status code, which should be an enum value of {Google::Rpc::Code}.
|
|
75
28
|
# @!attribute [rw] message
|
|
76
29
|
# @return [String]
|
|
77
30
|
# A developer-facing error message, which should be in English. Any
|
|
78
31
|
# user-facing error message should be localized and sent in the
|
|
79
|
-
# {Google::Rpc::Status#details} field, or localized
|
|
80
|
-
# by the client.
|
|
32
|
+
# {Google::Rpc::Status#details} field, or localized by the client.
|
|
81
33
|
# @!attribute [rw] details
|
|
82
34
|
# @return [Array<Google::Protobuf::Any>]
|
|
83
35
|
# A list of messages that carry the error details. There is a common set of
|
|
@@ -40,11 +40,11 @@ module Google
|
|
|
40
40
|
# data types such as date, time, currency, and so on. A system entity is
|
|
41
41
|
# represented by the `EntityType` type.
|
|
42
42
|
#
|
|
43
|
-
# * **
|
|
43
|
+
# * **Custom** - entities that are defined by you that represent
|
|
44
44
|
# actionable data that is meaningful to your application. For example,
|
|
45
45
|
# you could define a `pizza.sauce` entity for red or white pizza sauce,
|
|
46
46
|
# a `pizza.cheese` entity for the different types of cheese on a pizza,
|
|
47
|
-
# a `pizza.topping` entity for different toppings, and so on. A
|
|
47
|
+
# a `pizza.topping` entity for different toppings, and so on. A custom
|
|
48
48
|
# entity is represented by the `EntityType` type.
|
|
49
49
|
#
|
|
50
50
|
# * **User** - entities that are built for an individual user such as
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -49,11 +49,11 @@ module Google
|
|
|
49
49
|
# data types such as date, time, currency, and so on. A system entity is
|
|
50
50
|
# represented by the `EntityType` type.
|
|
51
51
|
#
|
|
52
|
-
# * **
|
|
52
|
+
# * **Custom** - entities that are defined by you that represent
|
|
53
53
|
# actionable data that is meaningful to your application. For example,
|
|
54
54
|
# you could define a `pizza.sauce` entity for red or white pizza sauce,
|
|
55
55
|
# a `pizza.cheese` entity for the different types of cheese on a pizza,
|
|
56
|
-
# a `pizza.topping` entity for different toppings, and so on. A
|
|
56
|
+
# a `pizza.topping` entity for different toppings, and so on. A custom
|
|
57
57
|
# entity is represented by the `EntityType` type.
|
|
58
58
|
#
|
|
59
59
|
# * **User** - entities that are built for an individual user such as
|
|
@@ -915,7 +915,7 @@ module Google
|
|
|
915
915
|
# Required. The name of the entity type to delete entries for. Format:
|
|
916
916
|
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
|
917
917
|
# @param entity_values [Array<String>]
|
|
918
|
-
# Required. The
|
|
918
|
+
# Required. The reference `values` of the entities to delete. Note that
|
|
919
919
|
# these are not fully-qualified names, i.e. they don't start with
|
|
920
920
|
# `projects/<Project ID>`.
|
|
921
921
|
# @param language_code [String]
|
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.12.
|
|
4
|
+
version: 0.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|