Class SynthesizeSpeechResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder> implements SynthesizeSpeechResponseOrBuilder
The message returned to the client by the `SynthesizeSpeech` method.
Protobuf typegoogle.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SynthesizeSpeechResponse.BuilderaddAllTimepoints(Iterable<? extends Timepoint> values)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SynthesizeSpeechResponse.BuilderaddTimepoints(int index, Timepoint value)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuilderaddTimepoints(int index, Timepoint.Builder builderForValue)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuilderaddTimepoints(Timepoint value)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuilderaddTimepoints(Timepoint.Builder builderForValue)A link between a position in the original request input and a corresponding time in the output audio.Timepoint.BuilderaddTimepointsBuilder()A link between a position in the original request input and a corresponding time in the output audio.Timepoint.BuilderaddTimepointsBuilder(int index)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponsebuild()SynthesizeSpeechResponsebuildPartial()SynthesizeSpeechResponse.Builderclear()SynthesizeSpeechResponse.BuilderclearAudioConfig()The audio metadata of `audio_content`.SynthesizeSpeechResponse.BuilderclearAudioContent()The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g.SynthesizeSpeechResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SynthesizeSpeechResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SynthesizeSpeechResponse.BuilderclearTimepoints()A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.Builderclone()AudioConfiggetAudioConfig()The audio metadata of `audio_content`.AudioConfig.BuildergetAudioConfigBuilder()The audio metadata of `audio_content`.AudioConfigOrBuildergetAudioConfigOrBuilder()The audio metadata of `audio_content`.com.google.protobuf.ByteStringgetAudioContent()The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g.SynthesizeSpeechResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TimepointgetTimepoints(int index)A link between a position in the original request input and a corresponding time in the output audio.Timepoint.BuildergetTimepointsBuilder(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.intgetTimepointsCount()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.TimepointOrBuildergetTimepointsOrBuilder(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.booleanhasAudioConfig()The audio metadata of `audio_content`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SynthesizeSpeechResponse.BuildermergeAudioConfig(AudioConfig value)The audio metadata of `audio_content`.SynthesizeSpeechResponse.BuildermergeFrom(SynthesizeSpeechResponse other)SynthesizeSpeechResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SynthesizeSpeechResponse.BuildermergeFrom(com.google.protobuf.Message other)SynthesizeSpeechResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SynthesizeSpeechResponse.BuilderremoveTimepoints(int index)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuildersetAudioConfig(AudioConfig value)The audio metadata of `audio_content`.SynthesizeSpeechResponse.BuildersetAudioConfig(AudioConfig.Builder builderForValue)The audio metadata of `audio_content`.SynthesizeSpeechResponse.BuildersetAudioContent(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SynthesizeSpeechResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SynthesizeSpeechResponse.BuildersetTimepoints(int index, Timepoint value)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuildersetTimepoints(int index, Timepoint.Builder builderForValue)A link between a position in the original request input and a corresponding time in the output audio.SynthesizeSpeechResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
clear
public SynthesizeSpeechResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
getDefaultInstanceForType
public SynthesizeSpeechResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SynthesizeSpeechResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SynthesizeSpeechResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SynthesizeSpeechResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
setField
public SynthesizeSpeechResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
clearField
public SynthesizeSpeechResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
clearOneof
public SynthesizeSpeechResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
setRepeatedField
public SynthesizeSpeechResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
addRepeatedField
public SynthesizeSpeechResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
mergeFrom
public SynthesizeSpeechResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>
-
mergeFrom
public SynthesizeSpeechResponse.Builder mergeFrom(SynthesizeSpeechResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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;- Parameters:
value- The audioContent to set.- Returns:
- This builder for chaining.
-
clearAudioContent
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;- Returns:
- This builder for chaining.
-
getTimepointsList
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;- 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
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;- Specified by:
getTimepointsin interfaceSynthesizeSpeechResponseOrBuilder
-
setTimepoints
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;
-
setTimepoints
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;
-
addTimepoints
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;
-
addTimepoints
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;
-
addTimepoints
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;
-
addTimepoints
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;
-
addAllTimepoints
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;
-
clearTimepoints
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;
-
removeTimepoints
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;
-
getTimepointsBuilder
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;
-
getTimepointsOrBuilder
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;- Specified by:
getTimepointsOrBuilderin interfaceSynthesizeSpeechResponseOrBuilder
-
getTimepointsOrBuilderList
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;- Specified by:
getTimepointsOrBuilderListin interfaceSynthesizeSpeechResponseOrBuilder
-
addTimepointsBuilder
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;
-
addTimepointsBuilder
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;
-
getTimepointsBuilderList
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;
-
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
public AudioConfig getAudioConfig()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;- Specified by:
getAudioConfigin interfaceSynthesizeSpeechResponseOrBuilder- Returns:
- The audioConfig.
-
setAudioConfig
public SynthesizeSpeechResponse.Builder setAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
-
setAudioConfig
public SynthesizeSpeechResponse.Builder setAudioConfig(AudioConfig.Builder builderForValue)
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
-
mergeAudioConfig
public SynthesizeSpeechResponse.Builder mergeAudioConfig(AudioConfig value)
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
-
clearAudioConfig
public SynthesizeSpeechResponse.Builder clearAudioConfig()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
-
getAudioConfigBuilder
public AudioConfig.Builder getAudioConfigBuilder()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
-
getAudioConfigOrBuilder
public AudioConfigOrBuilder getAudioConfigOrBuilder()
The audio metadata of `audio_content`.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;- Specified by:
getAudioConfigOrBuilderin interfaceSynthesizeSpeechResponseOrBuilder
-
setUnknownFields
public final SynthesizeSpeechResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
mergeUnknownFields
public final SynthesizeSpeechResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
-