Synchronize new proto/yaml changes.

PiperOrigin-RevId: 188751737
This commit is contained in:
Google APIs 2018-03-12 11:28:18 -07:00 committed by Copybara-Service
parent 5b483ba7f0
commit eda28a3c4a
2 changed files with 20 additions and 3 deletions

View File

@ -30,19 +30,32 @@ service TextToSpeech {
// Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
// supported for synthesis.
rpc ListVoices(ListVoicesRequest) returns (ListVoicesResponse) {
option (google.api.http) = { get: "/v1beta1/voices" };
option (google.api.http) = {
get: "/v1beta1/voices"
};
}
// Synthesizes speech synchronously: receive results after all text input
// has been processed.
rpc SynthesizeSpeech(SynthesizeSpeechRequest) returns (SynthesizeSpeechResponse) {
option (google.api.http) = { post: "/v1beta1/text:synthesize" body: "*" };
option (google.api.http) = {
post: "/v1beta1/text:synthesize"
body: "*"
};
}
}
// The top-level message sent by the client for the `ListVoices` method.
message ListVoicesRequest {
// Optional (but recommended)
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
// specified, the ListVoices call will only return voices that can be used to
// synthesize this language_code. E.g. when specifying "en-NZ", you will get
// supported "en-*" voices; when specifying "no", you will get supported
// "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
// will also get supported "cmn-*" voices; specifying "zh-hk" will also get
// supported "yue-*" voices.
string language_code = 1;
}
// The message returned to the client by the `ListVoices` method.

View File

@ -115,6 +115,10 @@ interfaces:
# the call is retrying, refer to retry_params_name instead.
methods:
- name: ListVoices
flattening:
groups:
- parameters:
- language_code
request_object_method: true
retry_codes_name: idempotent
retry_params_name: default