Interface DocumentInputConfigOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    DocumentInputConfig, DocumentInputConfig.Builder

    public interface DocumentInputConfigOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.ByteString getContent()
      Document's content represented as a stream of bytes.
      GcsSource getGcsSource()
      Google Cloud Storage location.
      GcsSourceOrBuilder getGcsSourceOrBuilder()
      Google Cloud Storage location.
      String getMimeType()
      Specifies the input document's mime_type.
      com.google.protobuf.ByteString getMimeTypeBytes()
      Specifies the input document's mime_type.
      DocumentInputConfig.SourceCase getSourceCase()  
      boolean hasContent()
      Document's content represented as a stream of bytes.
      boolean hasGcsSource()
      Google Cloud Storage location.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasContent

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

        com.google.protobuf.ByteString getContent()
         Document's content represented as a stream of bytes.
         
        bytes content = 1;
        Returns:
        The content.
      • hasGcsSource

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

        GcsSource getGcsSource()
         Google Cloud Storage location. This must be a single file.
         For example: gs://example_bucket/example_file.pdf
         
        .google.cloud.translation.v3.GcsSource gcs_source = 2;
        Returns:
        The gcsSource.
      • getGcsSourceOrBuilder

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

        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;
        Returns:
        The mimeType.
      • getMimeTypeBytes

        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;
        Returns:
        The bytes for mimeType.