Debian Codegraph @

texttospeech/apiv1/texttospeechpb/cloud_tts_lrs.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/texttospeech/v1/cloud_tts_lrs.proto
20
21 package texttospeechpb
22
23 import (
24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25 context "context"
26 _ "google.golang.org/genproto/googleapis/api/annotations"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
30 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
33 reflect "reflect"
34 sync "sync"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // The top-level message sent by the client for the
45 // `SynthesizeLongAudio` method.
46 type SynthesizeLongAudioRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51 // The resource states of the request in the form of
52 // `projects/*/locations/*`.
53 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
54 // Required. The Synthesizer requires either plain text or SSML as input.
55 Input *SynthesisInput `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
56 // Required. The configuration of the synthesized audio.
57 AudioConfig *AudioConfig `protobuf:"bytes,3,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
58 // Required. Specifies a Cloud Storage URI for the synthesis results. Must be
59 // specified in the format: `gs://bucket_name/object_name`, and the bucket
60 // must already exist.
61 OutputGcsUri string `protobuf:"bytes,4,opt,name=output_gcs_uri,json=outputGcsUri,proto3" json:"output_gcs_uri,omitempty"`
62 // Required. The desired voice of the synthesized audio.
63 Voice *VoiceSelectionParams `protobuf:"bytes,5,opt,name=voice,proto3" json:"voice,omitempty"`
64 }
65
66 func (x *SynthesizeLongAudioRequest) Reset() {
67 *x = SynthesizeLongAudioRequest{}
68 mi := &file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes[0]
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 ms.StoreMessageInfo(mi)
71 }
72
73 func (x *SynthesizeLongAudioRequest) String() string {
74 return protoimpl.X.MessageStringOf(x)
75 }
76
77 func (*SynthesizeLongAudioRequest) ProtoMessage() {}
78
79 func (x *SynthesizeLongAudioRequest) ProtoReflect() protoreflect.Message {
80 mi := &file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes[0]
81 if x != nil {
82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
83 if ms.LoadMessageInfo() == nil {
84 ms.StoreMessageInfo(mi)
85 }
86 return ms
87 }
88 return mi.MessageOf(x)
89 }
90
91 // Deprecated: Use SynthesizeLongAudioRequest.ProtoReflect.Descriptor instead.
92 func (*SynthesizeLongAudioRequest) Descriptor() ([]byte, []int) {
93 return file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescGZIP(), []int{0}
94 }
95
96 func (x *SynthesizeLongAudioRequest) GetParent() string {
97 if x != nil {
98 return x.Parent
99 }
100 return ""
101 }
102
103 func (x *SynthesizeLongAudioRequest) GetInput() *SynthesisInput {
104 if x != nil {
105 return x.Input
106 }
107 return nil
108 }
109
110 func (x *SynthesizeLongAudioRequest) GetAudioConfig() *AudioConfig {
111 if x != nil {
112 return x.AudioConfig
113 }
114 return nil
115 }
116
117 func (x *SynthesizeLongAudioRequest) GetOutputGcsUri() string {
118 if x != nil {
119 return x.OutputGcsUri
120 }
121 return ""
122 }
123
124 func (x *SynthesizeLongAudioRequest) GetVoice() *VoiceSelectionParams {
125 if x != nil {
126 return x.Voice
127 }
128 return nil
129 }
130
131 // The message returned to the client by the `SynthesizeLongAudio` method.
132 type SynthesizeLongAudioResponse struct {
133 state protoimpl.MessageState
134 sizeCache protoimpl.SizeCache
135 unknownFields protoimpl.UnknownFields
136 }
137
138 func (x *SynthesizeLongAudioResponse) Reset() {
139 *x = SynthesizeLongAudioResponse{}
140 mi := &file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes[1]
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 ms.StoreMessageInfo(mi)
143 }
144
145 func (x *SynthesizeLongAudioResponse) String() string {
146 return protoimpl.X.MessageStringOf(x)
147 }
148
149 func (*SynthesizeLongAudioResponse) ProtoMessage() {}
150
151 func (x *SynthesizeLongAudioResponse) ProtoReflect() protoreflect.Message {
152 mi := &file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes[1]
153 if x != nil {
154 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
155 if ms.LoadMessageInfo() == nil {
156 ms.StoreMessageInfo(mi)
157 }
158 return ms
159 }
160 return mi.MessageOf(x)
161 }
162
163 // Deprecated: Use SynthesizeLongAudioResponse.ProtoReflect.Descriptor instead.
164 func (*SynthesizeLongAudioResponse) Descriptor() ([]byte, []int) {
165 return file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescGZIP(), []int{1}
166 }
167
168 // Metadata for response returned by the `SynthesizeLongAudio` method.
169 type SynthesizeLongAudioMetadata struct {
170 state protoimpl.MessageState
171 sizeCache protoimpl.SizeCache
172 unknownFields protoimpl.UnknownFields
173
174 // Time when the request was received.
175 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
176 // Deprecated. Do not use.
177 //
178 // Deprecated: Marked as deprecated in google/cloud/texttospeech/v1/cloud_tts_lrs.proto.
179 LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
180 // The progress of the most recent processing update in percentage, ie. 70.0%.
181 ProgressPercentage float64 `protobuf:"fixed64,3,opt,name=progress_percentage,json=progressPercentage,proto3" json:"progress_percentage,omitempty"`
182 }
183
184 func (x *SynthesizeLongAudioMetadata) Reset() {
185 *x = SynthesizeLongAudioMetadata{}
186 mi := &file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes[2]
187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188 ms.StoreMessageInfo(mi)
189 }
190
191 func (x *SynthesizeLongAudioMetadata) String() string {
192 return protoimpl.X.MessageStringOf(x)
193 }
194
195 func (*SynthesizeLongAudioMetadata) ProtoMessage() {}
196
197 func (x *SynthesizeLongAudioMetadata) ProtoReflect() protoreflect.Message {
198 mi := &file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes[2]
199 if x != nil {
200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
201 if ms.LoadMessageInfo() == nil {
202 ms.StoreMessageInfo(mi)
203 }
204 return ms
205 }
206 return mi.MessageOf(x)
207 }
208
209 // Deprecated: Use SynthesizeLongAudioMetadata.ProtoReflect.Descriptor instead.
210 func (*SynthesizeLongAudioMetadata) Descriptor() ([]byte, []int) {
211 return file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescGZIP(), []int{2}
212 }
213
214 func (x *SynthesizeLongAudioMetadata) GetStartTime() *timestamppb.Timestamp {
215 if x != nil {
216 return x.StartTime
217 }
218 return nil
219 }
220
221 // Deprecated: Marked as deprecated in google/cloud/texttospeech/v1/cloud_tts_lrs.proto.
222 func (x *SynthesizeLongAudioMetadata) GetLastUpdateTime() *timestamppb.Timestamp {
223 if x != nil {
224 return x.LastUpdateTime
225 }
226 return nil
227 }
228
229 func (x *SynthesizeLongAudioMetadata) GetProgressPercentage() float64 {
230 if x != nil {
231 return x.ProgressPercentage
232 }
233 return 0
234 }
235
236 var File_google_cloud_texttospeech_v1_cloud_tts_lrs_proto protoreflect.FileDescriptor
237
238 var file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDesc = []byte{
239 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
240 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x63,
241 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x74, 0x74, 0x73, 0x5f, 0x6c, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f,
242 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
243 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31,
244 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
245 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
246 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
247 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
248 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69,
249 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
250 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65,
251 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x74, 0x74, 0x73,
252 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c,
253 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61,
254 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
255 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
256 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x02, 0x0a,
257 0x1a, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41,
258 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70,
259 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72,
260 0x65, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01,
261 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
262 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76,
263 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74,
264 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x51, 0x0a, 0x0c,
265 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01,
266 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
267 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76,
268 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0,
269 0x41, 0x02, 0x52, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
270 0x29, 0x0a, 0x0e, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x75, 0x72,
271 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6f, 0x75,
272 0x74, 0x70, 0x75, 0x74, 0x47, 0x63, 0x73, 0x55, 0x72, 0x69, 0x12, 0x4d, 0x0a, 0x05, 0x76, 0x6f,
273 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
274 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73,
275 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x53, 0x65,
276 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x03, 0xe0,
277 0x41, 0x02, 0x52, 0x05, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x22, 0x1d, 0x0a, 0x1b, 0x53, 0x79, 0x6e,
278 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f,
279 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x1b, 0x53, 0x79, 0x6e,
280 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f,
281 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72,
282 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
283 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
284 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
285 0x69, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61,
286 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
287 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
288 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x6c,
289 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2f, 0x0a,
290 0x13, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e,
291 0x74, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x67,
292 0x72, 0x65, 0x73, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x32, 0x9f,
293 0x03, 0x0a, 0x1f, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x4c,
294 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69,
295 0x7a, 0x65, 0x12, 0xaa, 0x02, 0x0a, 0x13, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a,
296 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f,
297 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f,
298 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65,
299 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71,
300 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
301 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
302 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x01, 0xca, 0x41, 0x74, 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
303 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70,
304 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69,
305 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f,
306 0x6e, 0x73, 0x65, 0x12, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
307 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76,
308 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67,
309 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x82, 0xd3, 0xe4,
310 0x93, 0x02, 0x3c, 0x3a, 0x01, 0x2a, 0x22, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
311 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c,
312 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x74,
313 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x1a,
314 0x4f, 0xca, 0x41, 0x1b, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68,
315 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
316 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
317 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
318 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
319 0x42, 0xef, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
320 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65,
321 0x63, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x23, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65,
322 0x65, 0x63, 0x68, 0x4c, 0x6f, 0x6e, 0x67, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x79, 0x6e, 0x74,
323 0x68, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x63, 0x6c,
324 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
325 0x6f, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x61,
326 0x70, 0x69, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63,
327 0x68, 0x70, 0x62, 0x3b, 0x74, 0x65, 0x78, 0x74, 0x74, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68,
328 0x70, 0x62, 0xaa, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
329 0x64, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x56,
330 0x31, 0xca, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
331 0x5c, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x5c, 0x56, 0x31,
332 0xea, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
333 0x3a, 0x3a, 0x54, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x3a, 0x3a,
334 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
335 }
336
337 var (
338 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescOnce sync.Once
339 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescData = file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDesc
340 )
341
342 func file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescGZIP() []byte {
343 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescOnce.Do(func() {
344 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescData)
345 })
346 return file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDescData
347 }
348
349 var file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
350 var file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_goTypes = []any{
351 (*SynthesizeLongAudioRequest)(nil), // 0: google.cloud.texttospeech.v1.SynthesizeLongAudioRequest
352 (*SynthesizeLongAudioResponse)(nil), // 1: google.cloud.texttospeech.v1.SynthesizeLongAudioResponse
353 (*SynthesizeLongAudioMetadata)(nil), // 2: google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata
354 (*SynthesisInput)(nil), // 3: google.cloud.texttospeech.v1.SynthesisInput
355 (*AudioConfig)(nil), // 4: google.cloud.texttospeech.v1.AudioConfig
356 (*VoiceSelectionParams)(nil), // 5: google.cloud.texttospeech.v1.VoiceSelectionParams
357 (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
358 (*longrunningpb.Operation)(nil), // 7: google.longrunning.Operation
359 }
360 var file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_depIdxs = []int32{
361 3, // 0: google.cloud.texttospeech.v1.SynthesizeLongAudioRequest.input:type_name -> google.cloud.texttospeech.v1.SynthesisInput
362 4, // 1: google.cloud.texttospeech.v1.SynthesizeLongAudioRequest.audio_config:type_name -> google.cloud.texttospeech.v1.AudioConfig
363 5, // 2: google.cloud.texttospeech.v1.SynthesizeLongAudioRequest.voice:type_name -> google.cloud.texttospeech.v1.VoiceSelectionParams
364 6, // 3: google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.start_time:type_name -> google.protobuf.Timestamp
365 6, // 4: google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time:type_name -> google.protobuf.Timestamp
366 0, // 5: google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio:input_type -> google.cloud.texttospeech.v1.SynthesizeLongAudioRequest
367 7, // 6: google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio:output_type -> google.longrunning.Operation
368 6, // [6:7] is the sub-list for method output_type
369 5, // [5:6] is the sub-list for method input_type
370 5, // [5:5] is the sub-list for extension type_name
371 5, // [5:5] is the sub-list for extension extendee
372 0, // [0:5] is the sub-list for field type_name
373 }
374
375 func init() { file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_init() }
376 func file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_init() {
377 if File_google_cloud_texttospeech_v1_cloud_tts_lrs_proto != nil {
378 return
379 }
380 file_google_cloud_texttospeech_v1_cloud_tts_proto_init()
381 type x struct{}
382 out := protoimpl.TypeBuilder{
383 File: protoimpl.DescBuilder{
384 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
385 RawDescriptor: file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDesc,
386 NumEnums: 0,
387 NumMessages: 3,
388 NumExtensions: 0,
389 NumServices: 1,
390 },
391 GoTypes: file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_goTypes,
392 DependencyIndexes: file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_depIdxs,
393 MessageInfos: file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_msgTypes,
394 }.Build()
395 File_google_cloud_texttospeech_v1_cloud_tts_lrs_proto = out.File
396 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_rawDesc = nil
397 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_goTypes = nil
398 file_google_cloud_texttospeech_v1_cloud_tts_lrs_proto_depIdxs = nil
399 }
400
401 // Reference imports to suppress errors if they are not otherwise used.
402 var _ context.Context
403 var _ grpc.ClientConnInterface
404
405 // This is a compile-time assertion to ensure that this generated file
406 // is compatible with the grpc package it is being compiled against.
407 const _ = grpc.SupportPackageIsVersion6
408
409 // TextToSpeechLongAudioSynthesizeClient is the client API for TextToSpeechLongAudioSynthesize service.
410 //
411 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
412 type TextToSpeechLongAudioSynthesizeClient interface {
413 // Synthesizes long form text asynchronously.
414 SynthesizeLongAudio(ctx context.Context, in *SynthesizeLongAudioRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
415 }
416
417 type textToSpeechLongAudioSynthesizeClient struct {
418 cc grpc.ClientConnInterface
419 }
420
421 func NewTextToSpeechLongAudioSynthesizeClient(cc grpc.ClientConnInterface) TextToSpeechLongAudioSynthesizeClient {
422 return &textToSpeechLongAudioSynthesizeClient{cc}
423 }
424
425 func (c *textToSpeechLongAudioSynthesizeClient) SynthesizeLongAudio(ctx context.Context, in *SynthesizeLongAudioRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
426 out := new(longrunningpb.Operation)
427 err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize/SynthesizeLongAudio", in, out, opts...)
428 if err != nil {
429 return nil, err
430 }
431 return out, nil
432 }
433
434 // TextToSpeechLongAudioSynthesizeServer is the server API for TextToSpeechLongAudioSynthesize service.
435 type TextToSpeechLongAudioSynthesizeServer interface {
436 // Synthesizes long form text asynchronously.
437 SynthesizeLongAudio(context.Context, *SynthesizeLongAudioRequest) (*longrunningpb.Operation, error)
438 }
439
440 // UnimplementedTextToSpeechLongAudioSynthesizeServer can be embedded to have forward compatible implementations.
441 type UnimplementedTextToSpeechLongAudioSynthesizeServer struct {
442 }
443
444 func (*UnimplementedTextToSpeechLongAudioSynthesizeServer) SynthesizeLongAudio(context.Context, *SynthesizeLongAudioRequest) (*longrunningpb.Operation, error) {
445 return nil, status.Errorf(codes.Unimplemented, "method SynthesizeLongAudio not implemented")
446 }
447
448 func RegisterTextToSpeechLongAudioSynthesizeServer(s *grpc.Server, srv TextToSpeechLongAudioSynthesizeServer) {
449 s.RegisterService(&_TextToSpeechLongAudioSynthesize_serviceDesc, srv)
450 }
451
452 func _TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
453 in := new(SynthesizeLongAudioRequest)
454 if err := dec(in); err != nil {
455 return nil, err
456 }
457 if interceptor == nil {
458 return srv.(TextToSpeechLongAudioSynthesizeServer).SynthesizeLongAudio(ctx, in)
459 }
460 info := &grpc.UnaryServerInfo{
461 Server: srv,
462 FullMethod: "/google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize/SynthesizeLongAudio",
463 }
464 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
465 return srv.(TextToSpeechLongAudioSynthesizeServer).SynthesizeLongAudio(ctx, req.(*SynthesizeLongAudioRequest))
466 }
467 return interceptor(ctx, in, info, handler)
468 }
469
470 var _TextToSpeechLongAudioSynthesize_serviceDesc = grpc.ServiceDesc{
471 ServiceName: "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize",
472 HandlerType: (*TextToSpeechLongAudioSynthesizeServer)(nil),
473 Methods: []grpc.MethodDesc{
474 {
475 MethodName: "SynthesizeLongAudio",
476 Handler: _TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_Handler,
477 },
478 },
479 Streams: []grpc.StreamDesc{},
480 Metadata: "google/cloud/texttospeech/v1/cloud_tts_lrs.proto",
481 }