google-cloud-dialogflow-cx-v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
  34. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
  36. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
  43. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
  44. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
  46. data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
  48. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
  49. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
  50. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
  53. data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
  54. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
  55. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
  56. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
  58. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
  59. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
  60. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
  61. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
  63. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
  68. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
  71. data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
  72. data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
  73. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
  74. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
  77. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
  78. data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
  79. data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
  81. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
  82. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
  83. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
  84. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
  85. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
  86. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
  87. data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
  88. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
  89. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
  90. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
  91. data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
  92. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
  93. data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
  94. data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
  95. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
  96. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
  97. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
  98. data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
  99. data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
  100. data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
  101. data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
  102. data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
  103. data/proto_docs/README.md +4 -0
  104. data/proto_docs/google/api/field_behavior.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +283 -0
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
  116. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
  117. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
  118. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
  119. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
  120. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
  121. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
  122. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
  123. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
  124. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
  125. data/proto_docs/google/longrunning/operations.rb +164 -0
  126. data/proto_docs/google/protobuf/any.rb +141 -0
  127. data/proto_docs/google/protobuf/duration.rb +98 -0
  128. data/proto_docs/google/protobuf/empty.rb +36 -0
  129. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  130. data/proto_docs/google/protobuf/struct.rb +96 -0
  131. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  132. data/proto_docs/google/rpc/status.rb +46 -0
  133. data/proto_docs/google/type/latlng.rb +38 -0
  134. metadata +326 -0
@@ -0,0 +1,184 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 CX
24
+ module V3
25
+ # Session entity types are referred to as **User** entity types and are
26
+ # entities that are built for an individual user such as favorites,
27
+ # preferences, playlists, and so on.
28
+ #
29
+ # You can redefine a session entity type at the session level to extend or
30
+ # replace a {::Google::Cloud::Dialogflow::CX::V3::EntityType custom entity type} at the user session level (we
31
+ # refer to the entity types defined at the agent level as "custom entity
32
+ # types").
33
+ #
34
+ # Note: session entity types apply to all queries, regardless of the language.
35
+ #
36
+ # For more information about entity types, see the [Dialogflow
37
+ # documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
38
+ # @!attribute [rw] name
39
+ # @return [::String]
40
+ # Required. The unique identifier of the session entity type.
41
+ # Format: `projects/<Project ID>/locations/<Location
42
+ # ID>/agents/<Agent ID>/sessions/<Session ID>/entityTypes/<Entity Type
43
+ # ID>` or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
44
+ # ID>/environments/<Environment ID>/sessions/<Session ID>/entityTypes/<Entity
45
+ # Type ID>`. If `Environment ID` is not specified, we assume default 'draft'
46
+ # environment.
47
+ # @!attribute [rw] entity_override_mode
48
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SessionEntityType::EntityOverrideMode]
49
+ # Required. Indicates whether the additional data should override or supplement the
50
+ # custom entity type definition.
51
+ # @!attribute [rw] entities
52
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::Entity>]
53
+ # Required. The collection of entities to override or supplement the custom entity
54
+ # type.
55
+ class SessionEntityType
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+
59
+ # The types of modifications for the session entity type.
60
+ module EntityOverrideMode
61
+ # Not specified. This value should be never used.
62
+ ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0
63
+
64
+ # The collection of session entities overrides the collection of entities
65
+ # in the corresponding custom entity type.
66
+ ENTITY_OVERRIDE_MODE_OVERRIDE = 1
67
+
68
+ # The collection of session entities extends the collection of entities in
69
+ # the corresponding custom entity type.
70
+ #
71
+ # Note: Even in this override mode calls to `ListSessionEntityTypes`,
72
+ # `GetSessionEntityType`, `CreateSessionEntityType` and
73
+ # `UpdateSessionEntityType` only return the additional entities added in
74
+ # this session entity type. If you want to get the supplemented list,
75
+ # please call {::Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType} on the custom entity type
76
+ # and merge.
77
+ ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2
78
+ end
79
+ end
80
+
81
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
82
+ # @!attribute [rw] parent
83
+ # @return [::String]
84
+ # Required. The session to list all session entity types from.
85
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
86
+ # ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
87
+ # ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>`.
88
+ # If `Environment ID` is not specified, we assume default 'draft'
89
+ # environment.
90
+ # @!attribute [rw] page_size
91
+ # @return [::Integer]
92
+ # The maximum number of items to return in a single page. By default 100 and
93
+ # at most 1000.
94
+ # @!attribute [rw] page_token
95
+ # @return [::String]
96
+ # The next_page_token value returned from a previous list request.
97
+ class ListSessionEntityTypesRequest
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
103
+ # @!attribute [rw] session_entity_types
104
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::SessionEntityType>]
105
+ # The list of session entity types. There will be a maximum number of items
106
+ # returned based on the page_size field in the request.
107
+ # @!attribute [rw] next_page_token
108
+ # @return [::String]
109
+ # Token to retrieve the next page of results, or empty if there are no
110
+ # more results in the list.
111
+ class ListSessionEntityTypesResponse
112
+ include ::Google::Protobuf::MessageExts
113
+ extend ::Google::Protobuf::MessageExts::ClassMethods
114
+ end
115
+
116
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client#get_session_entity_type SessionEntityTypes.GetSessionEntityType}.
117
+ # @!attribute [rw] name
118
+ # @return [::String]
119
+ # Required. The name of the session entity type.
120
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
121
+ # ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>` or
122
+ # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
123
+ # ID>/environments/<Environment ID>/sessions/<Session ID>/entityTypes/<Entity
124
+ # Type ID>`. If `Environment ID` is not specified, we assume default 'draft'
125
+ # environment.
126
+ class GetSessionEntityTypeRequest
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+
131
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client#create_session_entity_type SessionEntityTypes.CreateSessionEntityType}.
132
+ # @!attribute [rw] parent
133
+ # @return [::String]
134
+ # Required. The session to create a session entity type for.
135
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
136
+ # ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
137
+ # ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>`.
138
+ # If `Environment ID` is not specified, we assume default 'draft'
139
+ # environment.
140
+ # @!attribute [rw] session_entity_type
141
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SessionEntityType]
142
+ # Required. The session entity type to create.
143
+ class CreateSessionEntityTypeRequest
144
+ include ::Google::Protobuf::MessageExts
145
+ extend ::Google::Protobuf::MessageExts::ClassMethods
146
+ end
147
+
148
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client#update_session_entity_type SessionEntityTypes.UpdateSessionEntityType}.
149
+ # @!attribute [rw] session_entity_type
150
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SessionEntityType]
151
+ # Required. The session entity type to update.
152
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
153
+ # ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>` or
154
+ # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
155
+ # ID>/environments/<Environment ID>/sessions/<Session ID>/entityTypes/<Entity
156
+ # Type ID>`. If `Environment ID` is not specified, we assume default 'draft'
157
+ # environment.
158
+ # @!attribute [rw] update_mask
159
+ # @return [::Google::Protobuf::FieldMask]
160
+ # The mask to control which fields get updated.
161
+ class UpdateSessionEntityTypeRequest
162
+ include ::Google::Protobuf::MessageExts
163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
164
+ end
165
+
166
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client#delete_session_entity_type SessionEntityTypes.DeleteSessionEntityType}.
167
+ # @!attribute [rw] name
168
+ # @return [::String]
169
+ # Required. The name of the session entity type to delete.
170
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
171
+ # ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>` or
172
+ # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
173
+ # ID>/environments/<Environment ID>/sessions/<Session ID>/entityTypes/<Entity
174
+ # Type ID>`. If `Environment ID` is not specified, we assume default 'draft'
175
+ # environment.
176
+ class DeleteSessionEntityTypeRequest
177
+ include ::Google::Protobuf::MessageExts
178
+ extend ::Google::Protobuf::MessageExts::ClassMethods
179
+ end
180
+ end
181
+ end
182
+ end
183
+ end
184
+ end
@@ -0,0 +1,757 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 CX
24
+ module V3
25
+ # Represents a test case.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # The unique identifier of the test case.
29
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#create_test_case TestCases.CreateTestCase} will populate the name automatically.
30
+ # Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
31
+ # <AgentID>/testCases/<TestCase ID>`.
32
+ # @!attribute [rw] tags
33
+ # @return [::Array<::String>]
34
+ # Tags are short descriptions that users may apply to test cases for
35
+ # organizational and filtering purposes. Each tag should start with "#" and
36
+ # has a limit of 30 characters.
37
+ # @!attribute [rw] display_name
38
+ # @return [::String]
39
+ # Required. The human-readable name of the test case, unique within the agent. Limit of
40
+ # 200 characters.
41
+ # @!attribute [rw] notes
42
+ # @return [::String]
43
+ # Additional freeform notes about the test case. Limit of 400 characters.
44
+ # @!attribute [rw] test_config
45
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestConfig]
46
+ # Config for the test case.
47
+ # @!attribute [rw] test_case_conversation_turns
48
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>]
49
+ # The conversation turns uttered when the test case was created, in
50
+ # chronological order. These include the canonical set of agent utterances
51
+ # that should occur when the agent is working properly.
52
+ # @!attribute [r] creation_time
53
+ # @return [::Google::Protobuf::Timestamp]
54
+ # Output only. When the test was created.
55
+ # @!attribute [rw] last_test_result
56
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
57
+ # The latest test result.
58
+ class TestCase
59
+ include ::Google::Protobuf::MessageExts
60
+ extend ::Google::Protobuf::MessageExts::ClassMethods
61
+ end
62
+
63
+ # Represents a result from running a test case in an agent environment.
64
+ # @!attribute [rw] name
65
+ # @return [::String]
66
+ # The resource name for the test case result. Format:
67
+ # `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
68
+ # <TestCase ID>/results/<TestCaseResult ID>`.
69
+ # @!attribute [rw] environment
70
+ # @return [::String]
71
+ # Environment where the test was run. If not set, it indicates the draft
72
+ # environment.
73
+ # @!attribute [rw] conversation_turns
74
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>]
75
+ # The conversation turns uttered during the test case replay in chronological
76
+ # order.
77
+ # @!attribute [rw] test_result
78
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestResult]
79
+ # Whether the test case passed in the agent environment.
80
+ # @!attribute [rw] test_time
81
+ # @return [::Google::Protobuf::Timestamp]
82
+ # The time that the test was run.
83
+ class TestCaseResult
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+
88
+ # Represents configurations for a test case.
89
+ # @!attribute [rw] tracking_parameters
90
+ # @return [::Array<::String>]
91
+ # Session parameters to be compared when calculating differences.
92
+ # @!attribute [rw] flow
93
+ # @return [::String]
94
+ # Flow name. If not set, default start flow is assumed.
95
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
96
+ # ID>/flows/<Flow ID>`.
97
+ class TestConfig
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # One interaction between a human and virtual agent. The human provides some
103
+ # input and the virtual agent provides a response.
104
+ # @!attribute [rw] user_input
105
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ConversationTurn::UserInput]
106
+ # The user input.
107
+ # @!attribute [rw] virtual_agent_output
108
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ConversationTurn::VirtualAgentOutput]
109
+ # The virtual agent output.
110
+ class ConversationTurn
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+
114
+ # The input from the human user.
115
+ # @!attribute [rw] input
116
+ # @return [::Google::Cloud::Dialogflow::CX::V3::QueryInput]
117
+ # Supports {::Google::Cloud::Dialogflow::CX::V3::QueryInput#text text input}, {::Google::Cloud::Dialogflow::CX::V3::QueryInput#event event input},
118
+ # {::Google::Cloud::Dialogflow::CX::V3::QueryInput#dtmf dtmf input} in the test case.
119
+ # @!attribute [rw] injected_parameters
120
+ # @return [::Google::Protobuf::Struct]
121
+ # Parameters that need to be injected into the conversation during intent
122
+ # detection.
123
+ # @!attribute [rw] is_webhook_enabled
124
+ # @return [::Boolean]
125
+ # If webhooks should be allowed to trigger in response to the user
126
+ # utterance. Often if parameters are injected, webhooks should not be
127
+ # enabled.
128
+ # @!attribute [rw] enable_sentiment_analysis
129
+ # @return [::Boolean]
130
+ # Whether sentiment analysis is enabled.
131
+ class UserInput
132
+ include ::Google::Protobuf::MessageExts
133
+ extend ::Google::Protobuf::MessageExts::ClassMethods
134
+ end
135
+
136
+ # The output from the virtual agent.
137
+ # @!attribute [rw] session_parameters
138
+ # @return [::Google::Protobuf::Struct]
139
+ # The session parameters available to the bot at this point.
140
+ # @!attribute [r] differences
141
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestRunDifference>]
142
+ # Output only. If this is part of a [result conversation
143
+ # turn][TestCaseResult.conversation_turns], the list of differences
144
+ # between the original run and the replay for this output, if any.
145
+ # @!attribute [rw] diagnostic_info
146
+ # @return [::Google::Protobuf::Struct]
147
+ # Required. Input only. The diagnostic
148
+ # [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
149
+ # output for the turn.
150
+ # @!attribute [rw] triggered_intent
151
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Intent]
152
+ # The {::Google::Cloud::Dialogflow::CX::V3::Intent Intent} that triggered the response. Only name and displayName
153
+ # will be set.
154
+ # @!attribute [rw] current_page
155
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Page]
156
+ # The {::Google::Cloud::Dialogflow::CX::V3::Page Page} on which the utterance was spoken. Only name and displayName
157
+ # will be set.
158
+ # @!attribute [rw] text_responses
159
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage::Text>]
160
+ # The {::Google::Cloud::Dialogflow::CX::V3::ResponseMessage::Text text} responses from the agent for the turn.
161
+ # @!attribute [rw] status
162
+ # @return [::Google::Rpc::Status]
163
+ # Response error from the agent in the test result. If set, other output
164
+ # is empty.
165
+ class VirtualAgentOutput
166
+ include ::Google::Protobuf::MessageExts
167
+ extend ::Google::Protobuf::MessageExts::ClassMethods
168
+ end
169
+ end
170
+
171
+ # The description of differences between original and replayed agent output.
172
+ # @!attribute [rw] type
173
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestRunDifference::DiffType]
174
+ # The type of diff.
175
+ # @!attribute [rw] description
176
+ # @return [::String]
177
+ # A description of the diff, showing the actual output vs expected output.
178
+ class TestRunDifference
179
+ include ::Google::Protobuf::MessageExts
180
+ extend ::Google::Protobuf::MessageExts::ClassMethods
181
+
182
+ # What part of the message replay differs from the test case.
183
+ module DiffType
184
+ # Should never be used.
185
+ DIFF_TYPE_UNSPECIFIED = 0
186
+
187
+ # The intent.
188
+ INTENT = 1
189
+
190
+ # The page.
191
+ PAGE = 2
192
+
193
+ # The parameters.
194
+ PARAMETERS = 3
195
+
196
+ # The message utterance.
197
+ UTTERANCE = 4
198
+ end
199
+ end
200
+
201
+ # Transition coverage represents the percentage of all possible page
202
+ # transitions (page-level transition routes and event handlers, excluding
203
+ # transition route groups) present within any of a parent's test cases.
204
+ # @!attribute [rw] transitions
205
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TransitionCoverage::Transition>]
206
+ # The list of Transitions present in the agent.
207
+ # @!attribute [rw] coverage_score
208
+ # @return [::Float]
209
+ # The percent of transitions in the agent that are covered.
210
+ class TransitionCoverage
211
+ include ::Google::Protobuf::MessageExts
212
+ extend ::Google::Protobuf::MessageExts::ClassMethods
213
+
214
+ # The source or target of a transition.
215
+ # @!attribute [rw] page
216
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Page]
217
+ # Indicates a transition to a {::Google::Cloud::Dialogflow::CX::V3::Page Page}. Only some fields such as name and
218
+ # displayname will be set.
219
+ # @!attribute [rw] flow
220
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Flow]
221
+ # Indicates a transition to a {::Google::Cloud::Dialogflow::CX::V3::Flow Flow}. Only some fields such as name and
222
+ # displayname will be set.
223
+ class TransitionNode
224
+ include ::Google::Protobuf::MessageExts
225
+ extend ::Google::Protobuf::MessageExts::ClassMethods
226
+ end
227
+
228
+ # A transition in a page.
229
+ # @!attribute [rw] source
230
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionCoverage::TransitionNode]
231
+ # The start node of a transition.
232
+ # @!attribute [rw] index
233
+ # @return [::Integer]
234
+ # The index of a transition in the transition list. Starting from 0.
235
+ # @!attribute [rw] target
236
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionCoverage::TransitionNode]
237
+ # The end node of a transition.
238
+ # @!attribute [rw] covered
239
+ # @return [::Boolean]
240
+ # Whether or not the transition is covered by at least one of the
241
+ # agent's test cases.
242
+ # @!attribute [rw] transition_route
243
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRoute]
244
+ # Intent route or condition route.
245
+ # @!attribute [rw] event_handler
246
+ # @return [::Google::Cloud::Dialogflow::CX::V3::EventHandler]
247
+ # Event handler.
248
+ class Transition
249
+ include ::Google::Protobuf::MessageExts
250
+ extend ::Google::Protobuf::MessageExts::ClassMethods
251
+ end
252
+ end
253
+
254
+ # Transition route group coverage represents the percentage of all possible
255
+ # transition routes present within any of a parent's test cases. The results
256
+ # are grouped by the transition route group.
257
+ # @!attribute [rw] coverages
258
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroupCoverage::Coverage>]
259
+ # Transition route group coverages.
260
+ # @!attribute [rw] coverage_score
261
+ # @return [::Float]
262
+ # The percent of transition routes in all the transition route groups that
263
+ # are covered.
264
+ class TransitionRouteGroupCoverage
265
+ include ::Google::Protobuf::MessageExts
266
+ extend ::Google::Protobuf::MessageExts::ClassMethods
267
+
268
+ # Coverage result message for one transition route group.
269
+ # @!attribute [rw] route_group
270
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
271
+ # Transition route group metadata. Only name and displayName will be set.
272
+ # @!attribute [rw] transitions
273
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroupCoverage::Coverage::Transition>]
274
+ # The list of transition routes and coverage in the transition route group.
275
+ # @!attribute [rw] coverage_score
276
+ # @return [::Float]
277
+ # The percent of transition routes in the transition route group that are
278
+ # covered.
279
+ class Coverage
280
+ include ::Google::Protobuf::MessageExts
281
+ extend ::Google::Protobuf::MessageExts::ClassMethods
282
+
283
+ # A transition coverage in a transition route group.
284
+ # @!attribute [rw] transition_route
285
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRoute]
286
+ # Intent route or condition route.
287
+ # @!attribute [rw] covered
288
+ # @return [::Boolean]
289
+ # Whether or not the transition route is covered by at least one of the
290
+ # agent's test cases.
291
+ class Transition
292
+ include ::Google::Protobuf::MessageExts
293
+ extend ::Google::Protobuf::MessageExts::ClassMethods
294
+ end
295
+ end
296
+ end
297
+
298
+ # Intent coverage represents the percentage of all possible intents in the
299
+ # agent that are triggered in any of a parent's test cases.
300
+ # @!attribute [rw] intents
301
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::IntentCoverage::Intent>]
302
+ # The list of Intents present in the agent
303
+ # @!attribute [rw] coverage_score
304
+ # @return [::Float]
305
+ # The percent of intents in the agent that are covered.
306
+ class IntentCoverage
307
+ include ::Google::Protobuf::MessageExts
308
+ extend ::Google::Protobuf::MessageExts::ClassMethods
309
+
310
+ # The agent's intent.
311
+ # @!attribute [rw] intent
312
+ # @return [::String]
313
+ # The intent full resource name
314
+ # @!attribute [rw] covered
315
+ # @return [::Boolean]
316
+ # Whether or not the intent is covered by at least one of the agent's
317
+ # test cases.
318
+ class Intent
319
+ include ::Google::Protobuf::MessageExts
320
+ extend ::Google::Protobuf::MessageExts::ClassMethods
321
+ end
322
+ end
323
+
324
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#calculate_coverage TestCases.CalculateCoverage}.
325
+ # @!attribute [rw] agent
326
+ # @return [::String]
327
+ # Required. The agent to calculate coverage for.
328
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
329
+ # @!attribute [rw] type
330
+ # @return [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest::CoverageType]
331
+ # Required. The type of coverage requested.
332
+ class CalculateCoverageRequest
333
+ include ::Google::Protobuf::MessageExts
334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
+
336
+ # The type of coverage score requested.
337
+ module CoverageType
338
+ # Should never be used.
339
+ COVERAGE_TYPE_UNSPECIFIED = 0
340
+
341
+ # Intent coverage.
342
+ INTENT = 1
343
+
344
+ # Page transition coverage.
345
+ PAGE_TRANSITION = 2
346
+
347
+ # Transition route group coverage.
348
+ TRANSITION_ROUTE_GROUP = 3
349
+ end
350
+ end
351
+
352
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#calculate_coverage TestCases.CalculateCoverage}.
353
+ # @!attribute [rw] agent
354
+ # @return [::String]
355
+ # The agent to calculate coverage for.
356
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
357
+ # @!attribute [rw] intent_coverage
358
+ # @return [::Google::Cloud::Dialogflow::CX::V3::IntentCoverage]
359
+ # Intent coverage.
360
+ # @!attribute [rw] transition_coverage
361
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionCoverage]
362
+ # Transition (excluding transition route groups) coverage.
363
+ # @!attribute [rw] route_group_coverage
364
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroupCoverage]
365
+ # Transition route group coverage.
366
+ class CalculateCoverageResponse
367
+ include ::Google::Protobuf::MessageExts
368
+ extend ::Google::Protobuf::MessageExts::ClassMethods
369
+ end
370
+
371
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#list_test_cases TestCases.ListTestCases}.
372
+ # @!attribute [rw] parent
373
+ # @return [::String]
374
+ # Required. The agent to list all pages for.
375
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
376
+ # @!attribute [rw] page_size
377
+ # @return [::Integer]
378
+ # The maximum number of items to return in a single page. By default 20.
379
+ # Note that when TestCaseView = FULL, the maximum page size allowed is 20.
380
+ # When TestCaseView = BASIC, the maximum page size allowed is 500.
381
+ # @!attribute [rw] page_token
382
+ # @return [::String]
383
+ # The next_page_token value returned from a previous list request.
384
+ # @!attribute [rw] view
385
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest::TestCaseView]
386
+ # Specifies whether response should include all fields or just the metadata.
387
+ class ListTestCasesRequest
388
+ include ::Google::Protobuf::MessageExts
389
+ extend ::Google::Protobuf::MessageExts::ClassMethods
390
+
391
+ # Specifies how much test case information to include in the response.
392
+ module TestCaseView
393
+ # The default / unset value.
394
+ # The API will default to the BASIC view.
395
+ TEST_CASE_VIEW_UNSPECIFIED = 0
396
+
397
+ # Include basic metadata about the test case, but not the conversation
398
+ # turns. This is the default value.
399
+ BASIC = 1
400
+
401
+ # Include everything.
402
+ FULL = 2
403
+ end
404
+ end
405
+
406
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#list_test_cases TestCases.ListTestCases}.
407
+ # @!attribute [rw] test_cases
408
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestCase>]
409
+ # The list of test cases. There will be a maximum number of items returned
410
+ # based on the page_size field in the request.
411
+ # @!attribute [rw] next_page_token
412
+ # @return [::String]
413
+ # Token to retrieve the next page of results, or empty if there are no more
414
+ # results in the list.
415
+ class ListTestCasesResponse
416
+ include ::Google::Protobuf::MessageExts
417
+ extend ::Google::Protobuf::MessageExts::ClassMethods
418
+ end
419
+
420
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#batch_delete_test_cases TestCases.BatchDeleteTestCases}.
421
+ # @!attribute [rw] parent
422
+ # @return [::String]
423
+ # Required. The agent to delete test cases from.
424
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
425
+ # @!attribute [rw] names
426
+ # @return [::Array<::String>]
427
+ # Required. Format of test case names: `projects/<Project ID>/locations/
428
+ # <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
429
+ class BatchDeleteTestCasesRequest
430
+ include ::Google::Protobuf::MessageExts
431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
432
+ end
433
+
434
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#create_test_case TestCases.CreateTestCase}.
435
+ # @!attribute [rw] parent
436
+ # @return [::String]
437
+ # Required. The agent to create the test case for.
438
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
439
+ # @!attribute [rw] test_case
440
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
441
+ # Required. The test case to create.
442
+ class CreateTestCaseRequest
443
+ include ::Google::Protobuf::MessageExts
444
+ extend ::Google::Protobuf::MessageExts::ClassMethods
445
+ end
446
+
447
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#update_test_case TestCases.UpdateTestCase}.
448
+ # @!attribute [rw] test_case
449
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
450
+ # Required. The test case to update.
451
+ # @!attribute [rw] update_mask
452
+ # @return [::Google::Protobuf::FieldMask]
453
+ # Required. The mask to specify which fields should be updated. The
454
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCase#creation_time `creationTime`} and
455
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCase#last_test_result `lastTestResult`} cannot be updated.
456
+ class UpdateTestCaseRequest
457
+ include ::Google::Protobuf::MessageExts
458
+ extend ::Google::Protobuf::MessageExts::ClassMethods
459
+ end
460
+
461
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#get_test_case TestCases.GetTestCase}.
462
+ # @!attribute [rw] name
463
+ # @return [::String]
464
+ # Required. The name of the testcase.
465
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
466
+ # ID>/testCases/<TestCase ID>`.
467
+ class GetTestCaseRequest
468
+ include ::Google::Protobuf::MessageExts
469
+ extend ::Google::Protobuf::MessageExts::ClassMethods
470
+ end
471
+
472
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#run_test_case TestCases.RunTestCase}.
473
+ # @!attribute [rw] name
474
+ # @return [::String]
475
+ # Required. Format of test case name to run: `projects/<Project ID>/locations/
476
+ # <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
477
+ # @!attribute [rw] environment
478
+ # @return [::String]
479
+ # Optional. Environment name. If not set, draft environment is assumed.
480
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
481
+ # ID>/environments/<Environment ID>`.
482
+ class RunTestCaseRequest
483
+ include ::Google::Protobuf::MessageExts
484
+ extend ::Google::Protobuf::MessageExts::ClassMethods
485
+ end
486
+
487
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#run_test_case TestCases.RunTestCase}.
488
+ # @!attribute [rw] result
489
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
490
+ # The result.
491
+ class RunTestCaseResponse
492
+ include ::Google::Protobuf::MessageExts
493
+ extend ::Google::Protobuf::MessageExts::ClassMethods
494
+ end
495
+
496
+ # Metadata returned for the {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#run_test_case TestCases.RunTestCase} long running operation.
497
+ class RunTestCaseMetadata
498
+ include ::Google::Protobuf::MessageExts
499
+ extend ::Google::Protobuf::MessageExts::ClassMethods
500
+ end
501
+
502
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#batch_run_test_cases TestCases.BatchRunTestCases}.
503
+ # @!attribute [rw] parent
504
+ # @return [::String]
505
+ # Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
506
+ # <AgentID>`.
507
+ # @!attribute [rw] environment
508
+ # @return [::String]
509
+ # Optional. If not set, draft environment is assumed. Format: `projects/<Project
510
+ # ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
511
+ # ID>`.
512
+ # @!attribute [rw] test_cases
513
+ # @return [::Array<::String>]
514
+ # Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
515
+ # ID>/testCases/<TestCase ID>`.
516
+ class BatchRunTestCasesRequest
517
+ include ::Google::Protobuf::MessageExts
518
+ extend ::Google::Protobuf::MessageExts::ClassMethods
519
+ end
520
+
521
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#batch_run_test_cases TestCases.BatchRunTestCases}.
522
+ # @!attribute [rw] results
523
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestCaseResult>]
524
+ # The test case results. The detailed
525
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCaseResult#conversation_turns conversation turns} are empty in this
526
+ # response.
527
+ class BatchRunTestCasesResponse
528
+ include ::Google::Protobuf::MessageExts
529
+ extend ::Google::Protobuf::MessageExts::ClassMethods
530
+ end
531
+
532
+ # Metadata returned for the {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#batch_run_test_cases TestCases.BatchRunTestCases} long running
533
+ # operation.
534
+ # @!attribute [rw] errors
535
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestError>]
536
+ # The test errors.
537
+ class BatchRunTestCasesMetadata
538
+ include ::Google::Protobuf::MessageExts
539
+ extend ::Google::Protobuf::MessageExts::ClassMethods
540
+ end
541
+
542
+ # Error info for running a test.
543
+ # @!attribute [rw] test_case
544
+ # @return [::String]
545
+ # The test case resource name.
546
+ # @!attribute [rw] status
547
+ # @return [::Google::Rpc::Status]
548
+ # The status associated with the test.
549
+ # @!attribute [rw] test_time
550
+ # @return [::Google::Protobuf::Timestamp]
551
+ # The timestamp when the test was completed.
552
+ class TestError
553
+ include ::Google::Protobuf::MessageExts
554
+ extend ::Google::Protobuf::MessageExts::ClassMethods
555
+ end
556
+
557
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#import_test_cases TestCases.ImportTestCases}.
558
+ # @!attribute [rw] parent
559
+ # @return [::String]
560
+ # Required. The agent to import test cases to.
561
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
562
+ # @!attribute [rw] gcs_uri
563
+ # @return [::String]
564
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
565
+ # to import test cases from. The format of this URI must be
566
+ # `gs://<bucket-name>/<object-name>`.
567
+ # @!attribute [rw] content
568
+ # @return [::String]
569
+ # Uncompressed raw byte content for test cases.
570
+ class ImportTestCasesRequest
571
+ include ::Google::Protobuf::MessageExts
572
+ extend ::Google::Protobuf::MessageExts::ClassMethods
573
+ end
574
+
575
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#import_test_cases TestCases.ImportTestCases}.
576
+ # @!attribute [rw] names
577
+ # @return [::Array<::String>]
578
+ # The unique identifiers of the new test cases.
579
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
580
+ # ID>/testCases/<TestCase ID>`.
581
+ class ImportTestCasesResponse
582
+ include ::Google::Protobuf::MessageExts
583
+ extend ::Google::Protobuf::MessageExts::ClassMethods
584
+ end
585
+
586
+ # Metadata returned for the {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#import_test_cases TestCases.ImportTestCases} long running
587
+ # operation.
588
+ # @!attribute [rw] errors
589
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestCaseError>]
590
+ # Errors for failed test cases.
591
+ class ImportTestCasesMetadata
592
+ include ::Google::Protobuf::MessageExts
593
+ extend ::Google::Protobuf::MessageExts::ClassMethods
594
+ end
595
+
596
+ # Error info for importing a test.
597
+ # @!attribute [rw] test_case
598
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
599
+ # The test case.
600
+ # @!attribute [rw] status
601
+ # @return [::Google::Rpc::Status]
602
+ # The status associated with the test case.
603
+ class TestCaseError
604
+ include ::Google::Protobuf::MessageExts
605
+ extend ::Google::Protobuf::MessageExts::ClassMethods
606
+ end
607
+
608
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#export_test_cases TestCases.ExportTestCases}.
609
+ # @!attribute [rw] parent
610
+ # @return [::String]
611
+ # Required. The agent where to export test cases from.
612
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
613
+ # @!attribute [rw] gcs_uri
614
+ # @return [::String]
615
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
616
+ # export the test cases to. The format of this URI must be
617
+ # `gs://<bucket-name>/<object-name>`. If unspecified, the serialized test
618
+ # cases is returned inline.
619
+ # @!attribute [rw] data_format
620
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest::DataFormat]
621
+ # The data format of the exported test cases. If not specified, `BLOB` is
622
+ # assumed.
623
+ # @!attribute [rw] filter
624
+ # @return [::String]
625
+ # The filter expression used to filter exported test cases, see
626
+ # [API Filtering](https://aip.dev/160). The expression is case insensitive
627
+ # and supports the following syntax:
628
+ #
629
+ # name = <value> [OR name = <value>] ...
630
+ #
631
+ # For example:
632
+ #
633
+ # * "name = t1 OR name = t2" matches the test case with the exact resource
634
+ # name "t1" or "t2".
635
+ class ExportTestCasesRequest
636
+ include ::Google::Protobuf::MessageExts
637
+ extend ::Google::Protobuf::MessageExts::ClassMethods
638
+
639
+ # Data format of the exported test cases.
640
+ module DataFormat
641
+ # Unspecified format.
642
+ DATA_FORMAT_UNSPECIFIED = 0
643
+
644
+ # Raw bytes.
645
+ BLOB = 1
646
+
647
+ # JSON format.
648
+ JSON = 2
649
+ end
650
+ end
651
+
652
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#export_test_cases TestCases.ExportTestCases}.
653
+ # @!attribute [rw] gcs_uri
654
+ # @return [::String]
655
+ # The URI to a file containing the exported test cases. This field is
656
+ # populated only if `gcs_uri` is specified in
657
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest ExportTestCasesRequest}.
658
+ # @!attribute [rw] content
659
+ # @return [::String]
660
+ # Uncompressed raw byte content for test cases.
661
+ class ExportTestCasesResponse
662
+ include ::Google::Protobuf::MessageExts
663
+ extend ::Google::Protobuf::MessageExts::ClassMethods
664
+ end
665
+
666
+ # Metadata returned for the {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#export_test_cases TestCases.ExportTestCases} long running
667
+ # operation.
668
+ class ExportTestCasesMetadata
669
+ include ::Google::Protobuf::MessageExts
670
+ extend ::Google::Protobuf::MessageExts::ClassMethods
671
+ end
672
+
673
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#list_test_case_results TestCases.ListTestCaseResults}.
674
+ # @!attribute [rw] parent
675
+ # @return [::String]
676
+ # Required. The test case to list results for.
677
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
678
+ # testCases/<TestCase ID>`. Specify a `-` as a wildcard for TestCase ID to
679
+ # list results across multiple test cases.
680
+ # @!attribute [rw] page_size
681
+ # @return [::Integer]
682
+ # The maximum number of items to return in a single page. By default 100 and
683
+ # at most 1000.
684
+ # @!attribute [rw] page_token
685
+ # @return [::String]
686
+ # The next_page_token value returned from a previous list request.
687
+ # @!attribute [rw] filter
688
+ # @return [::String]
689
+ # The filter expression used to filter test case results. See
690
+ # [API Filtering](https://aip.dev/160).
691
+ #
692
+ # The expression is case insensitive. Only 'AND' is supported for logical
693
+ # operators. The supported syntax is listed below in detail:
694
+ #
695
+ # <field> <operator> <value> [AND <field> <operator> <value>] ...
696
+ # [AND latest]
697
+ #
698
+ # The supported fields and operators are:
699
+ # field operator
700
+ # `environment` `=`, `IN` (Use value `draft` for draft environment)
701
+ # `test_time` `>`, `<`
702
+ #
703
+ # `latest` only returns the latest test result in all results for each test
704
+ # case.
705
+ #
706
+ # Examples:
707
+ # * "environment=draft AND latest" matches the latest test result for each
708
+ # test case in the draft environment.
709
+ # * "environment IN (e1,e2)" matches any test case results with an
710
+ # environment resource name of either "e1" or "e2".
711
+ # * "test_time > 1602540713" matches any test case results with test time
712
+ # later than a unix timestamp in seconds 1602540713.
713
+ class ListTestCaseResultsRequest
714
+ include ::Google::Protobuf::MessageExts
715
+ extend ::Google::Protobuf::MessageExts::ClassMethods
716
+ end
717
+
718
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#list_test_case_results TestCases.ListTestCaseResults}.
719
+ # @!attribute [rw] test_case_results
720
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TestCaseResult>]
721
+ # The list of test case results.
722
+ # @!attribute [rw] next_page_token
723
+ # @return [::String]
724
+ # Token to retrieve the next page of results, or empty if there are no more
725
+ # results in the list.
726
+ class ListTestCaseResultsResponse
727
+ include ::Google::Protobuf::MessageExts
728
+ extend ::Google::Protobuf::MessageExts::ClassMethods
729
+ end
730
+
731
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#get_test_case_result TestCases.GetTestCaseResult}.
732
+ # @!attribute [rw] name
733
+ # @return [::String]
734
+ # Required. The name of the testcase.
735
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
736
+ # ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
737
+ class GetTestCaseResultRequest
738
+ include ::Google::Protobuf::MessageExts
739
+ extend ::Google::Protobuf::MessageExts::ClassMethods
740
+ end
741
+
742
+ # The test result for a test case and an agent environment.
743
+ module TestResult
744
+ # Not specified. Should never be used.
745
+ TEST_RESULT_UNSPECIFIED = 0
746
+
747
+ # The test passed.
748
+ PASSED = 1
749
+
750
+ # The test did not pass.
751
+ FAILED = 2
752
+ end
753
+ end
754
+ end
755
+ end
756
+ end
757
+ end