Interface Document.EntityOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Document.Entity, Document.Entity.Builder
    Enclosing class:
    Document

    public static interface Document.EntityOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasTextAnchor

        boolean hasTextAnchor()
         Provenance of the entity.
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta1.Document.text].
         
        .google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;
        Returns:
        Whether the textAnchor field is set.
      • getTextAnchor

        Document.TextAnchor getTextAnchor()
         Provenance of the entity.
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta1.Document.text].
         
        .google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;
        Returns:
        The textAnchor.
      • getTextAnchorOrBuilder

        Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
         Provenance of the entity.
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta1.Document.text].
         
        .google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;
      • getType

        String getType()
         Required. Entity type from a schema e.g. `Address`.
         
        string type = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The type.
      • getTypeBytes

        com.google.protobuf.ByteString getTypeBytes()
         Required. Entity type from a schema e.g. `Address`.
         
        string type = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for type.
      • getMentionText

        String getMentionText()
         Text value in the document e.g. `1600 Amphitheatre Pkwy`.
         
        string mention_text = 3;
        Returns:
        The mentionText.
      • getMentionTextBytes

        com.google.protobuf.ByteString getMentionTextBytes()
         Text value in the document e.g. `1600 Amphitheatre Pkwy`.
         
        string mention_text = 3;
        Returns:
        The bytes for mentionText.
      • getMentionId

        String getMentionId()
         Canonical mention name. This will be a unique value in the entity list
         for this document.
         
        string mention_id = 4;
        Returns:
        The mentionId.
      • getMentionIdBytes

        com.google.protobuf.ByteString getMentionIdBytes()
         Canonical mention name. This will be a unique value in the entity list
         for this document.
         
        string mention_id = 4;
        Returns:
        The bytes for mentionId.