google-cloud-dialogflow 0.2.1 → 0.2.2
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/README.md +5 -5
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/contexts_client.rb +10 -10
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +10 -10
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +25 -25
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +35 -35
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +53 -53
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb +12 -12
- data/lib/google/cloud/dialogflow/v2/doc/google/longrunning/operations.rb +9 -9
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/any.rb +8 -8
- 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 +7 -7
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/struct.rb +11 -11
- data/lib/google/cloud/dialogflow/v2/doc/google/rpc/status.rb +11 -11
- data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +30 -30
- data/lib/google/cloud/dialogflow/v2/intents_client.rb +17 -17
- data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +10 -10
- data/lib/google/cloud/dialogflow/v2/sessions_client.rb +5 -5
- data/lib/google/cloud/dialogflow/v2.rb +13 -13
- data/lib/google/cloud/dialogflow.rb +13 -13
- metadata +3 -4
- data/lib/google/cloud/dialogflow/v2/doc/overview.rb +0 -81
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
#
|
18
|
+
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
19
19
|
# URL that describes the type of the serialized message.
|
20
20
|
#
|
21
21
|
# Protobuf library provides support to pack/unpack Any values in the form
|
@@ -69,9 +69,9 @@ module Google
|
|
69
69
|
#
|
70
70
|
# = JSON
|
71
71
|
#
|
72
|
-
# The JSON representation of an
|
72
|
+
# The JSON representation of an `Any` value uses the regular
|
73
73
|
# representation of the deserialized, embedded message, with an
|
74
|
-
# additional field
|
74
|
+
# additional field `@type` which contains the type URL. Example:
|
75
75
|
#
|
76
76
|
# package google.profile;
|
77
77
|
# message Person {
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
#
|
88
88
|
# If the embedded message type is well-known and has a custom JSON
|
89
89
|
# representation, that representation will be embedded adding a field
|
90
|
-
#
|
90
|
+
# `value` which holds the custom JSON in addition to the `@type`
|
91
91
|
# field. Example (for message {Google::Protobuf::Duration}):
|
92
92
|
#
|
93
93
|
# {
|
@@ -99,15 +99,15 @@ module Google
|
|
99
99
|
# A URL/resource name that uniquely identifies the type of the serialized
|
100
100
|
# protocol buffer message. The last segment of the URL's path must represent
|
101
101
|
# the fully qualified name of the type (as in
|
102
|
-
#
|
102
|
+
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
103
103
|
# (e.g., leading "." is not accepted).
|
104
104
|
#
|
105
105
|
# In practice, teams usually precompile into the binary all types that they
|
106
106
|
# expect it to use in the context of Any. However, for URLs which use the
|
107
|
-
# scheme
|
107
|
+
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
108
108
|
# server that maps type URLs to message definitions as follows:
|
109
109
|
#
|
110
|
-
# * If no scheme is provided,
|
110
|
+
# * If no scheme is provided, `https` is assumed.
|
111
111
|
# * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
|
112
112
|
# value in binary format, or produce an error.
|
113
113
|
# * Applications are allowed to cache lookup results based on the
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
# protobuf release, and it is not used for type URLs beginning with
|
121
121
|
# type.googleapis.com.
|
122
122
|
#
|
123
|
-
# Schemes other than
|
123
|
+
# Schemes other than `http`, `https` (or the empty scheme) might be
|
124
124
|
# used with implementation specific semantics.
|
125
125
|
# @!attribute [rw] value
|
126
126
|
# @return [String]
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
24
24
|
# }
|
25
25
|
#
|
26
|
-
# The JSON representation for
|
26
|
+
# The JSON representation for `Empty` is empty JSON object `{}`.
|
27
27
|
class Empty; end
|
28
28
|
end
|
29
29
|
end
|
@@ -15,14 +15,14 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
#
|
18
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
19
19
|
#
|
20
20
|
# paths: "f.a"
|
21
21
|
# paths: "f.b.d"
|
22
22
|
#
|
23
|
-
# Here
|
24
|
-
# fields in the message found in
|
25
|
-
# message in
|
23
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
24
|
+
# fields in the message found in `f`, and `d` a field found in the
|
25
|
+
# message in `f.b`.
|
26
26
|
#
|
27
27
|
# Field masks are used to specify a subset of fields that should be
|
28
28
|
# returned by a get operation or modified by an update operation.
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
#
|
86
86
|
# If a repeated field is specified for an update operation, the existing
|
87
87
|
# repeated values in the target resource will be overwritten by the new values.
|
88
|
-
# Note that a repeated field is only allowed in the last position of a
|
88
|
+
# Note that a repeated field is only allowed in the last position of a `paths`
|
89
89
|
# string.
|
90
90
|
#
|
91
91
|
# If a sub-message is specified in the last position of the field mask for an
|
@@ -177,7 +177,7 @@ module Google
|
|
177
177
|
# string address = 2;
|
178
178
|
# }
|
179
179
|
#
|
180
|
-
# In proto a field mask for
|
180
|
+
# In proto a field mask for `Profile` may look as such:
|
181
181
|
#
|
182
182
|
# mask {
|
183
183
|
# paths: "user.display_name"
|
@@ -221,7 +221,7 @@ module Google
|
|
221
221
|
#
|
222
222
|
# The implementation of any API method which has a FieldMask type field in the
|
223
223
|
# request should verify the included field paths, and return an
|
224
|
-
#
|
224
|
+
# `INVALID_ARGUMENT` error if any path is duplicated or unmappable.
|
225
225
|
# @!attribute [rw] paths
|
226
226
|
# @return [Array<String>]
|
227
227
|
# The set of field mask paths.
|
@@ -15,25 +15,25 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
#
|
19
|
-
# which map to dynamically typed values. In some languages,
|
18
|
+
# `Struct` represents a structured data value, consisting of fields
|
19
|
+
# which map to dynamically typed values. In some languages, `Struct`
|
20
20
|
# might be supported by a native representation. For example, in
|
21
21
|
# scripting languages like JS a struct is represented as an
|
22
22
|
# object. The details of that representation are described together
|
23
23
|
# with the proto support for the language.
|
24
24
|
#
|
25
|
-
# The JSON representation for
|
25
|
+
# The JSON representation for `Struct` is JSON object.
|
26
26
|
# @!attribute [rw] fields
|
27
27
|
# @return [Hash{String => Google::Protobuf::Value}]
|
28
28
|
# Unordered map of dynamically typed values.
|
29
29
|
class Struct; end
|
30
30
|
|
31
|
-
#
|
31
|
+
# `Value` represents a dynamically typed value which can be either
|
32
32
|
# null, a number, a string, a boolean, a recursive struct value, or a
|
33
33
|
# list of values. A producer of value is expected to set one of that
|
34
34
|
# variants, absence of any variant indicates an error.
|
35
35
|
#
|
36
|
-
# The JSON representation for
|
36
|
+
# The JSON representation for `Value` is JSON value.
|
37
37
|
# @!attribute [rw] null_value
|
38
38
|
# @return [Google::Protobuf::NullValue]
|
39
39
|
# Represents a null value.
|
@@ -51,21 +51,21 @@ module Google
|
|
51
51
|
# Represents a structured value.
|
52
52
|
# @!attribute [rw] list_value
|
53
53
|
# @return [Google::Protobuf::ListValue]
|
54
|
-
# Represents a repeated
|
54
|
+
# Represents a repeated `Value`.
|
55
55
|
class Value; end
|
56
56
|
|
57
|
-
#
|
57
|
+
# `ListValue` is a wrapper around a repeated field of values.
|
58
58
|
#
|
59
|
-
# The JSON representation for
|
59
|
+
# The JSON representation for `ListValue` is JSON array.
|
60
60
|
# @!attribute [rw] values
|
61
61
|
# @return [Array<Google::Protobuf::Value>]
|
62
62
|
# Repeated field of dynamically typed values.
|
63
63
|
class ListValue; end
|
64
64
|
|
65
|
-
#
|
66
|
-
#
|
65
|
+
# `NullValue` is a singleton enumeration to represent the null value for the
|
66
|
+
# `Value` type union.
|
67
67
|
#
|
68
|
-
# The JSON representation for
|
68
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
69
69
|
module NullValue
|
70
70
|
# Null value.
|
71
71
|
NULL_VALUE = 0
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Rpc
|
18
|
-
# The
|
18
|
+
# The `Status` type defines a logical error model that is suitable for different
|
19
19
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
20
20
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
21
21
|
#
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
#
|
25
25
|
# = Overview
|
26
26
|
#
|
27
|
-
# The
|
27
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
28
28
|
# and error details. The error code should be an enum value of
|
29
29
|
# {Google::Rpc::Code}, but it may accept additional error codes if needed. The
|
30
30
|
# error message should be a developer-facing English message that helps
|
@@ -32,40 +32,40 @@ module Google
|
|
32
32
|
# error message is needed, put the localized message in the error details or
|
33
33
|
# localize it in the client. The optional error details may contain arbitrary
|
34
34
|
# information about the error. There is a predefined set of error detail types
|
35
|
-
# in the package
|
35
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
36
36
|
#
|
37
37
|
# = Language mapping
|
38
38
|
#
|
39
|
-
# The
|
40
|
-
# is not necessarily the actual wire format. When the
|
39
|
+
# The `Status` message is the logical representation of the error model, but it
|
40
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
41
41
|
# exposed in different client libraries and different wire protocols, it can be
|
42
42
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
43
43
|
# in Java, but more likely mapped to some error codes in C.
|
44
44
|
#
|
45
45
|
# = Other uses
|
46
46
|
#
|
47
|
-
# The error model and the
|
47
|
+
# The error model and the `Status` message can be used in a variety of
|
48
48
|
# environments, either with or without APIs, to provide a
|
49
49
|
# consistent developer experience across different environments.
|
50
50
|
#
|
51
51
|
# Example uses of this error model include:
|
52
52
|
#
|
53
53
|
# * Partial errors. If a service needs to return partial errors to the client,
|
54
|
-
# it may embed the
|
54
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
55
55
|
# errors.
|
56
56
|
#
|
57
57
|
# * Workflow errors. A typical workflow has multiple steps. Each step may
|
58
|
-
# have a
|
58
|
+
# have a `Status` message for error reporting.
|
59
59
|
#
|
60
60
|
# * Batch operations. If a client uses batch request and batch response, the
|
61
|
-
#
|
61
|
+
# `Status` message should be used directly inside batch response, one for
|
62
62
|
# each error sub-response.
|
63
63
|
#
|
64
64
|
# * Asynchronous operations. If an API call embeds asynchronous operation
|
65
65
|
# results in its response, the status of those operations should be
|
66
|
-
# represented directly using the
|
66
|
+
# represented directly using the `Status` message.
|
67
67
|
#
|
68
|
-
# * Logging. If some API errors are stored in logs, the message
|
68
|
+
# * Logging. If some API errors are stored in logs, the message `Status` could
|
69
69
|
# be used directly after any stripping needed for security/privacy reasons.
|
70
70
|
# @!attribute [rw] code
|
71
71
|
# @return [Integer]
|
@@ -46,14 +46,14 @@ module Google
|
|
46
46
|
#
|
47
47
|
# * **System** - entities that are defined by the Dialogflow API for common
|
48
48
|
# data types such as date, time, currency, and so on. A system entity is
|
49
|
-
# represented by the
|
49
|
+
# represented by the `EntityType` type.
|
50
50
|
#
|
51
51
|
# * **Developer** - entities that are defined by you that represent
|
52
52
|
# actionable data that is meaningful to your application. For example,
|
53
|
-
# you could define a
|
54
|
-
# a
|
55
|
-
# a
|
56
|
-
# entity is represented by the
|
53
|
+
# you could define a `pizza.sauce` entity for red or white pizza sauce,
|
54
|
+
# a `pizza.cheese` entity for the different types of cheese on a pizza,
|
55
|
+
# a `pizza.topping` entity for different toppings, and so on. A developer
|
56
|
+
# entity is represented by the `EntityType` type.
|
57
57
|
#
|
58
58
|
# * **User** - entities that are built for an individual user such as
|
59
59
|
# favorites, preferences, playlists, and so on. A user entity is
|
@@ -302,7 +302,7 @@ module Google
|
|
302
302
|
#
|
303
303
|
# @param parent [String]
|
304
304
|
# Required. The agent to list all entity types from.
|
305
|
-
# Format:
|
305
|
+
# Format: `projects/<Project ID>/agent`.
|
306
306
|
# @param language_code [String]
|
307
307
|
# Optional. The language to list entity synonyms for. If not specified,
|
308
308
|
# the agent's default language is used.
|
@@ -365,7 +365,7 @@ module Google
|
|
365
365
|
#
|
366
366
|
# @param name [String]
|
367
367
|
# Required. The name of the entity type.
|
368
|
-
# Format:
|
368
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
369
369
|
# @param language_code [String]
|
370
370
|
# Optional. The language to retrieve entity synonyms for. If not specified,
|
371
371
|
# the agent's default language is used.
|
@@ -404,13 +404,13 @@ module Google
|
|
404
404
|
#
|
405
405
|
# @param parent [String]
|
406
406
|
# Required. The agent to create a entity type for.
|
407
|
-
# Format:
|
407
|
+
# Format: `projects/<Project ID>/agent`.
|
408
408
|
# @param entity_type [Google::Cloud::Dialogflow::V2::EntityType | Hash]
|
409
409
|
# Required. The entity type to create.
|
410
410
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::EntityType`
|
411
411
|
# can also be provided.
|
412
412
|
# @param language_code [String]
|
413
|
-
# Optional. The language of entity synonyms defined in
|
413
|
+
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
414
414
|
# specified, the agent's default language is used.
|
415
415
|
# [More than a dozen
|
416
416
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
@@ -429,7 +429,7 @@ module Google
|
|
429
429
|
# entity_types_client = Google::Cloud::Dialogflow::EntityTypes.new(version: :v2)
|
430
430
|
# formatted_parent = Google::Cloud::Dialogflow::V2::EntityTypesClient.project_agent_path("[PROJECT]")
|
431
431
|
#
|
432
|
-
# # TODO: Initialize
|
432
|
+
# # TODO: Initialize `entity_type`:
|
433
433
|
# entity_type = {}
|
434
434
|
# response = entity_types_client.create_entity_type(formatted_parent, entity_type)
|
435
435
|
|
@@ -452,11 +452,11 @@ module Google
|
|
452
452
|
#
|
453
453
|
# @param entity_type [Google::Cloud::Dialogflow::V2::EntityType | Hash]
|
454
454
|
# Required. The entity type to update.
|
455
|
-
# Format:
|
455
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
456
456
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::EntityType`
|
457
457
|
# can also be provided.
|
458
458
|
# @param language_code [String]
|
459
|
-
# Optional. The language of entity synonyms defined in
|
459
|
+
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
460
460
|
# specified, the agent's default language is used.
|
461
461
|
# [More than a dozen
|
462
462
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
@@ -478,7 +478,7 @@ module Google
|
|
478
478
|
#
|
479
479
|
# entity_types_client = Google::Cloud::Dialogflow::EntityTypes.new(version: :v2)
|
480
480
|
#
|
481
|
-
# # TODO: Initialize
|
481
|
+
# # TODO: Initialize `entity_type`:
|
482
482
|
# entity_type = {}
|
483
483
|
# response = entity_types_client.update_entity_type(entity_type)
|
484
484
|
|
@@ -501,7 +501,7 @@ module Google
|
|
501
501
|
#
|
502
502
|
# @param name [String]
|
503
503
|
# Required. The name of the entity type to delete.
|
504
|
-
# Format:
|
504
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
505
505
|
# @param options [Google::Gax::CallOptions]
|
506
506
|
# Overrides the default settings for this call, e.g, timeout,
|
507
507
|
# retries, etc.
|
@@ -535,7 +535,7 @@ module Google
|
|
535
535
|
#
|
536
536
|
# @param parent [String]
|
537
537
|
# Required. The name of the agent to update or create entity types in.
|
538
|
-
# Format:
|
538
|
+
# Format: `projects/<Project ID>/agent`.
|
539
539
|
# @param entity_type_batch_uri [String]
|
540
540
|
# The URI to a Google Cloud Storage file containing entity types to update
|
541
541
|
# or create. The file format can either be a serialized proto (of
|
@@ -546,7 +546,7 @@ module Google
|
|
546
546
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::EntityTypeBatch`
|
547
547
|
# can also be provided.
|
548
548
|
# @param language_code [String]
|
549
|
-
# Optional. The language of entity synonyms defined in
|
549
|
+
# Optional. The language of entity synonyms defined in `entity_types`. If not
|
550
550
|
# specified, the agent's default language is used.
|
551
551
|
# [More than a dozen
|
552
552
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
@@ -626,10 +626,10 @@ module Google
|
|
626
626
|
#
|
627
627
|
# @param parent [String]
|
628
628
|
# Required. The name of the agent to delete all entities types for. Format:
|
629
|
-
#
|
629
|
+
# `projects/<Project ID>/agent`.
|
630
630
|
# @param entity_type_names [Array<String>]
|
631
631
|
# Required. The names entity types to delete. All names must point to the
|
632
|
-
# same agent as
|
632
|
+
# same agent as `parent`.
|
633
633
|
# @param options [Google::Gax::CallOptions]
|
634
634
|
# Overrides the default settings for this call, e.g, timeout,
|
635
635
|
# retries, etc.
|
@@ -641,7 +641,7 @@ module Google
|
|
641
641
|
# entity_types_client = Google::Cloud::Dialogflow::EntityTypes.new(version: :v2)
|
642
642
|
# formatted_parent = Google::Cloud::Dialogflow::V2::EntityTypesClient.project_agent_path("[PROJECT]")
|
643
643
|
#
|
644
|
-
# # TODO: Initialize
|
644
|
+
# # TODO: Initialize `entity_type_names`:
|
645
645
|
# entity_type_names = []
|
646
646
|
#
|
647
647
|
# # Register a callback during the method call.
|
@@ -698,13 +698,13 @@ module Google
|
|
698
698
|
#
|
699
699
|
# @param parent [String]
|
700
700
|
# Required. The name of the entity type to create entities in. Format:
|
701
|
-
#
|
701
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
702
702
|
# @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity | Hash>]
|
703
703
|
# Required. The collection of entities to create.
|
704
704
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::EntityType::Entity`
|
705
705
|
# can also be provided.
|
706
706
|
# @param language_code [String]
|
707
|
-
# Optional. The language of entity synonyms defined in
|
707
|
+
# Optional. The language of entity synonyms defined in `entities`. If not
|
708
708
|
# specified, the agent's default language is used.
|
709
709
|
# [More than a dozen
|
710
710
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
@@ -720,7 +720,7 @@ module Google
|
|
720
720
|
# entity_types_client = Google::Cloud::Dialogflow::EntityTypes.new(version: :v2)
|
721
721
|
# formatted_parent = Google::Cloud::Dialogflow::V2::EntityTypesClient.entity_type_path("[PROJECT]", "[ENTITY_TYPE]")
|
722
722
|
#
|
723
|
-
# # TODO: Initialize
|
723
|
+
# # TODO: Initialize `entities`:
|
724
724
|
# entities = []
|
725
725
|
#
|
726
726
|
# # Register a callback during the method call.
|
@@ -780,13 +780,13 @@ module Google
|
|
780
780
|
#
|
781
781
|
# @param parent [String]
|
782
782
|
# Required. The name of the entity type to update the entities in. Format:
|
783
|
-
#
|
783
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
784
784
|
# @param entities [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity | Hash>]
|
785
785
|
# Required. The collection of new entities to replace the existing entities.
|
786
786
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::EntityType::Entity`
|
787
787
|
# can also be provided.
|
788
788
|
# @param language_code [String]
|
789
|
-
# Optional. The language of entity synonyms defined in
|
789
|
+
# Optional. The language of entity synonyms defined in `entities`. If not
|
790
790
|
# specified, the agent's default language is used.
|
791
791
|
# [More than a dozen
|
792
792
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
@@ -806,7 +806,7 @@ module Google
|
|
806
806
|
# entity_types_client = Google::Cloud::Dialogflow::EntityTypes.new(version: :v2)
|
807
807
|
# formatted_parent = Google::Cloud::Dialogflow::V2::EntityTypesClient.entity_type_path("[PROJECT]", "[ENTITY_TYPE]")
|
808
808
|
#
|
809
|
-
# # TODO: Initialize
|
809
|
+
# # TODO: Initialize `entities`:
|
810
810
|
# entities = []
|
811
811
|
#
|
812
812
|
# # Register a callback during the method call.
|
@@ -867,13 +867,13 @@ module Google
|
|
867
867
|
#
|
868
868
|
# @param parent [String]
|
869
869
|
# Required. The name of the entity type to delete entries for. Format:
|
870
|
-
#
|
870
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
871
871
|
# @param entity_values [Array<String>]
|
872
|
-
# Required. The canonical
|
872
|
+
# Required. The canonical `values` of the entities to delete. Note that
|
873
873
|
# these are not fully-qualified names, i.e. they don't start with
|
874
|
-
#
|
874
|
+
# `projects/<Project ID>`.
|
875
875
|
# @param language_code [String]
|
876
|
-
# Optional. The language of entity synonyms defined in
|
876
|
+
# Optional. The language of entity synonyms defined in `entities`. If not
|
877
877
|
# specified, the agent's default language is used.
|
878
878
|
# [More than a dozen
|
879
879
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
@@ -889,7 +889,7 @@ module Google
|
|
889
889
|
# entity_types_client = Google::Cloud::Dialogflow::EntityTypes.new(version: :v2)
|
890
890
|
# formatted_parent = Google::Cloud::Dialogflow::V2::EntityTypesClient.entity_type_path("[PROJECT]", "[ENTITY_TYPE]")
|
891
891
|
#
|
892
|
-
# # TODO: Initialize
|
892
|
+
# # TODO: Initialize `entity_values`:
|
893
893
|
# entity_values = []
|
894
894
|
#
|
895
895
|
# # Register a callback during the method call.
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# {Google::Cloud::Dialogflow::V2::Sessions::StreamingDetectIntent StreamingDetectIntent}) method, the
|
41
41
|
# Dialogflow API analyzes the input and searches
|
42
42
|
# for a matching intent. If no match is found, the Dialogflow API returns a
|
43
|
-
# fallback intent (
|
43
|
+
# fallback intent (`is_fallback` = true).
|
44
44
|
#
|
45
45
|
# You can provide additional information for the Dialogflow API to use to
|
46
46
|
# match user input to an intent by adding the following to your intent.
|
@@ -308,7 +308,7 @@ module Google
|
|
308
308
|
#
|
309
309
|
# @param parent [String]
|
310
310
|
# Required. The agent to list all intents from.
|
311
|
-
# Format:
|
311
|
+
# Format: `projects/<Project ID>/agent`.
|
312
312
|
# @param language_code [String]
|
313
313
|
# Optional. The language to list training phrases, parameters and rich
|
314
314
|
# messages for. If not specified, the agent's default language is used.
|
@@ -375,7 +375,7 @@ module Google
|
|
375
375
|
#
|
376
376
|
# @param name [String]
|
377
377
|
# Required. The name of the intent.
|
378
|
-
# Format:
|
378
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
379
379
|
# @param language_code [String]
|
380
380
|
# Optional. The language to retrieve training phrases, parameters and rich
|
381
381
|
# messages for. If not specified, the agent's default language is used.
|
@@ -418,14 +418,14 @@ module Google
|
|
418
418
|
#
|
419
419
|
# @param parent [String]
|
420
420
|
# Required. The agent to create a intent for.
|
421
|
-
# Format:
|
421
|
+
# Format: `projects/<Project ID>/agent`.
|
422
422
|
# @param intent [Google::Cloud::Dialogflow::V2::Intent | Hash]
|
423
423
|
# Required. The intent to create.
|
424
424
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::Intent`
|
425
425
|
# can also be provided.
|
426
426
|
# @param language_code [String]
|
427
427
|
# Optional. The language of training phrases, parameters and rich messages
|
428
|
-
# defined in
|
428
|
+
# defined in `intent`. If not specified, the agent's default language is
|
429
429
|
# used. [More than a dozen
|
430
430
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
431
431
|
# Note: languages must be enabled in the agent, before they can be used.
|
@@ -445,7 +445,7 @@ module Google
|
|
445
445
|
# intents_client = Google::Cloud::Dialogflow::Intents.new(version: :v2)
|
446
446
|
# formatted_parent = Google::Cloud::Dialogflow::V2::IntentsClient.project_agent_path("[PROJECT]")
|
447
447
|
#
|
448
|
-
# # TODO: Initialize
|
448
|
+
# # TODO: Initialize `intent`:
|
449
449
|
# intent = {}
|
450
450
|
# response = intents_client.create_intent(formatted_parent, intent)
|
451
451
|
|
@@ -470,12 +470,12 @@ module Google
|
|
470
470
|
#
|
471
471
|
# @param intent [Google::Cloud::Dialogflow::V2::Intent | Hash]
|
472
472
|
# Required. The intent to update.
|
473
|
-
# Format:
|
473
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
474
474
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::Intent`
|
475
475
|
# can also be provided.
|
476
476
|
# @param language_code [String]
|
477
477
|
# Optional. The language of training phrases, parameters and rich messages
|
478
|
-
# defined in
|
478
|
+
# defined in `intent`. If not specified, the agent's default language is
|
479
479
|
# used. [More than a dozen
|
480
480
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
481
481
|
# Note: languages must be enabled in the agent, before they can be used.
|
@@ -498,10 +498,10 @@ module Google
|
|
498
498
|
#
|
499
499
|
# intents_client = Google::Cloud::Dialogflow::Intents.new(version: :v2)
|
500
500
|
#
|
501
|
-
# # TODO: Initialize
|
501
|
+
# # TODO: Initialize `intent`:
|
502
502
|
# intent = {}
|
503
503
|
#
|
504
|
-
# # TODO: Initialize
|
504
|
+
# # TODO: Initialize `language_code`:
|
505
505
|
# language_code = ''
|
506
506
|
# response = intents_client.update_intent(intent, language_code)
|
507
507
|
|
@@ -526,7 +526,7 @@ module Google
|
|
526
526
|
#
|
527
527
|
# @param name [String]
|
528
528
|
# Required. The name of the intent to delete.
|
529
|
-
# Format:
|
529
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
530
530
|
# @param options [Google::Gax::CallOptions]
|
531
531
|
# Overrides the default settings for this call, e.g, timeout,
|
532
532
|
# retries, etc.
|
@@ -559,10 +559,10 @@ module Google
|
|
559
559
|
#
|
560
560
|
# @param parent [String]
|
561
561
|
# Required. The name of the agent to update or create intents in.
|
562
|
-
# Format:
|
562
|
+
# Format: `projects/<Project ID>/agent`.
|
563
563
|
# @param language_code [String]
|
564
564
|
# Optional. The language of training phrases, parameters and rich messages
|
565
|
-
# defined in
|
565
|
+
# defined in `intents`. If not specified, the agent's default language is
|
566
566
|
# used. [More than a dozen
|
567
567
|
# languages](https://dialogflow.com/docs/reference/language) are supported.
|
568
568
|
# Note: languages must be enabled in the agent, before they can be used.
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
# intents_client = Google::Cloud::Dialogflow::Intents.new(version: :v2)
|
592
592
|
# formatted_parent = Google::Cloud::Dialogflow::V2::IntentsClient.project_agent_path("[PROJECT]")
|
593
593
|
#
|
594
|
-
# # TODO: Initialize
|
594
|
+
# # TODO: Initialize `language_code`:
|
595
595
|
# language_code = ''
|
596
596
|
#
|
597
597
|
# # Register a callback during the method call.
|
@@ -655,9 +655,9 @@ module Google
|
|
655
655
|
#
|
656
656
|
# @param parent [String]
|
657
657
|
# Required. The name of the agent to delete all entities types for. Format:
|
658
|
-
#
|
658
|
+
# `projects/<Project ID>/agent`.
|
659
659
|
# @param intents [Array<Google::Cloud::Dialogflow::V2::Intent | Hash>]
|
660
|
-
# Required. The collection of intents to delete. Only intent
|
660
|
+
# Required. The collection of intents to delete. Only intent `name` must be
|
661
661
|
# filled in.
|
662
662
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::Intent`
|
663
663
|
# can also be provided.
|
@@ -672,7 +672,7 @@ module Google
|
|
672
672
|
# intents_client = Google::Cloud::Dialogflow::Intents.new(version: :v2)
|
673
673
|
# formatted_parent = Google::Cloud::Dialogflow::V2::IntentsClient.project_agent_path("[PROJECT]")
|
674
674
|
#
|
675
|
-
# # TODO: Initialize
|
675
|
+
# # TODO: Initialize `intents`:
|
676
676
|
# intents = []
|
677
677
|
#
|
678
678
|
# # Register a callback during the method call.
|
@@ -250,7 +250,7 @@ module Google
|
|
250
250
|
#
|
251
251
|
# @param parent [String]
|
252
252
|
# Required. The session to list all session entity types from.
|
253
|
-
# Format:
|
253
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
254
254
|
# @param page_size [Integer]
|
255
255
|
# The maximum number of resources contained in the underlying API
|
256
256
|
# response. If page streaming is performed per-resource, this
|
@@ -305,8 +305,8 @@ module Google
|
|
305
305
|
#
|
306
306
|
# @param name [String]
|
307
307
|
# Required. The name of the session entity type. Format:
|
308
|
-
#
|
309
|
-
# Display Name
|
308
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
309
|
+
# Display Name>`.
|
310
310
|
# @param options [Google::Gax::CallOptions]
|
311
311
|
# Overrides the default settings for this call, e.g, timeout,
|
312
312
|
# retries, etc.
|
@@ -337,7 +337,7 @@ module Google
|
|
337
337
|
#
|
338
338
|
# @param parent [String]
|
339
339
|
# Required. The session to create a session entity type for.
|
340
|
-
# Format:
|
340
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
341
341
|
# @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType | Hash]
|
342
342
|
# Required. The session entity type to create.
|
343
343
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::SessionEntityType`
|
@@ -356,7 +356,7 @@ module Google
|
|
356
356
|
# session_entity_types_client = Google::Cloud::Dialogflow::SessionEntityTypes.new(version: :v2)
|
357
357
|
# formatted_parent = Google::Cloud::Dialogflow::V2::SessionEntityTypesClient.session_path("[PROJECT]", "[SESSION]")
|
358
358
|
#
|
359
|
-
# # TODO: Initialize
|
359
|
+
# # TODO: Initialize `session_entity_type`:
|
360
360
|
# session_entity_type = {}
|
361
361
|
# response = session_entity_types_client.create_session_entity_type(formatted_parent, session_entity_type)
|
362
362
|
|
@@ -377,8 +377,8 @@ module Google
|
|
377
377
|
#
|
378
378
|
# @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType | Hash]
|
379
379
|
# Required. The entity type to update. Format:
|
380
|
-
#
|
381
|
-
# Display Name
|
380
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
381
|
+
# Display Name>`.
|
382
382
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::SessionEntityType`
|
383
383
|
# can also be provided.
|
384
384
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
@@ -398,7 +398,7 @@ module Google
|
|
398
398
|
#
|
399
399
|
# session_entity_types_client = Google::Cloud::Dialogflow::SessionEntityTypes.new(version: :v2)
|
400
400
|
#
|
401
|
-
# # TODO: Initialize
|
401
|
+
# # TODO: Initialize `session_entity_type`:
|
402
402
|
# session_entity_type = {}
|
403
403
|
# response = session_entity_types_client.update_session_entity_type(session_entity_type)
|
404
404
|
|
@@ -419,8 +419,8 @@ module Google
|
|
419
419
|
#
|
420
420
|
# @param name [String]
|
421
421
|
# Required. The name of the entity type to delete. Format:
|
422
|
-
#
|
423
|
-
# Display Name
|
422
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
423
|
+
# Display Name>`.
|
424
424
|
# @param options [Google::Gax::CallOptions]
|
425
425
|
# Overrides the default settings for this call, e.g, timeout,
|
426
426
|
# retries, etc.
|