Class SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.Builder>
        Throws:
        IOException
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         The resource states of the request in the form of
         `projects/*/locations/*`.
         
        string parent = 1;
        Specified by:
        getParentBytes in interface SynthesizeLongAudioRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public SynthesizeLongAudioRequest.Builder setParent​(String value)
         The resource states of the request in the form of
         `projects/*/locations/*`.
         
        string parent = 1;
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public SynthesizeLongAudioRequest.Builder clearParent()
         The resource states of the request in the form of
         `projects/*/locations/*`.
         
        string parent = 1;
        Returns:
        This builder for chaining.
      • setParentBytes

        public SynthesizeLongAudioRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         The resource states of the request in the form of
         `projects/*/locations/*`.
         
        string parent = 1;
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasInput

        public boolean hasInput()
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasInput in interface SynthesizeLongAudioRequestOrBuilder
        Returns:
        Whether the input field is set.
      • getInput

        public SynthesisInput getInput()
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInput in interface SynthesizeLongAudioRequestOrBuilder
        Returns:
        The input.
      • setInput

        public SynthesizeLongAudioRequest.Builder setInput​(SynthesisInput value)
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      • setInput

        public SynthesizeLongAudioRequest.Builder setInput​(SynthesisInput.Builder builderForValue)
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeInput

        public SynthesizeLongAudioRequest.Builder mergeInput​(SynthesisInput value)
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearInput

        public SynthesizeLongAudioRequest.Builder clearInput()
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      • getInputBuilder

        public SynthesisInput.Builder getInputBuilder()
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      • getInputOrBuilder

        public SynthesisInputOrBuilder getInputOrBuilder()
         Required. The Synthesizer requires either plain text or SSML as input.
         While Long Audio is in preview, SSML is temporarily unsupported.
         
        .google.cloud.texttospeech.v1beta1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getInputOrBuilder in interface SynthesizeLongAudioRequestOrBuilder
      • 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 SynthesizeLongAudioRequestOrBuilder
        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 SynthesizeLongAudioRequestOrBuilder
        Returns:
        The audioConfig.
      • setAudioConfig

        public SynthesizeLongAudioRequest.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 SynthesizeLongAudioRequest.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 SynthesizeLongAudioRequest.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 SynthesizeLongAudioRequest.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];
      • getOutputGcsUri

        public String getOutputGcsUri()
         Required. Specifies a Cloud Storage URI for the synthesis results. Must be
         specified in the format: `gs://bucket_name/object_name`, and the bucket
         must already exist.
         
        string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOutputGcsUri in interface SynthesizeLongAudioRequestOrBuilder
        Returns:
        The outputGcsUri.
      • getOutputGcsUriBytes

        public com.google.protobuf.ByteString getOutputGcsUriBytes()
         Required. Specifies a Cloud Storage URI for the synthesis results. Must be
         specified in the format: `gs://bucket_name/object_name`, and the bucket
         must already exist.
         
        string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOutputGcsUriBytes in interface SynthesizeLongAudioRequestOrBuilder
        Returns:
        The bytes for outputGcsUri.
      • setOutputGcsUri

        public SynthesizeLongAudioRequest.Builder setOutputGcsUri​(String value)
         Required. Specifies a Cloud Storage URI for the synthesis results. Must be
         specified in the format: `gs://bucket_name/object_name`, and the bucket
         must already exist.
         
        string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The outputGcsUri to set.
        Returns:
        This builder for chaining.
      • clearOutputGcsUri

        public SynthesizeLongAudioRequest.Builder clearOutputGcsUri()
         Required. Specifies a Cloud Storage URI for the synthesis results. Must be
         specified in the format: `gs://bucket_name/object_name`, and the bucket
         must already exist.
         
        string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setOutputGcsUriBytes

        public SynthesizeLongAudioRequest.Builder setOutputGcsUriBytes​(com.google.protobuf.ByteString value)
         Required. Specifies a Cloud Storage URI for the synthesis results. Must be
         specified in the format: `gs://bucket_name/object_name`, and the bucket
         must already exist.
         
        string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for outputGcsUri to set.
        Returns:
        This builder for chaining.
      • hasVoice

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

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

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

        public final SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.Builder>
      • mergeUnknownFields

        public final SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.Builder>