Package com.google.cloud.texttospeech.v1
Class StreamingSynthesizeRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeRequest.Builder>
com.google.cloud.texttospeech.v1.StreamingSynthesizeRequest.Builder
- All Implemented Interfaces:
StreamingSynthesizeRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingSynthesizeRequest
public static final class StreamingSynthesizeRequest.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Input to synthesize.StreamingSynthesizeConfig to be used in this streaming attempt.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInput()Input to synthesize.Input to synthesize.Input to synthesize.StreamingSynthesizeConfig to be used in this streaming attempt.StreamingSynthesizeConfig to be used in this streaming attempt.StreamingSynthesizeConfig to be used in this streaming attempt.booleanhasInput()Input to synthesize.booleanStreamingSynthesizeConfig to be used in this streaming attempt.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Input to synthesize.StreamingSynthesizeConfig to be used in this streaming attempt.setInput(StreamingSynthesisInput value) Input to synthesize.setInput(StreamingSynthesisInput.Builder builderForValue) Input to synthesize.StreamingSynthesizeConfig to be used in this streaming attempt.setStreamingConfig(StreamingSynthesizeConfig.Builder builderForValue) StreamingSynthesizeConfig to be used in this streaming attempt.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<StreamingSynthesizeRequest.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<StreamingSynthesizeRequest.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<StreamingSynthesizeRequest.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<StreamingSynthesizeRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeRequest.Builder>
-
mergeFrom
public StreamingSynthesizeRequest.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<StreamingSynthesizeRequest.Builder>- Throws:
IOException
-
getStreamingRequestCase
- Specified by:
getStreamingRequestCasein interfaceStreamingSynthesizeRequestOrBuilder
-
clearStreamingRequest
-
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;- Specified by:
hasStreamingConfigin interfaceStreamingSynthesizeRequestOrBuilder- Returns:
- Whether the streamingConfig field is set.
-
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;- Specified by:
getStreamingConfigin interfaceStreamingSynthesizeRequestOrBuilder- Returns:
- The streamingConfig.
-
setStreamingConfig
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
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; -
mergeStreamingConfig
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; -
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; -
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
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;- Specified by:
getStreamingConfigOrBuilderin interfaceStreamingSynthesizeRequestOrBuilder
-
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;- Specified by:
hasInputin interfaceStreamingSynthesizeRequestOrBuilder- Returns:
- Whether the input field is set.
-
getInput
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;- Specified by:
getInputin interfaceStreamingSynthesizeRequestOrBuilder- Returns:
- The input.
-
setInput
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2; -
setInput
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2; -
mergeInput
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2; -
clearInput
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2; -
getInputBuilder
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2; -
getInputOrBuilder
Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call.
.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;- Specified by:
getInputOrBuilderin interfaceStreamingSynthesizeRequestOrBuilder
-