public static final class SynthesizeSpeechResponse.Builder extends 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(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(Descriptors.FieldDescriptor field) |
SynthesizeSpeechResponse.Builder |
clearOneof(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`.
|
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 Descriptors.Descriptor |
getDescriptor() |
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SynthesizeSpeechResponse.Builder |
mergeAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
|
SynthesizeSpeechResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
SynthesizeSpeechResponse.Builder |
mergeFrom(Message other) |
SynthesizeSpeechResponse.Builder |
mergeFrom(SynthesizeSpeechResponse other) |
SynthesizeSpeechResponse.Builder |
mergeUnknownFields(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(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(Descriptors.FieldDescriptor field,
Object value) |
SynthesizeSpeechResponse.Builder |
setRepeatedField(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SynthesizeSpeechResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SynthesizeSpeechResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SynthesizeSpeechResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder mergeFrom(SynthesizeSpeechResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public SynthesizeSpeechResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>
IOException
public 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 SynthesizeSpeechResponseOrBuilder
public SynthesizeSpeechResponse.Builder setAudioContent(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 SynthesizeSpeechResponseOrBuilder
public 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 SynthesizeSpeechResponseOrBuilder
public 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 SynthesizeSpeechResponseOrBuilder
public 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 SynthesizeSpeechResponseOrBuilder
public 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 SynthesizeSpeechResponseOrBuilder
public 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 SynthesizeSpeechResponseOrBuilder
public AudioConfig getAudioConfig()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
getAudioConfig
in interface SynthesizeSpeechResponseOrBuilder
public 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 SynthesizeSpeechResponseOrBuilder
public final SynthesizeSpeechResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
public final SynthesizeSpeechResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.