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,155 @@
|
|
|
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 session entity type.
|
|
25
|
+
#
|
|
26
|
+
# Extends or replaces a custom entity type at the user session level (we
|
|
27
|
+
# refer to the entity types defined at the agent level as "custom entity
|
|
28
|
+
# types").
|
|
29
|
+
#
|
|
30
|
+
# Note: session entity types apply to all queries, regardless of the language.
|
|
31
|
+
# @!attribute [rw] name
|
|
32
|
+
# @return [String]
|
|
33
|
+
# Required. The unique identifier of this session entity type. Format:
|
|
34
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
35
|
+
# Display Name>`.
|
|
36
|
+
#
|
|
37
|
+
# `<Entity Type Display Name>` must be the display name of an existing entity
|
|
38
|
+
# type in the same agent that will be overridden or supplemented.
|
|
39
|
+
# @!attribute [rw] entity_override_mode
|
|
40
|
+
# @return [Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode]
|
|
41
|
+
# Required. Indicates whether the additional data should override or
|
|
42
|
+
# supplement the custom entity type definition.
|
|
43
|
+
# @!attribute [rw] entities
|
|
44
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
|
45
|
+
# Required. The collection of entities associated with this session entity
|
|
46
|
+
# type.
|
|
47
|
+
class SessionEntityType
|
|
48
|
+
include Google::Protobuf::MessageExts
|
|
49
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
50
|
+
|
|
51
|
+
# The types of modifications for a session entity type.
|
|
52
|
+
module EntityOverrideMode
|
|
53
|
+
# Not specified. This value should be never used.
|
|
54
|
+
ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0
|
|
55
|
+
|
|
56
|
+
# The collection of session entities overrides the collection of entities
|
|
57
|
+
# in the corresponding custom entity type.
|
|
58
|
+
ENTITY_OVERRIDE_MODE_OVERRIDE = 1
|
|
59
|
+
|
|
60
|
+
# The collection of session entities extends the collection of entities in
|
|
61
|
+
# the corresponding custom entity type.
|
|
62
|
+
#
|
|
63
|
+
# Note: Even in this override mode calls to `ListSessionEntityTypes`,
|
|
64
|
+
# `GetSessionEntityType`, `CreateSessionEntityType` and
|
|
65
|
+
# `UpdateSessionEntityType` only return the additional entities added in
|
|
66
|
+
# this session entity type. If you want to get the supplemented list,
|
|
67
|
+
# please call {Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType} on the custom entity type
|
|
68
|
+
# and merge.
|
|
69
|
+
ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
|
|
74
|
+
# @!attribute [rw] parent
|
|
75
|
+
# @return [String]
|
|
76
|
+
# Required. The session to list all session entity types from.
|
|
77
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
|
78
|
+
# @!attribute [rw] page_size
|
|
79
|
+
# @return [Integer]
|
|
80
|
+
# Optional. The maximum number of items to return in a single page. By
|
|
81
|
+
# default 100 and at most 1000.
|
|
82
|
+
# @!attribute [rw] page_token
|
|
83
|
+
# @return [String]
|
|
84
|
+
# Optional. The next_page_token value returned from a previous list request.
|
|
85
|
+
class ListSessionEntityTypesRequest
|
|
86
|
+
include Google::Protobuf::MessageExts
|
|
87
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# The response message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
|
|
91
|
+
# @!attribute [rw] session_entity_types
|
|
92
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::SessionEntityType>]
|
|
93
|
+
# The list of session entity types. There will be a maximum number of items
|
|
94
|
+
# returned based on the page_size field in the request.
|
|
95
|
+
# @!attribute [rw] next_page_token
|
|
96
|
+
# @return [String]
|
|
97
|
+
# Token to retrieve the next page of results, or empty if there are no
|
|
98
|
+
# more results in the list.
|
|
99
|
+
class ListSessionEntityTypesResponse
|
|
100
|
+
include Google::Protobuf::MessageExts
|
|
101
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#get_session_entity_type SessionEntityTypes.GetSessionEntityType}.
|
|
105
|
+
# @!attribute [rw] name
|
|
106
|
+
# @return [String]
|
|
107
|
+
# Required. The name of the session entity type. Format:
|
|
108
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
109
|
+
# Display Name>`.
|
|
110
|
+
class GetSessionEntityTypeRequest
|
|
111
|
+
include Google::Protobuf::MessageExts
|
|
112
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#create_session_entity_type SessionEntityTypes.CreateSessionEntityType}.
|
|
116
|
+
# @!attribute [rw] parent
|
|
117
|
+
# @return [String]
|
|
118
|
+
# Required. The session to create a session entity type for.
|
|
119
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
|
120
|
+
# @!attribute [rw] session_entity_type
|
|
121
|
+
# @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
|
|
122
|
+
# Required. The session entity type to create.
|
|
123
|
+
class CreateSessionEntityTypeRequest
|
|
124
|
+
include Google::Protobuf::MessageExts
|
|
125
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#update_session_entity_type SessionEntityTypes.UpdateSessionEntityType}.
|
|
129
|
+
# @!attribute [rw] session_entity_type
|
|
130
|
+
# @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
|
|
131
|
+
# Required. The entity type to update. Format:
|
|
132
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
133
|
+
# Display Name>`.
|
|
134
|
+
# @!attribute [rw] update_mask
|
|
135
|
+
# @return [Google::Protobuf::FieldMask]
|
|
136
|
+
# Optional. The mask to control which fields get updated.
|
|
137
|
+
class UpdateSessionEntityTypeRequest
|
|
138
|
+
include Google::Protobuf::MessageExts
|
|
139
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#delete_session_entity_type SessionEntityTypes.DeleteSessionEntityType}.
|
|
143
|
+
# @!attribute [rw] name
|
|
144
|
+
# @return [String]
|
|
145
|
+
# Required. The name of the entity type to delete. Format:
|
|
146
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
147
|
+
# Display Name>`.
|
|
148
|
+
class DeleteSessionEntityTypeRequest
|
|
149
|
+
include Google::Protobuf::MessageExts
|
|
150
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
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 single validation error.
|
|
25
|
+
# @!attribute [rw] severity
|
|
26
|
+
# @return [Google::Cloud::Dialogflow::V2::ValidationError::Severity]
|
|
27
|
+
# The severity of the error.
|
|
28
|
+
# @!attribute [rw] entries
|
|
29
|
+
# @return [Array<String>]
|
|
30
|
+
# The names of the entries that the error is associated with.
|
|
31
|
+
# Format:
|
|
32
|
+
#
|
|
33
|
+
# - "projects/<Project ID>/agent", if the error is associated with the entire
|
|
34
|
+
# agent.
|
|
35
|
+
# - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
|
|
36
|
+
# associated with certain intents.
|
|
37
|
+
# - "projects/<Project
|
|
38
|
+
# ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
|
|
39
|
+
# error is associated with certain intent training phrases.
|
|
40
|
+
# - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
|
|
41
|
+
# ID>", if the error is associated with certain intent parameters.
|
|
42
|
+
# - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
|
|
43
|
+
# associated with certain entities.
|
|
44
|
+
# @!attribute [rw] error_message
|
|
45
|
+
# @return [String]
|
|
46
|
+
# The detailed error messsage.
|
|
47
|
+
class ValidationError
|
|
48
|
+
include Google::Protobuf::MessageExts
|
|
49
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
50
|
+
|
|
51
|
+
# Represents a level of severity.
|
|
52
|
+
module Severity
|
|
53
|
+
# Not specified. This value should never be used.
|
|
54
|
+
SEVERITY_UNSPECIFIED = 0
|
|
55
|
+
|
|
56
|
+
# The agent doesn't follow Dialogflow best practicies.
|
|
57
|
+
INFO = 1
|
|
58
|
+
|
|
59
|
+
# The agent may not behave as expected.
|
|
60
|
+
WARNING = 2
|
|
61
|
+
|
|
62
|
+
# The agent may experience partial failures.
|
|
63
|
+
ERROR = 3
|
|
64
|
+
|
|
65
|
+
# The agent may completely fail.
|
|
66
|
+
CRITICAL = 4
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Represents the output of agent validation.
|
|
71
|
+
# @!attribute [rw] validation_errors
|
|
72
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::ValidationError>]
|
|
73
|
+
# Contains all validation errors.
|
|
74
|
+
class ValidationResult
|
|
75
|
+
include Google::Protobuf::MessageExts
|
|
76
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
# The request message for a webhook call.
|
|
25
|
+
# @!attribute [rw] session
|
|
26
|
+
# @return [String]
|
|
27
|
+
# The unique identifier of detectIntent request session.
|
|
28
|
+
# Can be used to identify end-user inside webhook implementation.
|
|
29
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
|
30
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
|
31
|
+
# ID>/sessions/<Session ID>`.
|
|
32
|
+
# @!attribute [rw] response_id
|
|
33
|
+
# @return [String]
|
|
34
|
+
# The unique identifier of the response. Contains the same value as
|
|
35
|
+
# `[Streaming]DetectIntentResponse.response_id`.
|
|
36
|
+
# @!attribute [rw] query_result
|
|
37
|
+
# @return [Google::Cloud::Dialogflow::V2::QueryResult]
|
|
38
|
+
# The result of the conversational query or event processing. Contains the
|
|
39
|
+
# same value as `[Streaming]DetectIntentResponse.query_result`.
|
|
40
|
+
# @!attribute [rw] original_detect_intent_request
|
|
41
|
+
# @return [Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest]
|
|
42
|
+
# Optional. The contents of the original request that was passed to
|
|
43
|
+
# `[Streaming]DetectIntent` call.
|
|
44
|
+
class WebhookRequest
|
|
45
|
+
include Google::Protobuf::MessageExts
|
|
46
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# The response message for a webhook call.
|
|
50
|
+
#
|
|
51
|
+
# This response is validated by the Dialogflow server. If validation fails,
|
|
52
|
+
# an error will be returned in the {Google::Cloud::Dialogflow::V2::QueryResult#diagnostic_info QueryResult.diagnostic_info} field.
|
|
53
|
+
# Setting JSON fields to an empty value with the wrong type is a common error.
|
|
54
|
+
# To avoid this error:
|
|
55
|
+
#
|
|
56
|
+
# - Use `""` for empty strings
|
|
57
|
+
# - Use `{}` or `null` for empty objects
|
|
58
|
+
# - Use `[]` or `null` for empty arrays
|
|
59
|
+
#
|
|
60
|
+
# For more information, see the
|
|
61
|
+
# [Protocol Buffers Language
|
|
62
|
+
# Guide](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
|
63
|
+
# @!attribute [rw] fulfillment_text
|
|
64
|
+
# @return [String]
|
|
65
|
+
# Optional. The text to be shown on the screen. This value is passed directly
|
|
66
|
+
# to `QueryResult.fulfillment_text`.
|
|
67
|
+
# @!attribute [rw] fulfillment_messages
|
|
68
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message>]
|
|
69
|
+
# Optional. The collection of rich messages to present to the user. This
|
|
70
|
+
# value is passed directly to `QueryResult.fulfillment_messages`.
|
|
71
|
+
# @!attribute [rw] source
|
|
72
|
+
# @return [String]
|
|
73
|
+
# Optional. This value is passed directly to `QueryResult.webhook_source`.
|
|
74
|
+
# @!attribute [rw] payload
|
|
75
|
+
# @return [Google::Protobuf::Struct]
|
|
76
|
+
# Optional. This value is passed directly to `QueryResult.webhook_payload`.
|
|
77
|
+
# See the related `fulfillment_messages[i].payload field`, which may be used
|
|
78
|
+
# as an alternative to this field.
|
|
79
|
+
#
|
|
80
|
+
# This field can be used for Actions on Google responses.
|
|
81
|
+
# It should have a structure similar to the JSON message shown here. For more
|
|
82
|
+
# information, see
|
|
83
|
+
# [Actions on Google Webhook
|
|
84
|
+
# Format](https://developers.google.com/actions/dialogflow/webhook)
|
|
85
|
+
# <pre>{
|
|
86
|
+
# "google": {
|
|
87
|
+
# "expectUserResponse": true,
|
|
88
|
+
# "richResponse": {
|
|
89
|
+
# "items": [
|
|
90
|
+
# {
|
|
91
|
+
# "simpleResponse": {
|
|
92
|
+
# "textToSpeech": "this is a simple response"
|
|
93
|
+
# }
|
|
94
|
+
# }
|
|
95
|
+
# ]
|
|
96
|
+
# }
|
|
97
|
+
# }
|
|
98
|
+
# }</pre>
|
|
99
|
+
# @!attribute [rw] output_contexts
|
|
100
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::Context>]
|
|
101
|
+
# Optional. The collection of output contexts. This value is passed directly
|
|
102
|
+
# to `QueryResult.output_contexts`.
|
|
103
|
+
# @!attribute [rw] followup_event_input
|
|
104
|
+
# @return [Google::Cloud::Dialogflow::V2::EventInput]
|
|
105
|
+
# Optional. Makes the platform immediately invoke another `DetectIntent` call
|
|
106
|
+
# internally with the specified event as input.
|
|
107
|
+
# When this field is set, Dialogflow ignores the `fulfillment_text`,
|
|
108
|
+
# `fulfillment_messages`, and `payload` fields.
|
|
109
|
+
# @!attribute [rw] session_entity_types
|
|
110
|
+
# @return [Array<Google::Cloud::Dialogflow::V2::SessionEntityType>]
|
|
111
|
+
# Optional. Additional session entity types to replace or extend developer
|
|
112
|
+
# entity types with. The entity synonyms apply to all languages and persist
|
|
113
|
+
# for the session of this query. Setting the session entity types inside
|
|
114
|
+
# webhook overwrites the session entity types that have been set through
|
|
115
|
+
# `DetectIntentRequest.query_params.session_entity_types`.
|
|
116
|
+
class WebhookResponse
|
|
117
|
+
include Google::Protobuf::MessageExts
|
|
118
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Represents the contents of the original request that was passed to
|
|
122
|
+
# the `[Streaming]DetectIntent` call.
|
|
123
|
+
# @!attribute [rw] source
|
|
124
|
+
# @return [String]
|
|
125
|
+
# The source of this request, e.g., `google`, `facebook`, `slack`. It is set
|
|
126
|
+
# by Dialogflow-owned servers.
|
|
127
|
+
# @!attribute [rw] version
|
|
128
|
+
# @return [String]
|
|
129
|
+
# Optional. The version of the protocol used for this request.
|
|
130
|
+
# This field is AoG-specific.
|
|
131
|
+
# @!attribute [rw] payload
|
|
132
|
+
# @return [Google::Protobuf::Struct]
|
|
133
|
+
# Optional. This field is set to the value of the `QueryParameters.payload`
|
|
134
|
+
# field passed in the request. Some integrations that query a Dialogflow
|
|
135
|
+
# agent may provide additional information in the payload.
|
|
136
|
+
#
|
|
137
|
+
# In particular for the Telephony Gateway this field has the form:
|
|
138
|
+
# <pre>{
|
|
139
|
+
# "telephony": {
|
|
140
|
+
# "caller_id": "+18558363987"
|
|
141
|
+
# }
|
|
142
|
+
# }</pre>
|
|
143
|
+
# Note: The caller ID field (`caller_id`) will be redacted for Standard
|
|
144
|
+
# Edition agents and populated with the caller ID in [E.164
|
|
145
|
+
# format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
|
|
146
|
+
class OriginalDetectIntentRequest
|
|
147
|
+
include Google::Protobuf::MessageExts
|
|
148
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -0,0 +1,150 @@
|
|
|
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 Longrunning
|
|
22
|
+
# This resource represents a long-running operation that is the result of a
|
|
23
|
+
# network API call.
|
|
24
|
+
# @!attribute [rw] name
|
|
25
|
+
# @return [String]
|
|
26
|
+
# The server-assigned name, which is only unique within the same service that
|
|
27
|
+
# originally returns it. If you use the default HTTP mapping, the
|
|
28
|
+
# `name` should have the format of `operations/some/unique/name`.
|
|
29
|
+
# @!attribute [rw] metadata
|
|
30
|
+
# @return [Google::Protobuf::Any]
|
|
31
|
+
# Service-specific metadata associated with the operation. It typically
|
|
32
|
+
# contains progress information and common metadata such as create time.
|
|
33
|
+
# Some services might not provide such metadata. Any method that returns a
|
|
34
|
+
# long-running operation should document the metadata type, if any.
|
|
35
|
+
# @!attribute [rw] done
|
|
36
|
+
# @return [Boolean]
|
|
37
|
+
# If the value is `false`, it means the operation is still in progress.
|
|
38
|
+
# If true, the operation is completed, and either `error` or `response` is
|
|
39
|
+
# available.
|
|
40
|
+
# @!attribute [rw] error
|
|
41
|
+
# @return [Google::Rpc::Status]
|
|
42
|
+
# The error result of the operation in case of failure or cancellation.
|
|
43
|
+
# @!attribute [rw] response
|
|
44
|
+
# @return [Google::Protobuf::Any]
|
|
45
|
+
# The normal response of the operation in case of success. If the original
|
|
46
|
+
# method returns no data on success, such as `Delete`, the response is
|
|
47
|
+
# `google.protobuf.Empty`. If the original method is standard
|
|
48
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
49
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
50
|
+
# is the original method name. For example, if the original method name
|
|
51
|
+
# is `TakeSnapshot()`, the inferred response type is
|
|
52
|
+
# `TakeSnapshotResponse`.
|
|
53
|
+
class Operation
|
|
54
|
+
include Google::Protobuf::MessageExts
|
|
55
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# The request message for Operations.GetOperation.
|
|
59
|
+
# @!attribute [rw] name
|
|
60
|
+
# @return [String]
|
|
61
|
+
# The name of the operation resource.
|
|
62
|
+
class GetOperationRequest
|
|
63
|
+
include Google::Protobuf::MessageExts
|
|
64
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# The request message for Operations.ListOperations.
|
|
68
|
+
# @!attribute [rw] name
|
|
69
|
+
# @return [String]
|
|
70
|
+
# The name of the operation collection.
|
|
71
|
+
# @!attribute [rw] filter
|
|
72
|
+
# @return [String]
|
|
73
|
+
# The standard list filter.
|
|
74
|
+
# @!attribute [rw] page_size
|
|
75
|
+
# @return [Integer]
|
|
76
|
+
# The standard list page size.
|
|
77
|
+
# @!attribute [rw] page_token
|
|
78
|
+
# @return [String]
|
|
79
|
+
# The standard list page token.
|
|
80
|
+
class ListOperationsRequest
|
|
81
|
+
include Google::Protobuf::MessageExts
|
|
82
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# The response message for Operations.ListOperations.
|
|
86
|
+
# @!attribute [rw] operations
|
|
87
|
+
# @return [Array<Google::Longrunning::Operation>]
|
|
88
|
+
# A list of operations that matches the specified filter in the request.
|
|
89
|
+
# @!attribute [rw] next_page_token
|
|
90
|
+
# @return [String]
|
|
91
|
+
# The standard List next-page token.
|
|
92
|
+
class ListOperationsResponse
|
|
93
|
+
include Google::Protobuf::MessageExts
|
|
94
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# The request message for Operations.CancelOperation.
|
|
98
|
+
# @!attribute [rw] name
|
|
99
|
+
# @return [String]
|
|
100
|
+
# The name of the operation resource to be cancelled.
|
|
101
|
+
class CancelOperationRequest
|
|
102
|
+
include Google::Protobuf::MessageExts
|
|
103
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# The request message for Operations.DeleteOperation.
|
|
107
|
+
# @!attribute [rw] name
|
|
108
|
+
# @return [String]
|
|
109
|
+
# The name of the operation resource to be deleted.
|
|
110
|
+
class DeleteOperationRequest
|
|
111
|
+
include Google::Protobuf::MessageExts
|
|
112
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# A message representing the message types used by a long-running operation.
|
|
116
|
+
#
|
|
117
|
+
# Example:
|
|
118
|
+
#
|
|
119
|
+
# rpc LongRunningRecognize(LongRunningRecognizeRequest)
|
|
120
|
+
# returns (google.longrunning.Operation) {
|
|
121
|
+
# option (google.longrunning.operation_info) = {
|
|
122
|
+
# response_type: "LongRunningRecognizeResponse"
|
|
123
|
+
# metadata_type: "LongRunningRecognizeMetadata"
|
|
124
|
+
# };
|
|
125
|
+
# }
|
|
126
|
+
# @!attribute [rw] response_type
|
|
127
|
+
# @return [String]
|
|
128
|
+
# Required. The message name of the primary return type for this
|
|
129
|
+
# long-running operation.
|
|
130
|
+
# This type will be used to deserialize the LRO's response.
|
|
131
|
+
#
|
|
132
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
|
133
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
|
134
|
+
#
|
|
135
|
+
# Note: Altering this value constitutes a breaking change.
|
|
136
|
+
# @!attribute [rw] metadata_type
|
|
137
|
+
# @return [String]
|
|
138
|
+
# Required. The message name of the metadata type for this long-running
|
|
139
|
+
# operation.
|
|
140
|
+
#
|
|
141
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
|
142
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
|
143
|
+
#
|
|
144
|
+
# Note: Altering this value constitutes a breaking change.
|
|
145
|
+
class OperationInfo
|
|
146
|
+
include Google::Protobuf::MessageExts
|
|
147
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|