Class StreamingSynthesizeRequest (2.56.0)

public final class StreamingSynthesizeRequest extends GeneratedMessageV3 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

Static Fields

INPUT_FIELD_NUMBER

public static final int INPUT_FIELD_NUMBER
Field Value
Type Description
int

STREAMING_CONFIG_FIELD_NUMBER

public static final int STREAMING_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamingSynthesizeRequest getDefaultInstance()
Returns
Type Description
StreamingSynthesizeRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static StreamingSynthesizeRequest.Builder newBuilder()
Returns
Type Description
StreamingSynthesizeRequest.Builder

newBuilder(StreamingSynthesizeRequest prototype)

public static StreamingSynthesizeRequest.Builder newBuilder(StreamingSynthesizeRequest prototype)
Parameter
Name Description
prototype StreamingSynthesizeRequest
Returns
Type Description
StreamingSynthesizeRequest.Builder

parseDelimitedFrom(InputStream input)

public static StreamingSynthesizeRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingSynthesizeRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StreamingSynthesizeRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingSynthesizeRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingSynthesizeRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingSynthesizeRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingSynthesizeRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingSynthesizeRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StreamingSynthesizeRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingSynthesizeRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StreamingSynthesizeRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingSynthesizeRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StreamingSynthesizeRequest> parser()
Returns
Type Description
Parser<StreamingSynthesizeRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public StreamingSynthesizeRequest getDefaultInstanceForType()
Returns
Type Description
StreamingSynthesizeRequest

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;

Returns
Type Description
StreamingSynthesisInput

The input.

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;

Returns
Type Description
StreamingSynthesisInputOrBuilder

getParserForType()

public Parser<StreamingSynthesizeRequest> getParserForType()
Returns
Type Description
Parser<StreamingSynthesizeRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
StreamingSynthesizeConfig

The streamingConfig.

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;

Returns
Type Description
StreamingSynthesizeConfigOrBuilder

getStreamingRequestCase()

public StreamingSynthesizeRequest.StreamingRequestCase getStreamingRequestCase()
Returns
Type Description
StreamingSynthesizeRequest.StreamingRequestCase

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StreamingSynthesizeRequest.Builder newBuilderForType()
Returns
Type Description
StreamingSynthesizeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamingSynthesizeRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StreamingSynthesizeRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public StreamingSynthesizeRequest.Builder toBuilder()
Returns
Type Description
StreamingSynthesizeRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException