Class StreamingSynthesizeRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.texttospeech.v1.StreamingSynthesizeRequest
All Implemented Interfaces:
StreamingSynthesizeRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class StreamingSynthesizeRequest extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • STREAMING_CONFIG_FIELD_NUMBER

      public static final int STREAMING_CONFIG_FIELD_NUMBER
      See Also:
    • INPUT_FIELD_NUMBER

      public static final int INPUT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getStreamingRequestCase

      public StreamingSynthesizeRequest.StreamingRequestCase getStreamingRequestCase()
      Specified by:
      getStreamingRequestCase in interface StreamingSynthesizeRequestOrBuilder
    • 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:
      hasStreamingConfig in interface StreamingSynthesizeRequestOrBuilder
      Returns:
      Whether the streamingConfig field is set.
    • 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;
      Specified by:
      getStreamingConfig in interface StreamingSynthesizeRequestOrBuilder
      Returns:
      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;
      Specified by:
      getStreamingConfigOrBuilder in interface StreamingSynthesizeRequestOrBuilder
    • 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:
      hasInput in interface StreamingSynthesizeRequestOrBuilder
      Returns:
      Whether the input field is set.
    • 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;
      Specified by:
      getInput in interface StreamingSynthesizeRequestOrBuilder
      Returns:
      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;
      Specified by:
      getInputOrBuilder in interface StreamingSynthesizeRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamingSynthesizeRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamingSynthesizeRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingSynthesizeRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StreamingSynthesizeRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StreamingSynthesizeRequest.Builder newBuilder()
    • newBuilder

      public static StreamingSynthesizeRequest.Builder newBuilder(StreamingSynthesizeRequest prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StreamingSynthesizeRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StreamingSynthesizeRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StreamingSynthesizeRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<StreamingSynthesizeRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public StreamingSynthesizeRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder