Skip to content

Commit 86c3294

Browse files
Google APIscopybara-github
authored andcommitted
chore: fix typos and reformatted files
PiperOrigin-RevId: 423128259
1 parent 56715c6 commit 86c3294

10 files changed

Lines changed: 214 additions & 213 deletions

google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ syntax = "proto3";
1616

1717
package google.cloud.dialogflow.cx.v3beta1;
1818

19+
import "google/api/annotations.proto";
1920
import "google/api/field_behavior.proto";
2021
import "google/protobuf/duration.proto";
21-
import "google/api/annotations.proto";
2222

2323
option cc_enable_arenas = true;
2424
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";

google/cloud/dialogflow/cx/v3beta1/audio_config.proto

Lines changed: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ syntax = "proto3";
1616

1717
package google.cloud.dialogflow.cx.v3beta1;
1818

19+
import "google/api/annotations.proto";
1920
import "google/api/field_behavior.proto";
2021
import "google/api/resource.proto";
2122
import "google/protobuf/duration.proto";
2223
import "google/protobuf/timestamp.proto";
23-
import "google/api/annotations.proto";
2424

2525
option cc_enable_arenas = true;
2626
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
@@ -31,31 +31,6 @@ option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
3131
option objc_class_prefix = "DF";
3232
option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1";
3333

34-
// Information for a word recognized by the speech recognizer.
35-
message SpeechWordInfo {
36-
// The word this info is for.
37-
string word = 3;
38-
39-
// Time offset relative to the beginning of the audio that corresponds to the
40-
// start of the spoken word. This is an experimental feature and the accuracy
41-
// of the time offset can vary.
42-
google.protobuf.Duration start_offset = 1;
43-
44-
// Time offset relative to the beginning of the audio that corresponds to the
45-
// end of the spoken word. This is an experimental feature and the accuracy of
46-
// the time offset can vary.
47-
google.protobuf.Duration end_offset = 2;
48-
49-
// The Speech confidence between 0.0 and 1.0 for this word. A higher number
50-
// indicates an estimated greater likelihood that the recognized word is
51-
// correct. The default of 0.0 is a sentinel value indicating that confidence
52-
// was not set.
53-
//
54-
// This field is not guaranteed to be fully stable over time for the same
55-
// audio input. Users should also not rely on it to always be provided.
56-
float confidence = 4;
57-
}
58-
5934
// Audio encoding of the audio content sent in the conversational query request.
6035
// Refer to the
6136
// [Cloud Speech API
@@ -105,6 +80,74 @@ enum AudioEncoding {
10580
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
10681
}
10782

83+
// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] to use.
84+
//
85+
// See the [Cloud Speech
86+
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
87+
// for which models have different variants. For example, the "phone_call" model
88+
// has both a standard and an enhanced variant. When you use an enhanced model,
89+
// you will generally receive higher quality results than for a standard model.
90+
enum SpeechModelVariant {
91+
// No model variant specified. In this case Dialogflow defaults to
92+
// USE_BEST_AVAILABLE.
93+
SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;
94+
95+
// Use the best available variant of the [Speech
96+
// model][InputAudioConfig.model] that the caller is eligible for.
97+
//
98+
// Please see the [Dialogflow
99+
// docs](https://cloud.google.com/dialogflow/docs/data-logging) for
100+
// how to make your project eligible for enhanced models.
101+
USE_BEST_AVAILABLE = 1;
102+
103+
// Use standard model variant even if an enhanced model is available. See the
104+
// [Cloud Speech
105+
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
106+
// for details about enhanced models.
107+
USE_STANDARD = 2;
108+
109+
// Use an enhanced model variant:
110+
//
111+
// * If an enhanced variant does not exist for the given
112+
// [model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] and request language, Dialogflow falls
113+
// back to the standard variant.
114+
//
115+
// The [Cloud Speech
116+
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
117+
// describes which models have enhanced variants.
118+
//
119+
// * If the API caller isn't eligible for enhanced models, Dialogflow returns
120+
// an error. Please see the [Dialogflow
121+
// docs](https://cloud.google.com/dialogflow/docs/data-logging)
122+
// for how to make your project eligible.
123+
USE_ENHANCED = 3;
124+
}
125+
126+
// Information for a word recognized by the speech recognizer.
127+
message SpeechWordInfo {
128+
// The word this info is for.
129+
string word = 3;
130+
131+
// Time offset relative to the beginning of the audio that corresponds to the
132+
// start of the spoken word. This is an experimental feature and the accuracy
133+
// of the time offset can vary.
134+
google.protobuf.Duration start_offset = 1;
135+
136+
// Time offset relative to the beginning of the audio that corresponds to the
137+
// end of the spoken word. This is an experimental feature and the accuracy of
138+
// the time offset can vary.
139+
google.protobuf.Duration end_offset = 2;
140+
141+
// The Speech confidence between 0.0 and 1.0 for this word. A higher number
142+
// indicates an estimated greater likelihood that the recognized word is
143+
// correct. The default of 0.0 is a sentinel value indicating that confidence
144+
// was not set.
145+
//
146+
// This field is not guaranteed to be fully stable over time for the same
147+
// audio input. Users should also not rely on it to always be provided.
148+
float confidence = 4;
149+
}
150+
108151
// Instructs the speech recognizer on how to process the audio content.
109152
message InputAudioConfig {
110153
// Required. Audio encoding of the audio content to process.
@@ -158,47 +201,21 @@ message InputAudioConfig {
158201
bool single_utterance = 8;
159202
}
160203

161-
// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] to use.
162-
//
163-
// See the [Cloud Speech
164-
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
165-
// for which models have different variants. For example, the "phone_call" model
166-
// has both a standard and an enhanced variant. When you use an enhanced model,
167-
// you will generally receive higher quality results than for a standard model.
168-
enum SpeechModelVariant {
169-
// No model variant specified. In this case Dialogflow defaults to
170-
// USE_BEST_AVAILABLE.
171-
SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;
204+
// Gender of the voice as described in
205+
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
206+
enum SsmlVoiceGender {
207+
// An unspecified gender, which means that the client doesn't care which
208+
// gender the selected voice will have.
209+
SSML_VOICE_GENDER_UNSPECIFIED = 0;
172210

173-
// Use the best available variant of the [Speech
174-
// model][InputAudioConfig.model] that the caller is eligible for.
175-
//
176-
// Please see the [Dialogflow
177-
// docs](https://cloud.google.com/dialogflow/docs/data-logging) for
178-
// how to make your project eligible for enhanced models.
179-
USE_BEST_AVAILABLE = 1;
211+
// A male voice.
212+
SSML_VOICE_GENDER_MALE = 1;
180213

181-
// Use standard model variant even if an enhanced model is available. See the
182-
// [Cloud Speech
183-
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
184-
// for details about enhanced models.
185-
USE_STANDARD = 2;
214+
// A female voice.
215+
SSML_VOICE_GENDER_FEMALE = 2;
186216

187-
// Use an enhanced model variant:
188-
//
189-
// * If an enhanced variant does not exist for the given
190-
// [model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] and request language, Dialogflow falls
191-
// back to the standard variant.
192-
//
193-
// The [Cloud Speech
194-
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
195-
// describes which models have enhanced variants.
196-
//
197-
// * If the API caller isn't eligible for enhanced models, Dialogflow returns
198-
// an error. Please see the [Dialogflow
199-
// docs](https://cloud.google.com/dialogflow/docs/data-logging)
200-
// for how to make your project eligible.
201-
USE_ENHANCED = 3;
217+
// A gender-neutral voice.
218+
SSML_VOICE_GENDER_NEUTRAL = 3;
202219
}
203220

204221
// Description of which voice to use for speech synthesis.
@@ -251,39 +268,6 @@ message SynthesizeSpeechConfig {
251268
VoiceSelectionParams voice = 4;
252269
}
253270

254-
// Instructs the speech synthesizer how to generate the output audio content.
255-
message OutputAudioConfig {
256-
// Required. Audio encoding of the synthesized audio content.
257-
OutputAudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED];
258-
259-
// Optional. The synthesis sample rate (in hertz) for this audio. If not
260-
// provided, then the synthesizer will use the default sample rate based on
261-
// the audio encoding. If this is different from the voice's natural sample
262-
// rate, then the synthesizer will honor this request by converting to the
263-
// desired sample rate (which might result in worse audio quality).
264-
int32 sample_rate_hertz = 2;
265-
266-
// Optional. Configuration of how speech should be synthesized.
267-
SynthesizeSpeechConfig synthesize_speech_config = 3;
268-
}
269-
270-
// Gender of the voice as described in
271-
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
272-
enum SsmlVoiceGender {
273-
// An unspecified gender, which means that the client doesn't care which
274-
// gender the selected voice will have.
275-
SSML_VOICE_GENDER_UNSPECIFIED = 0;
276-
277-
// A male voice.
278-
SSML_VOICE_GENDER_MALE = 1;
279-
280-
// A female voice.
281-
SSML_VOICE_GENDER_FEMALE = 2;
282-
283-
// A gender-neutral voice.
284-
SSML_VOICE_GENDER_NEUTRAL = 3;
285-
}
286-
287271
// Audio encoding of the output audio format in Text-To-Speech.
288272
enum OutputAudioEncoding {
289273
// Not specified.
@@ -308,3 +292,19 @@ enum OutputAudioEncoding {
308292
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
309293
OUTPUT_AUDIO_ENCODING_MULAW = 5;
310294
}
295+
296+
// Instructs the speech synthesizer how to generate the output audio content.
297+
message OutputAudioConfig {
298+
// Required. Audio encoding of the synthesized audio content.
299+
OutputAudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED];
300+
301+
// Optional. The synthesis sample rate (in hertz) for this audio. If not
302+
// provided, then the synthesizer will use the default sample rate based on
303+
// the audio encoding. If this is different from the voice's natural sample
304+
// rate, then the synthesizer will honor this request by converting to the
305+
// desired sample rate (which might result in worse audio quality).
306+
int32 sample_rate_hertz = 2;
307+
308+
// Optional. Configuration of how speech should be synthesized.
309+
SynthesizeSpeechConfig synthesize_speech_config = 3;
310+
}

google/cloud/dialogflow/cx/v3beta1/deployment.proto

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ message Deployment {
6767
pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}"
6868
};
6969

70+
// The state of the deployment.
71+
enum State {
72+
// State unspecified.
73+
STATE_UNSPECIFIED = 0;
74+
75+
// The deployment is running.
76+
RUNNING = 1;
77+
78+
// The deployment succeeded.
79+
SUCCEEDED = 2;
80+
81+
// The deployment failed.
82+
FAILED = 3;
83+
}
84+
7085
// Result of the deployment.
7186
message Result {
7287
// Results of test cases running before the deployment.
@@ -84,21 +99,6 @@ message Deployment {
8499
}];
85100
}
86101

87-
// The state of the deployment.
88-
enum State {
89-
// State unspecified.
90-
STATE_UNSPECIFIED = 0;
91-
92-
// The deployment is running.
93-
RUNNING = 1;
94-
95-
// The deployment succeeded.
96-
SUCCEEDED = 2;
97-
98-
// The deployment failed.
99-
FAILED = 3;
100-
}
101-
102102
// The name of the deployment.
103103
// Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
104104
// ID>/environments/<Environment ID>/deployments/<Deployment ID>.

google/cloud/dialogflow/cx/v3beta1/entity_type.proto

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,37 @@ message EntityType {
123123
pattern: "projects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}"
124124
};
125125

126+
// Represents kinds of entities.
127+
enum Kind {
128+
// Not specified. This value should be never used.
129+
KIND_UNSPECIFIED = 0;
130+
131+
// Map entity types allow mapping of a group of synonyms to a canonical
132+
// value.
133+
KIND_MAP = 1;
134+
135+
// List entity types contain a set of entries that do not map to canonical
136+
// values. However, list entity types can contain references to other entity
137+
// types (with or without aliases).
138+
KIND_LIST = 2;
139+
140+
// Regexp entity types allow to specify regular expressions in entries
141+
// values.
142+
KIND_REGEXP = 3;
143+
}
144+
145+
// Represents different entity type expansion modes. Automated expansion
146+
// allows an agent to recognize values that have not been explicitly listed in
147+
// the entity (for example, new kinds of shopping list items).
148+
enum AutoExpansionMode {
149+
// Auto expansion disabled for the entity.
150+
AUTO_EXPANSION_MODE_UNSPECIFIED = 0;
151+
152+
// Allows an agent to recognize values that have not been explicitly
153+
// listed in the entity.
154+
AUTO_EXPANSION_MODE_DEFAULT = 1;
155+
}
156+
126157
// An **entity entry** for an associated entity type.
127158
message Entity {
128159
// Required. The primary value associated with this entity entry.
@@ -155,37 +186,6 @@ message EntityType {
155186
string value = 1 [(google.api.field_behavior) = REQUIRED];
156187
}
157188

158-
// Represents kinds of entities.
159-
enum Kind {
160-
// Not specified. This value should be never used.
161-
KIND_UNSPECIFIED = 0;
162-
163-
// Map entity types allow mapping of a group of synonyms to a canonical
164-
// value.
165-
KIND_MAP = 1;
166-
167-
// List entity types contain a set of entries that do not map to canonical
168-
// values. However, list entity types can contain references to other entity
169-
// types (with or without aliases).
170-
KIND_LIST = 2;
171-
172-
// Regexp entity types allow to specify regular expressions in entries
173-
// values.
174-
KIND_REGEXP = 3;
175-
}
176-
177-
// Represents different entity type expansion modes. Automated expansion
178-
// allows an agent to recognize values that have not been explicitly listed in
179-
// the entity (for example, new kinds of shopping list items).
180-
enum AutoExpansionMode {
181-
// Auto expansion disabled for the entity.
182-
AUTO_EXPANSION_MODE_UNSPECIFIED = 0;
183-
184-
// Allows an agent to recognize values that have not been explicitly
185-
// listed in the entity.
186-
AUTO_EXPANSION_MODE_DEFAULT = 1;
187-
}
188-
189189
// The unique identifier of the entity type.
190190
// Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType].
191191
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent

0 commit comments

Comments
 (0)