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.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 value)
A link between a position in the original request input and a corresponding time in the output audio.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(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.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(SynthesizeSpeechResponse other)
SynthesizeSpeechResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SynthesizeSpeechResponse.Builder
mergeFrom(com.google.protobuf.Message 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 value)
The audio metadata of `audio_content`.SynthesizeSpeechResponse.Builder
setAudioConfig(AudioConfig.Builder builderForValue)
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 value)
A link between a position in the original request input and a corresponding time in the output audio.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
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
clear
public SynthesizeSpeechResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
getDefaultInstanceForType
public SynthesizeSpeechResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SynthesizeSpeechResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SynthesizeSpeechResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SynthesizeSpeechResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
setField
public SynthesizeSpeechResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
clearField
public SynthesizeSpeechResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
clearOneof
public SynthesizeSpeechResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
setRepeatedField
public SynthesizeSpeechResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
addRepeatedField
public SynthesizeSpeechResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
mergeFrom
public SynthesizeSpeechResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechResponse.Builder>
-
mergeFrom
public SynthesizeSpeechResponse.Builder mergeFrom(SynthesizeSpeechResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getAudioContent
in 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:
getTimepointsList
in 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:
getTimepointsCount
in 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:
getTimepoints
in 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:
getTimepointsOrBuilder
in 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:
getTimepointsOrBuilderList
in 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:
hasAudioConfig
in 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:
getAudioConfig
in 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:
getAudioConfigOrBuilder
in interfaceSynthesizeSpeechResponseOrBuilder
-
setUnknownFields
public final SynthesizeSpeechResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
mergeUnknownFields
public final SynthesizeSpeechResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechResponse.Builder>
-
-