1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 longrunning "google.golang.org/genproto/googleapis/longrunning"
30 grpc "google.golang.org/grpc"
31 codes "google.golang.org/grpc/codes"
32 status "google.golang.org/grpc/status"
33 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
36 )
37
38 const (
39
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45
46
47 type SynthesizeLongAudioRequest struct {
48 state protoimpl.MessageState
49 sizeCache protoimpl.SizeCache
50 unknownFields protoimpl.UnknownFields
51
52
53
54 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
55
56 Input *SynthesisInput `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
57
58 AudioConfig *AudioConfig `protobuf:"bytes,3,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
59
60
61
62 OutputGcsUri string `protobuf:"bytes,4,opt,name=output_gcs_uri,json=outputGcsUri,proto3" json:"output_gcs_uri,omitempty"`
63
64 Voice *VoiceSelectionParams `protobuf:"bytes,5,opt,name=voice,proto3" json:"voice,omitempty"`
65 }
66
67 func (x *SynthesizeLongAudioRequest) Reset() {
68 *x = SynthesizeLongAudioRequest{}
69 if protoimpl.UnsafeEnabled {
70 mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[0]
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 ms.StoreMessageInfo(mi)
73 }
74 }
75
76 func (x *SynthesizeLongAudioRequest) String() string {
77 return protoimpl.X.MessageStringOf(x)
78 }
79
80 func (*SynthesizeLongAudioRequest) ProtoMessage() {}
81
82 func (x *SynthesizeLongAudioRequest) ProtoReflect() protoreflect.Message {
83 mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[0]
84 if protoimpl.UnsafeEnabled && x != nil {
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 if ms.LoadMessageInfo() == nil {
87 ms.StoreMessageInfo(mi)
88 }
89 return ms
90 }
91 return mi.MessageOf(x)
92 }
93
94
95 func (*SynthesizeLongAudioRequest) Descriptor() ([]byte, []int) {
96 return file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescGZIP(), []int{0}
97 }
98
99 func (x *SynthesizeLongAudioRequest) GetParent() string {
100 if x != nil {
101 return x.Parent
102 }
103 return ""
104 }
105
106 func (x *SynthesizeLongAudioRequest) GetInput() *SynthesisInput {
107 if x != nil {
108 return x.Input
109 }
110 return nil
111 }
112
113 func (x *SynthesizeLongAudioRequest) GetAudioConfig() *AudioConfig {
114 if x != nil {
115 return x.AudioConfig
116 }
117 return nil
118 }
119
120 func (x *SynthesizeLongAudioRequest) GetOutputGcsUri() string {
121 if x != nil {
122 return x.OutputGcsUri
123 }
124 return ""
125 }
126
127 func (x *SynthesizeLongAudioRequest) GetVoice() *VoiceSelectionParams {
128 if x != nil {
129 return x.Voice
130 }
131 return nil
132 }
133
134
135 type SynthesizeLongAudioResponse struct {
136 state protoimpl.MessageState
137 sizeCache protoimpl.SizeCache
138 unknownFields protoimpl.UnknownFields
139 }
140
141 func (x *SynthesizeLongAudioResponse) Reset() {
142 *x = SynthesizeLongAudioResponse{}
143 if protoimpl.UnsafeEnabled {
144 mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[1]
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 ms.StoreMessageInfo(mi)
147 }
148 }
149
150 func (x *SynthesizeLongAudioResponse) String() string {
151 return protoimpl.X.MessageStringOf(x)
152 }
153
154 func (*SynthesizeLongAudioResponse) ProtoMessage() {}
155
156 func (x *SynthesizeLongAudioResponse) ProtoReflect() protoreflect.Message {
157 mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[1]
158 if protoimpl.UnsafeEnabled && x != nil {
159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160 if ms.LoadMessageInfo() == nil {
161 ms.StoreMessageInfo(mi)
162 }
163 return ms
164 }
165 return mi.MessageOf(x)
166 }
167
168
169 func (*SynthesizeLongAudioResponse) Descriptor() ([]byte, []int) {
170 return file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescGZIP(), []int{1}
171 }
172
173
174 type SynthesizeLongAudioMetadata struct {
175 state protoimpl.MessageState
176 sizeCache protoimpl.SizeCache
177 unknownFields protoimpl.UnknownFields
178
179
180 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
181
182 LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
183
184 ProgressPercentage float64 `protobuf:"fixed64,3,opt,name=progress_percentage,json=progressPercentage,proto3" json:"progress_percentage,omitempty"`
185 }
186
187 func (x *SynthesizeLongAudioMetadata) Reset() {
188 *x = SynthesizeLongAudioMetadata{}
189 if protoimpl.UnsafeEnabled {
190 mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[2]
191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192 ms.StoreMessageInfo(mi)
193 }
194 }
195
196 func (x *SynthesizeLongAudioMetadata) String() string {
197 return protoimpl.X.MessageStringOf(x)
198 }
199
200 func (*SynthesizeLongAudioMetadata) ProtoMessage() {}
201
202 func (x *SynthesizeLongAudioMetadata) ProtoReflect() protoreflect.Message {
203 mi := &file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[2]
204 if protoimpl.UnsafeEnabled && x != nil {
205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
206 if ms.LoadMessageInfo() == nil {
207 ms.StoreMessageInfo(mi)
208 }
209 return ms
210 }
211 return mi.MessageOf(x)
212 }
213
214
215 func (*SynthesizeLongAudioMetadata) Descriptor() ([]byte, []int) {
216 return file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescGZIP(), []int{2}
217 }
218
219 func (x *SynthesizeLongAudioMetadata) GetStartTime() *timestamppb.Timestamp {
220 if x != nil {
221 return x.StartTime
222 }
223 return nil
224 }
225
226 func (x *SynthesizeLongAudioMetadata) GetLastUpdateTime() *timestamppb.Timestamp {
227 if x != nil {
228 return x.LastUpdateTime
229 }
230 return nil
231 }
232
233 func (x *SynthesizeLongAudioMetadata) GetProgressPercentage() float64 {
234 if x != nil {
235 return x.ProgressPercentage
236 }
237 return 0
238 }
239
240 var File_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto protoreflect.FileDescriptor
241
242 var file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDesc = []byte{
243 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
244 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x62, 0x65,
245 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x74, 0x74, 0x73, 0x5f, 0x6c, 0x72,
246 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
247 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65,
248 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
249 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
250 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
251 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
252 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
253 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
254 0x74, 0x6f, 0x1a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
255 0x2f, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31,
256 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x74, 0x74, 0x73, 0x2e,
257 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f,
258 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
259 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
260 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
261 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x02, 0x0a, 0x1a,
262 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75,
263 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61,
264 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
265 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
266 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
267 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31,
268 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x73, 0x49,
269 0x6e, 0x70, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74,
270 0x12, 0x56, 0x0a, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
271 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
272 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65,
273 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f,
274 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x75, 0x64,
275 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x75, 0x74, 0x70,
276 0x75, 0x74, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
277 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x47, 0x63, 0x73, 0x55, 0x72, 0x69, 0x12, 0x4d,
278 0x0a, 0x05, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e,
279 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78,
280 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
281 0x31, 0x2e, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
282 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x05, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x22, 0x1d, 0x0a,
283 0x1b, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41,
284 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcf, 0x01, 0x0a,
285 0x1b, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41,
286 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a,
287 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
288 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
289 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74,
290 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f,
291 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
292 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
293 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c,
294 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2f, 0x0a,
295 0x13, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e,
296 0x74, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x67,
297 0x72, 0x65, 0x73, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x32, 0xf8,
298 0x02, 0x0a, 0x1f, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x4c,
299 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69,
300 0x7a, 0x65, 0x12, 0x83, 0x02, 0x0a, 0x13, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a,
301 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f,
302 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f,
303 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53,
304 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64,
305 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
306 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f,
307 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,
308 0x4a, 0x22, 0x45, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
309 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c,
310 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x76, 0x6f, 0x69, 0x63, 0x65,
311 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c,
312 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x3a, 0x0a, 0x1b,
313 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75,
314 0x64, 0x69, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x53, 0x79, 0x6e,
315 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f,
316 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x74, 0x65, 0x78,
317 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
318 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73,
319 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
320 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
321 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x8f, 0x02, 0x0a, 0x25, 0x63, 0x6f,
322 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74,
323 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x62, 0x65,
324 0x74, 0x61, 0x31, 0x42, 0x23, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63,
325 0x68, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65,
326 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x6f, 0x6f, 0x67,
327 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
328 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
329 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70,
330 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x65, 0x78,
331 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x21, 0x47,
332 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x54, 0x65, 0x78, 0x74,
333 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31,
334 0xca, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
335 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x5c, 0x56, 0x31, 0x62,
336 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
337 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65,
338 0x63, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
339 0x74, 0x6f, 0x33,
340 }
341
342 var (
343 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescOnce sync.Once
344 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescData = file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDesc
345 )
346
347 func file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescGZIP() []byte {
348 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescOnce.Do(func() {
349 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescData)
350 })
351 return file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDescData
352 }
353
354 var file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
355 var file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_goTypes = []interface{}{
356 (*SynthesizeLongAudioRequest)(nil),
357 (*SynthesizeLongAudioResponse)(nil),
358 (*SynthesizeLongAudioMetadata)(nil),
359 (*SynthesisInput)(nil),
360 (*AudioConfig)(nil),
361 (*VoiceSelectionParams)(nil),
362 (*timestamppb.Timestamp)(nil),
363 (*longrunning.Operation)(nil),
364 }
365 var file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_depIdxs = []int32{
366 3,
367 4,
368 5,
369 6,
370 6,
371 0,
372 7,
373 6,
374 5,
375 5,
376 5,
377 0,
378 }
379
380 func init() { file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_init() }
381 func file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_init() {
382 if File_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto != nil {
383 return
384 }
385 file_google_cloud_texttospeech_v1beta1_cloud_tts_proto_init()
386 if !protoimpl.UnsafeEnabled {
387 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
388 switch v := v.(*SynthesizeLongAudioRequest); i {
389 case 0:
390 return &v.state
391 case 1:
392 return &v.sizeCache
393 case 2:
394 return &v.unknownFields
395 default:
396 return nil
397 }
398 }
399 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
400 switch v := v.(*SynthesizeLongAudioResponse); i {
401 case 0:
402 return &v.state
403 case 1:
404 return &v.sizeCache
405 case 2:
406 return &v.unknownFields
407 default:
408 return nil
409 }
410 }
411 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
412 switch v := v.(*SynthesizeLongAudioMetadata); i {
413 case 0:
414 return &v.state
415 case 1:
416 return &v.sizeCache
417 case 2:
418 return &v.unknownFields
419 default:
420 return nil
421 }
422 }
423 }
424 type x struct{}
425 out := protoimpl.TypeBuilder{
426 File: protoimpl.DescBuilder{
427 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
428 RawDescriptor: file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDesc,
429 NumEnums: 0,
430 NumMessages: 3,
431 NumExtensions: 0,
432 NumServices: 1,
433 },
434 GoTypes: file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_goTypes,
435 DependencyIndexes: file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_depIdxs,
436 MessageInfos: file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_msgTypes,
437 }.Build()
438 File_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto = out.File
439 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_rawDesc = nil
440 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_goTypes = nil
441 file_google_cloud_texttospeech_v1beta1_cloud_tts_lrs_proto_depIdxs = nil
442 }
443
444
445 var _ context.Context
446 var _ grpc.ClientConnInterface
447
448
449
450 const _ = grpc.SupportPackageIsVersion6
451
452
453
454
455 type TextToSpeechLongAudioSynthesizeClient interface {
456
457 SynthesizeLongAudio(ctx context.Context, in *SynthesizeLongAudioRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
458 }
459
460 type textToSpeechLongAudioSynthesizeClient struct {
461 cc grpc.ClientConnInterface
462 }
463
464 func NewTextToSpeechLongAudioSynthesizeClient(cc grpc.ClientConnInterface) TextToSpeechLongAudioSynthesizeClient {
465 return &textToSpeechLongAudioSynthesizeClient{cc}
466 }
467
468 func (c *textToSpeechLongAudioSynthesizeClient) SynthesizeLongAudio(ctx context.Context, in *SynthesizeLongAudioRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
469 out := new(longrunning.Operation)
470 err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize/SynthesizeLongAudio", in, out, opts...)
471 if err != nil {
472 return nil, err
473 }
474 return out, nil
475 }
476
477
478 type TextToSpeechLongAudioSynthesizeServer interface {
479
480 SynthesizeLongAudio(context.Context, *SynthesizeLongAudioRequest) (*longrunning.Operation, error)
481 }
482
483
484 type UnimplementedTextToSpeechLongAudioSynthesizeServer struct {
485 }
486
487 func (*UnimplementedTextToSpeechLongAudioSynthesizeServer) SynthesizeLongAudio(context.Context, *SynthesizeLongAudioRequest) (*longrunning.Operation, error) {
488 return nil, status.Errorf(codes.Unimplemented, "method SynthesizeLongAudio not implemented")
489 }
490
491 func RegisterTextToSpeechLongAudioSynthesizeServer(s *grpc.Server, srv TextToSpeechLongAudioSynthesizeServer) {
492 s.RegisterService(&_TextToSpeechLongAudioSynthesize_serviceDesc, srv)
493 }
494
495 func _TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
496 in := new(SynthesizeLongAudioRequest)
497 if err := dec(in); err != nil {
498 return nil, err
499 }
500 if interceptor == nil {
501 return srv.(TextToSpeechLongAudioSynthesizeServer).SynthesizeLongAudio(ctx, in)
502 }
503 info := &grpc.UnaryServerInfo{
504 Server: srv,
505 FullMethod: "/google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize/SynthesizeLongAudio",
506 }
507 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
508 return srv.(TextToSpeechLongAudioSynthesizeServer).SynthesizeLongAudio(ctx, req.(*SynthesizeLongAudioRequest))
509 }
510 return interceptor(ctx, in, info, handler)
511 }
512
513 var _TextToSpeechLongAudioSynthesize_serviceDesc = grpc.ServiceDesc{
514 ServiceName: "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize",
515 HandlerType: (*TextToSpeechLongAudioSynthesizeServer)(nil),
516 Methods: []grpc.MethodDesc{
517 {
518 MethodName: "SynthesizeLongAudio",
519 Handler: _TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_Handler,
520 },
521 },
522 Streams: []grpc.StreamDesc{},
523 Metadata: "google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto",
524 }
525
View as plain text