public static final class StreamingSynthesizeRequest.Builder extends GeneratedMessageV3.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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingSynthesizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StreamingSynthesizeRequest build()
buildPartial()
public StreamingSynthesizeRequest buildPartial()
clear()
public StreamingSynthesizeRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public StreamingSynthesizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingSynthesizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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()
clone()
public StreamingSynthesizeRequest.Builder clone()
Overrides
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 GeneratedMessageV3.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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingSynthesizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingSynthesizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingSynthesizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingSynthesizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides