public static final class StreamingSynthesizeRequest.Builder extends GeneratedMessage.Builder<StreamingSynthesizeRequest.Builder> implements StreamingSynthesizeRequestOrBuilder
Request message for the StreamingSynthesize method. Multiple
StreamingSynthesizeRequest messages are sent in one call.
The first message must contain a streaming_config that
fully specifies the request configuration and must not contain input. All
subsequent messages must only have input set.
Protobuf type google.cloud.texttospeech.v1.StreamingSynthesizeRequest
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public StreamingSynthesizeRequest build()
buildPartial()
public StreamingSynthesizeRequest buildPartial()
clear()
public StreamingSynthesizeRequest.Builder clear()
Overrides
clearInput()
public StreamingSynthesizeRequest.Builder clearInput()
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
clearStreamingConfig()
public StreamingSynthesizeRequest.Builder clearStreamingConfig()
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
clearStreamingRequest()
public StreamingSynthesizeRequest.Builder clearStreamingRequest()
getDefaultInstanceForType()
public StreamingSynthesizeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInput()
public StreamingSynthesisInput getInput()
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
getInputBuilder()
public StreamingSynthesisInput.Builder getInputBuilder()
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
getInputOrBuilder()
public StreamingSynthesisInputOrBuilder getInputOrBuilder()
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
getStreamingConfig()
public StreamingSynthesizeConfig getStreamingConfig()
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
getStreamingConfigBuilder()
public StreamingSynthesizeConfig.Builder getStreamingConfigBuilder()
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
getStreamingConfigOrBuilder()
public StreamingSynthesizeConfigOrBuilder getStreamingConfigOrBuilder()
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
getStreamingRequestCase()
public StreamingSynthesizeRequest.StreamingRequestCase getStreamingRequestCase()
hasInput()
public boolean hasInput()
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
| Returns |
| Type |
Description |
boolean |
Whether the input field is set.
|
hasStreamingConfig()
public boolean hasStreamingConfig()
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
| Returns |
| Type |
Description |
boolean |
Whether the streamingConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(StreamingSynthesizeRequest other)
public StreamingSynthesizeRequest.Builder mergeFrom(StreamingSynthesizeRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StreamingSynthesizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StreamingSynthesizeRequest.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeInput(StreamingSynthesisInput value)
public StreamingSynthesizeRequest.Builder mergeInput(StreamingSynthesisInput value)
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
mergeStreamingConfig(StreamingSynthesizeConfig value)
public StreamingSynthesizeRequest.Builder mergeStreamingConfig(StreamingSynthesizeConfig value)
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
setInput(StreamingSynthesisInput value)
public StreamingSynthesizeRequest.Builder setInput(StreamingSynthesisInput value)
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
setInput(StreamingSynthesisInput.Builder builderForValue)
public StreamingSynthesizeRequest.Builder setInput(StreamingSynthesisInput.Builder builderForValue)
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;
setStreamingConfig(StreamingSynthesizeConfig value)
public StreamingSynthesizeRequest.Builder setStreamingConfig(StreamingSynthesizeConfig value)
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;
setStreamingConfig(StreamingSynthesizeConfig.Builder builderForValue)
public StreamingSynthesizeRequest.Builder setStreamingConfig(StreamingSynthesizeConfig.Builder builderForValue)
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize call.
.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;