Skip to content

Commit fb700a6

Browse files
Google APIscopybara-github
authored andcommitted
chore: fixed typos and reformatted files
PiperOrigin-RevId: 423148154
1 parent c7d1948 commit fb700a6

11 files changed

Lines changed: 190 additions & 189 deletions

google/cloud/dialogflow/cx/v3/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.v3;
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.V3";

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

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

1717
package google.cloud.dialogflow.cx.v3;
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.V3";
@@ -80,6 +80,49 @@ enum AudioEncoding {
8080
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
8181
}
8282

83+
// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.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.v3.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+
83126
// Information for a word recognized by the speech recognizer.
84127
message SpeechWordInfo {
85128
// The word this info is for.
@@ -158,47 +201,21 @@ message InputAudioConfig {
158201
bool single_utterance = 8;
159202
}
160203

161-
// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.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.v3.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.
@@ -252,39 +269,6 @@ message SynthesizeSpeechConfig {
252269
VoiceSelectionParams voice = 4;
253270
}
254271

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

google/cloud/dialogflow/cx/v3/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/v3/entity_type.proto

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

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

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

google/cloud/dialogflow/cx/v3/environment.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ message Environment {
200200
}];
201201

202202
// Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
203-
// Default false. If set to ture, run once a day.
203+
// Default false. If set to true, run once a day.
204204
bool enable_continuous_run = 2;
205205

206206
// Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before

0 commit comments

Comments
 (0)