Class ListVoicesRequest.Builder

  • All Implemented Interfaces:
    ListVoicesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ListVoicesRequest

    public static final class ListVoicesRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ListVoicesRequest.Builder>
    implements ListVoicesRequestOrBuilder
     The top-level message sent by the client for the `ListVoices` method.
     
    Protobuf type google.cloud.texttospeech.v1beta1.ListVoicesRequest
    • 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<ListVoicesRequest.Builder>
      • clear

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

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

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

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

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

        public ListVoicesRequest.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<ListVoicesRequest.Builder>
      • clearField

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

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

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

        public ListVoicesRequest.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<ListVoicesRequest.Builder>
      • mergeFrom

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

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

        public ListVoicesRequest.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<ListVoicesRequest.Builder>
        Throws:
        IOException
      • getLanguageCode

        public String getLanguageCode()
         Optional. Recommended.
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
         If not specified, the API will return all supported voices.
         If specified, the ListVoices call will only return voices that can be used
         to synthesize this language_code. For example, if you specify `"en-NZ"`,
         all `"en-NZ"` voices will be returned. If you specify `"no"`, both
         `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
         returned.
         
        string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface ListVoicesRequestOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Optional. Recommended.
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
         If not specified, the API will return all supported voices.
         If specified, the ListVoices call will only return voices that can be used
         to synthesize this language_code. For example, if you specify `"en-NZ"`,
         all `"en-NZ"` voices will be returned. If you specify `"no"`, both
         `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
         returned.
         
        string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface ListVoicesRequestOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public ListVoicesRequest.Builder setLanguageCode​(String value)
         Optional. Recommended.
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
         If not specified, the API will return all supported voices.
         If specified, the ListVoices call will only return voices that can be used
         to synthesize this language_code. For example, if you specify `"en-NZ"`,
         all `"en-NZ"` voices will be returned. If you specify `"no"`, both
         `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
         returned.
         
        string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public ListVoicesRequest.Builder clearLanguageCode()
         Optional. Recommended.
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
         If not specified, the API will return all supported voices.
         If specified, the ListVoices call will only return voices that can be used
         to synthesize this language_code. For example, if you specify `"en-NZ"`,
         all `"en-NZ"` voices will be returned. If you specify `"no"`, both
         `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
         returned.
         
        string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public ListVoicesRequest.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Optional. Recommended.
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
         If not specified, the API will return all supported voices.
         If specified, the ListVoices call will only return voices that can be used
         to synthesize this language_code. For example, if you specify `"en-NZ"`,
         all `"en-NZ"` voices will be returned. If you specify `"no"`, both
         `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
         returned.
         
        string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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