forked from googleapis/google-cloud-ruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dialogflow): Add AgentsClient#get_validation_result (ValidationR…
…esult) * Add DetectIntentRequest#output_audio_config_mask (FieldMask) * Add StreamingDetectIntentRequest#output_audio_config_mask (FieldMask)
- Loading branch information
1 parent
f8b5713
commit d54b072
Showing
18 changed files
with
308 additions
and
39 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
google-cloud-dialogflow/lib/google/cloud/dialogflow/v2/agent_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
google-cloud-dialogflow/lib/google/cloud/dialogflow/v2/agent_services_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
google-cloud-dialogflow/lib/google/cloud/dialogflow/v2/context_services_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...ogflow/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/validation_result.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
module Google | ||
module Cloud | ||
module Dialogflow | ||
module V2 | ||
# Represents a single validation error. | ||
# @!attribute [rw] severity | ||
# @return [Google::Cloud::Dialogflow::V2::ValidationError::Severity] | ||
# The severity of the error. | ||
# @!attribute [rw] entries | ||
# @return [Array<String>] | ||
# The names of the entries that the error is associated with. | ||
# Format: | ||
# | ||
# * "projects/<Project ID>/agent", if the error is associated with the entire | ||
# agent. | ||
# * "projects/<Project ID>/agent/intents/<Intent ID>", if the error is | ||
# associated with certain intents. | ||
# * "projects/<Project | ||
# ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the | ||
# error is associated with certain intent training phrases. | ||
# * "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter | ||
# ID>", if the error is associated with certain intent parameters. | ||
# * "projects/<Project ID>/agent/entities/<Entity ID>", if the error is | ||
# associated with certain entities. | ||
# @!attribute [rw] error_message | ||
# @return [String] | ||
# The detailed error messsage. | ||
class ValidationError | ||
# Represents a level of severity. | ||
module Severity | ||
# Not specified. This value should never be used. | ||
SEVERITY_UNSPECIFIED = 0 | ||
|
||
# The agent doesn't follow Dialogflow best practicies. | ||
INFO = 1 | ||
|
||
# The agent may not behave as expected. | ||
WARNING = 2 | ||
|
||
# The agent may experience partial failures. | ||
ERROR = 3 | ||
|
||
# The agent may completely fail. | ||
CRITICAL = 4 | ||
end | ||
end | ||
|
||
# Represents the output of agent validation. | ||
# @!attribute [rw] validation_errors | ||
# @return [Array<Google::Cloud::Dialogflow::V2::ValidationError>] | ||
# Contains all validation errors. | ||
class ValidationResult; end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.