Interface Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock, Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock.Builder
Enclosing class:
Document.DocumentLayout.DocumentLayoutBlock

public static interface Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasBlobAssetId

      boolean hasBlobAssetId()
       Optional. Asset id of the inline image. If set, find the image
       content in the blob_assets field.
       
      string blob_asset_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the blobAssetId field is set.
    • getBlobAssetId

      String getBlobAssetId()
       Optional. Asset id of the inline image. If set, find the image
       content in the blob_assets field.
       
      string blob_asset_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The blobAssetId.
    • getBlobAssetIdBytes

      com.google.protobuf.ByteString getBlobAssetIdBytes()
       Optional. Asset id of the inline image. If set, find the image
       content in the blob_assets field.
       
      string blob_asset_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for blobAssetId.
    • hasGcsUri

      boolean hasGcsUri()
       Optional. Google Cloud Storage uri of the image.
       
      string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the gcsUri field is set.
    • getGcsUri

      String getGcsUri()
       Optional. Google Cloud Storage uri of the image.
       
      string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The gcsUri.
    • getGcsUriBytes

      com.google.protobuf.ByteString getGcsUriBytes()
       Optional. Google Cloud Storage uri of the image.
       
      string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for gcsUri.
    • hasDataUri

      boolean hasDataUri()
       Optional. Data uri of the image.
       It is composed of four parts: a prefix (data:), a MIME type
       indicating the type of data, an optional base64 token if
       non-textual, and the data itself:
       data:[<mediatype>][;base64],<data>
       
      string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the dataUri field is set.
    • getDataUri

      String getDataUri()
       Optional. Data uri of the image.
       It is composed of four parts: a prefix (data:), a MIME type
       indicating the type of data, an optional base64 token if
       non-textual, and the data itself:
       data:[<mediatype>][;base64],<data>
       
      string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The dataUri.
    • getDataUriBytes

      com.google.protobuf.ByteString getDataUriBytes()
       Optional. Data uri of the image.
       It is composed of four parts: a prefix (data:), a MIME type
       indicating the type of data, an optional base64 token if
       non-textual, and the data itself:
       data:[<mediatype>][;base64],<data>
       
      string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for dataUri.
    • getMimeType

      String getMimeType()
       Mime type of the image. An IANA published [media type (MIME type)]
       (https://www.iana.org/assignments/media-types/media-types.xhtml).
       
      string mime_type = 1;
      Returns:
      The mimeType.
    • getMimeTypeBytes

      com.google.protobuf.ByteString getMimeTypeBytes()
       Mime type of the image. An IANA published [media type (MIME type)]
       (https://www.iana.org/assignments/media-types/media-types.xhtml).
       
      string mime_type = 1;
      Returns:
      The bytes for mimeType.
    • getImageText

      String getImageText()
       Text extracted from the image using OCR or alt text describing the
       image.
       
      string image_text = 2;
      Returns:
      The imageText.
    • getImageTextBytes

      com.google.protobuf.ByteString getImageTextBytes()
       Text extracted from the image using OCR or alt text describing the
       image.
       
      string image_text = 2;
      Returns:
      The bytes for imageText.
    • hasAnnotations

      boolean hasAnnotations()
       Annotation of the image block.
       
      .google.cloud.documentai.v1.Document.Annotations annotations = 3;
      Returns:
      Whether the annotations field is set.
    • getAnnotations

      Document.Annotations getAnnotations()
       Annotation of the image block.
       
      .google.cloud.documentai.v1.Document.Annotations annotations = 3;
      Returns:
      The annotations.
    • getAnnotationsOrBuilder

      Document.AnnotationsOrBuilder getAnnotationsOrBuilder()
       Annotation of the image block.
       
      .google.cloud.documentai.v1.Document.Annotations annotations = 3;
    • getImageSourceCase