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 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.Builder<StreamingSynthesizeRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public StreamingSynthesizeRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingSynthesizeRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingSynthesizeRequest.Builder>
      Throws:
      IOException
    • getStreamingRequestCase

      public StreamingSynthesizeRequest.StreamingRequestCase getStreamingRequestCase()
      Specified by:
      getStreamingRequestCase in interface StreamingSynthesizeRequestOrBuilder
    • clearStreamingRequest

      public StreamingSynthesizeRequest.Builder 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:
      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.
    • 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

      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;
    • 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;
      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.
    • 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

      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;
      Specified by:
      getInputOrBuilder in interface StreamingSynthesizeRequestOrBuilder