google-cloud-dialogflow-v2 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +24 -0
- data/lib/google-cloud-dialogflow-v2.rb +1 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google/cloud/dialogflow/v2.rb +24 -0
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +122 -0
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +110 -0
- data/lib/google/cloud/dialogflow/v2/agents.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +1047 -0
- data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +559 -0
- data/lib/google/cloud/dialogflow/v2/agents/paths.rb +59 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +97 -0
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +64 -0
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +74 -0
- data/lib/google/cloud/dialogflow/v2/contexts.rb +20 -0
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +756 -0
- data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +50 -0
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +126 -0
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +104 -0
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +1150 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +559 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +62 -0
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +368 -0
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/v2/intents.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +893 -0
- data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +559 -0
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +81 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +66 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +20 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +727 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +142 -0
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/v2/sessions.rb +20 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +472 -0
- data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +110 -0
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +37 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +28 -0
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +47 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +287 -0
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +363 -0
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +144 -0
- data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +354 -0
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +1070 -0
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +541 -0
- data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +155 -0
- data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +81 -0
- data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +153 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +137 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +237 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +225 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2020 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Dialogflow
|
|
23
|
+
module V2
|
|
24
|
+
# Represents a context.
|
|
25
|
+
# @!attribute [rw] name
|
|
26
|
+
# @return [String]
|
|
27
|
+
# Required. The unique identifier of the context. Format:
|
|
28
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
|
29
|
+
#
|
|
30
|
+
# The `Context ID` is always converted to lowercase, may only contain
|
|
31
|
+
# characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
|
|
32
|
+
#
|
|
33
|
+
# The following context names are reserved for internal use by Dialogflow.
|
|
34
|
+
# You should not use these contexts or create contexts with these names:
|
|
35
|
+
#
|
|
36
|
+
# * `__system_counters__`
|
|
37
|
+
# * `*_id_dialog_context`
|
|
38
|
+
# * `*_dialog_params_size`
|
|
39
|
+
# @!attribute [rw] lifespan_count
|
|
40
|
+
# @return [Integer]
|
|
41
|
+
# Optional. The number of conversational query requests after which the
|
|
42
|
+
# context expires. If set to `0` (the default) the context expires
|
|
43
|
+
# immediately. Contexts expire automatically after 20 minutes if there
|
|
44
|
+
# are no matching queries.
|
|
45
|
+
# @!attribute [rw] parameters
|
|
46
|
+
# @return [Google::Protobuf::Struct]
|
|
47
|
+
# Optional. The collection of parameters associated with this context.
|
|
48
|
+
# Refer to [this
|
|
49
|
+
# doc](https://cloud.google.com/dialogflow/docs/intents-actions-parameters)
|
|
50
|
+
# for syntax.
|
|
51
|
+
class Context
|
|
52
|
+
include Google::Protobuf::MessageExts
|
|
53
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#list_contexts Contexts.ListContexts}.
|
|
57
|
+
# @!attribute [rw] parent
|
|
58
|
+
# @return [String]
|
|
59
|
+
# Required. The session to list all contexts from.
|
|
60
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
|
61
|
+
# @!attribute [rw] page_size
|
|
62
|
+
# @return [Integer]
|
|
63
|
+
# Optional. The maximum number of items to return in a single page. By
|
|
64
|
+
# default 100 and at most 1000.
|
|
65
|
+
# @!attribute [rw] page_token
|
|
66
|
+
# @return [String]
|
|
67
|
+
# Optional. The next_page_token value returned from a previous list request.
|
|
68
|
+
class ListContextsRequest
|
|
69
|
+
include Google::Protobuf::MessageExts
|
|
70
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# The response message for {Google::Cloud::Dialogflow::V2::Contexts::Client#list_contexts Contexts.ListContexts}.
|
|
74
|
+
# @!attribute [rw] contexts
|
|
75
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::Context>]
|
|
76
|
+
# The list of contexts. There will be a maximum number of items
|
|
77
|
+
# returned based on the page_size field in the request.
|
|
78
|
+
# @!attribute [rw] next_page_token
|
|
79
|
+
# @return [String]
|
|
80
|
+
# Token to retrieve the next page of results, or empty if there are no
|
|
81
|
+
# more results in the list.
|
|
82
|
+
class ListContextsResponse
|
|
83
|
+
include Google::Protobuf::MessageExts
|
|
84
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#get_context Contexts.GetContext}.
|
|
88
|
+
# @!attribute [rw] name
|
|
89
|
+
# @return [String]
|
|
90
|
+
# Required. The name of the context. Format:
|
|
91
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
|
92
|
+
class GetContextRequest
|
|
93
|
+
include Google::Protobuf::MessageExts
|
|
94
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#create_context Contexts.CreateContext}.
|
|
98
|
+
# @!attribute [rw] parent
|
|
99
|
+
# @return [String]
|
|
100
|
+
# Required. The session to create a context for.
|
|
101
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
|
102
|
+
# @!attribute [rw] context
|
|
103
|
+
# @return [Google::Cloud::Dialogflow::V2::Context]
|
|
104
|
+
# Required. The context to create.
|
|
105
|
+
class CreateContextRequest
|
|
106
|
+
include Google::Protobuf::MessageExts
|
|
107
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#update_context Contexts.UpdateContext}.
|
|
111
|
+
# @!attribute [rw] context
|
|
112
|
+
# @return [Google::Cloud::Dialogflow::V2::Context]
|
|
113
|
+
# Required. The context to update.
|
|
114
|
+
# @!attribute [rw] update_mask
|
|
115
|
+
# @return [Google::Protobuf::FieldMask]
|
|
116
|
+
# Optional. The mask to control which fields get updated.
|
|
117
|
+
class UpdateContextRequest
|
|
118
|
+
include Google::Protobuf::MessageExts
|
|
119
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#delete_context Contexts.DeleteContext}.
|
|
123
|
+
# @!attribute [rw] name
|
|
124
|
+
# @return [String]
|
|
125
|
+
# Required. The name of the context to delete. Format:
|
|
126
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
|
127
|
+
class DeleteContextRequest
|
|
128
|
+
include Google::Protobuf::MessageExts
|
|
129
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#delete_all_contexts Contexts.DeleteAllContexts}.
|
|
133
|
+
# @!attribute [rw] parent
|
|
134
|
+
# @return [String]
|
|
135
|
+
# Required. The name of the session to delete all contexts from. Format:
|
|
136
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>`.
|
|
137
|
+
class DeleteAllContextsRequest
|
|
138
|
+
include Google::Protobuf::MessageExts
|
|
139
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2020 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Dialogflow
|
|
23
|
+
module V2
|
|
24
|
+
# Represents an entity type.
|
|
25
|
+
# Entity types serve as a tool for extracting parameter values from natural
|
|
26
|
+
# language queries.
|
|
27
|
+
# @!attribute [rw] name
|
|
28
|
+
# @return [String]
|
|
29
|
+
# The unique identifier of the entity type.
|
|
30
|
+
# Required for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#update_entity_type EntityTypes.UpdateEntityType} and
|
|
31
|
+
# {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes} methods.
|
|
32
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
|
33
|
+
# @!attribute [rw] display_name
|
|
34
|
+
# @return [String]
|
|
35
|
+
# Required. The name of the entity type.
|
|
36
|
+
# @!attribute [rw] kind
|
|
37
|
+
# @return [Google::Cloud::Dialogflow::V2::EntityType::Kind]
|
|
38
|
+
# Required. Indicates the kind of entity type.
|
|
39
|
+
# @!attribute [rw] auto_expansion_mode
|
|
40
|
+
# @return [Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode]
|
|
41
|
+
# Optional. Indicates whether the entity type can be automatically
|
|
42
|
+
# expanded.
|
|
43
|
+
# @!attribute [rw] entities
|
|
44
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
|
45
|
+
# Optional. The collection of entity entries associated with the entity type.
|
|
46
|
+
# @!attribute [rw] enable_fuzzy_extraction
|
|
47
|
+
# @return [Boolean]
|
|
48
|
+
# Optional. Enables fuzzy entity extraction during classification.
|
|
49
|
+
class EntityType
|
|
50
|
+
include Google::Protobuf::MessageExts
|
|
51
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
52
|
+
|
|
53
|
+
# An **entity entry** for an associated entity type.
|
|
54
|
+
# @!attribute [rw] value
|
|
55
|
+
# @return [String]
|
|
56
|
+
# Required. The primary value associated with this entity entry.
|
|
57
|
+
# For example, if the entity type is *vegetable*, the value could be
|
|
58
|
+
# *scallions*.
|
|
59
|
+
#
|
|
60
|
+
# For `KIND_MAP` entity types:
|
|
61
|
+
#
|
|
62
|
+
# * A reference value to be used in place of synonyms.
|
|
63
|
+
#
|
|
64
|
+
# For `KIND_LIST` entity types:
|
|
65
|
+
#
|
|
66
|
+
# * A string that can contain references to other entity types (with or
|
|
67
|
+
# without aliases).
|
|
68
|
+
# @!attribute [rw] synonyms
|
|
69
|
+
# @return [Array<String>]
|
|
70
|
+
# Required. A collection of value synonyms. For example, if the entity type
|
|
71
|
+
# is *vegetable*, and `value` is *scallions*, a synonym could be *green
|
|
72
|
+
# onions*.
|
|
73
|
+
#
|
|
74
|
+
# For `KIND_LIST` entity types:
|
|
75
|
+
#
|
|
76
|
+
# * This collection must contain exactly one synonym equal to `value`.
|
|
77
|
+
class Entity
|
|
78
|
+
include Google::Protobuf::MessageExts
|
|
79
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Represents kinds of entities.
|
|
83
|
+
module Kind
|
|
84
|
+
# Not specified. This value should be never used.
|
|
85
|
+
KIND_UNSPECIFIED = 0
|
|
86
|
+
|
|
87
|
+
# Map entity types allow mapping of a group of synonyms to a reference
|
|
88
|
+
# value.
|
|
89
|
+
KIND_MAP = 1
|
|
90
|
+
|
|
91
|
+
# List entity types contain a set of entries that do not map to reference
|
|
92
|
+
# values. However, list entity types can contain references to other entity
|
|
93
|
+
# types (with or without aliases).
|
|
94
|
+
KIND_LIST = 2
|
|
95
|
+
|
|
96
|
+
# Regexp entity types allow to specify regular expressions in entries
|
|
97
|
+
# values.
|
|
98
|
+
KIND_REGEXP = 3
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Represents different entity type expansion modes. Automated expansion
|
|
102
|
+
# allows an agent to recognize values that have not been explicitly listed in
|
|
103
|
+
# the entity (for example, new kinds of shopping list items).
|
|
104
|
+
module AutoExpansionMode
|
|
105
|
+
# Auto expansion disabled for the entity.
|
|
106
|
+
AUTO_EXPANSION_MODE_UNSPECIFIED = 0
|
|
107
|
+
|
|
108
|
+
# Allows an agent to recognize values that have not been explicitly
|
|
109
|
+
# listed in the entity.
|
|
110
|
+
AUTO_EXPANSION_MODE_DEFAULT = 1
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#list_entity_types EntityTypes.ListEntityTypes}.
|
|
115
|
+
# @!attribute [rw] parent
|
|
116
|
+
# @return [String]
|
|
117
|
+
# Required. The agent to list all entity types from.
|
|
118
|
+
# Format: `projects/<Project ID>/agent`.
|
|
119
|
+
# @!attribute [rw] language_code
|
|
120
|
+
# @return [String]
|
|
121
|
+
# Optional. The language to list entity synonyms for. If not specified,
|
|
122
|
+
# the agent's default language is used.
|
|
123
|
+
# [Many
|
|
124
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
125
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
126
|
+
# be used.
|
|
127
|
+
# @!attribute [rw] page_size
|
|
128
|
+
# @return [Integer]
|
|
129
|
+
# Optional. The maximum number of items to return in a single page. By
|
|
130
|
+
# default 100 and at most 1000.
|
|
131
|
+
# @!attribute [rw] page_token
|
|
132
|
+
# @return [String]
|
|
133
|
+
# Optional. The next_page_token value returned from a previous list request.
|
|
134
|
+
class ListEntityTypesRequest
|
|
135
|
+
include Google::Protobuf::MessageExts
|
|
136
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# The response message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#list_entity_types EntityTypes.ListEntityTypes}.
|
|
140
|
+
# @!attribute [rw] entity_types
|
|
141
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType>]
|
|
142
|
+
# The list of agent entity types. There will be a maximum number of items
|
|
143
|
+
# returned based on the page_size field in the request.
|
|
144
|
+
# @!attribute [rw] next_page_token
|
|
145
|
+
# @return [String]
|
|
146
|
+
# Token to retrieve the next page of results, or empty if there are no
|
|
147
|
+
# more results in the list.
|
|
148
|
+
class ListEntityTypesResponse
|
|
149
|
+
include Google::Protobuf::MessageExts
|
|
150
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType}.
|
|
154
|
+
# @!attribute [rw] name
|
|
155
|
+
# @return [String]
|
|
156
|
+
# Required. The name of the entity type.
|
|
157
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
|
158
|
+
# @!attribute [rw] language_code
|
|
159
|
+
# @return [String]
|
|
160
|
+
# Optional. The language to retrieve entity synonyms for. If not specified,
|
|
161
|
+
# the agent's default language is used.
|
|
162
|
+
# [Many
|
|
163
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
164
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
165
|
+
# be used.
|
|
166
|
+
class GetEntityTypeRequest
|
|
167
|
+
include Google::Protobuf::MessageExts
|
|
168
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#create_entity_type EntityTypes.CreateEntityType}.
|
|
172
|
+
# @!attribute [rw] parent
|
|
173
|
+
# @return [String]
|
|
174
|
+
# Required. The agent to create a entity type for.
|
|
175
|
+
# Format: `projects/<Project ID>/agent`.
|
|
176
|
+
# @!attribute [rw] entity_type
|
|
177
|
+
# @return [Google::Cloud::Dialogflow::V2::EntityType]
|
|
178
|
+
# Required. The entity type to create.
|
|
179
|
+
# @!attribute [rw] language_code
|
|
180
|
+
# @return [String]
|
|
181
|
+
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
|
182
|
+
# specified, the agent's default language is used.
|
|
183
|
+
# [Many
|
|
184
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
185
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
186
|
+
# be used.
|
|
187
|
+
class CreateEntityTypeRequest
|
|
188
|
+
include Google::Protobuf::MessageExts
|
|
189
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#update_entity_type EntityTypes.UpdateEntityType}.
|
|
193
|
+
# @!attribute [rw] entity_type
|
|
194
|
+
# @return [Google::Cloud::Dialogflow::V2::EntityType]
|
|
195
|
+
# Required. The entity type to update.
|
|
196
|
+
# @!attribute [rw] language_code
|
|
197
|
+
# @return [String]
|
|
198
|
+
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
|
199
|
+
# specified, the agent's default language is used.
|
|
200
|
+
# [Many
|
|
201
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
202
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
203
|
+
# be used.
|
|
204
|
+
# @!attribute [rw] update_mask
|
|
205
|
+
# @return [Google::Protobuf::FieldMask]
|
|
206
|
+
# Optional. The mask to control which fields get updated.
|
|
207
|
+
class UpdateEntityTypeRequest
|
|
208
|
+
include Google::Protobuf::MessageExts
|
|
209
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#delete_entity_type EntityTypes.DeleteEntityType}.
|
|
213
|
+
# @!attribute [rw] name
|
|
214
|
+
# @return [String]
|
|
215
|
+
# Required. The name of the entity type to delete.
|
|
216
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
|
217
|
+
class DeleteEntityTypeRequest
|
|
218
|
+
include Google::Protobuf::MessageExts
|
|
219
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes}.
|
|
223
|
+
# @!attribute [rw] parent
|
|
224
|
+
# @return [String]
|
|
225
|
+
# Required. The name of the agent to update or create entity types in.
|
|
226
|
+
# Format: `projects/<Project ID>/agent`.
|
|
227
|
+
# @!attribute [rw] entity_type_batch_uri
|
|
228
|
+
# @return [String]
|
|
229
|
+
# The URI to a Google Cloud Storage file containing entity types to update
|
|
230
|
+
# or create. The file format can either be a serialized proto (of
|
|
231
|
+
# EntityBatch type) or a JSON object. Note: The URI must start with
|
|
232
|
+
# "gs://".
|
|
233
|
+
# @!attribute [rw] entity_type_batch_inline
|
|
234
|
+
# @return [Google::Cloud::Dialogflow::V2::EntityTypeBatch]
|
|
235
|
+
# The collection of entity types to update or create.
|
|
236
|
+
# @!attribute [rw] language_code
|
|
237
|
+
# @return [String]
|
|
238
|
+
# Optional. The language of entity synonyms defined in `entity_types`. If not
|
|
239
|
+
# specified, the agent's default language is used.
|
|
240
|
+
# [Many
|
|
241
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
242
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
243
|
+
# be used.
|
|
244
|
+
# @!attribute [rw] update_mask
|
|
245
|
+
# @return [Google::Protobuf::FieldMask]
|
|
246
|
+
# Optional. The mask to control which fields get updated.
|
|
247
|
+
class BatchUpdateEntityTypesRequest
|
|
248
|
+
include Google::Protobuf::MessageExts
|
|
249
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# The response message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes}.
|
|
253
|
+
# @!attribute [rw] entity_types
|
|
254
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType>]
|
|
255
|
+
# The collection of updated or created entity types.
|
|
256
|
+
class BatchUpdateEntityTypesResponse
|
|
257
|
+
include Google::Protobuf::MessageExts
|
|
258
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_delete_entity_types EntityTypes.BatchDeleteEntityTypes}.
|
|
262
|
+
# @!attribute [rw] parent
|
|
263
|
+
# @return [String]
|
|
264
|
+
# Required. The name of the agent to delete all entities types for. Format:
|
|
265
|
+
# `projects/<Project ID>/agent`.
|
|
266
|
+
# @!attribute [rw] entity_type_names
|
|
267
|
+
# @return [Array<String>]
|
|
268
|
+
# Required. The names entity types to delete. All names must point to the
|
|
269
|
+
# same agent as `parent`.
|
|
270
|
+
class BatchDeleteEntityTypesRequest
|
|
271
|
+
include Google::Protobuf::MessageExts
|
|
272
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_create_entities EntityTypes.BatchCreateEntities}.
|
|
276
|
+
# @!attribute [rw] parent
|
|
277
|
+
# @return [String]
|
|
278
|
+
# Required. The name of the entity type to create entities in. Format:
|
|
279
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
|
280
|
+
# @!attribute [rw] entities
|
|
281
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
|
282
|
+
# Required. The entities to create.
|
|
283
|
+
# @!attribute [rw] language_code
|
|
284
|
+
# @return [String]
|
|
285
|
+
# Optional. The language of entity synonyms defined in `entities`. If not
|
|
286
|
+
# specified, the agent's default language is used.
|
|
287
|
+
# [Many
|
|
288
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
289
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
290
|
+
# be used.
|
|
291
|
+
class BatchCreateEntitiesRequest
|
|
292
|
+
include Google::Protobuf::MessageExts
|
|
293
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entities EntityTypes.BatchUpdateEntities}.
|
|
297
|
+
# @!attribute [rw] parent
|
|
298
|
+
# @return [String]
|
|
299
|
+
# Required. The name of the entity type to update or create entities in.
|
|
300
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
|
301
|
+
# @!attribute [rw] entities
|
|
302
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
|
303
|
+
# Required. The entities to update or create.
|
|
304
|
+
# @!attribute [rw] language_code
|
|
305
|
+
# @return [String]
|
|
306
|
+
# Optional. The language of entity synonyms defined in `entities`. If not
|
|
307
|
+
# specified, the agent's default language is used.
|
|
308
|
+
# [Many
|
|
309
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
310
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
311
|
+
# be used.
|
|
312
|
+
# @!attribute [rw] update_mask
|
|
313
|
+
# @return [Google::Protobuf::FieldMask]
|
|
314
|
+
# Optional. The mask to control which fields get updated.
|
|
315
|
+
class BatchUpdateEntitiesRequest
|
|
316
|
+
include Google::Protobuf::MessageExts
|
|
317
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_delete_entities EntityTypes.BatchDeleteEntities}.
|
|
321
|
+
# @!attribute [rw] parent
|
|
322
|
+
# @return [String]
|
|
323
|
+
# Required. The name of the entity type to delete entries for. Format:
|
|
324
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
|
325
|
+
# @!attribute [rw] entity_values
|
|
326
|
+
# @return [Array<String>]
|
|
327
|
+
# Required. The reference `values` of the entities to delete. Note that
|
|
328
|
+
# these are not fully-qualified names, i.e. they don't start with
|
|
329
|
+
# `projects/<Project ID>`.
|
|
330
|
+
# @!attribute [rw] language_code
|
|
331
|
+
# @return [String]
|
|
332
|
+
# Optional. The language of entity synonyms defined in `entities`. If not
|
|
333
|
+
# specified, the agent's default language is used.
|
|
334
|
+
# [Many
|
|
335
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
|
336
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
|
337
|
+
# be used.
|
|
338
|
+
class BatchDeleteEntitiesRequest
|
|
339
|
+
include Google::Protobuf::MessageExts
|
|
340
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# This message is a wrapper around a collection of entity types.
|
|
344
|
+
# @!attribute [rw] entity_types
|
|
345
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType>]
|
|
346
|
+
# A collection of entity types.
|
|
347
|
+
class EntityTypeBatch
|
|
348
|
+
include Google::Protobuf::MessageExts
|
|
349
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
end
|