blob: 9489a68c652476130abdb6adead1ebe817731db8 [file] [log] [blame]
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.23.2
// source: google/cloud/documentai/v1/document_io.proto
package documentaipb
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Payload message of raw document content (bytes).
type RawDocument struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Inline document content.
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// An IANA MIME type (RFC6838) indicating the nature and format of the
// [content][google.cloud.documentai.v1.RawDocument.content].
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// The display name of the document, it supports all Unicode characters except
// the following:
// `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
// `~`, `=` and `:` are reserved.
// If not specified, a default ID is generated.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
}
func (x *RawDocument) Reset() {
*x = RawDocument{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RawDocument) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RawDocument) ProtoMessage() {}
func (x *RawDocument) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RawDocument.ProtoReflect.Descriptor instead.
func (*RawDocument) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{0}
}
func (x *RawDocument) GetContent() []byte {
if x != nil {
return x.Content
}
return nil
}
func (x *RawDocument) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
func (x *RawDocument) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
// Specifies a document stored on Cloud Storage.
type GcsDocument struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Cloud Storage object uri.
GcsUri string `protobuf:"bytes,1,opt,name=gcs_uri,json=gcsUri,proto3" json:"gcs_uri,omitempty"`
// An IANA MIME type (RFC6838) of the content.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
}
func (x *GcsDocument) Reset() {
*x = GcsDocument{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcsDocument) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcsDocument) ProtoMessage() {}
func (x *GcsDocument) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcsDocument.ProtoReflect.Descriptor instead.
func (*GcsDocument) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{1}
}
func (x *GcsDocument) GetGcsUri() string {
if x != nil {
return x.GcsUri
}
return ""
}
func (x *GcsDocument) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
// Specifies a set of documents on Cloud Storage.
type GcsDocuments struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of documents.
Documents []*GcsDocument `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
}
func (x *GcsDocuments) Reset() {
*x = GcsDocuments{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcsDocuments) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcsDocuments) ProtoMessage() {}
func (x *GcsDocuments) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcsDocuments.ProtoReflect.Descriptor instead.
func (*GcsDocuments) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{2}
}
func (x *GcsDocuments) GetDocuments() []*GcsDocument {
if x != nil {
return x.Documents
}
return nil
}
// Specifies all documents on Cloud Storage with a common prefix.
type GcsPrefix struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The URI prefix.
GcsUriPrefix string `protobuf:"bytes,1,opt,name=gcs_uri_prefix,json=gcsUriPrefix,proto3" json:"gcs_uri_prefix,omitempty"`
}
func (x *GcsPrefix) Reset() {
*x = GcsPrefix{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcsPrefix) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcsPrefix) ProtoMessage() {}
func (x *GcsPrefix) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcsPrefix.ProtoReflect.Descriptor instead.
func (*GcsPrefix) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{3}
}
func (x *GcsPrefix) GetGcsUriPrefix() string {
if x != nil {
return x.GcsUriPrefix
}
return ""
}
// The common config to specify a set of documents used as input.
type BatchDocumentsInputConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The source.
//
// Types that are assignable to Source:
// *BatchDocumentsInputConfig_GcsPrefix
// *BatchDocumentsInputConfig_GcsDocuments
Source isBatchDocumentsInputConfig_Source `protobuf_oneof:"source"`
}
func (x *BatchDocumentsInputConfig) Reset() {
*x = BatchDocumentsInputConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchDocumentsInputConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchDocumentsInputConfig) ProtoMessage() {}
func (x *BatchDocumentsInputConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchDocumentsInputConfig.ProtoReflect.Descriptor instead.
func (*BatchDocumentsInputConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{4}
}
func (m *BatchDocumentsInputConfig) GetSource() isBatchDocumentsInputConfig_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *BatchDocumentsInputConfig) GetGcsPrefix() *GcsPrefix {
if x, ok := x.GetSource().(*BatchDocumentsInputConfig_GcsPrefix); ok {
return x.GcsPrefix
}
return nil
}
func (x *BatchDocumentsInputConfig) GetGcsDocuments() *GcsDocuments {
if x, ok := x.GetSource().(*BatchDocumentsInputConfig_GcsDocuments); ok {
return x.GcsDocuments
}
return nil
}
type isBatchDocumentsInputConfig_Source interface {
isBatchDocumentsInputConfig_Source()
}
type BatchDocumentsInputConfig_GcsPrefix struct {
// The set of documents that match the specified Cloud Storage `gcs_prefix`.
GcsPrefix *GcsPrefix `protobuf:"bytes,1,opt,name=gcs_prefix,json=gcsPrefix,proto3,oneof"`
}
type BatchDocumentsInputConfig_GcsDocuments struct {
// The set of documents individually specified on Cloud Storage.
GcsDocuments *GcsDocuments `protobuf:"bytes,2,opt,name=gcs_documents,json=gcsDocuments,proto3,oneof"`
}
func (*BatchDocumentsInputConfig_GcsPrefix) isBatchDocumentsInputConfig_Source() {}
func (*BatchDocumentsInputConfig_GcsDocuments) isBatchDocumentsInputConfig_Source() {}
// Config that controls the output of documents. All documents will be written
// as a JSON file.
type DocumentOutputConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The destination of the results.
//
// Types that are assignable to Destination:
// *DocumentOutputConfig_GcsOutputConfig_
Destination isDocumentOutputConfig_Destination `protobuf_oneof:"destination"`
}
func (x *DocumentOutputConfig) Reset() {
*x = DocumentOutputConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DocumentOutputConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DocumentOutputConfig) ProtoMessage() {}
func (x *DocumentOutputConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DocumentOutputConfig.ProtoReflect.Descriptor instead.
func (*DocumentOutputConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{5}
}
func (m *DocumentOutputConfig) GetDestination() isDocumentOutputConfig_Destination {
if m != nil {
return m.Destination
}
return nil
}
func (x *DocumentOutputConfig) GetGcsOutputConfig() *DocumentOutputConfig_GcsOutputConfig {
if x, ok := x.GetDestination().(*DocumentOutputConfig_GcsOutputConfig_); ok {
return x.GcsOutputConfig
}
return nil
}
type isDocumentOutputConfig_Destination interface {
isDocumentOutputConfig_Destination()
}
type DocumentOutputConfig_GcsOutputConfig_ struct {
// Output config to write the results to Cloud Storage.
GcsOutputConfig *DocumentOutputConfig_GcsOutputConfig `protobuf:"bytes,1,opt,name=gcs_output_config,json=gcsOutputConfig,proto3,oneof"`
}
func (*DocumentOutputConfig_GcsOutputConfig_) isDocumentOutputConfig_Destination() {}
// Config for Document OCR.
type OcrConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Hints for the OCR model.
Hints *OcrConfig_Hints `protobuf:"bytes,2,opt,name=hints,proto3" json:"hints,omitempty"`
// Enables special handling for PDFs with existing text information. Results
// in better text extraction quality in such PDF inputs.
EnableNativePdfParsing bool `protobuf:"varint,3,opt,name=enable_native_pdf_parsing,json=enableNativePdfParsing,proto3" json:"enable_native_pdf_parsing,omitempty"`
// Enables intelligent document quality scores after OCR. Can help with
// diagnosing why OCR responses are of poor quality for a given input.
// Adds additional latency comparable to regular OCR to the process call.
EnableImageQualityScores bool `protobuf:"varint,4,opt,name=enable_image_quality_scores,json=enableImageQualityScores,proto3" json:"enable_image_quality_scores,omitempty"`
// A list of advanced OCR options to further fine-tune OCR behavior. Current
// valid values are:
//
// - `legacy_layout`: a heuristics layout detection algorithm, which serves as
// an alternative to the current ML-based layout detection algorithm.
// Customers can choose the best suitable layout algorithm based on their
// situation.
AdvancedOcrOptions []string `protobuf:"bytes,5,rep,name=advanced_ocr_options,json=advancedOcrOptions,proto3" json:"advanced_ocr_options,omitempty"`
// Includes symbol level OCR information if set to true.
EnableSymbol bool `protobuf:"varint,6,opt,name=enable_symbol,json=enableSymbol,proto3" json:"enable_symbol,omitempty"`
// Turn on font identification model and return font style information.
// Deprecated, use
// [PremiumFeatures.compute_style_info][google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info]
// instead.
//
// Deprecated: Marked as deprecated in google/cloud/documentai/v1/document_io.proto.
ComputeStyleInfo bool `protobuf:"varint,8,opt,name=compute_style_info,json=computeStyleInfo,proto3" json:"compute_style_info,omitempty"`
// Turn off character box detector in OCR engine. Character box detection is
// enabled by default in OCR 2.0 (and later) processors.
DisableCharacterBoxesDetection bool `protobuf:"varint,10,opt,name=disable_character_boxes_detection,json=disableCharacterBoxesDetection,proto3" json:"disable_character_boxes_detection,omitempty"`
// Configurations for premium OCR features.
PremiumFeatures *OcrConfig_PremiumFeatures `protobuf:"bytes,11,opt,name=premium_features,json=premiumFeatures,proto3" json:"premium_features,omitempty"`
}
func (x *OcrConfig) Reset() {
*x = OcrConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OcrConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OcrConfig) ProtoMessage() {}
func (x *OcrConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OcrConfig.ProtoReflect.Descriptor instead.
func (*OcrConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{6}
}
func (x *OcrConfig) GetHints() *OcrConfig_Hints {
if x != nil {
return x.Hints
}
return nil
}
func (x *OcrConfig) GetEnableNativePdfParsing() bool {
if x != nil {
return x.EnableNativePdfParsing
}
return false
}
func (x *OcrConfig) GetEnableImageQualityScores() bool {
if x != nil {
return x.EnableImageQualityScores
}
return false
}
func (x *OcrConfig) GetAdvancedOcrOptions() []string {
if x != nil {
return x.AdvancedOcrOptions
}
return nil
}
func (x *OcrConfig) GetEnableSymbol() bool {
if x != nil {
return x.EnableSymbol
}
return false
}
// Deprecated: Marked as deprecated in google/cloud/documentai/v1/document_io.proto.
func (x *OcrConfig) GetComputeStyleInfo() bool {
if x != nil {
return x.ComputeStyleInfo
}
return false
}
func (x *OcrConfig) GetDisableCharacterBoxesDetection() bool {
if x != nil {
return x.DisableCharacterBoxesDetection
}
return false
}
func (x *OcrConfig) GetPremiumFeatures() *OcrConfig_PremiumFeatures {
if x != nil {
return x.PremiumFeatures
}
return nil
}
// The configuration used when outputting documents.
type DocumentOutputConfig_GcsOutputConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Cloud Storage uri (a directory) of the output.
GcsUri string `protobuf:"bytes,1,opt,name=gcs_uri,json=gcsUri,proto3" json:"gcs_uri,omitempty"`
// Specifies which fields to include in the output documents.
// Only supports top level document and pages field so it must be in the
// form of `{document_field_name}` or `pages.{page_field_name}`.
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Specifies the sharding config for the output document.
ShardingConfig *DocumentOutputConfig_GcsOutputConfig_ShardingConfig `protobuf:"bytes,3,opt,name=sharding_config,json=shardingConfig,proto3" json:"sharding_config,omitempty"`
}
func (x *DocumentOutputConfig_GcsOutputConfig) Reset() {
*x = DocumentOutputConfig_GcsOutputConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DocumentOutputConfig_GcsOutputConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DocumentOutputConfig_GcsOutputConfig) ProtoMessage() {}
func (x *DocumentOutputConfig_GcsOutputConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DocumentOutputConfig_GcsOutputConfig.ProtoReflect.Descriptor instead.
func (*DocumentOutputConfig_GcsOutputConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{5, 0}
}
func (x *DocumentOutputConfig_GcsOutputConfig) GetGcsUri() string {
if x != nil {
return x.GcsUri
}
return ""
}
func (x *DocumentOutputConfig_GcsOutputConfig) GetFieldMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.FieldMask
}
return nil
}
func (x *DocumentOutputConfig_GcsOutputConfig) GetShardingConfig() *DocumentOutputConfig_GcsOutputConfig_ShardingConfig {
if x != nil {
return x.ShardingConfig
}
return nil
}
// The sharding config for the output document.
type DocumentOutputConfig_GcsOutputConfig_ShardingConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The number of pages per shard.
PagesPerShard int32 `protobuf:"varint,1,opt,name=pages_per_shard,json=pagesPerShard,proto3" json:"pages_per_shard,omitempty"`
// The number of overlapping pages between consecutive shards.
PagesOverlap int32 `protobuf:"varint,2,opt,name=pages_overlap,json=pagesOverlap,proto3" json:"pages_overlap,omitempty"`
}
func (x *DocumentOutputConfig_GcsOutputConfig_ShardingConfig) Reset() {
*x = DocumentOutputConfig_GcsOutputConfig_ShardingConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DocumentOutputConfig_GcsOutputConfig_ShardingConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DocumentOutputConfig_GcsOutputConfig_ShardingConfig) ProtoMessage() {}
func (x *DocumentOutputConfig_GcsOutputConfig_ShardingConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DocumentOutputConfig_GcsOutputConfig_ShardingConfig.ProtoReflect.Descriptor instead.
func (*DocumentOutputConfig_GcsOutputConfig_ShardingConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{5, 0, 0}
}
func (x *DocumentOutputConfig_GcsOutputConfig_ShardingConfig) GetPagesPerShard() int32 {
if x != nil {
return x.PagesPerShard
}
return 0
}
func (x *DocumentOutputConfig_GcsOutputConfig_ShardingConfig) GetPagesOverlap() int32 {
if x != nil {
return x.PagesOverlap
}
return 0
}
// Hints for OCR Engine
type OcrConfig_Hints struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of BCP-47 language codes to use for OCR. In most cases, not
// specifying it yields the best results since it enables automatic language
// detection. For languages based on the Latin alphabet, setting hints is
// not needed. In rare cases, when the language of the text in the
// image is known, setting a hint will help get better results (although it
// will be a significant hindrance if the hint is wrong).
LanguageHints []string `protobuf:"bytes,1,rep,name=language_hints,json=languageHints,proto3" json:"language_hints,omitempty"`
}
func (x *OcrConfig_Hints) Reset() {
*x = OcrConfig_Hints{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OcrConfig_Hints) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OcrConfig_Hints) ProtoMessage() {}
func (x *OcrConfig_Hints) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OcrConfig_Hints.ProtoReflect.Descriptor instead.
func (*OcrConfig_Hints) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{6, 0}
}
func (x *OcrConfig_Hints) GetLanguageHints() []string {
if x != nil {
return x.LanguageHints
}
return nil
}
// Configurations for premium OCR features.
type OcrConfig_PremiumFeatures struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Turn on selection mark detector in OCR engine. Only available in OCR 2.0
// (and later) processors.
EnableSelectionMarkDetection bool `protobuf:"varint,3,opt,name=enable_selection_mark_detection,json=enableSelectionMarkDetection,proto3" json:"enable_selection_mark_detection,omitempty"`
// Turn on font identification model and return font style information.
ComputeStyleInfo bool `protobuf:"varint,4,opt,name=compute_style_info,json=computeStyleInfo,proto3" json:"compute_style_info,omitempty"`
// Turn on the model that can extract LaTeX math formulas.
EnableMathOcr bool `protobuf:"varint,5,opt,name=enable_math_ocr,json=enableMathOcr,proto3" json:"enable_math_ocr,omitempty"`
}
func (x *OcrConfig_PremiumFeatures) Reset() {
*x = OcrConfig_PremiumFeatures{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OcrConfig_PremiumFeatures) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OcrConfig_PremiumFeatures) ProtoMessage() {}
func (x *OcrConfig_PremiumFeatures) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_documentai_v1_document_io_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OcrConfig_PremiumFeatures.ProtoReflect.Descriptor instead.
func (*OcrConfig_PremiumFeatures) Descriptor() ([]byte, []int) {
return file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP(), []int{6, 1}
}
func (x *OcrConfig_PremiumFeatures) GetEnableSelectionMarkDetection() bool {
if x != nil {
return x.EnableSelectionMarkDetection
}
return false
}
func (x *OcrConfig_PremiumFeatures) GetComputeStyleInfo() bool {
if x != nil {
return x.ComputeStyleInfo
}
return false
}
func (x *OcrConfig_PremiumFeatures) GetEnableMathOcr() bool {
if x != nil {
return x.EnableMathOcr
}
return false
}
var File_google_cloud_documentai_v1_document_io_proto protoreflect.FileDescriptor
var file_google_cloud_documentai_v1_document_io_proto_rawDesc = []byte{
0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c,
0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x0b,
0x52, 0x61, 0x77, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f,
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79,
0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x0b, 0x47, 0x63, 0x73, 0x44, 0x6f, 0x63, 0x75,
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x63, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x63, 0x73, 0x55, 0x72, 0x69, 0x12, 0x1b, 0x0a,
0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x55, 0x0a, 0x0c, 0x47, 0x63,
0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x64, 0x6f,
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x6f,
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x22, 0x31, 0x0a, 0x09, 0x47, 0x63, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x24,
0x0a, 0x0e, 0x67, 0x63, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x63, 0x73, 0x55, 0x72, 0x69, 0x50, 0x72,
0x65, 0x66, 0x69, 0x78, 0x22, 0xbe, 0x01, 0x0a, 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x6f,
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x12, 0x46, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x48, 0x00, 0x52,
0x09, 0x67, 0x63, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x4f, 0x0a, 0x0d, 0x67, 0x63,
0x73, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47,
0x63, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x67,
0x63, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xd6, 0x03, 0x0a, 0x14, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65,
0x6e, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x6e,
0x0a, 0x11, 0x67, 0x63, 0x73, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4f,
0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x63, 0x73, 0x4f,
0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x67,
0x63, 0x73, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xbe,
0x02, 0x0a, 0x0f, 0x47, 0x63, 0x73, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x63, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x63, 0x73, 0x55, 0x72, 0x69, 0x12, 0x39, 0x0a, 0x0a, 0x66,
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x09, 0x66, 0x69, 0x65,
0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x78, 0x0a, 0x0f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x69,
0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x4f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64,
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x2e, 0x47, 0x63, 0x73, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x52, 0x0e, 0x73, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x1a, 0x5d, 0x0a, 0x0e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f,
0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x70, 0x61, 0x67,
0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61,
0x67, 0x65, 0x73, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x61, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28,
0x05, 0x52, 0x0c, 0x70, 0x61, 0x67, 0x65, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x61, 0x70, 0x42,
0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xdf,
0x05, 0x0a, 0x09, 0x4f, 0x63, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x05,
0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d,
0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x63, 0x72, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x2e, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x12,
0x39, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65,
0x5f, 0x70, 0x64, 0x66, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01,
0x28, 0x08, 0x52, 0x16, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x74, 0x69, 0x76, 0x65,
0x50, 0x64, 0x66, 0x50, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x12, 0x3d, 0x0a, 0x1b, 0x65, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69,
0x74, 0x79, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x51, 0x75, 0x61, 0x6c,
0x69, 0x74, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x64, 0x76,
0x61, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x6f, 0x63, 0x72, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65,
0x64, 0x4f, 0x63, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01,
0x28, 0x08, 0x52, 0x0c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c,
0x12, 0x30, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x79, 0x6c,
0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01,
0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x6e,
0x66, 0x6f, 0x12, 0x49, 0x0a, 0x21, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x68,
0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x5f, 0x64, 0x65,
0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1e, 0x64,
0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x42,
0x6f, 0x78, 0x65, 0x73, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x60, 0x0a,
0x10, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x75, 0x6d, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65,
0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61,
0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x63, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50,
0x72, 0x65, 0x6d, 0x69, 0x75, 0x6d, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x0f,
0x70, 0x72, 0x65, 0x6d, 0x69, 0x75, 0x6d, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x1a,
0x2e, 0x0a, 0x05, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, 0x6e, 0x67,
0x75, 0x61, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x1a,
0xae, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x75, 0x6d, 0x46, 0x65, 0x61, 0x74, 0x75,
0x72, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65,
0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x64, 0x65, 0x74,
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x65, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x72,
0x6b, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53,
0x74, 0x79, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x6f, 0x63, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x74, 0x68, 0x4f, 0x63, 0x72,
0x42, 0xcd, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69,
0x2e, 0x76, 0x31, 0x42, 0x0f, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6f, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x6f, 0x63, 0x75,
0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63,
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x70, 0x62, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
0x6e, 0x74, 0x61, 0x69, 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49,
0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
0x75, 0x64, 0x5c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x5c, 0x56, 0x31,
0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
0x3a, 0x3a, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_google_cloud_documentai_v1_document_io_proto_rawDescOnce sync.Once
file_google_cloud_documentai_v1_document_io_proto_rawDescData = file_google_cloud_documentai_v1_document_io_proto_rawDesc
)
func file_google_cloud_documentai_v1_document_io_proto_rawDescGZIP() []byte {
file_google_cloud_documentai_v1_document_io_proto_rawDescOnce.Do(func() {
file_google_cloud_documentai_v1_document_io_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1_document_io_proto_rawDescData)
})
return file_google_cloud_documentai_v1_document_io_proto_rawDescData
}
var file_google_cloud_documentai_v1_document_io_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_google_cloud_documentai_v1_document_io_proto_goTypes = []interface{}{
(*RawDocument)(nil), // 0: google.cloud.documentai.v1.RawDocument
(*GcsDocument)(nil), // 1: google.cloud.documentai.v1.GcsDocument
(*GcsDocuments)(nil), // 2: google.cloud.documentai.v1.GcsDocuments
(*GcsPrefix)(nil), // 3: google.cloud.documentai.v1.GcsPrefix
(*BatchDocumentsInputConfig)(nil), // 4: google.cloud.documentai.v1.BatchDocumentsInputConfig
(*DocumentOutputConfig)(nil), // 5: google.cloud.documentai.v1.DocumentOutputConfig
(*OcrConfig)(nil), // 6: google.cloud.documentai.v1.OcrConfig
(*DocumentOutputConfig_GcsOutputConfig)(nil), // 7: google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig
(*DocumentOutputConfig_GcsOutputConfig_ShardingConfig)(nil), // 8: google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig
(*OcrConfig_Hints)(nil), // 9: google.cloud.documentai.v1.OcrConfig.Hints
(*OcrConfig_PremiumFeatures)(nil), // 10: google.cloud.documentai.v1.OcrConfig.PremiumFeatures
(*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask
}
var file_google_cloud_documentai_v1_document_io_proto_depIdxs = []int32{
1, // 0: google.cloud.documentai.v1.GcsDocuments.documents:type_name -> google.cloud.documentai.v1.GcsDocument
3, // 1: google.cloud.documentai.v1.BatchDocumentsInputConfig.gcs_prefix:type_name -> google.cloud.documentai.v1.GcsPrefix
2, // 2: google.cloud.documentai.v1.BatchDocumentsInputConfig.gcs_documents:type_name -> google.cloud.documentai.v1.GcsDocuments
7, // 3: google.cloud.documentai.v1.DocumentOutputConfig.gcs_output_config:type_name -> google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig
9, // 4: google.cloud.documentai.v1.OcrConfig.hints:type_name -> google.cloud.documentai.v1.OcrConfig.Hints
10, // 5: google.cloud.documentai.v1.OcrConfig.premium_features:type_name -> google.cloud.documentai.v1.OcrConfig.PremiumFeatures
11, // 6: google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.field_mask:type_name -> google.protobuf.FieldMask
8, // 7: google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.sharding_config:type_name -> google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_google_cloud_documentai_v1_document_io_proto_init() }
func file_google_cloud_documentai_v1_document_io_proto_init() {
if File_google_cloud_documentai_v1_document_io_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_google_cloud_documentai_v1_document_io_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RawDocument); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GcsDocument); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GcsDocuments); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GcsPrefix); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchDocumentsInputConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DocumentOutputConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OcrConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DocumentOutputConfig_GcsOutputConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DocumentOutputConfig_GcsOutputConfig_ShardingConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OcrConfig_Hints); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OcrConfig_PremiumFeatures); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[4].OneofWrappers = []interface{}{
(*BatchDocumentsInputConfig_GcsPrefix)(nil),
(*BatchDocumentsInputConfig_GcsDocuments)(nil),
}
file_google_cloud_documentai_v1_document_io_proto_msgTypes[5].OneofWrappers = []interface{}{
(*DocumentOutputConfig_GcsOutputConfig_)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_google_cloud_documentai_v1_document_io_proto_rawDesc,
NumEnums: 0,
NumMessages: 11,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_google_cloud_documentai_v1_document_io_proto_goTypes,
DependencyIndexes: file_google_cloud_documentai_v1_document_io_proto_depIdxs,
MessageInfos: file_google_cloud_documentai_v1_document_io_proto_msgTypes,
}.Build()
File_google_cloud_documentai_v1_document_io_proto = out.File
file_google_cloud_documentai_v1_document_io_proto_rawDesc = nil
file_google_cloud_documentai_v1_document_io_proto_goTypes = nil
file_google_cloud_documentai_v1_document_io_proto_depIdxs = nil
}