Skip to content

Commit

Permalink
docs: Minor formatting
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 552790519
  • Loading branch information
Google APIs authored and Copybara-Service committed Aug 1, 2023
1 parent 1dcb40c commit a03330a
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 74 deletions.
8 changes: 5 additions & 3 deletions google/cloud/dialogflow/v2beta1/audio_config.proto
Expand Up @@ -115,13 +115,15 @@ message SpeechWordInfo {
//
// The flow goes like below:
//
// ```
// --> Time
//
// without speech detection | utterance only | utterance or no-speech event
// | |
// +-------------+ | +------------+ | +---------------+
// ----------+ no barge-in +-|-+ barge-in +-|-+ normal period +-----------
// +-------------+ | +------------+ | +---------------+
// ```
//
// No-speech event is a response with END_OF_UTTERANCE without any transcript
// following up.
Expand Down Expand Up @@ -167,9 +169,9 @@ message InputAudioConfig {
// documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
// for more details.
//
// This field is deprecated. Please use [speech_contexts]() instead. If you
// specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
// treat the [phrase_hints]() as a single additional [SpeechContext]().
// This field is deprecated. Please use [`speech_contexts`]() instead. If you
// specify both [`phrase_hints`]() and [`speech_contexts`](), Dialogflow will
// treat the [`phrase_hints`]() as a single additional [`SpeechContext`]().
repeated string phrase_hints = 4 [deprecated = true];

// Context information to assist speech recognition.
Expand Down
20 changes: 9 additions & 11 deletions google/cloud/dialogflow/v2beta1/context.proto
Expand Up @@ -190,7 +190,7 @@ message Context {
// ID>/contexts/<Context ID>`,
//
// The `Context ID` is always converted to lowercase, may only contain
// characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
// characters in `a-zA-Z0-9_-%` and may be at most 250 bytes long.
//
// If `Environment ID` is not specified, we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
Expand All @@ -215,16 +215,14 @@ message Context {
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// - MapKey type: string
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: depending on parameter value type, could be one of string,
// number, boolean, null, list or map
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
// - Else: parameter value
// * MapKey type: string
// * MapKey value: parameter name
// * MapValue type: If parameter's entity type is a composite entity then use
// map, otherwise, depending on the parameter value type, it could be one of
// string, number, boolean, null, list or map.
// * MapValue value: If parameter's entity type is a composite entity then use
// map from composite entity property names to property values, otherwise,
// use parameter value.
google.protobuf.Struct parameters = 3;
}

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dialogflow/v2beta1/conversation.proto
Expand Up @@ -290,7 +290,7 @@ message CreateConversationRequest {
// auto-generated one to you.
//
// The conversation ID must be compliant with the regression fomula
// "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64].
// `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
// If the field is provided, the caller is resposible for
// 1. the uniqueness of the ID, otherwise the request will be rejected.
// 2. the consistency for whether to use custom ID or not under a project to
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/dialogflow/v2beta1/gcs.proto
Expand Up @@ -30,7 +30,7 @@ option objc_class_prefix = "DF";
message GcsSources {
// Required. Google Cloud Storage URIs for the inputs. A URI is of the
// form:
// gs://bucket/object-prefix-or-name
// `gs://bucket/object-prefix-or-name`
// Whether a prefix or name is used depends on the use case.
repeated string uris = 2 [(google.api.field_behavior) = REQUIRED];
}
Expand All @@ -39,7 +39,7 @@ message GcsSources {
message GcsSource {
// Required. The Google Cloud Storage URIs for the inputs. A URI is of the
// form:
// gs://bucket/object-prefix-or-name
// `gs://bucket/object-prefix-or-name`
// Whether a prefix or name is used depends on the use case.
string uri = 1;
}
Expand All @@ -48,7 +48,7 @@ message GcsSource {
message GcsDestination {
// Required. The Google Cloud Storage URIs for the output. A URI is of the
// form:
// gs://bucket/object-prefix-or-name
// `gs://bucket/object-prefix-or-name`
// Whether a prefix or name is used depends on the use case. The requesting
// user must have "write-permission" to the bucket.
string uri = 1;
Expand Down
30 changes: 14 additions & 16 deletions google/cloud/dialogflow/v2beta1/participant.proto
Expand Up @@ -568,16 +568,14 @@ message SuggestionInput {
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// - MapKey type: string
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: depending on parameter value type, could be one of string,
// number, boolean, null, list or map
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
// - Else: parameter value
// * MapKey type: string
// * MapKey value: parameter name
// * MapValue type: If parameter's entity type is a composite entity then use
// map, otherwise, depending on the parameter value type, it could be one of
// string, number, boolean, null, list or map.
// * MapValue value: If parameter's entity type is a composite entity then use
// map from composite entity property names to property values, otherwise,
// use parameter value.
google.protobuf.Struct parameters = 4;

// The intent to be triggered on V3 agent.
Expand Down Expand Up @@ -720,12 +718,12 @@ message AnalyzeContentRequest {
// participant.
//
// Given two messages under the same participant:
// - If send time are different regardless of whether the content of the
// messages are exactly the same, the conversation will regard them as
// two distinct messages sent by the participant.
// - If send time is the same regardless of whether the content of the
// messages are exactly the same, the conversation will regard them as
// same message, and ignore the message received later.
// * If send time are different regardless of whether the content of the
// messages are exactly the same, the conversation will regard them as
// two distinct messages sent by the participant.
// * If send time is the same regardless of whether the content of the
// messages are exactly the same, the conversation will regard them as
// same message, and ignore the message received later.
//
// If the value is not provided, a new request will always be regarded as a
// new message without any de-duplication.
Expand Down
60 changes: 28 additions & 32 deletions google/cloud/dialogflow/v2beta1/session.proto
Expand Up @@ -146,12 +146,12 @@ message DetectIntentRequest {

// Required. The input specification. It can be set to:
//
// 1. an audio config
// which instructs the speech recognizer how to process the speech audio,
// 1. an audio config which instructs the speech recognizer how to process
// the speech audio,
//
// 2. a conversational query in the form of text, or
// 2. a conversational query in the form of text, or
//
// 3. an event that specifies which intent to trigger.
// 3. an event that specifies which intent to trigger.
QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED];

// Instructs the speech synthesizer how to generate the output
Expand Down Expand Up @@ -275,12 +275,12 @@ message QueryParameters {

// Represents the query input. It can contain either:
//
// 1. An audio config which
// instructs the speech recognizer how to process the speech audio.
// 1. An audio config which instructs the speech recognizer how to process the
// speech audio.
//
// 2. A conversational query in the form of text.
// 2. A conversational query in the form of text.
//
// 3. An event that specifies which intent to trigger.
// 3. An event that specifies which intent to trigger.
message QueryInput {
// Required. The input specification.
oneof input {
Expand Down Expand Up @@ -337,16 +337,14 @@ message QueryResult {
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// - MapKey type: string
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: depending on parameter value type, could be one of string,
// number, boolean, null, list or map
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
// - Else: parameter value
// * MapKey type: string
// * MapKey value: parameter name
// * MapValue type: If parameter's entity type is a composite entity then use
// map, otherwise, depending on the parameter value type, it could be one of
// string, number, boolean, null, list or map.
// * MapValue value: If parameter's entity type is a composite entity then use
// map from composite entity property names to property values, otherwise,
// use parameter value.
google.protobuf.Struct parameters = 4;

// This field is set to:
Expand Down Expand Up @@ -545,12 +543,12 @@ message StreamingDetectIntentRequest {

// Required. The input specification. It can be set to:
//
// 1. an audio config which instructs the speech recognizer how to process
// the speech audio,
// 1. an audio config which instructs the speech recognizer how to process
// the speech audio,
//
// 2. a conversational query in the form of text, or
// 2. a conversational query in the form of text, or
//
// 3. an event that specifies which intent to trigger.
// 3. an event that specifies which intent to trigger.
QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED];

// DEPRECATED. Please use
Expand Down Expand Up @@ -857,16 +855,14 @@ message EventInput {
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// - MapKey type: string
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: depending on parameter value type, could be one of string,
// number, boolean, null, list or map
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
// - Else: parameter value
// * MapKey type: string
// * MapKey value: parameter name
// * MapValue type: If parameter's entity type is a composite entity then use
// map, otherwise, depending on the parameter value type, it could be one of
// string, number, boolean, null, list or map.
// * MapValue value: If parameter's entity type is a composite entity then use
// map from composite entity property names to property values, otherwise,
// use parameter value.
google.protobuf.Struct parameters = 2;

// Required. The language of this query. See [Language
Expand Down
16 changes: 8 additions & 8 deletions google/cloud/dialogflow/v2beta1/validation_result.proto
Expand Up @@ -50,16 +50,16 @@ message ValidationError {
// The names of the entries that the error is associated with.
// Format:
//
// - "projects/<Project ID>/agent", if the error is associated with the entire
// - `projects/<Project ID>/agent`, if the error is associated with the entire
// agent.
// - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
// - `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
// - `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.
repeated string entries = 3;

Expand Down

0 comments on commit a03330a

Please sign in to comment.