google-apis-documentai_v1 0.52.0 → 0.53.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1134,26 +1134,28 @@ module Google
1134
1134
  class GoogleCloudDocumentaiV1Barcode
1135
1135
  include Google::Apis::Core::Hashable
1136
1136
 
1137
- # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
1138
- # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
1139
- # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
1140
- # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
1141
- # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
1137
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
1138
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
1139
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
1140
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
1141
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
1142
+ # type. - `DATABAR`: GS1 DataBar code type.
1142
1143
  # Corresponds to the JSON property `format`
1143
1144
  # @return [String]
1144
1145
  attr_accessor :format
1145
1146
 
1146
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
1147
- # www.google.com;;'.
1147
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
1148
+ # /www.google.com;;'`.
1148
1149
  # Corresponds to the JSON property `rawValue`
1149
1150
  # @return [String]
1150
1151
  attr_accessor :raw_value
1151
1152
 
1152
1153
  # Value format describes the format of the value that a barcode encodes. The
1153
- # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
1154
- # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
1155
- # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
1156
- # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
1154
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
1155
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
1156
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
1157
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
1158
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
1157
1159
  # Corresponds to the JSON property `valueFormat`
1158
1160
  # @return [String]
1159
1161
  attr_accessor :value_format
@@ -1593,14 +1595,14 @@ module Google
1593
1595
  # @return [String]
1594
1596
  attr_accessor :text
1595
1597
 
1596
- # Placeholder. A list of text corrections made to [Document.text]. This is
1597
- # usually used for annotating corrections to OCR mistakes. Text changes for a
1598
- # given revision may not overlap with each other.
1598
+ # Placeholder. A list of text corrections made to Document.text. This is usually
1599
+ # used for annotating corrections to OCR mistakes. Text changes for a given
1600
+ # revision may not overlap with each other.
1599
1601
  # Corresponds to the JSON property `textChanges`
1600
1602
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentTextChange>]
1601
1603
  attr_accessor :text_changes
1602
1604
 
1603
- # Placeholder. Styles for the Document.text.
1605
+ # Styles for the Document.text.
1604
1606
  # Corresponds to the JSON property `textStyles`
1605
1607
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentStyle>]
1606
1608
  attr_accessor :text_styles
@@ -1640,7 +1642,7 @@ module Google
1640
1642
  class GoogleCloudDocumentaiV1DocumentEntity
1641
1643
  include Google::Apis::Core::Hashable
1642
1644
 
1643
- # Optional. Confidence of detected Schema entity. Range [0, 1].
1645
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
1644
1646
  # Corresponds to the JSON property `confidence`
1645
1647
  # @return [Float]
1646
1648
  attr_accessor :confidence
@@ -1793,8 +1795,8 @@ module Google
1793
1795
  # Optional. An optional field to store a normalized string. For some entity
1794
1796
  # types, one of respective `structured_value` fields may also be populated. Also
1795
1797
  # not all the types of `structured_value` will be normalized. For example, some
1796
- # processors may not generate float or int normalized text by default. Below are
1797
- # sample formats mapped to structured values. - Money/Currency type (`
1798
+ # processors may not generate `float` or `integer` normalized text by default.
1799
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
1798
1800
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
1799
1801
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
1800
1802
  # 8601 text format.
@@ -1886,6 +1888,11 @@ module Google
1886
1888
  # @return [String]
1887
1889
  attr_accessor :gcs_uri
1888
1890
 
1891
+ # The sharding config for the output document.
1892
+ # Corresponds to the JSON property `shardingConfig`
1893
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig]
1894
+ attr_accessor :sharding_config
1895
+
1889
1896
  def initialize(**args)
1890
1897
  update!(**args)
1891
1898
  end
@@ -1894,6 +1901,32 @@ module Google
1894
1901
  def update!(**args)
1895
1902
  @field_mask = args[:field_mask] if args.key?(:field_mask)
1896
1903
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
1904
+ @sharding_config = args[:sharding_config] if args.key?(:sharding_config)
1905
+ end
1906
+ end
1907
+
1908
+ # The sharding config for the output document.
1909
+ class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig
1910
+ include Google::Apis::Core::Hashable
1911
+
1912
+ # The number of overlapping pages between consecutive shards.
1913
+ # Corresponds to the JSON property `pagesOverlap`
1914
+ # @return [Fixnum]
1915
+ attr_accessor :pages_overlap
1916
+
1917
+ # The number of pages per shard.
1918
+ # Corresponds to the JSON property `pagesPerShard`
1919
+ # @return [Fixnum]
1920
+ attr_accessor :pages_per_shard
1921
+
1922
+ def initialize(**args)
1923
+ update!(**args)
1924
+ end
1925
+
1926
+ # Update properties of this object
1927
+ def update!(**args)
1928
+ @pages_overlap = args[:pages_overlap] if args.key?(:pages_overlap)
1929
+ @pages_per_shard = args[:pages_per_shard] if args.key?(:pages_per_shard)
1897
1930
  end
1898
1931
  end
1899
1932
 
@@ -2050,7 +2083,7 @@ module Google
2050
2083
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly]
2051
2084
  attr_accessor :bounding_poly
2052
2085
 
2053
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
2086
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
2054
2087
  # Corresponds to the JSON property `confidence`
2055
2088
  # @return [Float]
2056
2089
  attr_accessor :confidence
@@ -2065,10 +2098,10 @@ module Google
2065
2098
  # @return [String]
2066
2099
  attr_accessor :layout_type
2067
2100
 
2068
- # Required. Index into the Document.pages element, for example using Document.
2069
- # pages to locate the related page element. This field is skipped when its value
2070
- # is the default 0. See https://developers.google.com/protocol-buffers/docs/
2071
- # proto3#json.
2101
+ # Required. Index into the Document.pages element, for example using `Document.
2102
+ # pages` to locate the related page element. This field is skipped when its
2103
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
2104
+ # docs/proto3#json.
2072
2105
  # Corresponds to the JSON property `page`
2073
2106
  # @return [Fixnum]
2074
2107
  attr_accessor :page
@@ -2149,12 +2182,12 @@ module Google
2149
2182
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
2150
2183
  include Google::Apis::Core::Hashable
2151
2184
 
2152
- # Confidence of detected language. Range [0, 1].
2185
+ # Confidence of detected language. Range `[0, 1]`.
2153
2186
  # Corresponds to the JSON property `confidence`
2154
2187
  # @return [Float]
2155
2188
  attr_accessor :confidence
2156
2189
 
2157
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2190
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
2158
2191
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2159
2192
  # Corresponds to the JSON property `languageCode`
2160
2193
  # @return [String]
@@ -2247,8 +2280,8 @@ module Google
2247
2280
  attr_accessor :value_detected_languages
2248
2281
 
2249
2282
  # If the value is non-textual, this field represents the type. Current valid
2250
- # values are: - blank (this indicates the field_value is normal text) - "
2251
- # unfilled_checkbox" - "filled_checkbox"
2283
+ # values are: - blank (this indicates the `field_value` is normal text) - `
2284
+ # unfilled_checkbox` - `filled_checkbox`
2252
2285
  # Corresponds to the JSON property `valueType`
2253
2286
  # @return [String]
2254
2287
  attr_accessor :value_type
@@ -2317,7 +2350,7 @@ module Google
2317
2350
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect>]
2318
2351
  attr_accessor :detected_defects
2319
2352
 
2320
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
2353
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
2321
2354
  # Corresponds to the JSON property `qualityScore`
2322
2355
  # @return [Float]
2323
2356
  attr_accessor :quality_score
@@ -2337,16 +2370,16 @@ module Google
2337
2370
  class GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect
2338
2371
  include Google::Apis::Core::Hashable
2339
2372
 
2340
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
2373
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
2341
2374
  # confidence of that the defect exists.
2342
2375
  # Corresponds to the JSON property `confidence`
2343
2376
  # @return [Float]
2344
2377
  attr_accessor :confidence
2345
2378
 
2346
- # Name of the defect type. Supported values are "quality/defect_blurry", "
2347
- # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
2348
- # defect_text_too_small", "quality/defect_document_cutoff", "quality/
2349
- # defect_text_cutoff", "quality/defect_glare"
2379
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
2380
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
2381
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
2382
+ # defect_text_cutoff` - `quality/defect_glare`
2350
2383
  # Corresponds to the JSON property `type`
2351
2384
  # @return [String]
2352
2385
  attr_accessor :type
@@ -2373,7 +2406,7 @@ module Google
2373
2406
 
2374
2407
  # Confidence of the current Layout within context of the object this layout is
2375
2408
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
2376
- # depending on context. Range [0, 1].
2409
+ # depending on context. Range `[0, 1]`.
2377
2410
  # Corresponds to the JSON property `confidence`
2378
2411
  # @return [Float]
2379
2412
  attr_accessor :confidence
@@ -2932,24 +2965,19 @@ module Google
2932
2965
  # @return [String]
2933
2966
  attr_accessor :display_name
2934
2967
 
2935
- # Metadata about an entity type.
2936
- # Corresponds to the JSON property `entityTypeMetadata`
2937
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata]
2938
- attr_accessor :entity_type_metadata
2939
-
2940
2968
  # Defines the a list of enum values.
2941
2969
  # Corresponds to the JSON property `enumValues`
2942
2970
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues]
2943
2971
  attr_accessor :enum_values
2944
2972
 
2945
2973
  # Name of the type. It must be unique within the schema file and cannot be a '
2946
- # Common Type'. Besides that we use the following naming conventions: - *use
2947
- # snake_casing* - name matching is case-insensitive - Maximum 64 characters. -
2974
+ # Common Type'. Besides that we use the following naming conventions: - *use `
2975
+ # snake_casing`* - name matching is case-sensitive - Maximum 64 characters. -
2948
2976
  # Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (
2949
2977
  # For backward compatibility internal infrastructure and tooling can handle any
2950
- # ascii character) - The '/' is sometimes used to denote a property of a type.
2951
- # For example line_item/amount. This convention is deprecated, but will still be
2952
- # honored for backward compatibility.
2978
+ # ascii character) - The `/` is sometimes used to denote a property of a type.
2979
+ # For example `line_item/amount`. This convention is deprecated, but will still
2980
+ # be honored for backward compatibility.
2953
2981
  # Corresponds to the JSON property `name`
2954
2982
  # @return [String]
2955
2983
  attr_accessor :name
@@ -2967,7 +2995,6 @@ module Google
2967
2995
  def update!(**args)
2968
2996
  @base_types = args[:base_types] if args.key?(:base_types)
2969
2997
  @display_name = args[:display_name] if args.key?(:display_name)
2970
- @entity_type_metadata = args[:entity_type_metadata] if args.key?(:entity_type_metadata)
2971
2998
  @enum_values = args[:enum_values] if args.key?(:enum_values)
2972
2999
  @name = args[:name] if args.key?(:name)
2973
3000
  @properties = args[:properties] if args.key?(:properties)
@@ -3008,11 +3035,6 @@ module Google
3008
3035
  # @return [String]
3009
3036
  attr_accessor :occurrence_type
3010
3037
 
3011
- # Metadata about a property.
3012
- # Corresponds to the JSON property `propertyMetadata`
3013
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata]
3014
- attr_accessor :property_metadata
3015
-
3016
3038
  # A reference to the value type of the property. This type is subject to the
3017
3039
  # same conventions as the `Entity.base_types` field.
3018
3040
  # Corresponds to the JSON property `valueType`
@@ -3027,7 +3049,6 @@ module Google
3027
3049
  def update!(**args)
3028
3050
  @name = args[:name] if args.key?(:name)
3029
3051
  @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
3030
- @property_metadata = args[:property_metadata] if args.key?(:property_metadata)
3031
3052
  @value_type = args[:value_type] if args.key?(:value_type)
3032
3053
  end
3033
3054
  end
@@ -3213,7 +3234,7 @@ module Google
3213
3234
  # @return [Google::Apis::DocumentaiV1::GoogleTypeColor]
3214
3235
  attr_accessor :color
3215
3236
 
3216
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
3237
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
3217
3238
  # cssref/pr_font_font-family.asp
3218
3239
  # Corresponds to the JSON property `fontFamily`
3219
3240
  # @return [String]
@@ -3419,26 +3440,6 @@ module Google
3419
3440
  end
3420
3441
  end
3421
3442
 
3422
- # Metadata about an entity type.
3423
- class GoogleCloudDocumentaiV1EntityTypeMetadata
3424
- include Google::Apis::Core::Hashable
3425
-
3426
- # Whether the entity type should be considered as "inactive".
3427
- # Corresponds to the JSON property `inactive`
3428
- # @return [Boolean]
3429
- attr_accessor :inactive
3430
- alias_method :inactive?, :inactive
3431
-
3432
- def initialize(**args)
3433
- update!(**args)
3434
- end
3435
-
3436
- # Update properties of this object
3437
- def update!(**args)
3438
- @inactive = args[:inactive] if args.key?(:inactive)
3439
- end
3440
- end
3441
-
3442
3443
  # Response message for fetch processor types.
3443
3444
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
3444
3445
  include Google::Apis::Core::Hashable
@@ -3771,8 +3772,8 @@ module Google
3771
3772
  # @return [String]
3772
3773
  attr_accessor :state
3773
3774
 
3774
- # The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc. To get a list
3775
- # of processors types, see FetchProcessorTypes.
3775
+ # The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. To get a
3776
+ # list of processors types, see FetchProcessorTypes.
3776
3777
  # Corresponds to the JSON property `type`
3777
3778
  # @return [String]
3778
3779
  attr_accessor :type
@@ -3821,13 +3822,18 @@ module Google
3821
3822
  # @return [String]
3822
3823
  attr_accessor :launch_stage
3823
3824
 
3824
- # The resource name of the processor type. Format: projects/`project`/
3825
- # processorTypes/`processor_type`
3825
+ # The resource name of the processor type. Format: `projects/`project`/
3826
+ # processorTypes/`processor_type``
3826
3827
  # Corresponds to the JSON property `name`
3827
3828
  # @return [String]
3828
3829
  attr_accessor :name
3829
3830
 
3830
- # The type of the processor, e.g., "invoice_parsing".
3831
+ # A set of Cloud Storage URIs of sample documents for this processor.
3832
+ # Corresponds to the JSON property `sampleDocumentUris`
3833
+ # @return [Array<String>]
3834
+ attr_accessor :sample_document_uris
3835
+
3836
+ # The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
3831
3837
  # Corresponds to the JSON property `type`
3832
3838
  # @return [String]
3833
3839
  attr_accessor :type
@@ -3843,6 +3849,7 @@ module Google
3843
3849
  @category = args[:category] if args.key?(:category)
3844
3850
  @launch_stage = args[:launch_stage] if args.key?(:launch_stage)
3845
3851
  @name = args[:name] if args.key?(:name)
3852
+ @sample_document_uris = args[:sample_document_uris] if args.key?(:sample_document_uris)
3846
3853
  @type = args[:type] if args.key?(:type)
3847
3854
  end
3848
3855
  end
@@ -3965,26 +3972,6 @@ module Google
3965
3972
  end
3966
3973
  end
3967
3974
 
3968
- # Metadata about a property.
3969
- class GoogleCloudDocumentaiV1PropertyMetadata
3970
- include Google::Apis::Core::Hashable
3971
-
3972
- # Whether the property should be considered as "inactive".
3973
- # Corresponds to the JSON property `inactive`
3974
- # @return [Boolean]
3975
- attr_accessor :inactive
3976
- alias_method :inactive?, :inactive
3977
-
3978
- def initialize(**args)
3979
- update!(**args)
3980
- end
3981
-
3982
- # Update properties of this object
3983
- def update!(**args)
3984
- @inactive = args[:inactive] if args.key?(:inactive)
3985
- end
3986
- end
3987
-
3988
3975
  # Payload message of raw document content (bytes).
3989
3976
  class GoogleCloudDocumentaiV1RawDocument
3990
3977
  include Google::Apis::Core::Hashable
@@ -3995,7 +3982,7 @@ module Google
3995
3982
  # @return [String]
3996
3983
  attr_accessor :content
3997
3984
 
3998
- # An IANA MIME type (RFC6838) indicating the nature and format of the [content].
3985
+ # An IANA MIME type (RFC6838) indicating the nature and format of the content.
3999
3986
  # Corresponds to the JSON property `mimeType`
4000
3987
  # @return [String]
4001
3988
  attr_accessor :mime_type
@@ -4299,26 +4286,28 @@ module Google
4299
4286
  class GoogleCloudDocumentaiV1beta1Barcode
4300
4287
  include Google::Apis::Core::Hashable
4301
4288
 
4302
- # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
4303
- # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
4304
- # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
4305
- # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
4306
- # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
4289
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
4290
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
4291
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
4292
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
4293
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
4294
+ # type. - `DATABAR`: GS1 DataBar code type.
4307
4295
  # Corresponds to the JSON property `format`
4308
4296
  # @return [String]
4309
4297
  attr_accessor :format
4310
4298
 
4311
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
4312
- # www.google.com;;'.
4299
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
4300
+ # /www.google.com;;'`.
4313
4301
  # Corresponds to the JSON property `rawValue`
4314
4302
  # @return [String]
4315
4303
  attr_accessor :raw_value
4316
4304
 
4317
4305
  # Value format describes the format of the value that a barcode encodes. The
4318
- # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
4319
- # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
4320
- # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
4321
- # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
4306
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
4307
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
4308
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
4309
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
4310
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
4322
4311
  # Corresponds to the JSON property `valueFormat`
4323
4312
  # @return [String]
4324
4313
  attr_accessor :value_format
@@ -4444,14 +4433,14 @@ module Google
4444
4433
  # @return [String]
4445
4434
  attr_accessor :text
4446
4435
 
4447
- # Placeholder. A list of text corrections made to [Document.text]. This is
4448
- # usually used for annotating corrections to OCR mistakes. Text changes for a
4449
- # given revision may not overlap with each other.
4436
+ # Placeholder. A list of text corrections made to Document.text. This is usually
4437
+ # used for annotating corrections to OCR mistakes. Text changes for a given
4438
+ # revision may not overlap with each other.
4450
4439
  # Corresponds to the JSON property `textChanges`
4451
4440
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextChange>]
4452
4441
  attr_accessor :text_changes
4453
4442
 
4454
- # Placeholder. Styles for the Document.text.
4443
+ # Styles for the Document.text.
4455
4444
  # Corresponds to the JSON property `textStyles`
4456
4445
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentStyle>]
4457
4446
  attr_accessor :text_styles
@@ -4491,7 +4480,7 @@ module Google
4491
4480
  class GoogleCloudDocumentaiV1beta1DocumentEntity
4492
4481
  include Google::Apis::Core::Hashable
4493
4482
 
4494
- # Optional. Confidence of detected Schema entity. Range [0, 1].
4483
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
4495
4484
  # Corresponds to the JSON property `confidence`
4496
4485
  # @return [Float]
4497
4486
  attr_accessor :confidence
@@ -4644,8 +4633,8 @@ module Google
4644
4633
  # Optional. An optional field to store a normalized string. For some entity
4645
4634
  # types, one of respective `structured_value` fields may also be populated. Also
4646
4635
  # not all the types of `structured_value` will be normalized. For example, some
4647
- # processors may not generate float or int normalized text by default. Below are
4648
- # sample formats mapped to structured values. - Money/Currency type (`
4636
+ # processors may not generate `float` or `integer` normalized text by default.
4637
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
4649
4638
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
4650
4639
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
4651
4640
  # 8601 text format.
@@ -4854,7 +4843,7 @@ module Google
4854
4843
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1BoundingPoly]
4855
4844
  attr_accessor :bounding_poly
4856
4845
 
4857
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
4846
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
4858
4847
  # Corresponds to the JSON property `confidence`
4859
4848
  # @return [Float]
4860
4849
  attr_accessor :confidence
@@ -4869,10 +4858,10 @@ module Google
4869
4858
  # @return [String]
4870
4859
  attr_accessor :layout_type
4871
4860
 
4872
- # Required. Index into the Document.pages element, for example using Document.
4873
- # pages to locate the related page element. This field is skipped when its value
4874
- # is the default 0. See https://developers.google.com/protocol-buffers/docs/
4875
- # proto3#json.
4861
+ # Required. Index into the Document.pages element, for example using `Document.
4862
+ # pages` to locate the related page element. This field is skipped when its
4863
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
4864
+ # docs/proto3#json.
4876
4865
  # Corresponds to the JSON property `page`
4877
4866
  # @return [Fixnum]
4878
4867
  attr_accessor :page
@@ -4953,12 +4942,12 @@ module Google
4953
4942
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
4954
4943
  include Google::Apis::Core::Hashable
4955
4944
 
4956
- # Confidence of detected language. Range [0, 1].
4945
+ # Confidence of detected language. Range `[0, 1]`.
4957
4946
  # Corresponds to the JSON property `confidence`
4958
4947
  # @return [Float]
4959
4948
  attr_accessor :confidence
4960
4949
 
4961
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
4950
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
4962
4951
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4963
4952
  # Corresponds to the JSON property `languageCode`
4964
4953
  # @return [String]
@@ -5051,8 +5040,8 @@ module Google
5051
5040
  attr_accessor :value_detected_languages
5052
5041
 
5053
5042
  # If the value is non-textual, this field represents the type. Current valid
5054
- # values are: - blank (this indicates the field_value is normal text) - "
5055
- # unfilled_checkbox" - "filled_checkbox"
5043
+ # values are: - blank (this indicates the `field_value` is normal text) - `
5044
+ # unfilled_checkbox` - `filled_checkbox`
5056
5045
  # Corresponds to the JSON property `valueType`
5057
5046
  # @return [String]
5058
5047
  attr_accessor :value_type
@@ -5121,7 +5110,7 @@ module Google
5121
5110
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
5122
5111
  attr_accessor :detected_defects
5123
5112
 
5124
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
5113
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
5125
5114
  # Corresponds to the JSON property `qualityScore`
5126
5115
  # @return [Float]
5127
5116
  attr_accessor :quality_score
@@ -5141,16 +5130,16 @@ module Google
5141
5130
  class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
5142
5131
  include Google::Apis::Core::Hashable
5143
5132
 
5144
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
5133
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
5145
5134
  # confidence of that the defect exists.
5146
5135
  # Corresponds to the JSON property `confidence`
5147
5136
  # @return [Float]
5148
5137
  attr_accessor :confidence
5149
5138
 
5150
- # Name of the defect type. Supported values are "quality/defect_blurry", "
5151
- # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
5152
- # defect_text_too_small", "quality/defect_document_cutoff", "quality/
5153
- # defect_text_cutoff", "quality/defect_glare"
5139
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
5140
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
5141
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
5142
+ # defect_text_cutoff` - `quality/defect_glare`
5154
5143
  # Corresponds to the JSON property `type`
5155
5144
  # @return [String]
5156
5145
  attr_accessor :type
@@ -5177,7 +5166,7 @@ module Google
5177
5166
 
5178
5167
  # Confidence of the current Layout within context of the object this layout is
5179
5168
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
5180
- # depending on context. Range [0, 1].
5169
+ # depending on context. Range `[0, 1]`.
5181
5170
  # Corresponds to the JSON property `confidence`
5182
5171
  # @return [Float]
5183
5172
  attr_accessor :confidence
@@ -5818,7 +5807,7 @@ module Google
5818
5807
  # @return [Google::Apis::DocumentaiV1::GoogleTypeColor]
5819
5808
  attr_accessor :color
5820
5809
 
5821
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
5810
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
5822
5811
  # cssref/pr_font_font-family.asp
5823
5812
  # Corresponds to the JSON property `fontFamily`
5824
5813
  # @return [String]
@@ -6195,26 +6184,28 @@ module Google
6195
6184
  class GoogleCloudDocumentaiV1beta2Barcode
6196
6185
  include Google::Apis::Core::Hashable
6197
6186
 
6198
- # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
6199
- # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
6200
- # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
6201
- # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
6202
- # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
6187
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
6188
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
6189
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
6190
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
6191
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
6192
+ # type. - `DATABAR`: GS1 DataBar code type.
6203
6193
  # Corresponds to the JSON property `format`
6204
6194
  # @return [String]
6205
6195
  attr_accessor :format
6206
6196
 
6207
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
6208
- # www.google.com;;'.
6197
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
6198
+ # /www.google.com;;'`.
6209
6199
  # Corresponds to the JSON property `rawValue`
6210
6200
  # @return [String]
6211
6201
  attr_accessor :raw_value
6212
6202
 
6213
6203
  # Value format describes the format of the value that a barcode encodes. The
6214
- # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
6215
- # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
6216
- # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
6217
- # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
6204
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
6205
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
6206
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
6207
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
6208
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
6218
6209
  # Corresponds to the JSON property `valueFormat`
6219
6210
  # @return [String]
6220
6211
  attr_accessor :value_format
@@ -6345,14 +6336,14 @@ module Google
6345
6336
  # @return [String]
6346
6337
  attr_accessor :text
6347
6338
 
6348
- # Placeholder. A list of text corrections made to [Document.text]. This is
6349
- # usually used for annotating corrections to OCR mistakes. Text changes for a
6350
- # given revision may not overlap with each other.
6339
+ # Placeholder. A list of text corrections made to Document.text. This is usually
6340
+ # used for annotating corrections to OCR mistakes. Text changes for a given
6341
+ # revision may not overlap with each other.
6351
6342
  # Corresponds to the JSON property `textChanges`
6352
6343
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
6353
6344
  attr_accessor :text_changes
6354
6345
 
6355
- # Placeholder. Styles for the Document.text.
6346
+ # Styles for the Document.text.
6356
6347
  # Corresponds to the JSON property `textStyles`
6357
6348
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentStyle>]
6358
6349
  attr_accessor :text_styles
@@ -6393,7 +6384,7 @@ module Google
6393
6384
  class GoogleCloudDocumentaiV1beta2DocumentEntity
6394
6385
  include Google::Apis::Core::Hashable
6395
6386
 
6396
- # Optional. Confidence of detected Schema entity. Range [0, 1].
6387
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
6397
6388
  # Corresponds to the JSON property `confidence`
6398
6389
  # @return [Float]
6399
6390
  attr_accessor :confidence
@@ -6546,8 +6537,8 @@ module Google
6546
6537
  # Optional. An optional field to store a normalized string. For some entity
6547
6538
  # types, one of respective `structured_value` fields may also be populated. Also
6548
6539
  # not all the types of `structured_value` will be normalized. For example, some
6549
- # processors may not generate float or int normalized text by default. Below are
6550
- # sample formats mapped to structured values. - Money/Currency type (`
6540
+ # processors may not generate `float` or `integer` normalized text by default.
6541
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
6551
6542
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
6552
6543
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
6553
6544
  # 8601 text format.
@@ -6793,7 +6784,7 @@ module Google
6793
6784
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2BoundingPoly]
6794
6785
  attr_accessor :bounding_poly
6795
6786
 
6796
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
6787
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
6797
6788
  # Corresponds to the JSON property `confidence`
6798
6789
  # @return [Float]
6799
6790
  attr_accessor :confidence
@@ -6808,10 +6799,10 @@ module Google
6808
6799
  # @return [String]
6809
6800
  attr_accessor :layout_type
6810
6801
 
6811
- # Required. Index into the Document.pages element, for example using Document.
6812
- # pages to locate the related page element. This field is skipped when its value
6813
- # is the default 0. See https://developers.google.com/protocol-buffers/docs/
6814
- # proto3#json.
6802
+ # Required. Index into the Document.pages element, for example using `Document.
6803
+ # pages` to locate the related page element. This field is skipped when its
6804
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
6805
+ # docs/proto3#json.
6815
6806
  # Corresponds to the JSON property `page`
6816
6807
  # @return [Fixnum]
6817
6808
  attr_accessor :page
@@ -6892,12 +6883,12 @@ module Google
6892
6883
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
6893
6884
  include Google::Apis::Core::Hashable
6894
6885
 
6895
- # Confidence of detected language. Range [0, 1].
6886
+ # Confidence of detected language. Range `[0, 1]`.
6896
6887
  # Corresponds to the JSON property `confidence`
6897
6888
  # @return [Float]
6898
6889
  attr_accessor :confidence
6899
6890
 
6900
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
6891
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
6901
6892
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6902
6893
  # Corresponds to the JSON property `languageCode`
6903
6894
  # @return [String]
@@ -6990,8 +6981,8 @@ module Google
6990
6981
  attr_accessor :value_detected_languages
6991
6982
 
6992
6983
  # If the value is non-textual, this field represents the type. Current valid
6993
- # values are: - blank (this indicates the field_value is normal text) - "
6994
- # unfilled_checkbox" - "filled_checkbox"
6984
+ # values are: - blank (this indicates the `field_value` is normal text) - `
6985
+ # unfilled_checkbox` - `filled_checkbox`
6995
6986
  # Corresponds to the JSON property `valueType`
6996
6987
  # @return [String]
6997
6988
  attr_accessor :value_type
@@ -7060,7 +7051,7 @@ module Google
7060
7051
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>]
7061
7052
  attr_accessor :detected_defects
7062
7053
 
7063
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
7054
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
7064
7055
  # Corresponds to the JSON property `qualityScore`
7065
7056
  # @return [Float]
7066
7057
  attr_accessor :quality_score
@@ -7080,16 +7071,16 @@ module Google
7080
7071
  class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
7081
7072
  include Google::Apis::Core::Hashable
7082
7073
 
7083
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
7074
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
7084
7075
  # confidence of that the defect exists.
7085
7076
  # Corresponds to the JSON property `confidence`
7086
7077
  # @return [Float]
7087
7078
  attr_accessor :confidence
7088
7079
 
7089
- # Name of the defect type. Supported values are "quality/defect_blurry", "
7090
- # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
7091
- # defect_text_too_small", "quality/defect_document_cutoff", "quality/
7092
- # defect_text_cutoff", "quality/defect_glare"
7080
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
7081
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
7082
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
7083
+ # defect_text_cutoff` - `quality/defect_glare`
7093
7084
  # Corresponds to the JSON property `type`
7094
7085
  # @return [String]
7095
7086
  attr_accessor :type
@@ -7116,7 +7107,7 @@ module Google
7116
7107
 
7117
7108
  # Confidence of the current Layout within context of the object this layout is
7118
7109
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
7119
- # depending on context. Range [0, 1].
7110
+ # depending on context. Range `[0, 1]`.
7120
7111
  # Corresponds to the JSON property `confidence`
7121
7112
  # @return [Float]
7122
7113
  attr_accessor :confidence
@@ -7757,7 +7748,7 @@ module Google
7757
7748
  # @return [Google::Apis::DocumentaiV1::GoogleTypeColor]
7758
7749
  attr_accessor :color
7759
7750
 
7760
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
7751
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
7761
7752
  # cssref/pr_font_font-family.asp
7762
7753
  # Corresponds to the JSON property `fontFamily`
7763
7754
  # @return [String]
@@ -8431,6 +8422,44 @@ module Google
8431
8422
  end
8432
8423
  end
8433
8424
 
8425
+ # Metadata of the EvaluateProcessorVersion method.
8426
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
8427
+ include Google::Apis::Core::Hashable
8428
+
8429
+ # The common metadata for long running operations.
8430
+ # Corresponds to the JSON property `commonMetadata`
8431
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
8432
+ attr_accessor :common_metadata
8433
+
8434
+ def initialize(**args)
8435
+ update!(**args)
8436
+ end
8437
+
8438
+ # Update properties of this object
8439
+ def update!(**args)
8440
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
8441
+ end
8442
+ end
8443
+
8444
+ # Metadata of the EvaluateProcessorVersion method.
8445
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
8446
+ include Google::Apis::Core::Hashable
8447
+
8448
+ # The resource name of the created evaluation.
8449
+ # Corresponds to the JSON property `evaluation`
8450
+ # @return [String]
8451
+ attr_accessor :evaluation
8452
+
8453
+ def initialize(**args)
8454
+ update!(**args)
8455
+ end
8456
+
8457
+ # Update properties of this object
8458
+ def update!(**args)
8459
+ @evaluation = args[:evaluation] if args.key?(:evaluation)
8460
+ end
8461
+ end
8462
+
8434
8463
  # The status of human review on a processed document.
8435
8464
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
8436
8465
  include Google::Apis::Core::Hashable
@@ -8579,6 +8608,99 @@ module Google
8579
8608
  end
8580
8609
  end
8581
8610
 
8611
+ # The metadata that represents a processor version being created.
8612
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
8613
+ include Google::Apis::Core::Hashable
8614
+
8615
+ # The common metadata for long running operations.
8616
+ # Corresponds to the JSON property `commonMetadata`
8617
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
8618
+ attr_accessor :common_metadata
8619
+
8620
+ # The dataset validation information. This includes any and all errors with
8621
+ # documents and the dataset.
8622
+ # Corresponds to the JSON property `testDatasetValidation`
8623
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation]
8624
+ attr_accessor :test_dataset_validation
8625
+
8626
+ # The dataset validation information. This includes any and all errors with
8627
+ # documents and the dataset.
8628
+ # Corresponds to the JSON property `trainingDatasetValidation`
8629
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation]
8630
+ attr_accessor :training_dataset_validation
8631
+
8632
+ def initialize(**args)
8633
+ update!(**args)
8634
+ end
8635
+
8636
+ # Update properties of this object
8637
+ def update!(**args)
8638
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
8639
+ @test_dataset_validation = args[:test_dataset_validation] if args.key?(:test_dataset_validation)
8640
+ @training_dataset_validation = args[:training_dataset_validation] if args.key?(:training_dataset_validation)
8641
+ end
8642
+ end
8643
+
8644
+ # The dataset validation information. This includes any and all errors with
8645
+ # documents and the dataset.
8646
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
8647
+ include Google::Apis::Core::Hashable
8648
+
8649
+ # The total number of dataset errors.
8650
+ # Corresponds to the JSON property `datasetErrorCount`
8651
+ # @return [Fixnum]
8652
+ attr_accessor :dataset_error_count
8653
+
8654
+ # Error information for the dataset as a whole. A maximum of 10 dataset errors
8655
+ # will be returned. A single dataset error is terminal for training.
8656
+ # Corresponds to the JSON property `datasetErrors`
8657
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleRpcStatus>]
8658
+ attr_accessor :dataset_errors
8659
+
8660
+ # The total number of document errors.
8661
+ # Corresponds to the JSON property `documentErrorCount`
8662
+ # @return [Fixnum]
8663
+ attr_accessor :document_error_count
8664
+
8665
+ # Error information pertaining to specific documents. A maximum of 10 document
8666
+ # errors will be returned. Any document with errors will not be used throughout
8667
+ # training.
8668
+ # Corresponds to the JSON property `documentErrors`
8669
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleRpcStatus>]
8670
+ attr_accessor :document_errors
8671
+
8672
+ def initialize(**args)
8673
+ update!(**args)
8674
+ end
8675
+
8676
+ # Update properties of this object
8677
+ def update!(**args)
8678
+ @dataset_error_count = args[:dataset_error_count] if args.key?(:dataset_error_count)
8679
+ @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
8680
+ @document_error_count = args[:document_error_count] if args.key?(:document_error_count)
8681
+ @document_errors = args[:document_errors] if args.key?(:document_errors)
8682
+ end
8683
+ end
8684
+
8685
+ # The response for the TrainProcessorVersion method.
8686
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
8687
+ include Google::Apis::Core::Hashable
8688
+
8689
+ # The resource name of the processor version produced by training.
8690
+ # Corresponds to the JSON property `processorVersion`
8691
+ # @return [String]
8692
+ attr_accessor :processor_version
8693
+
8694
+ def initialize(**args)
8695
+ update!(**args)
8696
+ end
8697
+
8698
+ # Update properties of this object
8699
+ def update!(**args)
8700
+ @processor_version = args[:processor_version] if args.key?(:processor_version)
8701
+ end
8702
+ end
8703
+
8582
8704
  # The long running operation metadata for the undeploy processor version method.
8583
8705
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
8584
8706
  include Google::Apis::Core::Hashable