Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock.
Represents an image type block.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
def annotations() -> ::Google::Cloud::DocumentAI::V1beta3::Document::Annotations
- (::Google::Cloud::DocumentAI::V1beta3::Document::Annotations) — Annotation of the image block.
#annotations=
def annotations=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::Annotations
- value (::Google::Cloud::DocumentAI::V1beta3::Document::Annotations) — Annotation of the image block.
- (::Google::Cloud::DocumentAI::V1beta3::Document::Annotations) — Annotation of the image block.
#blob_asset_id
def blob_asset_id() -> ::String
-
(::String) — Optional. Asset id of the inline image. If set, find the image
content in the blob_assets field.
Note: The following fields are mutually exclusive:
blob_asset_id
,gcs_uri
,data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#blob_asset_id=
def blob_asset_id=(value) -> ::String
-
value (::String) — Optional. Asset id of the inline image. If set, find the image
content in the blob_assets field.
Note: The following fields are mutually exclusive:
blob_asset_id
,gcs_uri
,data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Asset id of the inline image. If set, find the image
content in the blob_assets field.
Note: The following fields are mutually exclusive:
blob_asset_id
,gcs_uri
,data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#data_uri
def data_uri() -> ::String
- (::String) — 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:[
#data_uri=
def data_uri=(value) -> ::String
- value (::String) — 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:[
- (::String) — 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:[
#gcs_uri
def gcs_uri() -> ::String
-
(::String) — Optional. Google Cloud Storage uri of the image.
Note: The following fields are mutually exclusive:
gcs_uri
,blob_asset_id
,data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#gcs_uri=
def gcs_uri=(value) -> ::String
-
value (::String) — Optional. Google Cloud Storage uri of the image.
Note: The following fields are mutually exclusive:
gcs_uri
,blob_asset_id
,data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Google Cloud Storage uri of the image.
Note: The following fields are mutually exclusive:
gcs_uri
,blob_asset_id
,data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#image_text
def image_text() -> ::String
- (::String) — Text extracted from the image using OCR or alt text describing the image.
#image_text=
def image_text=(value) -> ::String
- value (::String) — Text extracted from the image using OCR or alt text describing the image.
- (::String) — Text extracted from the image using OCR or alt text describing the image.
#mime_type
def mime_type() -> ::String
- (::String) — Mime type of the image. An IANA published media type (MIME type).
#mime_type=
def mime_type=(value) -> ::String
- value (::String) — Mime type of the image. An IANA published media type (MIME type).
- (::String) — Mime type of the image. An IANA published media type (MIME type).