public static final class SynthesizeSpeechResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder> implements SynthesizeSpeechResponseOrBuilder
The message returned to the client by the `SynthesizeSpeech` method.Protobuf type
google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse| Modifier and Type | Method and Description |
|---|---|
SynthesizeSpeechResponse.Builder |
addAllTimepoints(Iterable<? extends Timepoint> values)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SynthesizeSpeechResponse.Builder |
addTimepoints(int index,
Timepoint.Builder builderForValue)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
addTimepoints(int index,
Timepoint value)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
addTimepoints(Timepoint.Builder builderForValue)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
addTimepoints(Timepoint value)
A link between a position in the original request input and a corresponding
time in the output audio.
|
Timepoint.Builder |
addTimepointsBuilder()
A link between a position in the original request input and a corresponding
time in the output audio.
|
Timepoint.Builder |
addTimepointsBuilder(int index)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse |
build() |
SynthesizeSpeechResponse |
buildPartial() |
SynthesizeSpeechResponse.Builder |
clear() |
SynthesizeSpeechResponse.Builder |
clearAudioConfig()
The audio metadata of `audio_content`.
|
SynthesizeSpeechResponse.Builder |
clearAudioContent()
The audio data bytes encoded as specified in the request, including the
header for encodings that are wrapped in containers (e.g.
|
SynthesizeSpeechResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SynthesizeSpeechResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SynthesizeSpeechResponse.Builder |
clearTimepoints()
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
clone() |
AudioConfig |
getAudioConfig()
The audio metadata of `audio_content`.
|
AudioConfig.Builder |
getAudioConfigBuilder()
The audio metadata of `audio_content`.
|
AudioConfigOrBuilder |
getAudioConfigOrBuilder()
The audio metadata of `audio_content`.
|
com.google.protobuf.ByteString |
getAudioContent()
The audio data bytes encoded as specified in the request, including the
header for encodings that are wrapped in containers (e.g.
|
SynthesizeSpeechResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Timepoint |
getTimepoints(int index)
A link between a position in the original request input and a corresponding
time in the output audio.
|
Timepoint.Builder |
getTimepointsBuilder(int index)
A link between a position in the original request input and a corresponding
time in the output audio.
|
List<Timepoint.Builder> |
getTimepointsBuilderList()
A link between a position in the original request input and a corresponding
time in the output audio.
|
int |
getTimepointsCount()
A link between a position in the original request input and a corresponding
time in the output audio.
|
List<Timepoint> |
getTimepointsList()
A link between a position in the original request input and a corresponding
time in the output audio.
|
TimepointOrBuilder |
getTimepointsOrBuilder(int index)
A link between a position in the original request input and a corresponding
time in the output audio.
|
List<? extends TimepointOrBuilder> |
getTimepointsOrBuilderList()
A link between a position in the original request input and a corresponding
time in the output audio.
|
boolean |
hasAudioConfig()
The audio metadata of `audio_content`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SynthesizeSpeechResponse.Builder |
mergeAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
|
SynthesizeSpeechResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SynthesizeSpeechResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
SynthesizeSpeechResponse.Builder |
mergeFrom(SynthesizeSpeechResponse other) |
SynthesizeSpeechResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SynthesizeSpeechResponse.Builder |
removeTimepoints(int index)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
setAudioConfig(AudioConfig.Builder builderForValue)
The audio metadata of `audio_content`.
|
SynthesizeSpeechResponse.Builder |
setAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
|
SynthesizeSpeechResponse.Builder |
setAudioContent(com.google.protobuf.ByteString value)
The audio data bytes encoded as specified in the request, including the
header for encodings that are wrapped in containers (e.g.
|
SynthesizeSpeechResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SynthesizeSpeechResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SynthesizeSpeechResponse.Builder |
setTimepoints(int index,
Timepoint.Builder builderForValue)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
setTimepoints(int index,
Timepoint value)
A link between a position in the original request input and a corresponding
time in the output audio.
|
SynthesizeSpeechResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SynthesizeSpeechResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SynthesizeSpeechResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SynthesizeSpeechResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder mergeFrom(SynthesizeSpeechResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public SynthesizeSpeechResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>IOExceptionpublic com.google.protobuf.ByteString getAudioContent()
The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes audio_content = 1;getAudioContent in interface SynthesizeSpeechResponseOrBuilderpublic SynthesizeSpeechResponse.Builder setAudioContent(com.google.protobuf.ByteString value)
The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes audio_content = 1;value - The audioContent to set.public SynthesizeSpeechResponse.Builder clearAudioContent()
The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes audio_content = 1;public List<Timepoint> getTimepointsList()
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;getTimepointsList in interface SynthesizeSpeechResponseOrBuilderpublic int getTimepointsCount()
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;getTimepointsCount in interface SynthesizeSpeechResponseOrBuilderpublic Timepoint getTimepoints(int index)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;getTimepoints in interface SynthesizeSpeechResponseOrBuilderpublic SynthesizeSpeechResponse.Builder setTimepoints(int index, Timepoint value)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder setTimepoints(int index, Timepoint.Builder builderForValue)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder addTimepoints(Timepoint value)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder addTimepoints(int index, Timepoint value)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder addTimepoints(Timepoint.Builder builderForValue)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder addTimepoints(int index, Timepoint.Builder builderForValue)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder addAllTimepoints(Iterable<? extends Timepoint> values)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder clearTimepoints()
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public SynthesizeSpeechResponse.Builder removeTimepoints(int index)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public Timepoint.Builder getTimepointsBuilder(int index)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public TimepointOrBuilder getTimepointsOrBuilder(int index)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;getTimepointsOrBuilder in interface SynthesizeSpeechResponseOrBuilderpublic List<? extends TimepointOrBuilder> getTimepointsOrBuilderList()
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;getTimepointsOrBuilderList in interface SynthesizeSpeechResponseOrBuilderpublic Timepoint.Builder addTimepointsBuilder()
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public Timepoint.Builder addTimepointsBuilder(int index)
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public List<Timepoint.Builder> getTimepointsBuilderList()
A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `<mark>` of SSML input.
repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;public boolean hasAudioConfig()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;hasAudioConfig in interface SynthesizeSpeechResponseOrBuilderpublic AudioConfig getAudioConfig()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;getAudioConfig in interface SynthesizeSpeechResponseOrBuilderpublic SynthesizeSpeechResponse.Builder setAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;public SynthesizeSpeechResponse.Builder setAudioConfig(AudioConfig.Builder builderForValue)
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;public SynthesizeSpeechResponse.Builder mergeAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;public SynthesizeSpeechResponse.Builder clearAudioConfig()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;public AudioConfig.Builder getAudioConfigBuilder()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;public AudioConfigOrBuilder getAudioConfigOrBuilder()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;getAudioConfigOrBuilder in interface SynthesizeSpeechResponseOrBuilderpublic final SynthesizeSpeechResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>public final SynthesizeSpeechResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>Copyright © 2025 Google LLC. All rights reserved.