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

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

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

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

        public SynthesizeSpeechResponse.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<SynthesizeSpeechResponse.Builder>
      • addRepeatedField

        public SynthesizeSpeechResponse.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<SynthesizeSpeechResponse.Builder>
      • isInitialized

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

        public SynthesizeSpeechResponse.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<SynthesizeSpeechResponse.Builder>
        Throws:
        IOException
      • getAudioContent

        public com.google.protobuf.ByteString getAudioContent()
         The audio data bytes encoded as specified in the request, including the
         header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
         For LINEAR16 audio, we include the WAV header. Note: as
         with all bytes fields, protobuffers use a pure binary representation,
         whereas JSON representations use base64.
         
        bytes audio_content = 1;
        Specified by:
        getAudioContent in interface SynthesizeSpeechResponseOrBuilder
        Returns:
        The audioContent.
      • setAudioContent

        public SynthesizeSpeechResponse.Builder setAudioContent​(com.google.protobuf.ByteString value)
         The audio data bytes encoded as specified in the request, including the
         header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
         For LINEAR16 audio, we include the WAV header. Note: as
         with all bytes fields, protobuffers use a pure binary representation,
         whereas JSON representations use base64.
         
        bytes audio_content = 1;
        Parameters:
        value - The audioContent to set.
        Returns:
        This builder for chaining.
      • clearAudioContent

        public SynthesizeSpeechResponse.Builder clearAudioContent()
         The audio data bytes encoded as specified in the request, including the
         header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
         For LINEAR16 audio, we include the WAV header. Note: as
         with all bytes fields, protobuffers use a pure binary representation,
         whereas JSON representations use base64.
         
        bytes audio_content = 1;
        Returns:
        This builder for chaining.
      • getTimepointsList

        public List<Timepoint> getTimepointsList()
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
        Specified by:
        getTimepointsList in interface SynthesizeSpeechResponseOrBuilder
      • getTimepointsCount

        public int getTimepointsCount()
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
        Specified by:
        getTimepointsCount in interface SynthesizeSpeechResponseOrBuilder
      • getTimepoints

        public Timepoint getTimepoints​(int index)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
        Specified by:
        getTimepoints in interface SynthesizeSpeechResponseOrBuilder
      • setTimepoints

        public SynthesizeSpeechResponse.Builder setTimepoints​(int index,
                                                              Timepoint value)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • setTimepoints

        public SynthesizeSpeechResponse.Builder setTimepoints​(int index,
                                                              Timepoint.Builder builderForValue)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • addTimepoints

        public SynthesizeSpeechResponse.Builder addTimepoints​(Timepoint value)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • addTimepoints

        public SynthesizeSpeechResponse.Builder addTimepoints​(int index,
                                                              Timepoint value)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • addTimepoints

        public SynthesizeSpeechResponse.Builder addTimepoints​(Timepoint.Builder builderForValue)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • addTimepoints

        public SynthesizeSpeechResponse.Builder addTimepoints​(int index,
                                                              Timepoint.Builder builderForValue)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • addAllTimepoints

        public SynthesizeSpeechResponse.Builder addAllTimepoints​(Iterable<? extends Timepoint> values)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • clearTimepoints

        public SynthesizeSpeechResponse.Builder clearTimepoints()
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • removeTimepoints

        public SynthesizeSpeechResponse.Builder removeTimepoints​(int index)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • getTimepointsBuilder

        public Timepoint.Builder getTimepointsBuilder​(int index)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • getTimepointsOrBuilder

        public TimepointOrBuilder getTimepointsOrBuilder​(int index)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
        Specified by:
        getTimepointsOrBuilder in interface SynthesizeSpeechResponseOrBuilder
      • getTimepointsOrBuilderList

        public List<? extends TimepointOrBuilder> getTimepointsOrBuilderList()
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
        Specified by:
        getTimepointsOrBuilderList in interface SynthesizeSpeechResponseOrBuilder
      • addTimepointsBuilder

        public Timepoint.Builder addTimepointsBuilder()
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • addTimepointsBuilder

        public Timepoint.Builder addTimepointsBuilder​(int index)
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • getTimepointsBuilderList

        public List<Timepoint.Builder> getTimepointsBuilderList()
         A link between a position in the original request input and a corresponding
         time in the output audio. It's only supported via `<mark>` of SSML input.
         
        repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      • hasAudioConfig

        public boolean hasAudioConfig()
         The audio metadata of `audio_content`.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
        Specified by:
        hasAudioConfig in interface SynthesizeSpeechResponseOrBuilder
        Returns:
        Whether the audioConfig field is set.
      • clearAudioConfig

        public SynthesizeSpeechResponse.Builder clearAudioConfig()
         The audio metadata of `audio_content`.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
      • getAudioConfigBuilder

        public AudioConfig.Builder getAudioConfigBuilder()
         The audio metadata of `audio_content`.
         
        .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
      • setUnknownFields

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

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