@@ -34,7 +34,8 @@ option objc_class_prefix = "GCS";
34
34
// Service that implements Google Cloud Speech Adaptation API.
35
35
service Adaptation {
36
36
option (google.api.default_host ) = "speech.googleapis.com" ;
37
- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
37
+ option (google.api.oauth_scopes ) =
38
+ "https://www.googleapis.com/auth/cloud-platform" ;
38
39
39
40
// Create a set of phrase hints. Each item in the set can be a single word or
40
41
// a multi-word phrase. The items in the PhraseSet are favored by the
@@ -86,7 +87,8 @@ service Adaptation {
86
87
post : "/v1p1beta1/{parent=projects/*/locations/*}/customClasses"
87
88
body : "*"
88
89
};
89
- option (google.api.method_signature ) = "parent,custom_class,custom_class_id" ;
90
+ option (google.api.method_signature ) =
91
+ "parent,custom_class,custom_class_id" ;
90
92
}
91
93
92
94
// Get a custom class.
@@ -98,7 +100,8 @@ service Adaptation {
98
100
}
99
101
100
102
// List custom classes.
101
- rpc ListCustomClasses (ListCustomClassesRequest ) returns (ListCustomClassesResponse ) {
103
+ rpc ListCustomClasses (ListCustomClassesRequest )
104
+ returns (ListCustomClassesResponse ) {
102
105
option (google.api.http ) = {
103
106
get : "/v1p1beta1/{parent=projects/*/locations/*}/customClasses"
104
107
};
@@ -115,7 +118,8 @@ service Adaptation {
115
118
}
116
119
117
120
// Delete a custom class.
118
- rpc DeleteCustomClass (DeleteCustomClassRequest ) returns (google .protobuf .Empty ) {
121
+ rpc DeleteCustomClass (DeleteCustomClassRequest )
122
+ returns (google .protobuf .Empty ) {
119
123
option (google.api.http ) = {
120
124
delete : "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}"
121
125
};
@@ -125,15 +129,16 @@ service Adaptation {
125
129
126
130
// Message sent by the client for the `CreatePhraseSet` method.
127
131
message CreatePhraseSetRequest {
128
- // Required. The parent resource where this phrase set will be created. Format:
132
+ // Required. The parent resource where this phrase set will be created.
133
+ // Format:
129
134
//
130
135
// `projects/{project}/locations/{location}/phraseSets`
131
136
//
132
137
// Speech-to-Text supports three locations: `global`, `us` (US North America),
133
138
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
134
139
// endpoint, use the `global` location. To specify a region, use a
135
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
136
- // `eu` location value.
140
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
141
+ // with matching `us` or `eu` location value.
137
142
string parent = 1 [
138
143
(google.api.field_behavior ) = REQUIRED ,
139
144
(google.api.resource_reference ) = {
@@ -164,8 +169,8 @@ message UpdatePhraseSetRequest {
164
169
// Speech-to-Text supports three locations: `global`, `us` (US North America),
165
170
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
166
171
// endpoint, use the `global` location. To specify a region, use a
167
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
168
- // `eu` location value.
172
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
173
+ // with matching `us` or `eu` location value.
169
174
PhraseSet phrase_set = 1 [(google.api.field_behavior ) = REQUIRED ];
170
175
171
176
// The list of fields to be updated.
@@ -181,8 +186,8 @@ message GetPhraseSetRequest {
181
186
// Speech-to-Text supports three locations: `global`, `us` (US North America),
182
187
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
183
188
// endpoint, use the `global` location. To specify a region, use a
184
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
185
- // `eu` location value.
189
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
190
+ // with matching `us` or `eu` location value.
186
191
string name = 1 [
187
192
(google.api.field_behavior ) = REQUIRED ,
188
193
(google.api.resource_reference ) = {
@@ -200,8 +205,8 @@ message ListPhraseSetRequest {
200
205
// Speech-to-Text supports three locations: `global`, `us` (US North America),
201
206
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
202
207
// endpoint, use the `global` location. To specify a region, use a
203
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
204
- // `eu` location value.
208
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
209
+ // with matching `us` or `eu` location value.
205
210
string parent = 1 [
206
211
(google.api.field_behavior ) = REQUIRED ,
207
212
(google.api.resource_reference ) = {
@@ -248,15 +253,16 @@ message DeletePhraseSetRequest {
248
253
249
254
// Message sent by the client for the `CreateCustomClass` method.
250
255
message CreateCustomClassRequest {
251
- // Required. The parent resource where this custom class will be created. Format:
256
+ // Required. The parent resource where this custom class will be created.
257
+ // Format:
252
258
//
253
259
// `projects/{project}/locations/{location}/customClasses`
254
260
//
255
261
// Speech-to-Text supports three locations: `global`, `us` (US North America),
256
262
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
257
263
// endpoint, use the `global` location. To specify a region, use a
258
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
259
- // `eu` location value.
264
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
265
+ // with matching `us` or `eu` location value.
260
266
string parent = 1 [
261
267
(google.api.field_behavior ) = REQUIRED ,
262
268
(google.api.resource_reference ) = {
@@ -287,8 +293,8 @@ message UpdateCustomClassRequest {
287
293
// Speech-to-Text supports three locations: `global`, `us` (US North America),
288
294
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
289
295
// endpoint, use the `global` location. To specify a region, use a
290
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
291
- // `eu` location value.
296
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
297
+ // with matching `us` or `eu` location value.
292
298
CustomClass custom_class = 1 [(google.api.field_behavior ) = REQUIRED ];
293
299
294
300
// The list of fields to be updated.
@@ -317,8 +323,8 @@ message ListCustomClassesRequest {
317
323
// Speech-to-Text supports three locations: `global`, `us` (US North America),
318
324
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
319
325
// endpoint, use the `global` location. To specify a region, use a
320
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
321
- // `eu` location value.
326
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
327
+ // with matching `us` or `eu` location value.
322
328
string parent = 1 [
323
329
(google.api.field_behavior ) = REQUIRED ,
324
330
(google.api.resource_reference ) = {
@@ -359,8 +365,8 @@ message DeleteCustomClassRequest {
359
365
// Speech-to-Text supports three locations: `global`, `us` (US North America),
360
366
// and `eu` (Europe). If you are calling the `speech.googleapis.com`
361
367
// endpoint, use the `global` location. To specify a region, use a
362
- // [regional endpoint](/ speech-to-text/docs/endpoints) with matching `us` or
363
- // `eu` location value.
368
+ // [regional endpoint](https://cloud.google.com/ speech-to-text/docs/endpoints)
369
+ // with matching `us` or `eu` location value.
364
370
string name = 1 [
365
371
(google.api.field_behavior ) = REQUIRED ,
366
372
(google.api.resource_reference ) = {
0 commit comments