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

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

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

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

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

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

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

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

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

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

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

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

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

        public DocumentInputConfig.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<DocumentInputConfig.Builder>
        Throws:
        IOException
      • hasContent

        public boolean hasContent()
         Document's content represented as a stream of bytes.
         
        bytes content = 1;
        Specified by:
        hasContent in interface DocumentInputConfigOrBuilder
        Returns:
        Whether the content field is set.
      • getContent

        public com.google.protobuf.ByteString getContent()
         Document's content represented as a stream of bytes.
         
        bytes content = 1;
        Specified by:
        getContent in interface DocumentInputConfigOrBuilder
        Returns:
        The content.
      • setContent

        public DocumentInputConfig.Builder setContent​(com.google.protobuf.ByteString value)
         Document's content represented as a stream of bytes.
         
        bytes content = 1;
        Parameters:
        value - The content to set.
        Returns:
        This builder for chaining.
      • clearContent

        public DocumentInputConfig.Builder clearContent()
         Document's content represented as a stream of bytes.
         
        bytes content = 1;
        Returns:
        This builder for chaining.
      • hasGcsSource

        public boolean hasGcsSource()
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
        Specified by:
        hasGcsSource in interface DocumentInputConfigOrBuilder
        Returns:
        Whether the gcsSource field is set.
      • getGcsSource

        public GcsSource getGcsSource()
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
        Specified by:
        getGcsSource in interface DocumentInputConfigOrBuilder
        Returns:
        The gcsSource.
      • setGcsSource

        public DocumentInputConfig.Builder setGcsSource​(GcsSource value)
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      • setGcsSource

        public DocumentInputConfig.Builder setGcsSource​(GcsSource.Builder builderForValue)
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      • mergeGcsSource

        public DocumentInputConfig.Builder mergeGcsSource​(GcsSource value)
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      • clearGcsSource

        public DocumentInputConfig.Builder clearGcsSource()
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      • getGcsSourceBuilder

        public GcsSource.Builder getGcsSourceBuilder()
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      • getMimeType

        public String getMimeType()
         Specifies the input document's mime_type.
        
         If not specified it will be determined using the file extension for
         gcs_source provided files. For a file provided through bytes content the
         mime_type must be provided.
         Currently supported mime types are:
         - application/pdf
         - application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - application/vnd.openxmlformats-officedocument.presentationml.presentation
         - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
         
        string mime_type = 4;
        Specified by:
        getMimeType in interface DocumentInputConfigOrBuilder
        Returns:
        The mimeType.
      • getMimeTypeBytes

        public com.google.protobuf.ByteString getMimeTypeBytes()
         Specifies the input document's mime_type.
        
         If not specified it will be determined using the file extension for
         gcs_source provided files. For a file provided through bytes content the
         mime_type must be provided.
         Currently supported mime types are:
         - application/pdf
         - application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - application/vnd.openxmlformats-officedocument.presentationml.presentation
         - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
         
        string mime_type = 4;
        Specified by:
        getMimeTypeBytes in interface DocumentInputConfigOrBuilder
        Returns:
        The bytes for mimeType.
      • setMimeType

        public DocumentInputConfig.Builder setMimeType​(String value)
         Specifies the input document's mime_type.
        
         If not specified it will be determined using the file extension for
         gcs_source provided files. For a file provided through bytes content the
         mime_type must be provided.
         Currently supported mime types are:
         - application/pdf
         - application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - application/vnd.openxmlformats-officedocument.presentationml.presentation
         - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
         
        string mime_type = 4;
        Parameters:
        value - The mimeType to set.
        Returns:
        This builder for chaining.
      • clearMimeType

        public DocumentInputConfig.Builder clearMimeType()
         Specifies the input document's mime_type.
        
         If not specified it will be determined using the file extension for
         gcs_source provided files. For a file provided through bytes content the
         mime_type must be provided.
         Currently supported mime types are:
         - application/pdf
         - application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - application/vnd.openxmlformats-officedocument.presentationml.presentation
         - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
         
        string mime_type = 4;
        Returns:
        This builder for chaining.
      • setMimeTypeBytes

        public DocumentInputConfig.Builder setMimeTypeBytes​(com.google.protobuf.ByteString value)
         Specifies the input document's mime_type.
        
         If not specified it will be determined using the file extension for
         gcs_source provided files. For a file provided through bytes content the
         mime_type must be provided.
         Currently supported mime types are:
         - application/pdf
         - application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - application/vnd.openxmlformats-officedocument.presentationml.presentation
         - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
         
        string mime_type = 4;
        Parameters:
        value - The bytes for mimeType to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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