
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.
* @property content Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
* @property entities A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
* @property entityRelations Placeholder. Relationship among Document.entities.
* @property error Any error that occurred while processing this document.
* @property mimeType An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml.
* @property pages Visual page layout for the Document.
* @property revisions Placeholder. Revision history of this document.
* @property shardInfo Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
* @property text Optional. UTF-8 encoded text in reading order from the document.
* @property textChanges Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
* @property textStyles Styles for the Document.text.
* @property uri Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).
*/
public data class GoogleCloudDocumentaiV1DocumentResponse(
public val content: String,
public val entities: List,
public val entityRelations: List,
public val error: GoogleRpcStatusResponse,
public val mimeType: String,
public val pages: List,
public val revisions: List,
public val shardInfo: GoogleCloudDocumentaiV1DocumentShardInfoResponse,
public val text: String,
public val textChanges: List,
public val textStyles: List,
public val uri: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.contentwarehouse.v1.outputs.GoogleCloudDocumentaiV1DocumentResponse): GoogleCloudDocumentaiV1DocumentResponse = GoogleCloudDocumentaiV1DocumentResponse(
content = javaType.content(),
entities = javaType.entities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentEntityResponse.Companion.toKotlin(args0)
})
}),
entityRelations = javaType.entityRelations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentEntityRelationResponse.Companion.toKotlin(args0)
})
}),
error = javaType.error().let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleRpcStatusResponse.Companion.toKotlin(args0)
}),
mimeType = javaType.mimeType(),
pages = javaType.pages().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentPageResponse.Companion.toKotlin(args0)
})
}),
revisions = javaType.revisions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentRevisionResponse.Companion.toKotlin(args0)
})
}),
shardInfo = javaType.shardInfo().let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentShardInfoResponse.Companion.toKotlin(args0)
}),
text = javaType.text(),
textChanges = javaType.textChanges().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentTextChangeResponse.Companion.toKotlin(args0)
})
}),
textStyles = javaType.textStyles().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.contentwarehouse.v1.kotlin.outputs.GoogleCloudDocumentaiV1DocumentStyleResponse.Companion.toKotlin(args0)
})
}),
uri = javaType.uri(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy