Interface DocumentTranslationOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.ByteString getByteStreamOutputs​(int index)
      The array of translated documents.
      int getByteStreamOutputsCount()
      The array of translated documents.
      List<com.google.protobuf.ByteString> getByteStreamOutputsList()
      The array of translated documents.
      String getDetectedLanguageCode()
      The detected language for the input document.
      com.google.protobuf.ByteString getDetectedLanguageCodeBytes()
      The detected language for the input document.
      String getMimeType()
      The translated document's mime type.
      com.google.protobuf.ByteString getMimeTypeBytes()
      The translated document's mime type.
      • 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

      • getByteStreamOutputsList

        List<com.google.protobuf.ByteString> getByteStreamOutputsList()
         The array of translated documents. It is expected to be size 1 for now. We
         may produce multiple translated documents in the future for other type of
         file formats.
         
        repeated bytes byte_stream_outputs = 1;
        Returns:
        A list containing the byteStreamOutputs.
      • getByteStreamOutputsCount

        int getByteStreamOutputsCount()
         The array of translated documents. It is expected to be size 1 for now. We
         may produce multiple translated documents in the future for other type of
         file formats.
         
        repeated bytes byte_stream_outputs = 1;
        Returns:
        The count of byteStreamOutputs.
      • getByteStreamOutputs

        com.google.protobuf.ByteString getByteStreamOutputs​(int index)
         The array of translated documents. It is expected to be size 1 for now. We
         may produce multiple translated documents in the future for other type of
         file formats.
         
        repeated bytes byte_stream_outputs = 1;
        Parameters:
        index - The index of the element to return.
        Returns:
        The byteStreamOutputs at the given index.
      • getMimeType

        String getMimeType()
         The translated document's mime type.
         
        string mime_type = 2;
        Returns:
        The mimeType.
      • getMimeTypeBytes

        com.google.protobuf.ByteString getMimeTypeBytes()
         The translated document's mime type.
         
        string mime_type = 2;
        Returns:
        The bytes for mimeType.
      • getDetectedLanguageCode

        String getDetectedLanguageCode()
         The detected language for the input document.
         If the user did not provide the source language for the input document,
         this field will have the language code automatically detected. If the
         source language was passed, auto-detection of the language does not occur
         and this field is empty.
         
        string detected_language_code = 3;
        Returns:
        The detectedLanguageCode.
      • getDetectedLanguageCodeBytes

        com.google.protobuf.ByteString getDetectedLanguageCodeBytes()
         The detected language for the input document.
         If the user did not provide the source language for the input document,
         this field will have the language code automatically detected. If the
         source language was passed, auto-detection of the language does not occur
         and this field is empty.
         
        string detected_language_code = 3;
        Returns:
        The bytes for detectedLanguageCode.