Class SynthesizeSpeechRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • clear

        public SynthesizeSpeechRequest.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.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.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.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public SynthesizeSpeechRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • clearField

        public SynthesizeSpeechRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • clearOneof

        public SynthesizeSpeechRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • setRepeatedField

        public SynthesizeSpeechRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • addRepeatedField

        public SynthesizeSpeechRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • mergeFrom

        public SynthesizeSpeechRequest.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<SynthesizeSpeechRequest.Builder>
        Throws:
        IOException
      • hasInput

        public boolean hasInput()
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasInput in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        Whether the input field is set.
      • getInput

        public SynthesisInput getInput()
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInput in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        The input.
      • setInput

        public SynthesizeSpeechRequest.Builder setInput​(SynthesisInput value)
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
      • setInput

        public SynthesizeSpeechRequest.Builder setInput​(SynthesisInput.Builder builderForValue)
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeInput

        public SynthesizeSpeechRequest.Builder mergeInput​(SynthesisInput value)
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearInput

        public SynthesizeSpeechRequest.Builder clearInput()
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
      • getInputBuilder

        public SynthesisInput.Builder getInputBuilder()
         Required. The Synthesizer requires either plain text or SSML as input.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
      • hasVoice

        public boolean hasVoice()
         Required. The desired voice of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasVoice in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        Whether the voice field is set.
      • getVoice

        public VoiceSelectionParams getVoice()
         Required. The desired voice of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVoice in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        The voice.
      • setVoice

        public SynthesizeSpeechRequest.Builder setVoice​(VoiceSelectionParams value)
         Required. The desired voice of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeVoice

        public SynthesizeSpeechRequest.Builder mergeVoice​(VoiceSelectionParams value)
         Required. The desired voice of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearVoice

        public SynthesizeSpeechRequest.Builder clearVoice()
         Required. The desired voice of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
      • getVoiceBuilder

        public VoiceSelectionParams.Builder getVoiceBuilder()
         Required. The desired voice of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
      • hasAudioConfig

        public boolean hasAudioConfig()
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAudioConfig in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        Whether the audioConfig field is set.
      • getAudioConfig

        public AudioConfig getAudioConfig()
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAudioConfig in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        The audioConfig.
      • setAudioConfig

        public SynthesizeSpeechRequest.Builder setAudioConfig​(AudioConfig value)
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • setAudioConfig

        public SynthesizeSpeechRequest.Builder setAudioConfig​(AudioConfig.Builder builderForValue)
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergeAudioConfig

        public SynthesizeSpeechRequest.Builder mergeAudioConfig​(AudioConfig value)
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearAudioConfig

        public SynthesizeSpeechRequest.Builder clearAudioConfig()
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • getAudioConfigBuilder

        public AudioConfig.Builder getAudioConfigBuilder()
         Required. The configuration of the synthesized audio.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      • getEnableTimePointingCount

        public int getEnableTimePointingCount()
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Specified by:
        getEnableTimePointingCount in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        The count of enableTimePointing.
      • getEnableTimePointing

        public SynthesizeSpeechRequest.TimepointType getEnableTimePointing​(int index)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Specified by:
        getEnableTimePointing in interface SynthesizeSpeechRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The enableTimePointing at the given index.
      • setEnableTimePointing

        public SynthesizeSpeechRequest.Builder setEnableTimePointing​(int index,
                                                                     SynthesizeSpeechRequest.TimepointType value)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Parameters:
        index - The index to set the value at.
        value - The enableTimePointing to set.
        Returns:
        This builder for chaining.
      • addEnableTimePointing

        public SynthesizeSpeechRequest.Builder addEnableTimePointing​(SynthesizeSpeechRequest.TimepointType value)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Parameters:
        value - The enableTimePointing to add.
        Returns:
        This builder for chaining.
      • addAllEnableTimePointing

        public SynthesizeSpeechRequest.Builder addAllEnableTimePointing​(Iterable<? extends SynthesizeSpeechRequest.TimepointType> values)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Parameters:
        values - The enableTimePointing to add.
        Returns:
        This builder for chaining.
      • clearEnableTimePointing

        public SynthesizeSpeechRequest.Builder clearEnableTimePointing()
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Returns:
        This builder for chaining.
      • getEnableTimePointingValueList

        public List<Integer> getEnableTimePointingValueList()
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Specified by:
        getEnableTimePointingValueList in interface SynthesizeSpeechRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for enableTimePointing.
      • getEnableTimePointingValue

        public int getEnableTimePointingValue​(int index)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Specified by:
        getEnableTimePointingValue in interface SynthesizeSpeechRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of enableTimePointing at the given index.
      • setEnableTimePointingValue

        public SynthesizeSpeechRequest.Builder setEnableTimePointingValue​(int index,
                                                                          int value)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for enableTimePointing to set.
        Returns:
        This builder for chaining.
      • addEnableTimePointingValue

        public SynthesizeSpeechRequest.Builder addEnableTimePointingValue​(int value)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Parameters:
        value - The enum numeric value on the wire for enableTimePointing to add.
        Returns:
        This builder for chaining.
      • addAllEnableTimePointingValue

        public SynthesizeSpeechRequest.Builder addAllEnableTimePointingValue​(Iterable<Integer> values)
         Whether and what timepoints are returned in the response.
         
        repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
        Parameters:
        values - The enum numeric values on the wire for enableTimePointing to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SynthesizeSpeechRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
      • mergeUnknownFields

        public final SynthesizeSpeechRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>