| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.21.9 |
| 19 |
// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto |
| 20 |
|
| 21 |
package texttospeech |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
reflect "reflect" |
| 26 |
sync "sync" |
| 27 |
|
| 28 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 29 |
grpc "google.golang.org/grpc" |
| 30 |
codes "google.golang.org/grpc/codes" |
| 31 |
status "google.golang.org/grpc/status" |
| 32 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 33 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 34 |
) |
| 35 |
|
| 36 |
const ( |
| 37 |
// Verify that this generated code is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
// Gender of the voice as described in |
| 44 |
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). |
| 45 |
type SsmlVoiceGender int32 |
| 46 |
|
| 47 |
const ( |
| 48 |
// An unspecified gender. |
| 49 |
// In VoiceSelectionParams, this means that the client doesn't care which |
| 50 |
// gender the selected voice will have. In the Voice field of |
| 51 |
// ListVoicesResponse, this may mean that the voice doesn't fit any of the |
| 52 |
// other categories in this enum, or that the gender of the voice isn't known. |
| 53 |
SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED SsmlVoiceGender = 0 |
| 54 |
// A male voice. |
| 55 |
SsmlVoiceGender_MALE SsmlVoiceGender = 1 |
| 56 |
// A female voice. |
| 57 |
SsmlVoiceGender_FEMALE SsmlVoiceGender = 2 |
| 58 |
// A gender-neutral voice. This voice is not yet supported. |
| 59 |
SsmlVoiceGender_NEUTRAL SsmlVoiceGender = 3 |
| 60 |
) |
| 61 |
|
| 62 |
// Enum value maps for SsmlVoiceGender. |
| 63 |
var ( |
| 64 |
SsmlVoiceGender_name = map[int32]string{ |
| 65 |
0: "SSML_VOICE_GENDER_UNSPECIFIED", |
| 66 |
1: "MALE", |
| 67 |
2: "FEMALE", |
| 68 |
3: "NEUTRAL", |
| 69 |
} |
| 70 |
SsmlVoiceGender_value = map[string]int32{ |
| 71 |
"SSML_VOICE_GENDER_UNSPECIFIED": 0, |
| 72 |
"MALE": 1, |
| 73 |
"FEMALE": 2, |
| 74 |
"NEUTRAL": 3, |
| 75 |
} |
| 76 |
) |
| 77 |
|
| 78 |
func (x SsmlVoiceGender) Enum() *SsmlVoiceGender { |
| 79 |
p := new(SsmlVoiceGender) |
| 80 |
*p = x |
| 81 |
return p |
| 82 |
} |
| 83 |
|
| 84 |
func (x SsmlVoiceGender) String() string { |
| 85 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 86 |
} |
| 87 |
|
| 88 |
func (SsmlVoiceGender) Descriptor() protoreflect.EnumDescriptor { |
| 89 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[0].Descriptor() |
| 90 |
} |
| 91 |
|
| 92 |
func (SsmlVoiceGender) Type() protoreflect.EnumType { |
| 93 |
return &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[0] |
| 94 |
} |
| 95 |
|
| 96 |
func (x SsmlVoiceGender) Number() protoreflect.EnumNumber { |
| 97 |
return protoreflect.EnumNumber(x) |
| 98 |
} |
| 99 |
|
| 100 |
// Deprecated: Use SsmlVoiceGender.Descriptor instead. |
| 101 |
func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) { |
| 102 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{0} |
| 103 |
} |
| 104 |
|
| 105 |
// Configuration to set up audio encoder. The encoding determines the output |
| 106 |
// audio format that we'd like. |
| 107 |
type AudioEncoding int32 |
| 108 |
|
| 109 |
const ( |
| 110 |
// Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. |
| 111 |
AudioEncoding_AUDIO_ENCODING_UNSPECIFIED AudioEncoding = 0 |
| 112 |
// Uncompressed 16-bit signed little-endian samples (Linear PCM). |
| 113 |
// Audio content returned as LINEAR16 also contains a WAV header. |
| 114 |
AudioEncoding_LINEAR16 AudioEncoding = 1 |
| 115 |
// MP3 audio at 32kbps. |
| 116 |
AudioEncoding_MP3 AudioEncoding = 2 |
| 117 |
// MP3 at 64kbps. |
| 118 |
AudioEncoding_MP3_64_KBPS AudioEncoding = 4 |
| 119 |
// Opus encoded audio wrapped in an ogg container. The result will be a |
| 120 |
// file which can be played natively on Android, and in browsers (at least |
| 121 |
// Chrome and Firefox). The quality of the encoding is considerably higher |
| 122 |
// than MP3 while using approximately the same bitrate. |
| 123 |
AudioEncoding_OGG_OPUS AudioEncoding = 3 |
| 124 |
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. |
| 125 |
// Audio content returned as MULAW also contains a WAV header. |
| 126 |
AudioEncoding_MULAW AudioEncoding = 5 |
| 127 |
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law. |
| 128 |
// Audio content returned as ALAW also contains a WAV header. |
| 129 |
AudioEncoding_ALAW AudioEncoding = 6 |
| 130 |
) |
| 131 |
|
| 132 |
// Enum value maps for AudioEncoding. |
| 133 |
var ( |
| 134 |
AudioEncoding_name = map[int32]string{ |
| 135 |
0: "AUDIO_ENCODING_UNSPECIFIED", |
| 136 |
1: "LINEAR16", |
| 137 |
2: "MP3", |
| 138 |
4: "MP3_64_KBPS", |
| 139 |
3: "OGG_OPUS", |
| 140 |
5: "MULAW", |
| 141 |
6: "ALAW", |
| 142 |
} |
| 143 |
AudioEncoding_value = map[string]int32{ |
| 144 |
"AUDIO_ENCODING_UNSPECIFIED": 0, |
| 145 |
"LINEAR16": 1, |
| 146 |
"MP3": 2, |
| 147 |
"MP3_64_KBPS": 4, |
| 148 |
"OGG_OPUS": 3, |
| 149 |
"MULAW": 5, |
| 150 |
"ALAW": 6, |
| 151 |
} |
| 152 |
) |
| 153 |
|
| 154 |
func (x AudioEncoding) Enum() *AudioEncoding { |
| 155 |
p := new(AudioEncoding) |
| 156 |
*p = x |
| 157 |
return p |
| 158 |
} |
| 159 |
|
| 160 |
func (x AudioEncoding) String() string { |
| 161 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 162 |
} |
| 163 |
|
| 164 |
func (AudioEncoding) Descriptor() protoreflect.EnumDescriptor { |
| 165 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[1].Descriptor() |
| 166 |
} |
| 167 |
|
| 168 |
func (AudioEncoding) Type() protoreflect.EnumType { |
| 169 |
return &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[1] |
| 170 |
} |
| 171 |
|
| 172 |
func (x AudioEncoding) Number() protoreflect.EnumNumber { |
| 173 |
return protoreflect.EnumNumber(x) |
| 174 |
} |
| 175 |
|
| 176 |
// Deprecated: Use AudioEncoding.Descriptor instead. |
| 177 |
func (AudioEncoding) EnumDescriptor() ([]byte, []int) { |
| 178 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{1} |
| 179 |
} |
| 180 |
|
| 181 |
// The type of timepoint information that is returned in the response. |
| 182 |
type SynthesizeSpeechRequest_TimepointType int32 |
| 183 |
|
| 184 |
const ( |
| 185 |
// Not specified. No timepoint information will be returned. |
| 186 |
SynthesizeSpeechRequest_TIMEPOINT_TYPE_UNSPECIFIED SynthesizeSpeechRequest_TimepointType = 0 |
| 187 |
// Timepoint information of `<mark>` tags in SSML input will be returned. |
| 188 |
SynthesizeSpeechRequest_SSML_MARK SynthesizeSpeechRequest_TimepointType = 1 |
| 189 |
) |
| 190 |
|
| 191 |
// Enum value maps for SynthesizeSpeechRequest_TimepointType. |
| 192 |
var ( |
| 193 |
SynthesizeSpeechRequest_TimepointType_name = map[int32]string{ |
| 194 |
0: "TIMEPOINT_TYPE_UNSPECIFIED", |
| 195 |
1: "SSML_MARK", |
| 196 |
} |
| 197 |
SynthesizeSpeechRequest_TimepointType_value = map[string]int32{ |
| 198 |
"TIMEPOINT_TYPE_UNSPECIFIED": 0, |
| 199 |
"SSML_MARK": 1, |
| 200 |
} |
| 201 |
) |
| 202 |
|
| 203 |
func (x SynthesizeSpeechRequest_TimepointType) Enum() *SynthesizeSpeechRequest_TimepointType { |
| 204 |
p := new(SynthesizeSpeechRequest_TimepointType) |
| 205 |
*p = x |
| 206 |
return p |
| 207 |
} |
| 208 |
|
| 209 |
func (x SynthesizeSpeechRequest_TimepointType) String() string { |
| 210 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 211 |
} |
| 212 |
|
| 213 |
func (SynthesizeSpeechRequest_TimepointType) Descriptor() protoreflect.EnumDescriptor { |
| 214 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[2].Descriptor() |
| 215 |
} |
| 216 |
|
| 217 |
func (SynthesizeSpeechRequest_TimepointType) Type() protoreflect.EnumType { |
| 218 |
return &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[2] |
| 219 |
} |
| 220 |
|
| 221 |
func (x SynthesizeSpeechRequest_TimepointType) Number() protoreflect.EnumNumber { |
| 222 |
return protoreflect.EnumNumber(x) |
| 223 |
} |
| 224 |
|
| 225 |
// Deprecated: Use SynthesizeSpeechRequest_TimepointType.Descriptor instead. |
| 226 |
func (SynthesizeSpeechRequest_TimepointType) EnumDescriptor() ([]byte, []int) { |
| 227 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{3, 0} |
| 228 |
} |
| 229 |
|
| 230 |
// The usage of the synthesized audio. You must report your honest and |
| 231 |
// correct usage of the service as it's regulated by contract and will cause |
| 232 |
// significant difference in billing. |
| 233 |
type CustomVoiceParams_ReportedUsage int32 |
| 234 |
|
| 235 |
const ( |
| 236 |
// Request with reported usage unspecified will be rejected. |
| 237 |
CustomVoiceParams_REPORTED_USAGE_UNSPECIFIED CustomVoiceParams_ReportedUsage = 0 |
| 238 |
// For scenarios where the synthesized audio is not downloadable and can |
| 239 |
// only be used once. For example, real-time request in IVR system. |
| 240 |
CustomVoiceParams_REALTIME CustomVoiceParams_ReportedUsage = 1 |
| 241 |
// For scenarios where the synthesized audio is downloadable and can be |
| 242 |
// reused. For example, the synthesized audio is downloaded, stored in |
| 243 |
// customer service system and played repeatedly. |
| 244 |
CustomVoiceParams_OFFLINE CustomVoiceParams_ReportedUsage = 2 |
| 245 |
) |
| 246 |
|
| 247 |
// Enum value maps for CustomVoiceParams_ReportedUsage. |
| 248 |
var ( |
| 249 |
CustomVoiceParams_ReportedUsage_name = map[int32]string{ |
| 250 |
0: "REPORTED_USAGE_UNSPECIFIED", |
| 251 |
1: "REALTIME", |
| 252 |
2: "OFFLINE", |
| 253 |
} |
| 254 |
CustomVoiceParams_ReportedUsage_value = map[string]int32{ |
| 255 |
"REPORTED_USAGE_UNSPECIFIED": 0, |
| 256 |
"REALTIME": 1, |
| 257 |
"OFFLINE": 2, |
| 258 |
} |
| 259 |
) |
| 260 |
|
| 261 |
func (x CustomVoiceParams_ReportedUsage) Enum() *CustomVoiceParams_ReportedUsage { |
| 262 |
p := new(CustomVoiceParams_ReportedUsage) |
| 263 |
*p = x |
| 264 |
return p |
| 265 |
} |
| 266 |
|
| 267 |
func (x CustomVoiceParams_ReportedUsage) String() string { |
| 268 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 269 |
} |
| 270 |
|
| 271 |
func (CustomVoiceParams_ReportedUsage) Descriptor() protoreflect.EnumDescriptor { |
| 272 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[3].Descriptor() |
| 273 |
} |
| 274 |
|
| 275 |
func (CustomVoiceParams_ReportedUsage) Type() protoreflect.EnumType { |
| 276 |
return &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes[3] |
| 277 |
} |
| 278 |
|
| 279 |
func (x CustomVoiceParams_ReportedUsage) Number() protoreflect.EnumNumber { |
| 280 |
return protoreflect.EnumNumber(x) |
| 281 |
} |
| 282 |
|
| 283 |
// Deprecated: Use CustomVoiceParams_ReportedUsage.Descriptor instead. |
| 284 |
func (CustomVoiceParams_ReportedUsage) EnumDescriptor() ([]byte, []int) { |
| 285 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{7, 0} |
| 286 |
} |
| 287 |
|
| 288 |
// The top-level message sent by the client for the `ListVoices` method. |
| 289 |
type ListVoicesRequest struct { |
| 290 |
state protoimpl.MessageState |
| 291 |
sizeCache protoimpl.SizeCache |
| 292 |
unknownFields protoimpl.UnknownFields |
| 293 |
|
| 294 |
// Optional. Recommended. |
| 295 |
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. |
| 296 |
// If not specified, the API will return all supported voices. |
| 297 |
// If specified, the ListVoices call will only return voices that can be used |
| 298 |
// to synthesize this language_code. For example, if you specify `"en-NZ"`, |
| 299 |
// all `"en-NZ"` voices will be returned. If you specify `"no"`, both |
| 300 |
// `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be |
| 301 |
// returned. |
| 302 |
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` |
| 303 |
} |
| 304 |
|
| 305 |
func (x *ListVoicesRequest) Reset() { |
| 306 |
*x = ListVoicesRequest{} |
| 307 |
if protoimpl.UnsafeEnabled { |
| 308 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[0] |
| 309 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 310 |
ms.StoreMessageInfo(mi) |
| 311 |
} |
| 312 |
} |
| 313 |
|
| 314 |
func (x *ListVoicesRequest) String() string { |
| 315 |
return protoimpl.X.MessageStringOf(x) |
| 316 |
} |
| 317 |
|
| 318 |
func (*ListVoicesRequest) ProtoMessage() {} |
| 319 |
|
| 320 |
func (x *ListVoicesRequest) ProtoReflect() protoreflect.Message { |
| 321 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[0] |
| 322 |
if protoimpl.UnsafeEnabled && x != nil { |
| 323 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 324 |
if ms.LoadMessageInfo() == nil { |
| 325 |
ms.StoreMessageInfo(mi) |
| 326 |
} |
| 327 |
return ms |
| 328 |
} |
| 329 |
return mi.MessageOf(x) |
| 330 |
} |
| 331 |
|
| 332 |
// Deprecated: Use ListVoicesRequest.ProtoReflect.Descriptor instead. |
| 333 |
func (*ListVoicesRequest) Descriptor() ([]byte, []int) { |
| 334 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{0} |
| 335 |
} |
| 336 |
|
| 337 |
func (x *ListVoicesRequest) GetLanguageCode() string { |
| 338 |
if x != nil { |
| 339 |
return x.LanguageCode |
| 340 |
} |
| 341 |
return "" |
| 342 |
} |
| 343 |
|
| 344 |
// The message returned to the client by the `ListVoices` method. |
| 345 |
type ListVoicesResponse struct { |
| 346 |
state protoimpl.MessageState |
| 347 |
sizeCache protoimpl.SizeCache |
| 348 |
unknownFields protoimpl.UnknownFields |
| 349 |
|
| 350 |
// The list of voices. |
| 351 |
Voices []*Voice `protobuf:"bytes,1,rep,name=voices,proto3" json:"voices,omitempty"` |
| 352 |
} |
| 353 |
|
| 354 |
func (x *ListVoicesResponse) Reset() { |
| 355 |
*x = ListVoicesResponse{} |
| 356 |
if protoimpl.UnsafeEnabled { |
| 357 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[1] |
| 358 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 359 |
ms.StoreMessageInfo(mi) |
| 360 |
} |
| 361 |
} |
| 362 |
|
| 363 |
func (x *ListVoicesResponse) String() string { |
| 364 |
return protoimpl.X.MessageStringOf(x) |
| 365 |
} |
| 366 |
|
| 367 |
func (*ListVoicesResponse) ProtoMessage() {} |
| 368 |
|
| 369 |
func (x *ListVoicesResponse) ProtoReflect() protoreflect.Message { |
| 370 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[1] |
| 371 |
if protoimpl.UnsafeEnabled && x != nil { |
| 372 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 373 |
if ms.LoadMessageInfo() == nil { |
| 374 |
ms.StoreMessageInfo(mi) |
| 375 |
} |
| 376 |
return ms |
| 377 |
} |
| 378 |
return mi.MessageOf(x) |
| 379 |
} |
| 380 |
|
| 381 |
// Deprecated: Use ListVoicesResponse.ProtoReflect.Descriptor instead. |
| 382 |
func (*ListVoicesResponse) Descriptor() ([]byte, []int) { |
| 383 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{1} |
| 384 |
} |
| 385 |
|
| 386 |
func (x *ListVoicesResponse) GetVoices() []*Voice { |
| 387 |
if x != nil { |
| 388 |
return x.Voices |
| 389 |
} |
| 390 |
return nil |
| 391 |
} |
| 392 |
|
| 393 |
// Description of a voice supported by the TTS service. |
| 394 |
type Voice struct { |
| 395 |
state protoimpl.MessageState |
| 396 |
sizeCache protoimpl.SizeCache |
| 397 |
unknownFields protoimpl.UnknownFields |
| 398 |
|
| 399 |
// The languages that this voice supports, expressed as |
| 400 |
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. |
| 401 |
// "en-US", "es-419", "cmn-tw"). |
| 402 |
LanguageCodes []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` |
| 403 |
// The name of this voice. Each distinct voice has a unique name. |
| 404 |
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 405 |
// The gender of this voice. |
| 406 |
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.texttospeech.v1beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"` |
| 407 |
// The natural sample rate (in hertz) for this voice. |
| 408 |
NaturalSampleRateHertz int32 `protobuf:"varint,4,opt,name=natural_sample_rate_hertz,json=naturalSampleRateHertz,proto3" json:"natural_sample_rate_hertz,omitempty"` |
| 409 |
} |
| 410 |
|
| 411 |
func (x *Voice) Reset() { |
| 412 |
*x = Voice{} |
| 413 |
if protoimpl.UnsafeEnabled { |
| 414 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[2] |
| 415 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 416 |
ms.StoreMessageInfo(mi) |
| 417 |
} |
| 418 |
} |
| 419 |
|
| 420 |
func (x *Voice) String() string { |
| 421 |
return protoimpl.X.MessageStringOf(x) |
| 422 |
} |
| 423 |
|
| 424 |
func (*Voice) ProtoMessage() {} |
| 425 |
|
| 426 |
func (x *Voice) ProtoReflect() protoreflect.Message { |
| 427 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[2] |
| 428 |
if protoimpl.UnsafeEnabled && x != nil { |
| 429 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 430 |
if ms.LoadMessageInfo() == nil { |
| 431 |
ms.StoreMessageInfo(mi) |
| 432 |
} |
| 433 |
return ms |
| 434 |
} |
| 435 |
return mi.MessageOf(x) |
| 436 |
} |
| 437 |
|
| 438 |
// Deprecated: Use Voice.ProtoReflect.Descriptor instead. |
| 439 |
func (*Voice) Descriptor() ([]byte, []int) { |
| 440 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{2} |
| 441 |
} |
| 442 |
|
| 443 |
func (x *Voice) GetLanguageCodes() []string { |
| 444 |
if x != nil { |
| 445 |
return x.LanguageCodes |
| 446 |
} |
| 447 |
return nil |
| 448 |
} |
| 449 |
|
| 450 |
func (x *Voice) GetName() string { |
| 451 |
if x != nil { |
| 452 |
return x.Name |
| 453 |
} |
| 454 |
return "" |
| 455 |
} |
| 456 |
|
| 457 |
func (x *Voice) GetSsmlGender() SsmlVoiceGender { |
| 458 |
if x != nil { |
| 459 |
return x.SsmlGender |
| 460 |
} |
| 461 |
return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED |
| 462 |
} |
| 463 |
|
| 464 |
func (x *Voice) GetNaturalSampleRateHertz() int32 { |
| 465 |
if x != nil { |
| 466 |
return x.NaturalSampleRateHertz |
| 467 |
} |
| 468 |
return 0 |
| 469 |
} |
| 470 |
|
| 471 |
// The top-level message sent by the client for the `SynthesizeSpeech` method. |
| 472 |
type SynthesizeSpeechRequest struct { |
| 473 |
state protoimpl.MessageState |
| 474 |
sizeCache protoimpl.SizeCache |
| 475 |
unknownFields protoimpl.UnknownFields |
| 476 |
|
| 477 |
// Required. The Synthesizer requires either plain text or SSML as input. |
| 478 |
Input *SynthesisInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` |
| 479 |
// Required. The desired voice of the synthesized audio. |
| 480 |
Voice *VoiceSelectionParams `protobuf:"bytes,2,opt,name=voice,proto3" json:"voice,omitempty"` |
| 481 |
// Required. The configuration of the synthesized audio. |
| 482 |
AudioConfig *AudioConfig `protobuf:"bytes,3,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"` |
| 483 |
// Whether and what timepoints are returned in the response. |
| 484 |
EnableTimePointing []SynthesizeSpeechRequest_TimepointType `protobuf:"varint,4,rep,packed,name=enable_time_pointing,json=enableTimePointing,proto3,enum=google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest_TimepointType" json:"enable_time_pointing,omitempty"` |
| 485 |
} |
| 486 |
|
| 487 |
func (x *SynthesizeSpeechRequest) Reset() { |
| 488 |
*x = SynthesizeSpeechRequest{} |
| 489 |
if protoimpl.UnsafeEnabled { |
| 490 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[3] |
| 491 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 492 |
ms.StoreMessageInfo(mi) |
| 493 |
} |
| 494 |
} |
| 495 |
|
| 496 |
func (x *SynthesizeSpeechRequest) String() string { |
| 497 |
return protoimpl.X.MessageStringOf(x) |
| 498 |
} |
| 499 |
|
| 500 |
func (*SynthesizeSpeechRequest) ProtoMessage() {} |
| 501 |
|
| 502 |
func (x *SynthesizeSpeechRequest) ProtoReflect() protoreflect.Message { |
| 503 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[3] |
| 504 |
if protoimpl.UnsafeEnabled && x != nil { |
| 505 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 506 |
if ms.LoadMessageInfo() == nil { |
| 507 |
ms.StoreMessageInfo(mi) |
| 508 |
} |
| 509 |
return ms |
| 510 |
} |
| 511 |
return mi.MessageOf(x) |
| 512 |
} |
| 513 |
|
| 514 |
// Deprecated: Use SynthesizeSpeechRequest.ProtoReflect.Descriptor instead. |
| 515 |
func (*SynthesizeSpeechRequest) Descriptor() ([]byte, []int) { |
| 516 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{3} |
| 517 |
} |
| 518 |
|
| 519 |
func (x *SynthesizeSpeechRequest) GetInput() *SynthesisInput { |
| 520 |
if x != nil { |
| 521 |
return x.Input |
| 522 |
} |
| 523 |
return nil |
| 524 |
} |
| 525 |
|
| 526 |
func (x *SynthesizeSpeechRequest) GetVoice() *VoiceSelectionParams { |
| 527 |
if x != nil { |
| 528 |
return x.Voice |
| 529 |
} |
| 530 |
return nil |
| 531 |
} |
| 532 |
|
| 533 |
func (x *SynthesizeSpeechRequest) GetAudioConfig() *AudioConfig { |
| 534 |
if x != nil { |
| 535 |
return x.AudioConfig |
| 536 |
} |
| 537 |
return nil |
| 538 |
} |
| 539 |
|
| 540 |
func (x *SynthesizeSpeechRequest) GetEnableTimePointing() []SynthesizeSpeechRequest_TimepointType { |
| 541 |
if x != nil { |
| 542 |
return x.EnableTimePointing |
| 543 |
} |
| 544 |
return nil |
| 545 |
} |
| 546 |
|
| 547 |
// Contains text input to be synthesized. Either `text` or `ssml` must be |
| 548 |
// supplied. Supplying both or neither returns |
| 549 |
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The input size is limited to 5000 |
| 550 |
// bytes. |
| 551 |
type SynthesisInput struct { |
| 552 |
state protoimpl.MessageState |
| 553 |
sizeCache protoimpl.SizeCache |
| 554 |
unknownFields protoimpl.UnknownFields |
| 555 |
|
| 556 |
// The input source, which is either plain text or SSML. |
| 557 |
// |
| 558 |
// Types that are assignable to InputSource: |
| 559 |
// |
| 560 |
// *SynthesisInput_Text |
| 561 |
// *SynthesisInput_Ssml |
| 562 |
InputSource isSynthesisInput_InputSource `protobuf_oneof:"input_source"` |
| 563 |
} |
| 564 |
|
| 565 |
func (x *SynthesisInput) Reset() { |
| 566 |
*x = SynthesisInput{} |
| 567 |
if protoimpl.UnsafeEnabled { |
| 568 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[4] |
| 569 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 570 |
ms.StoreMessageInfo(mi) |
| 571 |
} |
| 572 |
} |
| 573 |
|
| 574 |
func (x *SynthesisInput) String() string { |
| 575 |
return protoimpl.X.MessageStringOf(x) |
| 576 |
} |
| 577 |
|
| 578 |
func (*SynthesisInput) ProtoMessage() {} |
| 579 |
|
| 580 |
func (x *SynthesisInput) ProtoReflect() protoreflect.Message { |
| 581 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[4] |
| 582 |
if protoimpl.UnsafeEnabled && x != nil { |
| 583 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 584 |
if ms.LoadMessageInfo() == nil { |
| 585 |
ms.StoreMessageInfo(mi) |
| 586 |
} |
| 587 |
return ms |
| 588 |
} |
| 589 |
return mi.MessageOf(x) |
| 590 |
} |
| 591 |
|
| 592 |
// Deprecated: Use SynthesisInput.ProtoReflect.Descriptor instead. |
| 593 |
func (*SynthesisInput) Descriptor() ([]byte, []int) { |
| 594 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{4} |
| 595 |
} |
| 596 |
|
| 597 |
func (m *SynthesisInput) GetInputSource() isSynthesisInput_InputSource { |
| 598 |
if m != nil { |
| 599 |
return m.InputSource |
| 600 |
} |
| 601 |
return nil |
| 602 |
} |
| 603 |
|
| 604 |
func (x *SynthesisInput) GetText() string { |
| 605 |
if x, ok := x.GetInputSource().(*SynthesisInput_Text); ok { |
| 606 |
return x.Text |
| 607 |
} |
| 608 |
return "" |
| 609 |
} |
| 610 |
|
| 611 |
func (x *SynthesisInput) GetSsml() string { |
| 612 |
if x, ok := x.GetInputSource().(*SynthesisInput_Ssml); ok { |
| 613 |
return x.Ssml |
| 614 |
} |
| 615 |
return "" |
| 616 |
} |
| 617 |
|
| 618 |
type isSynthesisInput_InputSource interface { |
| 619 |
isSynthesisInput_InputSource() |
| 620 |
} |
| 621 |
|
| 622 |
type SynthesisInput_Text struct { |
| 623 |
// The raw text to be synthesized. |
| 624 |
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"` |
| 625 |
} |
| 626 |
|
| 627 |
type SynthesisInput_Ssml struct { |
| 628 |
// The SSML document to be synthesized. The SSML document must be valid |
| 629 |
// and well-formed. Otherwise the RPC will fail and return |
| 630 |
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see |
| 631 |
// [SSML](https://cloud.google.com/text-to-speech/docs/ssml). |
| 632 |
Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"` |
| 633 |
} |
| 634 |
|
| 635 |
func (*SynthesisInput_Text) isSynthesisInput_InputSource() {} |
| 636 |
|
| 637 |
func (*SynthesisInput_Ssml) isSynthesisInput_InputSource() {} |
| 638 |
|
| 639 |
// Description of which voice to use for a synthesis request. |
| 640 |
type VoiceSelectionParams struct { |
| 641 |
state protoimpl.MessageState |
| 642 |
sizeCache protoimpl.SizeCache |
| 643 |
unknownFields protoimpl.UnknownFields |
| 644 |
|
| 645 |
// Required. The language (and potentially also the region) of the voice expressed as a |
| 646 |
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. |
| 647 |
// "en-US". This should not include a script tag (e.g. use |
| 648 |
// "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred |
| 649 |
// from the input provided in the SynthesisInput. The TTS service |
| 650 |
// will use this parameter to help choose an appropriate voice. Note that |
| 651 |
// the TTS service may choose a voice with a slightly different language code |
| 652 |
// than the one selected; it may substitute a different region |
| 653 |
// (e.g. using en-US rather than en-CA if there isn't a Canadian voice |
| 654 |
// available), or even a different language, e.g. using "nb" (Norwegian |
| 655 |
// Bokmal) instead of "no" (Norwegian)". |
| 656 |
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` |
| 657 |
// The name of the voice. If not set, the service will choose a |
| 658 |
// voice based on the other parameters such as language_code and gender. |
| 659 |
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 660 |
// The preferred gender of the voice. If not set, the service will |
| 661 |
// choose a voice based on the other parameters such as language_code and |
| 662 |
// name. Note that this is only a preference, not requirement; if a |
| 663 |
// voice of the appropriate gender is not available, the synthesizer should |
| 664 |
// substitute a voice with a different gender rather than failing the request. |
| 665 |
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.texttospeech.v1beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"` |
| 666 |
// The configuration for a custom voice. If [CustomVoiceParams.model] is set, |
| 667 |
// the service will choose the custom voice matching the specified |
| 668 |
// configuration. |
| 669 |
CustomVoice *CustomVoiceParams `protobuf:"bytes,4,opt,name=custom_voice,json=customVoice,proto3" json:"custom_voice,omitempty"` |
| 670 |
} |
| 671 |
|
| 672 |
func (x *VoiceSelectionParams) Reset() { |
| 673 |
*x = VoiceSelectionParams{} |
| 674 |
if protoimpl.UnsafeEnabled { |
| 675 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[5] |
| 676 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 677 |
ms.StoreMessageInfo(mi) |
| 678 |
} |
| 679 |
} |
| 680 |
|
| 681 |
func (x *VoiceSelectionParams) String() string { |
| 682 |
return protoimpl.X.MessageStringOf(x) |
| 683 |
} |
| 684 |
|
| 685 |
func (*VoiceSelectionParams) ProtoMessage() {} |
| 686 |
|
| 687 |
func (x *VoiceSelectionParams) ProtoReflect() protoreflect.Message { |
| 688 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[5] |
| 689 |
if protoimpl.UnsafeEnabled && x != nil { |
| 690 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 691 |
if ms.LoadMessageInfo() == nil { |
| 692 |
ms.StoreMessageInfo(mi) |
| 693 |
} |
| 694 |
return ms |
| 695 |
} |
| 696 |
return mi.MessageOf(x) |
| 697 |
} |
| 698 |
|
| 699 |
// Deprecated: Use VoiceSelectionParams.ProtoReflect.Descriptor instead. |
| 700 |
func (*VoiceSelectionParams) Descriptor() ([]byte, []int) { |
| 701 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{5} |
| 702 |
} |
| 703 |
|
| 704 |
func (x *VoiceSelectionParams) GetLanguageCode() string { |
| 705 |
if x != nil { |
| 706 |
return x.LanguageCode |
| 707 |
} |
| 708 |
return "" |
| 709 |
} |
| 710 |
|
| 711 |
func (x *VoiceSelectionParams) GetName() string { |
| 712 |
if x != nil { |
| 713 |
return x.Name |
| 714 |
} |
| 715 |
return "" |
| 716 |
} |
| 717 |
|
| 718 |
func (x *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender { |
| 719 |
if x != nil { |
| 720 |
return x.SsmlGender |
| 721 |
} |
| 722 |
return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED |
| 723 |
} |
| 724 |
|
| 725 |
func (x *VoiceSelectionParams) GetCustomVoice() *CustomVoiceParams { |
| 726 |
if x != nil { |
| 727 |
return x.CustomVoice |
| 728 |
} |
| 729 |
return nil |
| 730 |
} |
| 731 |
|
| 732 |
// Description of audio data to be synthesized. |
| 733 |
type AudioConfig struct { |
| 734 |
state protoimpl.MessageState |
| 735 |
sizeCache protoimpl.SizeCache |
| 736 |
unknownFields protoimpl.UnknownFields |
| 737 |
|
| 738 |
// Required. The format of the audio byte stream. |
| 739 |
AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.texttospeech.v1beta1.AudioEncoding" json:"audio_encoding,omitempty"` |
| 740 |
// Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is |
| 741 |
// the normal native speed supported by the specific voice. 2.0 is twice as |
| 742 |
// fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 |
| 743 |
// speed. Any other values < 0.25 or > 4.0 will return an error. |
| 744 |
SpeakingRate float64 `protobuf:"fixed64,2,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"` |
| 745 |
// Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means |
| 746 |
// increase 20 semitones from the original pitch. -20 means decrease 20 |
| 747 |
// semitones from the original pitch. |
| 748 |
Pitch float64 `protobuf:"fixed64,3,opt,name=pitch,proto3" json:"pitch,omitempty"` |
| 749 |
// Optional. Input only. Volume gain (in dB) of the normal native volume |
| 750 |
// supported by the specific voice, in the range [-96.0, 16.0]. If unset, or |
| 751 |
// set to a value of 0.0 (dB), will play at normal native signal amplitude. A |
| 752 |
// value of -6.0 (dB) will play at approximately half the amplitude of the |
| 753 |
// normal native signal amplitude. A value of +6.0 (dB) will play at |
| 754 |
// approximately twice the amplitude of the normal native signal amplitude. |
| 755 |
// Strongly recommend not to exceed +10 (dB) as there's usually no effective |
| 756 |
// increase in loudness for any value greater than that. |
| 757 |
VolumeGainDb float64 `protobuf:"fixed64,4,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"` |
| 758 |
// Optional. The synthesis sample rate (in hertz) for this audio. When this is |
| 759 |
// specified in SynthesizeSpeechRequest, if this is different from the voice's |
| 760 |
// natural sample rate, then the synthesizer will honor this request by |
| 761 |
// converting to the desired sample rate (which might result in worse audio |
| 762 |
// quality), unless the specified sample rate is not supported for the |
| 763 |
// encoding chosen, in which case it will fail the request and return |
| 764 |
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. |
| 765 |
SampleRateHertz int32 `protobuf:"varint,5,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` |
| 766 |
// Optional. Input only. An identifier which selects 'audio effects' profiles |
| 767 |
// that are applied on (post synthesized) text to speech. Effects are applied |
| 768 |
// on top of each other in the order they are given. See |
| 769 |
// [audio |
| 770 |
// profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for |
| 771 |
// current supported profile ids. |
| 772 |
EffectsProfileId []string `protobuf:"bytes,6,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"` |
| 773 |
} |
| 774 |
|
| 775 |
func (x *AudioConfig) Reset() { |
| 776 |
*x = AudioConfig{} |
| 777 |
if protoimpl.UnsafeEnabled { |
| 778 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[6] |
| 779 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 780 |
ms.StoreMessageInfo(mi) |
| 781 |
} |
| 782 |
} |
| 783 |
|
| 784 |
func (x *AudioConfig) String() string { |
| 785 |
return protoimpl.X.MessageStringOf(x) |
| 786 |
} |
| 787 |
|
| 788 |
func (*AudioConfig) ProtoMessage() {} |
| 789 |
|
| 790 |
func (x *AudioConfig) ProtoReflect() protoreflect.Message { |
| 791 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[6] |
| 792 |
if protoimpl.UnsafeEnabled && x != nil { |
| 793 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 794 |
if ms.LoadMessageInfo() == nil { |
| 795 |
ms.StoreMessageInfo(mi) |
| 796 |
} |
| 797 |
return ms |
| 798 |
} |
| 799 |
return mi.MessageOf(x) |
| 800 |
} |
| 801 |
|
| 802 |
// Deprecated: Use AudioConfig.ProtoReflect.Descriptor instead. |
| 803 |
func (*AudioConfig) Descriptor() ([]byte, []int) { |
| 804 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{6} |
| 805 |
} |
| 806 |
|
| 807 |
func (x *AudioConfig) GetAudioEncoding() AudioEncoding { |
| 808 |
if x != nil { |
| 809 |
return x.AudioEncoding |
| 810 |
} |
| 811 |
return AudioEncoding_AUDIO_ENCODING_UNSPECIFIED |
| 812 |
} |
| 813 |
|
| 814 |
func (x *AudioConfig) GetSpeakingRate() float64 { |
| 815 |
if x != nil { |
| 816 |
return x.SpeakingRate |
| 817 |
} |
| 818 |
return 0 |
| 819 |
} |
| 820 |
|
| 821 |
func (x *AudioConfig) GetPitch() float64 { |
| 822 |
if x != nil { |
| 823 |
return x.Pitch |
| 824 |
} |
| 825 |
return 0 |
| 826 |
} |
| 827 |
|
| 828 |
func (x *AudioConfig) GetVolumeGainDb() float64 { |
| 829 |
if x != nil { |
| 830 |
return x.VolumeGainDb |
| 831 |
} |
| 832 |
return 0 |
| 833 |
} |
| 834 |
|
| 835 |
func (x *AudioConfig) GetSampleRateHertz() int32 { |
| 836 |
if x != nil { |
| 837 |
return x.SampleRateHertz |
| 838 |
} |
| 839 |
return 0 |
| 840 |
} |
| 841 |
|
| 842 |
func (x *AudioConfig) GetEffectsProfileId() []string { |
| 843 |
if x != nil { |
| 844 |
return x.EffectsProfileId |
| 845 |
} |
| 846 |
return nil |
| 847 |
} |
| 848 |
|
| 849 |
// Description of the custom voice to be synthesized. |
| 850 |
type CustomVoiceParams struct { |
| 851 |
state protoimpl.MessageState |
| 852 |
sizeCache protoimpl.SizeCache |
| 853 |
unknownFields protoimpl.UnknownFields |
| 854 |
|
| 855 |
// Required. The name of the AutoML model that synthesizes the custom voice. |
| 856 |
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` |
| 857 |
// Optional. The usage of the synthesized audio to be reported. |
| 858 |
ReportedUsage CustomVoiceParams_ReportedUsage `protobuf:"varint,3,opt,name=reported_usage,json=reportedUsage,proto3,enum=google.cloud.texttospeech.v1beta1.CustomVoiceParams_ReportedUsage" json:"reported_usage,omitempty"` |
| 859 |
} |
| 860 |
|
| 861 |
func (x *CustomVoiceParams) Reset() { |
| 862 |
*x = CustomVoiceParams{} |
| 863 |
if protoimpl.UnsafeEnabled { |
| 864 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[7] |
| 865 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 866 |
ms.StoreMessageInfo(mi) |
| 867 |
} |
| 868 |
} |
| 869 |
|
| 870 |
func (x *CustomVoiceParams) String() string { |
| 871 |
return protoimpl.X.MessageStringOf(x) |
| 872 |
} |
| 873 |
|
| 874 |
func (*CustomVoiceParams) ProtoMessage() {} |
| 875 |
|
| 876 |
func (x *CustomVoiceParams) ProtoReflect() protoreflect.Message { |
| 877 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[7] |
| 878 |
if protoimpl.UnsafeEnabled && x != nil { |
| 879 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 880 |
if ms.LoadMessageInfo() == nil { |
| 881 |
ms.StoreMessageInfo(mi) |
| 882 |
} |
| 883 |
return ms |
| 884 |
} |
| 885 |
return mi.MessageOf(x) |
| 886 |
} |
| 887 |
|
| 888 |
// Deprecated: Use CustomVoiceParams.ProtoReflect.Descriptor instead. |
| 889 |
func (*CustomVoiceParams) Descriptor() ([]byte, []int) { |
| 890 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{7} |
| 891 |
} |
| 892 |
|
| 893 |
func (x *CustomVoiceParams) GetModel() string { |
| 894 |
if x != nil { |
| 895 |
return x.Model |
| 896 |
} |
| 897 |
return "" |
| 898 |
} |
| 899 |
|
| 900 |
func (x *CustomVoiceParams) GetReportedUsage() CustomVoiceParams_ReportedUsage { |
| 901 |
if x != nil { |
| 902 |
return x.ReportedUsage |
| 903 |
} |
| 904 |
return CustomVoiceParams_REPORTED_USAGE_UNSPECIFIED |
| 905 |
} |
| 906 |
|
| 907 |
// The message returned to the client by the `SynthesizeSpeech` method. |
| 908 |
type SynthesizeSpeechResponse struct { |
| 909 |
state protoimpl.MessageState |
| 910 |
sizeCache protoimpl.SizeCache |
| 911 |
unknownFields protoimpl.UnknownFields |
| 912 |
|
| 913 |
// The audio data bytes encoded as specified in the request, including the |
| 914 |
// header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). |
| 915 |
// For LINEAR16 audio, we include the WAV header. Note: as |
| 916 |
// with all bytes fields, protobuffers use a pure binary representation, |
| 917 |
// whereas JSON representations use base64. |
| 918 |
AudioContent []byte `protobuf:"bytes,1,opt,name=audio_content,json=audioContent,proto3" json:"audio_content,omitempty"` |
| 919 |
// A link between a position in the original request input and a corresponding |
| 920 |
// time in the output audio. It's only supported via `<mark>` of SSML input. |
| 921 |
Timepoints []*Timepoint `protobuf:"bytes,2,rep,name=timepoints,proto3" json:"timepoints,omitempty"` |
| 922 |
// The audio metadata of `audio_content`. |
| 923 |
AudioConfig *AudioConfig `protobuf:"bytes,4,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"` |
| 924 |
} |
| 925 |
|
| 926 |
func (x *SynthesizeSpeechResponse) Reset() { |
| 927 |
*x = SynthesizeSpeechResponse{} |
| 928 |
if protoimpl.UnsafeEnabled { |
| 929 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[8] |
| 930 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 931 |
ms.StoreMessageInfo(mi) |
| 932 |
} |
| 933 |
} |
| 934 |
|
| 935 |
func (x *SynthesizeSpeechResponse) String() string { |
| 936 |
return protoimpl.X.MessageStringOf(x) |
| 937 |
} |
| 938 |
|
| 939 |
func (*SynthesizeSpeechResponse) ProtoMessage() {} |
| 940 |
|
| 941 |
func (x *SynthesizeSpeechResponse) ProtoReflect() protoreflect.Message { |
| 942 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[8] |
| 943 |
if protoimpl.UnsafeEnabled && x != nil { |
| 944 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 945 |
if ms.LoadMessageInfo() == nil { |
| 946 |
ms.StoreMessageInfo(mi) |
| 947 |
} |
| 948 |
return ms |
| 949 |
} |
| 950 |
return mi.MessageOf(x) |
| 951 |
} |
| 952 |
|
| 953 |
// Deprecated: Use SynthesizeSpeechResponse.ProtoReflect.Descriptor instead. |
| 954 |
func (*SynthesizeSpeechResponse) Descriptor() ([]byte, []int) { |
| 955 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{8} |
| 956 |
} |
| 957 |
|
| 958 |
func (x *SynthesizeSpeechResponse) GetAudioContent() []byte { |
| 959 |
if x != nil { |
| 960 |
return x.AudioContent |
| 961 |
} |
| 962 |
return nil |
| 963 |
} |
| 964 |
|
| 965 |
func (x *SynthesizeSpeechResponse) GetTimepoints() []*Timepoint { |
| 966 |
if x != nil { |
| 967 |
return x.Timepoints |
| 968 |
} |
| 969 |
return nil |
| 970 |
} |
| 971 |
|
| 972 |
func (x *SynthesizeSpeechResponse) GetAudioConfig() *AudioConfig { |
| 973 |
if x != nil { |
| 974 |
return x.AudioConfig |
| 975 |
} |
| 976 |
return nil |
| 977 |
} |
| 978 |
|
| 979 |
// This contains a mapping between a certain point in the input text and a |
| 980 |
// corresponding time in the output audio. |
| 981 |
type Timepoint struct { |
| 982 |
state protoimpl.MessageState |
| 983 |
sizeCache protoimpl.SizeCache |
| 984 |
unknownFields protoimpl.UnknownFields |
| 985 |
|
| 986 |
// Timepoint name as received from the client within `<mark>` tag. |
| 987 |
MarkName string `protobuf:"bytes,4,opt,name=mark_name,json=markName,proto3" json:"mark_name,omitempty"` |
| 988 |
// Time offset in seconds from the start of the synthesized audio. |
| 989 |
TimeSeconds float64 `protobuf:"fixed64,3,opt,name=time_seconds,json=timeSeconds,proto3" json:"time_seconds,omitempty"` |
| 990 |
} |
| 991 |
|
| 992 |
func (x *Timepoint) Reset() { |
| 993 |
*x = Timepoint{} |
| 994 |
if protoimpl.UnsafeEnabled { |
| 995 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[9] |
| 996 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 997 |
ms.StoreMessageInfo(mi) |
| 998 |
} |
| 999 |
} |
| 1000 |
|
| 1001 |
func (x *Timepoint) String() string { |
| 1002 |
return protoimpl.X.MessageStringOf(x) |
| 1003 |
} |
| 1004 |
|
| 1005 |
func (*Timepoint) ProtoMessage() {} |
| 1006 |
|
| 1007 |
func (x *Timepoint) ProtoReflect() protoreflect.Message { |
| 1008 |
mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[9] |
| 1009 |
if protoimpl.UnsafeEnabled && x != nil { |
| 1010 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1011 |
if ms.LoadMessageInfo() == nil { |
| 1012 |
ms.StoreMessageInfo(mi) |
| 1013 |
} |
| 1014 |
return ms |
| 1015 |
} |
| 1016 |
return mi.MessageOf(x) |
| 1017 |
} |
| 1018 |
|
| 1019 |
// Deprecated: Use Timepoint.ProtoReflect.Descriptor instead. |
| 1020 |
func (*Timepoint) Descriptor() ([]byte, []int) { |
| 1021 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP(), []int{9} |
| 1022 |
} |
| 1023 |
|
| 1024 |
func (x *Timepoint) GetMarkName() string { |
| 1025 |
if x != nil { |
| 1026 |
return x.MarkName |
| 1027 |
} |
| 1028 |
return "" |
| 1029 |
} |
| 1030 |
|
| 1031 |
func (x *Timepoint) GetTimeSeconds() float64 { |
| 1032 |
if x != nil { |
| 1033 |
return x.TimeSeconds |
| 1034 |
} |
| 1035 |
return 0 |
| 1036 |
} |
| 1037 |
|
| 1038 |
var File_google_cloud_texttospeech_v1beta1_cloud_tts_proto protoreflect.FileDescriptor |
| 1039 |
|
| 1040 |
var file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDesc = []byte{ |
| 1041 |
0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, |
| 1042 |
0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x62, 0x65, |
| 1043 |
0x74, 0x61, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x74, 0x74, 0x73, 0x2e, 0x70, 0x72, |
| 1044 |
0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1045 |
0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, |
| 1046 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 1047 |
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, |
| 1048 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, |
| 1049 |
0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, |
| 1050 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, |
| 1051 |
0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, |
| 1052 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, |
| 1053 |
0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3d, 0x0a, 0x11, 0x4c, 0x69, 0x73, |
| 1054 |
0x74, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, |
| 1055 |
0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, |
| 1056 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, |
| 1057 |
0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x56, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, |
| 1058 |
0x56, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, |
| 1059 |
0x0a, 0x06, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, |
| 1060 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, |
| 1061 |
0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 1062 |
0x61, 0x31, 0x2e, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x06, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, |
| 1063 |
0x22, 0xd2, 0x01, 0x0a, 0x05, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, |
| 1064 |
0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, |
| 1065 |
0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, |
| 1066 |
0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 1067 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x73, 0x73, 0x6d, 0x6c, 0x5f, 0x67, 0x65, |
| 1068 |
0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, |
| 1069 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, |
| 1070 |
0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, |
| 1071 |
0x73, 0x6d, 0x6c, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x0a, |
| 1072 |
0x73, 0x73, 0x6d, 0x6c, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x19, 0x6e, 0x61, |
| 1073 |
0x74, 0x75, 0x72, 0x61, 0x6c, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, |
| 1074 |
0x65, 0x5f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x6e, |
| 1075 |
0x61, 0x74, 0x75, 0x72, 0x61, 0x6c, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, |
| 1076 |
0x48, 0x65, 0x72, 0x74, 0x7a, 0x22, 0xcf, 0x03, 0x0a, 0x17, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, |
| 1077 |
0x73, 0x69, 0x7a, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 1078 |
0x74, 0x12, 0x4c, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
| 1079 |
0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1080 |
0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, |
| 1081 |
0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x73, 0x49, 0x6e, |
| 1082 |
0x70, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, |
| 1083 |
0x52, 0x0a, 0x05, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, |
| 1084 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, |
| 1085 |
0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 1086 |
0x61, 0x31, 0x2e, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, |
| 1087 |
0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x76, 0x6f, |
| 1088 |
0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, |
| 1089 |
0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1090 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, |
| 1091 |
0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, |
| 1092 |
0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, |
| 1093 |
0x61, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x7a, 0x0a, 0x14, 0x65, |
| 1094 |
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, |
| 1095 |
0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1096 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, |
| 1097 |
0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, |
| 1098 |
0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, |
| 1099 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x54, |
| 1100 |
0x79, 0x70, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x50, |
| 1101 |
0x6f, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x3e, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x70, |
| 1102 |
0x6f, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x49, 0x4d, 0x45, |
| 1103 |
0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, |
| 1104 |
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x53, 0x4d, 0x4c, |
| 1105 |
0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x10, 0x01, 0x22, 0x4c, 0x0a, 0x0e, 0x53, 0x79, 0x6e, 0x74, 0x68, |
| 1106 |
0x65, 0x73, 0x69, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, |
| 1107 |
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, |
| 1108 |
0x14, 0x0a, 0x04, 0x73, 0x73, 0x6d, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, |
| 1109 |
0x04, 0x73, 0x73, 0x6d, 0x6c, 0x42, 0x0e, 0x0a, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x73, |
| 1110 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x14, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x53, |
| 1111 |
0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x28, |
| 1112 |
0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, |
| 1113 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, |
| 1114 |
0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, |
| 1115 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x0b, |
| 1116 |
0x73, 0x73, 0x6d, 0x6c, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 1117 |
0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1118 |
0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, |
| 1119 |
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x73, 0x6d, 0x6c, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x47, |
| 1120 |
0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x73, 0x73, 0x6d, 0x6c, 0x47, 0x65, 0x6e, 0x64, 0x65, |
| 1121 |
0x72, 0x12, 0x57, 0x0a, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x76, 0x6f, 0x69, 0x63, |
| 1122 |
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1123 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, |
| 1124 |
0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, |
| 1125 |
0x6f, 0x6d, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0b, 0x63, |
| 1126 |
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x22, 0xcb, 0x02, 0x0a, 0x0b, 0x41, |
| 1127 |
0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5c, 0x0a, 0x0e, 0x61, 0x75, |
| 1128 |
0x64, 0x69, 0x6f, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, |
| 1129 |
0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1130 |
0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, |
| 1131 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x45, 0x6e, 0x63, 0x6f, |
| 1132 |
0x64, 0x69, 0x6e, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, |
| 1133 |
0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a, 0x0d, 0x73, 0x70, 0x65, 0x61, |
| 1134 |
0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, |
| 1135 |
0x06, 0xe0, 0x41, 0x04, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x69, 0x6e, |
| 1136 |
0x67, 0x52, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x05, 0x70, 0x69, 0x74, 0x63, 0x68, 0x18, 0x03, |
| 1137 |
0x20, 0x01, 0x28, 0x01, 0x42, 0x06, 0xe0, 0x41, 0x04, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x70, 0x69, |
| 1138 |
0x74, 0x63, 0x68, 0x12, 0x2c, 0x0a, 0x0e, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x67, 0x61, |
| 1139 |
0x69, 0x6e, 0x5f, 0x64, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x42, 0x06, 0xe0, 0x41, 0x04, |
| 1140 |
0xe0, 0x41, 0x01, 0x52, 0x0c, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x47, 0x61, 0x69, 0x6e, 0x44, |
| 1141 |
0x62, 0x12, 0x2f, 0x0a, 0x11, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, |
| 1142 |
0x5f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, |
| 1143 |
0x01, 0x52, 0x0f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, 0x48, 0x65, 0x72, |
| 1144 |
0x74, 0x7a, 0x12, 0x34, 0x0a, 0x12, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x73, 0x5f, 0x70, 0x72, |
| 1145 |
0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x06, |
| 1146 |
0xe0, 0x41, 0x04, 0xe0, 0x41, 0x01, 0x52, 0x10, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x73, 0x50, |
| 1147 |
0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x8a, 0x02, 0x0a, 0x11, 0x43, 0x75, 0x73, |
| 1148 |
0x74, 0x6f, 0x6d, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x39, |
| 1149 |
0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, |
| 1150 |
0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x67, 0x6f, |
| 1151 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, |
| 1152 |
0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x6e, 0x0a, 0x0e, 0x72, 0x65, 0x70, |
| 1153 |
0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 1154 |
0x0e, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1155 |
0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, |
| 1156 |
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x56, 0x6f, 0x69, 0x63, |
| 1157 |
0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, |
| 1158 |
0x55, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, |
| 1159 |
0x72, 0x74, 0x65, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4a, 0x0a, 0x0d, 0x52, 0x65, 0x70, |
| 1160 |
0x6f, 0x72, 0x74, 0x65, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, |
| 1161 |
0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x55, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, |
| 1162 |
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, |
| 1163 |
0x41, 0x4c, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, |
| 1164 |
0x49, 0x4e, 0x45, 0x10, 0x02, 0x22, 0xe0, 0x01, 0x0a, 0x18, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, |
| 1165 |
0x73, 0x69, 0x7a, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 1166 |
0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x74, |
| 1167 |
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, |
| 1168 |
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x70, |
| 1169 |
0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, |
| 1170 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, |
| 1171 |
0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, |
| 1172 |
0x54, 0x69, 0x6d, 0x65, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x70, |
| 1173 |
0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x51, 0x0a, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, |
| 1174 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, |
| 1175 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, |
| 1176 |
0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, |
| 1177 |
0x41, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x61, 0x75, 0x64, |
| 1178 |
0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x4b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, |
| 1179 |
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x6e, 0x61, |
| 1180 |
0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x72, 0x6b, 0x4e, 0x61, |
| 1181 |
0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, |
| 1182 |
0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, |
| 1183 |
0x63, 0x6f, 0x6e, 0x64, 0x73, 0x2a, 0x57, 0x0a, 0x0f, 0x53, 0x73, 0x6d, 0x6c, 0x56, 0x6f, 0x69, |
| 1184 |
0x63, 0x65, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x53, 0x4d, 0x4c, |
| 1185 |
0x5f, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, |
| 1186 |
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4d, |
| 1187 |
0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, |
| 1188 |
0x02, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x45, 0x55, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x03, 0x2a, 0x7a, |
| 1189 |
0x0a, 0x0d, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, |
| 1190 |
0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, |
| 1191 |
0x47, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, |
| 1192 |
0x0c, 0x0a, 0x08, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x31, 0x36, 0x10, 0x01, 0x12, 0x07, 0x0a, |
| 1193 |
0x03, 0x4d, 0x50, 0x33, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x50, 0x33, 0x5f, 0x36, 0x34, |
| 1194 |
0x5f, 0x4b, 0x42, 0x50, 0x53, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x47, 0x47, 0x5f, 0x4f, |
| 1195 |
0x50, 0x55, 0x53, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x55, 0x4c, 0x41, 0x57, 0x10, 0x05, |
| 1196 |
0x12, 0x08, 0x0a, 0x04, 0x41, 0x4c, 0x41, 0x57, 0x10, 0x06, 0x32, 0xd2, 0x03, 0x0a, 0x0c, 0x54, |
| 1197 |
0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x12, 0xa2, 0x01, 0x0a, 0x0a, |
| 1198 |
0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, |
| 1199 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, |
| 1200 |
0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, |
| 1201 |
0x69, 0x73, 0x74, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 1202 |
0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1203 |
0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, |
| 1204 |
0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x52, |
| 1205 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, |
| 1206 |
0x0f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, |
| 1207 |
0xda, 0x41, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, |
| 1208 |
0x12, 0xcb, 0x01, 0x0a, 0x10, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x53, |
| 1209 |
0x70, 0x65, 0x65, 0x63, 0x68, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1210 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, |
| 1211 |
0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, |
| 1212 |
0x73, 0x69, 0x7a, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 1213 |
0x74, 0x1a, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1214 |
0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, |
| 1215 |
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, |
| 1216 |
0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, |
| 1217 |
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 1218 |
0x2f, 0x74, 0x65, 0x78, 0x74, 0x3a, 0x73, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, |
| 1219 |
0x3a, 0x01, 0x2a, 0xda, 0x41, 0x18, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x2c, 0x76, 0x6f, 0x69, 0x63, |
| 1220 |
0x65, 0x2c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x4f, |
| 1221 |
0xca, 0x41, 0x1b, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, |
| 1222 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, |
| 1223 |
0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, |
| 1224 |
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, |
| 1225 |
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, |
| 1226 |
0xd5, 0x02, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1227 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, |
| 1228 |
0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x11, 0x54, 0x65, 0x78, 0x74, 0x54, |
| 1229 |
0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, |
| 1230 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, |
| 1231 |
0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1232 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x65, 0x78, 0x74, |
| 1233 |
0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 1234 |
0x3b, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0xf8, 0x01, 0x01, |
| 1235 |
0xaa, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1236 |
0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x56, 0x31, 0x42, |
| 1237 |
0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, |
| 1238 |
0x6f, 0x75, 0x64, 0x5c, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, |
| 1239 |
0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 1240 |
0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, |
| 1241 |
0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, |
| 1242 |
0x41, 0x55, 0x0a, 0x1b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1243 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, |
| 1244 |
0x36, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 1245 |
0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, |
| 1246 |
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, |
| 1247 |
0x7b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x7d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1248 |
} |
| 1249 |
|
| 1250 |
var ( |
| 1251 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescOnce sync.Once |
| 1252 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescData = file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDesc |
| 1253 |
) |
| 1254 |
|
| 1255 |
func file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescGZIP() []byte { |
| 1256 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescOnce.Do(func() { |
| 1257 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescData) |
| 1258 |
}) |
| 1259 |
return file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDescData |
| 1260 |
} |
| 1261 |
|
| 1262 |
var file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes = make([]protoimpl.EnumInfo, 4) |
| 1263 |
var file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes = make([]protoimpl.MessageInfo, 10) |
| 1264 |
var file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_goTypes = []interface{}{ |
| 1265 |
(SsmlVoiceGender)(0), // 0: google.cloud.texttospeech.v1beta1.SsmlVoiceGender |
| 1266 |
(AudioEncoding)(0), // 1: google.cloud.texttospeech.v1beta1.AudioEncoding |
| 1267 |
(SynthesizeSpeechRequest_TimepointType)(0), // 2: google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType |
| 1268 |
(CustomVoiceParams_ReportedUsage)(0), // 3: google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage |
| 1269 |
(*ListVoicesRequest)(nil), // 4: google.cloud.texttospeech.v1beta1.ListVoicesRequest |
| 1270 |
(*ListVoicesResponse)(nil), // 5: google.cloud.texttospeech.v1beta1.ListVoicesResponse |
| 1271 |
(*Voice)(nil), // 6: google.cloud.texttospeech.v1beta1.Voice |
| 1272 |
(*SynthesizeSpeechRequest)(nil), // 7: google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest |
| 1273 |
(*SynthesisInput)(nil), // 8: google.cloud.texttospeech.v1beta1.SynthesisInput |
| 1274 |
(*VoiceSelectionParams)(nil), // 9: google.cloud.texttospeech.v1beta1.VoiceSelectionParams |
| 1275 |
(*AudioConfig)(nil), // 10: google.cloud.texttospeech.v1beta1.AudioConfig |
| 1276 |
(*CustomVoiceParams)(nil), // 11: google.cloud.texttospeech.v1beta1.CustomVoiceParams |
| 1277 |
(*SynthesizeSpeechResponse)(nil), // 12: google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse |
| 1278 |
(*Timepoint)(nil), // 13: google.cloud.texttospeech.v1beta1.Timepoint |
| 1279 |
} |
| 1280 |
var file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_depIdxs = []int32{ |
| 1281 |
6, // 0: google.cloud.texttospeech.v1beta1.ListVoicesResponse.voices:type_name -> google.cloud.texttospeech.v1beta1.Voice |
| 1282 |
0, // 1: google.cloud.texttospeech.v1beta1.Voice.ssml_gender:type_name -> google.cloud.texttospeech.v1beta1.SsmlVoiceGender |
| 1283 |
8, // 2: google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.input:type_name -> google.cloud.texttospeech.v1beta1.SynthesisInput |
| 1284 |
9, // 3: google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.voice:type_name -> google.cloud.texttospeech.v1beta1.VoiceSelectionParams |
| 1285 |
10, // 4: google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.audio_config:type_name -> google.cloud.texttospeech.v1beta1.AudioConfig |
| 1286 |
2, // 5: google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.enable_time_pointing:type_name -> google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType |
| 1287 |
0, // 6: google.cloud.texttospeech.v1beta1.VoiceSelectionParams.ssml_gender:type_name -> google.cloud.texttospeech.v1beta1.SsmlVoiceGender |
| 1288 |
11, // 7: google.cloud.texttospeech.v1beta1.VoiceSelectionParams.custom_voice:type_name -> google.cloud.texttospeech.v1beta1.CustomVoiceParams |
| 1289 |
1, // 8: google.cloud.texttospeech.v1beta1.AudioConfig.audio_encoding:type_name -> google.cloud.texttospeech.v1beta1.AudioEncoding |
| 1290 |
3, // 9: google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage:type_name -> google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage |
| 1291 |
13, // 10: google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.timepoints:type_name -> google.cloud.texttospeech.v1beta1.Timepoint |
| 1292 |
10, // 11: google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.audio_config:type_name -> google.cloud.texttospeech.v1beta1.AudioConfig |
| 1293 |
4, // 12: google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices:input_type -> google.cloud.texttospeech.v1beta1.ListVoicesRequest |
| 1294 |
7, // 13: google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech:input_type -> google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest |
| 1295 |
5, // 14: google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices:output_type -> google.cloud.texttospeech.v1beta1.ListVoicesResponse |
| 1296 |
12, // 15: google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech:output_type -> google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse |
| 1297 |
14, // [14:16] is the sub-list for method output_type |
| 1298 |
12, // [12:14] is the sub-list for method input_type |
| 1299 |
12, // [12:12] is the sub-list for extension type_name |
| 1300 |
12, // [12:12] is the sub-list for extension extendee |
| 1301 |
0, // [0:12] is the sub-list for field type_name |
| 1302 |
} |
| 1303 |
|
| 1304 |
func init() { file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_init() } |
| 1305 |
func file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_init() { |
| 1306 |
if File_google_cloud_texttospeech_v1beta1_cloud_tts_proto != nil { |
| 1307 |
return |
| 1308 |
} |
| 1309 |
if !protoimpl.UnsafeEnabled { |
| 1310 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 1311 |
switch v := v.(*ListVoicesRequest); i { |
| 1312 |
case 0: |
| 1313 |
return &v.state |
| 1314 |
case 1: |
| 1315 |
return &v.sizeCache |
| 1316 |
case 2: |
| 1317 |
return &v.unknownFields |
| 1318 |
default: |
| 1319 |
return nil |
| 1320 |
} |
| 1321 |
} |
| 1322 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 1323 |
switch v := v.(*ListVoicesResponse); i { |
| 1324 |
case 0: |
| 1325 |
return &v.state |
| 1326 |
case 1: |
| 1327 |
return &v.sizeCache |
| 1328 |
case 2: |
| 1329 |
return &v.unknownFields |
| 1330 |
default: |
| 1331 |
return nil |
| 1332 |
} |
| 1333 |
} |
| 1334 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 1335 |
switch v := v.(*Voice); i { |
| 1336 |
case 0: |
| 1337 |
return &v.state |
| 1338 |
case 1: |
| 1339 |
return &v.sizeCache |
| 1340 |
case 2: |
| 1341 |
return &v.unknownFields |
| 1342 |
default: |
| 1343 |
return nil |
| 1344 |
} |
| 1345 |
} |
| 1346 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 1347 |
switch v := v.(*SynthesizeSpeechRequest); i { |
| 1348 |
case 0: |
| 1349 |
return &v.state |
| 1350 |
case 1: |
| 1351 |
return &v.sizeCache |
| 1352 |
case 2: |
| 1353 |
return &v.unknownFields |
| 1354 |
default: |
| 1355 |
return nil |
| 1356 |
} |
| 1357 |
} |
| 1358 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 1359 |
switch v := v.(*SynthesisInput); i { |
| 1360 |
case 0: |
| 1361 |
return &v.state |
| 1362 |
case 1: |
| 1363 |
return &v.sizeCache |
| 1364 |
case 2: |
| 1365 |
return &v.unknownFields |
| 1366 |
default: |
| 1367 |
return nil |
| 1368 |
} |
| 1369 |
} |
| 1370 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 1371 |
switch v := v.(*VoiceSelectionParams); i { |
| 1372 |
case 0: |
| 1373 |
return &v.state |
| 1374 |
case 1: |
| 1375 |
return &v.sizeCache |
| 1376 |
case 2: |
| 1377 |
return &v.unknownFields |
| 1378 |
default: |
| 1379 |
return nil |
| 1380 |
} |
| 1381 |
} |
| 1382 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 1383 |
switch v := v.(*AudioConfig); i { |
| 1384 |
case 0: |
| 1385 |
return &v.state |
| 1386 |
case 1: |
| 1387 |
return &v.sizeCache |
| 1388 |
case 2: |
| 1389 |
return &v.unknownFields |
| 1390 |
default: |
| 1391 |
return nil |
| 1392 |
} |
| 1393 |
} |
| 1394 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| 1395 |
switch v := v.(*CustomVoiceParams); i { |
| 1396 |
case 0: |
| 1397 |
return &v.state |
| 1398 |
case 1: |
| 1399 |
return &v.sizeCache |
| 1400 |
case 2: |
| 1401 |
return &v.unknownFields |
| 1402 |
default: |
| 1403 |
return nil |
| 1404 |
} |
| 1405 |
} |
| 1406 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| 1407 |
switch v := v.(*SynthesizeSpeechResponse); i { |
| 1408 |
case 0: |
| 1409 |
return &v.state |
| 1410 |
case 1: |
| 1411 |
return &v.sizeCache |
| 1412 |
case 2: |
| 1413 |
return &v.unknownFields |
| 1414 |
default: |
| 1415 |
return nil |
| 1416 |
} |
| 1417 |
} |
| 1418 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| 1419 |
switch v := v.(*Timepoint); i { |
| 1420 |
case 0: |
| 1421 |
return &v.state |
| 1422 |
case 1: |
| 1423 |
return &v.sizeCache |
| 1424 |
case 2: |
| 1425 |
return &v.unknownFields |
| 1426 |
default: |
| 1427 |
return nil |
| 1428 |
} |
| 1429 |
} |
| 1430 |
} |
| 1431 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes[4].OneofWrappers = []interface{}{ |
| 1432 |
(*SynthesisInput_Text)(nil), |
| 1433 |
(*SynthesisInput_Ssml)(nil), |
| 1434 |
} |
| 1435 |
type x struct{} |
| 1436 |
out := protoimpl.TypeBuilder{ |
| 1437 |
File: protoimpl.DescBuilder{ |
| 1438 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1439 |
RawDescriptor: file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDesc, |
| 1440 |
NumEnums: 4, |
| 1441 |
NumMessages: 10, |
| 1442 |
NumExtensions: 0, |
| 1443 |
NumServices: 1, |
| 1444 |
}, |
| 1445 |
GoTypes: file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_goTypes, |
| 1446 |
DependencyIndexes: file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_depIdxs, |
| 1447 |
EnumInfos: file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_enumTypes, |
| 1448 |
MessageInfos: file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_msgTypes, |
| 1449 |
}.Build() |
| 1450 |
File_google_cloud_texttospeech_v1beta1_cloud_tts_proto = out.File |
| 1451 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_rawDesc = nil |
| 1452 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_goTypes = nil |
| 1453 |
file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_depIdxs = nil |
| 1454 |
} |
| 1455 |
|
| 1456 |
// Reference imports to suppress errors if they are not otherwise used. |
| 1457 |
var _ context.Context |
| 1458 |
var _ grpc.ClientConnInterface |
| 1459 |
|
| 1460 |
// This is a compile-time assertion to ensure that this generated file |
| 1461 |
// is compatible with the grpc package it is being compiled against. |
| 1462 |
const _ = grpc.SupportPackageIsVersion6 |
| 1463 |
|
| 1464 |
// TextToSpeechClient is the client API for TextToSpeech service. |
| 1465 |
// |
| 1466 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 1467 |
type TextToSpeechClient interface { |
| 1468 |
// Returns a list of Voice supported for synthesis. |
| 1469 |
ListVoices(ctx context.Context, in *ListVoicesRequest, opts ...grpc.CallOption) (*ListVoicesResponse, error) |
| 1470 |
// Synthesizes speech synchronously: receive results after all text input |
| 1471 |
// has been processed. |
| 1472 |
SynthesizeSpeech(ctx context.Context, in *SynthesizeSpeechRequest, opts ...grpc.CallOption) (*SynthesizeSpeechResponse, error) |
| 1473 |
} |
| 1474 |
|
| 1475 |
type textToSpeechClient struct { |
| 1476 |
cc grpc.ClientConnInterface |
| 1477 |
} |
| 1478 |
|
| 1479 |
func NewTextToSpeechClient(cc grpc.ClientConnInterface) TextToSpeechClient { |
| 1480 |
return &textToSpeechClient{cc} |
| 1481 |
} |
| 1482 |
|
| 1483 |
func (c *textToSpeechClient) ListVoices(ctx context.Context, in *ListVoicesRequest, opts ...grpc.CallOption) (*ListVoicesResponse, error) { |
| 1484 |
out := new(ListVoicesResponse) |
| 1485 |
err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeech/ListVoices", in, out, opts...) |
| 1486 |
if err != nil { |
| 1487 |
return nil, err |
| 1488 |
} |
| 1489 |
return out, nil |
| 1490 |
} |
| 1491 |
|
| 1492 |
func (c *textToSpeechClient) SynthesizeSpeech(ctx context.Context, in *SynthesizeSpeechRequest, opts ...grpc.CallOption) (*SynthesizeSpeechResponse, error) { |
| 1493 |
out := new(SynthesizeSpeechResponse) |
| 1494 |
err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeech/SynthesizeSpeech", in, out, opts...) |
| 1495 |
if err != nil { |
| 1496 |
return nil, err |
| 1497 |
} |
| 1498 |
return out, nil |
| 1499 |
} |
| 1500 |
|
| 1501 |
// TextToSpeechServer is the server API for TextToSpeech service. |
| 1502 |
type TextToSpeechServer interface { |
| 1503 |
// Returns a list of Voice supported for synthesis. |
| 1504 |
ListVoices(context.Context, *ListVoicesRequest) (*ListVoicesResponse, error) |
| 1505 |
// Synthesizes speech synchronously: receive results after all text input |
| 1506 |
// has been processed. |
| 1507 |
SynthesizeSpeech(context.Context, *SynthesizeSpeechRequest) (*SynthesizeSpeechResponse, error) |
| 1508 |
} |
| 1509 |
|
| 1510 |
// UnimplementedTextToSpeechServer can be embedded to have forward compatible implementations. |
| 1511 |
type UnimplementedTextToSpeechServer struct { |
| 1512 |
} |
| 1513 |
|
| 1514 |
func (*UnimplementedTextToSpeechServer) ListVoices(context.Context, *ListVoicesRequest) (*ListVoicesResponse, error) { |
| 1515 |
return nil, status.Errorf(codes.Unimplemented, "method ListVoices not implemented") |
| 1516 |
} |
| 1517 |
func (*UnimplementedTextToSpeechServer) SynthesizeSpeech(context.Context, *SynthesizeSpeechRequest) (*SynthesizeSpeechResponse, error) { |
| 1518 |
return nil, status.Errorf(codes.Unimplemented, "method SynthesizeSpeech not implemented") |
| 1519 |
} |
| 1520 |
|
| 1521 |
func RegisterTextToSpeechServer(s *grpc.Server, srv TextToSpeechServer) { |
| 1522 |
s.RegisterService(&_TextToSpeech_serviceDesc, srv) |
| 1523 |
} |
| 1524 |
|
| 1525 |
func _TextToSpeech_ListVoices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1526 |
in := new(ListVoicesRequest) |
| 1527 |
if err := dec(in); err != nil { |
| 1528 |
return nil, err |
| 1529 |
} |
| 1530 |
if interceptor == nil { |
| 1531 |
return srv.(TextToSpeechServer).ListVoices(ctx, in) |
| 1532 |
} |
| 1533 |
info := &grpc.UnaryServerInfo{ |
| 1534 |
Server: srv, |
| 1535 |
FullMethod: "/google.cloud.texttospeech.v1beta1.TextToSpeech/ListVoices", |
| 1536 |
} |
| 1537 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1538 |
return srv.(TextToSpeechServer).ListVoices(ctx, req.(*ListVoicesRequest)) |
| 1539 |
} |
| 1540 |
return interceptor(ctx, in, info, handler) |
| 1541 |
} |
| 1542 |
|
| 1543 |
func _TextToSpeech_SynthesizeSpeech_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1544 |
in := new(SynthesizeSpeechRequest) |
| 1545 |
if err := dec(in); err != nil { |
| 1546 |
return nil, err |
| 1547 |
} |
| 1548 |
if interceptor == nil { |
| 1549 |
return srv.(TextToSpeechServer).SynthesizeSpeech(ctx, in) |
| 1550 |
} |
| 1551 |
info := &grpc.UnaryServerInfo{ |
| 1552 |
Server: srv, |
| 1553 |
FullMethod: "/google.cloud.texttospeech.v1beta1.TextToSpeech/SynthesizeSpeech", |
| 1554 |
} |
| 1555 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1556 |
return srv.(TextToSpeechServer).SynthesizeSpeech(ctx, req.(*SynthesizeSpeechRequest)) |
| 1557 |
} |
| 1558 |
return interceptor(ctx, in, info, handler) |
| 1559 |
} |
| 1560 |
|
| 1561 |
var _TextToSpeech_serviceDesc = grpc.ServiceDesc{ |
| 1562 |
ServiceName: "google.cloud.texttospeech.v1beta1.TextToSpeech", |
| 1563 |
HandlerType: (*TextToSpeechServer)(nil), |
| 1564 |
Methods: []grpc.MethodDesc{ |
| 1565 |
{ |
| 1566 |
MethodName: "ListVoices", |
| 1567 |
Handler: _TextToSpeech_ListVoices_Handler, |
| 1568 |
}, |
| 1569 |
{ |
| 1570 |
MethodName: "SynthesizeSpeech", |
| 1571 |
Handler: _TextToSpeech_SynthesizeSpeech_Handler, |
| 1572 |
}, |
| 1573 |
}, |
| 1574 |
Streams: []grpc.StreamDesc{}, |
| 1575 |
Metadata: "google/cloud/texttospeech/v1beta1/cloud_tts.proto", |
| 1576 |
} |