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

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

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

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

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

        public VoiceSelectionParams.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<VoiceSelectionParams.Builder>
      • setField

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

        public VoiceSelectionParams.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<VoiceSelectionParams.Builder>
      • clearOneof

        public VoiceSelectionParams.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<VoiceSelectionParams.Builder>
      • setRepeatedField

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

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

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

        public VoiceSelectionParams.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<VoiceSelectionParams.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Optional. The name of the voice. If not set, the service will choose a
         voice based on the other parameters such as language_code and
         [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender].
        
         For the list of available voices, please refer to [Supported voices and
         languages](https://cloud.google.com/text-to-speech/docs/voices).
         
        string name = 1;
        Specified by:
        getName in interface VoiceSelectionParamsOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Optional. The name of the voice. If not set, the service will choose a
         voice based on the other parameters such as language_code and
         [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender].
        
         For the list of available voices, please refer to [Supported voices and
         languages](https://cloud.google.com/text-to-speech/docs/voices).
         
        string name = 1;
        Specified by:
        getNameBytes in interface VoiceSelectionParamsOrBuilder
        Returns:
        The bytes for name.
      • setName

        public VoiceSelectionParams.Builder setName​(String value)
         Optional. The name of the voice. If not set, the service will choose a
         voice based on the other parameters such as language_code and
         [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender].
        
         For the list of available voices, please refer to [Supported voices and
         languages](https://cloud.google.com/text-to-speech/docs/voices).
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public VoiceSelectionParams.Builder clearName()
         Optional. The name of the voice. If not set, the service will choose a
         voice based on the other parameters such as language_code and
         [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender].
        
         For the list of available voices, please refer to [Supported voices and
         languages](https://cloud.google.com/text-to-speech/docs/voices).
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public VoiceSelectionParams.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Optional. The name of the voice. If not set, the service will choose a
         voice based on the other parameters such as language_code and
         [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender].
        
         For the list of available voices, please refer to [Supported voices and
         languages](https://cloud.google.com/text-to-speech/docs/voices).
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getSsmlGenderValue

        public int getSsmlGenderValue()
         Optional. The preferred gender of the voice. If not set, the service will
         choose a voice based on the other parameters such as language_code and
         [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
         this is only a preference, not requirement. If a voice of the appropriate
         gender is not available, the synthesizer substitutes a voice with a
         different gender rather than failing the request.
         
        .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
        Specified by:
        getSsmlGenderValue in interface VoiceSelectionParamsOrBuilder
        Returns:
        The enum numeric value on the wire for ssmlGender.
      • setSsmlGenderValue

        public VoiceSelectionParams.Builder setSsmlGenderValue​(int value)
         Optional. The preferred gender of the voice. If not set, the service will
         choose a voice based on the other parameters such as language_code and
         [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
         this is only a preference, not requirement. If a voice of the appropriate
         gender is not available, the synthesizer substitutes a voice with a
         different gender rather than failing the request.
         
        .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
        Parameters:
        value - The enum numeric value on the wire for ssmlGender to set.
        Returns:
        This builder for chaining.
      • getSsmlGender

        public SsmlVoiceGender getSsmlGender()
         Optional. The preferred gender of the voice. If not set, the service will
         choose a voice based on the other parameters such as language_code and
         [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
         this is only a preference, not requirement. If a voice of the appropriate
         gender is not available, the synthesizer substitutes a voice with a
         different gender rather than failing the request.
         
        .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
        Specified by:
        getSsmlGender in interface VoiceSelectionParamsOrBuilder
        Returns:
        The ssmlGender.
      • setSsmlGender

        public VoiceSelectionParams.Builder setSsmlGender​(SsmlVoiceGender value)
         Optional. The preferred gender of the voice. If not set, the service will
         choose a voice based on the other parameters such as language_code and
         [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
         this is only a preference, not requirement. If a voice of the appropriate
         gender is not available, the synthesizer substitutes a voice with a
         different gender rather than failing the request.
         
        .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
        Parameters:
        value - The ssmlGender to set.
        Returns:
        This builder for chaining.
      • clearSsmlGender

        public VoiceSelectionParams.Builder clearSsmlGender()
         Optional. The preferred gender of the voice. If not set, the service will
         choose a voice based on the other parameters such as language_code and
         [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
         this is only a preference, not requirement. If a voice of the appropriate
         gender is not available, the synthesizer substitutes a voice with a
         different gender rather than failing the request.
         
        .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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