Class SynthesizeSpeechResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder>
com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder
- All Implemented Interfaces:
SynthesizeSpeechResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SynthesizeSpeechResponse
public static final class SynthesizeSpeechResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder>
implements SynthesizeSpeechResponseOrBuilder
The message returned to the client by the `SynthesizeSpeech` method.Protobuf type
google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllTimepoints(Iterable<? extends Timepoint> values) A link between a position in the original request input and a corresponding time in the output audio.addTimepoints(int index, Timepoint value) A link between a position in the original request input and a corresponding time in the output audio.addTimepoints(int index, Timepoint.Builder builderForValue) A link between a position in the original request input and a corresponding time in the output audio.addTimepoints(Timepoint value) A link between a position in the original request input and a corresponding time in the output audio.addTimepoints(Timepoint.Builder builderForValue) A link between a position in the original request input and a corresponding time in the output audio.A link between a position in the original request input and a corresponding time in the output audio.addTimepointsBuilder(int index) A link between a position in the original request input and a corresponding time in the output audio.build()clear()The audio metadata of `audio_content`.The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g.A link between a position in the original request input and a corresponding time in the output audio.The audio metadata of `audio_content`.The audio metadata of `audio_content`.The audio metadata of `audio_content`.com.google.protobuf.ByteStringThe audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetTimepoints(int index) A link between a position in the original request input and a corresponding time in the output audio.getTimepointsBuilder(int index) A link between a position in the original request input and a corresponding time in the output audio.A link between a position in the original request input and a corresponding time in the output audio.intA link between a position in the original request input and a corresponding time in the output audio.A link between a position in the original request input and a corresponding time in the output audio.getTimepointsOrBuilder(int index) A link between a position in the original request input and a corresponding time in the output audio.List<? extends TimepointOrBuilder>A link between a position in the original request input and a corresponding time in the output audio.booleanThe audio metadata of `audio_content`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAudioConfig(AudioConfig value) The audio metadata of `audio_content`.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTimepoints(int index) A link between a position in the original request input and a corresponding time in the output audio.setAudioConfig(AudioConfig value) The audio metadata of `audio_content`.setAudioConfig(AudioConfig.Builder builderForValue) The audio metadata of `audio_content`.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.setTimepoints(int index, Timepoint value) A link between a position in the original request input and a corresponding time in the output audio.setTimepoints(int index, Timepoint.Builder builderForValue) A link between a position in the original request input and a corresponding time in the output audio.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder>
-
mergeFrom
public SynthesizeSpeechResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>- Throws:
IOException
-
getAudioContent
public 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;- Specified by:
getAudioContentin interfaceSynthesizeSpeechResponseOrBuilder- Returns:
- The audioContent.
-
setAudioContent
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;- Parameters:
value- The audioContent to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTimepointsListin interfaceSynthesizeSpeechResponseOrBuilder
-
getTimepointsCount
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;- Specified by:
getTimepointsCountin interfaceSynthesizeSpeechResponseOrBuilder
-
getTimepoints
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;- Specified by:
getTimepointsin interfaceSynthesizeSpeechResponseOrBuilder
-
setTimepoints
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; -
setTimepoints
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; -
addTimepoints
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; -
addTimepoints
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; -
addTimepoints
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; -
addTimepoints
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; -
addAllTimepoints
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; -
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; -
removeTimepoints
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; -
getTimepointsBuilder
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
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;- Specified by:
getTimepointsOrBuilderin interfaceSynthesizeSpeechResponseOrBuilder
-
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;- Specified by:
getTimepointsOrBuilderListin interfaceSynthesizeSpeechResponseOrBuilder
-
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; -
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; -
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; -
hasAudioConfig
public boolean hasAudioConfig()The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;- Specified by:
hasAudioConfigin interfaceSynthesizeSpeechResponseOrBuilder- Returns:
- Whether the audioConfig field is set.
-
getAudioConfig
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;- Specified by:
getAudioConfigin interfaceSynthesizeSpeechResponseOrBuilder- Returns:
- The audioConfig.
-
setAudioConfig
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; -
setAudioConfig
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; -
mergeAudioConfig
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; -
clearAudioConfig
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; -
getAudioConfigBuilder
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; -
getAudioConfigOrBuilder
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;- Specified by:
getAudioConfigOrBuilderin interfaceSynthesizeSpeechResponseOrBuilder
-