Interface DocumentOrBuilder

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

@Generated public interface DocumentOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The content of the input in string format.
    com.google.protobuf.ByteString
    The content of the input in string format.
    The Google Cloud Storage URI where the file content is located.
    com.google.protobuf.ByteString
    The Google Cloud Storage URI where the file content is located.
    The language of the document (if not specified, the language is automatically detected).
    com.google.protobuf.ByteString
    The language of the document (if not specified, the language is automatically detected).
     
    Required.
    int
    Required.
    boolean
    The content of the input in string format.
    boolean
    The Google Cloud Storage URI where the file content is located.

    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 Details

    • getTypeValue

      int getTypeValue()
       Required. If the type is not set or is `TYPE_UNSPECIFIED`,
       returns an `INVALID_ARGUMENT` error.
       
      .google.cloud.language.v1.Document.Type type = 1;
      Returns:
      The enum numeric value on the wire for type.
    • getType

      Document.Type getType()
       Required. If the type is not set or is `TYPE_UNSPECIFIED`,
       returns an `INVALID_ARGUMENT` error.
       
      .google.cloud.language.v1.Document.Type type = 1;
      Returns:
      The type.
    • hasContent

      boolean hasContent()
       The content of the input in string format.
       Cloud audit logging exempt since it is based on user data.
       
      string content = 2;
      Returns:
      Whether the content field is set.
    • getContent

      String getContent()
       The content of the input in string format.
       Cloud audit logging exempt since it is based on user data.
       
      string content = 2;
      Returns:
      The content.
    • getContentBytes

      com.google.protobuf.ByteString getContentBytes()
       The content of the input in string format.
       Cloud audit logging exempt since it is based on user data.
       
      string content = 2;
      Returns:
      The bytes for content.
    • hasGcsContentUri

      boolean hasGcsContentUri()
       The Google Cloud Storage URI where the file content is located.
       This URI must be of the form: gs://bucket_name/object_name. For more
       details, see https://cloud.google.com/storage/docs/reference-uris.
       NOTE: Cloud Storage object versioning is not supported.
       
      string gcs_content_uri = 3;
      Returns:
      Whether the gcsContentUri field is set.
    • getGcsContentUri

      String getGcsContentUri()
       The Google Cloud Storage URI where the file content is located.
       This URI must be of the form: gs://bucket_name/object_name. For more
       details, see https://cloud.google.com/storage/docs/reference-uris.
       NOTE: Cloud Storage object versioning is not supported.
       
      string gcs_content_uri = 3;
      Returns:
      The gcsContentUri.
    • getGcsContentUriBytes

      com.google.protobuf.ByteString getGcsContentUriBytes()
       The Google Cloud Storage URI where the file content is located.
       This URI must be of the form: gs://bucket_name/object_name. For more
       details, see https://cloud.google.com/storage/docs/reference-uris.
       NOTE: Cloud Storage object versioning is not supported.
       
      string gcs_content_uri = 3;
      Returns:
      The bytes for gcsContentUri.
    • getLanguage

      String getLanguage()
       The language of the document (if not specified, the language is
       automatically detected). Both ISO and BCP-47 language codes are
       accepted.<br>
       [Language
       Support](https://cloud.google.com/natural-language/docs/languages) lists
       currently supported languages for each API method. If the language (either
       specified by the caller or automatically detected) is not supported by the
       called API method, an `INVALID_ARGUMENT` error is returned.
       
      string language = 4;
      Returns:
      The language.
    • getLanguageBytes

      com.google.protobuf.ByteString getLanguageBytes()
       The language of the document (if not specified, the language is
       automatically detected). Both ISO and BCP-47 language codes are
       accepted.<br>
       [Language
       Support](https://cloud.google.com/natural-language/docs/languages) lists
       currently supported languages for each API method. If the language (either
       specified by the caller or automatically detected) is not supported by the
       called API method, an `INVALID_ARGUMENT` error is returned.
       
      string language = 4;
      Returns:
      The bytes for language.
    • getSourceCase

      Document.SourceCase getSourceCase()