google-apis-documentai_v1beta3 0.70.0 → 0.72.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -300,7 +300,7 @@ module Google
300
300
  end
301
301
  end
302
302
 
303
- # The long running operation metadata for CreateLabelerPool.
303
+ # The long-running operation metadata for the CreateLabelerPool method.
304
304
  class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
305
305
  include Google::Apis::Core::Hashable
306
306
 
@@ -319,7 +319,7 @@ module Google
319
319
  end
320
320
  end
321
321
 
322
- # The long running operation metadata for DeleteLabelerPool.
322
+ # The long-running operation metadata for DeleteLabelerPool.
323
323
  class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
324
324
  include Google::Apis::Core::Hashable
325
325
 
@@ -338,7 +338,7 @@ module Google
338
338
  end
339
339
  end
340
340
 
341
- # The long running operation metadata for delete processor method.
341
+ # The long-running operation metadata for the DeleteProcessor method.
342
342
  class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
343
343
  include Google::Apis::Core::Hashable
344
344
 
@@ -357,7 +357,7 @@ module Google
357
357
  end
358
358
  end
359
359
 
360
- # The long running operation metadata for delete processor version method.
360
+ # The long-running operation metadata for the DeleteProcessorVersion method.
361
361
  class GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
362
362
  include Google::Apis::Core::Hashable
363
363
 
@@ -376,7 +376,7 @@ module Google
376
376
  end
377
377
  end
378
378
 
379
- # The long running operation metadata for deploy processor version method.
379
+ # The long-running operation metadata for the DeployProcessorVersion method.
380
380
  class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
381
381
  include Google::Apis::Core::Hashable
382
382
 
@@ -395,7 +395,7 @@ module Google
395
395
  end
396
396
  end
397
397
 
398
- # Response message for the deploy processor version method.
398
+ # Response message for the DeployProcessorVersion method.
399
399
  class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse
400
400
  include Google::Apis::Core::Hashable
401
401
 
@@ -408,7 +408,7 @@ module Google
408
408
  end
409
409
  end
410
410
 
411
- # The long running operation metadata for disable processor method.
411
+ # The long-running operation metadata for the DisableProcessor method.
412
412
  class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
413
413
  include Google::Apis::Core::Hashable
414
414
 
@@ -427,7 +427,7 @@ module Google
427
427
  end
428
428
  end
429
429
 
430
- # Response message for the disable processor method. Intentionally empty proto
430
+ # Response message for the DisableProcessor method. Intentionally empty proto
431
431
  # for adding fields in future.
432
432
  class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse
433
433
  include Google::Apis::Core::Hashable
@@ -493,7 +493,7 @@ module Google
493
493
  end
494
494
  end
495
495
 
496
- # The long running operation metadata for enable processor method.
496
+ # The long-running operation metadata for the EnableProcessor method.
497
497
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
498
498
  include Google::Apis::Core::Hashable
499
499
 
@@ -512,8 +512,8 @@ module Google
512
512
  end
513
513
  end
514
514
 
515
- # Response message for the enable processor method. Intentionally empty proto
516
- # for adding fields in future.
515
+ # Response message for the EnableProcessor method. Intentionally empty proto for
516
+ # adding fields in future.
517
517
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse
518
518
  include Google::Apis::Core::Hashable
519
519
 
@@ -545,7 +545,7 @@ module Google
545
545
  end
546
546
  end
547
547
 
548
- # Metadata of the EvaluateProcessorVersion method.
548
+ # Response of the EvaluateProcessorVersion method.
549
549
  class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse
550
550
  include Google::Apis::Core::Hashable
551
551
 
@@ -827,7 +827,7 @@ module Google
827
827
  end
828
828
  end
829
829
 
830
- # The long running operation metadata for the ImportProcessorVersion method.
830
+ # The long-running operation metadata for the ImportProcessorVersion method.
831
831
  class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata
832
832
  include Google::Apis::Core::Hashable
833
833
 
@@ -1010,7 +1010,7 @@ module Google
1010
1010
  end
1011
1011
  end
1012
1012
 
1013
- # The long running operation metadata for set default processor version method.
1013
+ # The long-running operation metadata for the SetDefaultProcessorVersion method.
1014
1014
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1015
1015
  include Google::Apis::Core::Hashable
1016
1016
 
@@ -1029,7 +1029,7 @@ module Google
1029
1029
  end
1030
1030
  end
1031
1031
 
1032
- # Response message for set default processor version method.
1032
+ # Response message for the SetDefaultProcessorVersion method.
1033
1033
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
1034
1034
  include Google::Apis::Core::Hashable
1035
1035
 
@@ -1116,7 +1116,7 @@ module Google
1116
1116
  end
1117
1117
  end
1118
1118
 
1119
- # The response for the TrainProcessorVersion method.
1119
+ # The response for TrainProcessorVersion.
1120
1120
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
1121
1121
  include Google::Apis::Core::Hashable
1122
1122
 
@@ -1135,7 +1135,7 @@ module Google
1135
1135
  end
1136
1136
  end
1137
1137
 
1138
- # The long running operation metadata for the undeploy processor version method.
1138
+ # The long-running operation metadata for the UndeployProcessorVersion method.
1139
1139
  class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
1140
1140
  include Google::Apis::Core::Hashable
1141
1141
 
@@ -1154,7 +1154,7 @@ module Google
1154
1154
  end
1155
1155
  end
1156
1156
 
1157
- # Response message for the undeploy processor version method.
1157
+ # Response message for the UndeployProcessorVersion method.
1158
1158
  class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse
1159
1159
  include Google::Apis::Core::Hashable
1160
1160
 
@@ -1186,7 +1186,7 @@ module Google
1186
1186
  end
1187
1187
  end
1188
1188
 
1189
- # The long running operation metadata for updating the human review
1189
+ # The long-running operation metadata for updating the human review
1190
1190
  # configuration.
1191
1191
  class GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
1192
1192
  include Google::Apis::Core::Hashable
@@ -1206,7 +1206,7 @@ module Google
1206
1206
  end
1207
1207
  end
1208
1208
 
1209
- # The long running operation metadata for UpdateLabelerPool.
1209
+ # The long-running operation metadata for UpdateLabelerPool.
1210
1210
  class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
1211
1211
  include Google::Apis::Core::Hashable
1212
1212
 
@@ -1225,7 +1225,7 @@ module Google
1225
1225
  end
1226
1226
  end
1227
1227
 
1228
- # The long running operation metadata for batch process method.
1228
+ # The long-running operation metadata for BatchProcessDocuments.
1229
1229
  class GoogleCloudDocumentaiV1BatchProcessMetadata
1230
1230
  include Google::Apis::Core::Hashable
1231
1231
 
@@ -1278,16 +1278,15 @@ module Google
1278
1278
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1HumanReviewStatus]
1279
1279
  attr_accessor :human_review_status
1280
1280
 
1281
- # The source of the document, same as the [input_gcs_source] field in the
1282
- # request when the batch process started. The batch process is started by take
1283
- # snapshot of that document, since a user can move or change that document
1284
- # during the process.
1281
+ # The source of the document, same as the input_gcs_source field in the request
1282
+ # when the batch process started.
1285
1283
  # Corresponds to the JSON property `inputGcsSource`
1286
1284
  # @return [String]
1287
1285
  attr_accessor :input_gcs_source
1288
1286
 
1289
- # The output_gcs_destination (in the request as `output_gcs_destination`) of the
1290
- # processed document if it was successful, otherwise empty.
1287
+ # The Cloud Storage output destination (in the request as DocumentOutputConfig.
1288
+ # GcsOutputConfig.gcs_uri) of the processed document if it was successful,
1289
+ # otherwise empty.
1291
1290
  # Corresponds to the JSON property `outputGcsDestination`
1292
1291
  # @return [String]
1293
1292
  attr_accessor :output_gcs_destination
@@ -1315,7 +1314,7 @@ module Google
1315
1314
  end
1316
1315
  end
1317
1316
 
1318
- # Response message for batch process document method.
1317
+ # Response message for BatchProcessDocuments.
1319
1318
  class GoogleCloudDocumentaiV1BatchProcessResponse
1320
1319
  include Google::Apis::Core::Hashable
1321
1320
 
@@ -1371,7 +1370,7 @@ module Google
1371
1370
  end
1372
1371
  end
1373
1372
 
1374
- # The long running operation metadata for delete processor method.
1373
+ # The long-running operation metadata for the DeleteProcessor method.
1375
1374
  class GoogleCloudDocumentaiV1DeleteProcessorMetadata
1376
1375
  include Google::Apis::Core::Hashable
1377
1376
 
@@ -1390,7 +1389,7 @@ module Google
1390
1389
  end
1391
1390
  end
1392
1391
 
1393
- # The long running operation metadata for delete processor version method.
1392
+ # The long-running operation metadata for the DeleteProcessorVersion method.
1394
1393
  class GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata
1395
1394
  include Google::Apis::Core::Hashable
1396
1395
 
@@ -1409,7 +1408,7 @@ module Google
1409
1408
  end
1410
1409
  end
1411
1410
 
1412
- # The long running operation metadata for deploy processor version method.
1411
+ # The long-running operation metadata for the DeployProcessorVersion method.
1413
1412
  class GoogleCloudDocumentaiV1DeployProcessorVersionMetadata
1414
1413
  include Google::Apis::Core::Hashable
1415
1414
 
@@ -1428,7 +1427,7 @@ module Google
1428
1427
  end
1429
1428
  end
1430
1429
 
1431
- # Response message for the deploy processor version method.
1430
+ # Response message for the DeployProcessorVersion method.
1432
1431
  class GoogleCloudDocumentaiV1DeployProcessorVersionResponse
1433
1432
  include Google::Apis::Core::Hashable
1434
1433
 
@@ -1441,7 +1440,7 @@ module Google
1441
1440
  end
1442
1441
  end
1443
1442
 
1444
- # The long running operation metadata for disable processor method.
1443
+ # The long-running operation metadata for the DisableProcessor method.
1445
1444
  class GoogleCloudDocumentaiV1DisableProcessorMetadata
1446
1445
  include Google::Apis::Core::Hashable
1447
1446
 
@@ -1460,7 +1459,7 @@ module Google
1460
1459
  end
1461
1460
  end
1462
1461
 
1463
- # Response message for the disable processor method. Intentionally empty proto
1462
+ # Response message for the DisableProcessor method. Intentionally empty proto
1464
1463
  # for adding fields in future.
1465
1464
  class GoogleCloudDocumentaiV1DisableProcessorResponse
1466
1465
  include Google::Apis::Core::Hashable
@@ -1474,7 +1473,7 @@ module Google
1474
1473
  end
1475
1474
  end
1476
1475
 
1477
- # The long running operation metadata for enable processor method.
1476
+ # The long-running operation metadata for the EnableProcessor method.
1478
1477
  class GoogleCloudDocumentaiV1EnableProcessorMetadata
1479
1478
  include Google::Apis::Core::Hashable
1480
1479
 
@@ -1493,8 +1492,8 @@ module Google
1493
1492
  end
1494
1493
  end
1495
1494
 
1496
- # Response message for the enable processor method. Intentionally empty proto
1497
- # for adding fields in future.
1495
+ # Response message for the EnableProcessor method. Intentionally empty proto for
1496
+ # adding fields in future.
1498
1497
  class GoogleCloudDocumentaiV1EnableProcessorResponse
1499
1498
  include Google::Apis::Core::Hashable
1500
1499
 
@@ -1526,7 +1525,7 @@ module Google
1526
1525
  end
1527
1526
  end
1528
1527
 
1529
- # Metadata of the EvaluateProcessorVersion method.
1528
+ # Response of the EvaluateProcessorVersion method.
1530
1529
  class GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse
1531
1530
  include Google::Apis::Core::Hashable
1532
1531
 
@@ -1550,9 +1549,9 @@ module Google
1550
1549
  include Google::Apis::Core::Hashable
1551
1550
 
1552
1551
  # The name of the operation triggered by the processed document. This field is
1553
- # populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same
1554
- # response type and metadata as the long running operation returned by [
1555
- # ReviewDocument] method.
1552
+ # populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same
1553
+ # response type and metadata as the long-running operation returned by
1554
+ # ReviewDocument.
1556
1555
  # Corresponds to the JSON property `humanReviewOperation`
1557
1556
  # @return [String]
1558
1557
  attr_accessor :human_review_operation
@@ -1579,7 +1578,7 @@ module Google
1579
1578
  end
1580
1579
  end
1581
1580
 
1582
- # The long running operation metadata for review document method.
1581
+ # The long-running operation metadata for the ReviewDocument method.
1583
1582
  class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
1584
1583
  include Google::Apis::Core::Hashable
1585
1584
 
@@ -1604,7 +1603,7 @@ module Google
1604
1603
  end
1605
1604
  end
1606
1605
 
1607
- # Response message for review document method.
1606
+ # Response message for the ReviewDocument method.
1608
1607
  class GoogleCloudDocumentaiV1ReviewDocumentResponse
1609
1608
  include Google::Apis::Core::Hashable
1610
1609
 
@@ -1636,7 +1635,7 @@ module Google
1636
1635
  end
1637
1636
  end
1638
1637
 
1639
- # The long running operation metadata for set default processor version method.
1638
+ # The long-running operation metadata for the SetDefaultProcessorVersion method.
1640
1639
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
1641
1640
  include Google::Apis::Core::Hashable
1642
1641
 
@@ -1655,7 +1654,7 @@ module Google
1655
1654
  end
1656
1655
  end
1657
1656
 
1658
- # Response message for set default processor version method.
1657
+ # Response message for the SetDefaultProcessorVersion method.
1659
1658
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse
1660
1659
  include Google::Apis::Core::Hashable
1661
1660
 
@@ -1742,7 +1741,7 @@ module Google
1742
1741
  end
1743
1742
  end
1744
1743
 
1745
- # The response for the TrainProcessorVersion method.
1744
+ # The response for TrainProcessorVersion.
1746
1745
  class GoogleCloudDocumentaiV1TrainProcessorVersionResponse
1747
1746
  include Google::Apis::Core::Hashable
1748
1747
 
@@ -1761,7 +1760,7 @@ module Google
1761
1760
  end
1762
1761
  end
1763
1762
 
1764
- # The long running operation metadata for the undeploy processor version method.
1763
+ # The long-running operation metadata for the UndeployProcessorVersion method.
1765
1764
  class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
1766
1765
  include Google::Apis::Core::Hashable
1767
1766
 
@@ -1780,7 +1779,7 @@ module Google
1780
1779
  end
1781
1780
  end
1782
1781
 
1783
- # Response message for the undeploy processor version method.
1782
+ # Response message for the UndeployProcessorVersion method.
1784
1783
  class GoogleCloudDocumentaiV1UndeployProcessorVersionResponse
1785
1784
  include Google::Apis::Core::Hashable
1786
1785
 
@@ -1957,9 +1956,9 @@ module Google
1957
1956
  attr_accessor :text_styles
1958
1957
 
1959
1958
  # Optional. Currently supports Google Cloud Storage URI of the form `gs://
1960
- # bucket_name/object_name`. Object versioning is not supported. See [Google
1961
- # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
1962
- # uris) for more info.
1959
+ # bucket_name/object_name`. Object versioning is not supported. For more
1960
+ # information, refer to [Google Cloud Storage Request URIs](https://cloud.google.
1961
+ # com/storage/docs/reference-uris).
1963
1962
  # Corresponds to the JSON property `uri`
1964
1963
  # @return [String]
1965
1964
  attr_accessor :uri
@@ -2962,6 +2961,11 @@ module Google
2962
2961
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance]
2963
2962
  attr_accessor :provenance
2964
2963
 
2964
+ # Font and other text style attributes.
2965
+ # Corresponds to the JSON property `styleInfo`
2966
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo]
2967
+ attr_accessor :style_info
2968
+
2965
2969
  def initialize(**args)
2966
2970
  update!(**args)
2967
2971
  end
@@ -2972,6 +2976,7 @@ module Google
2972
2976
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2973
2977
  @layout = args[:layout] if args.key?(:layout)
2974
2978
  @provenance = args[:provenance] if args.key?(:provenance)
2979
+ @style_info = args[:style_info] if args.key?(:style_info)
2975
2980
  end
2976
2981
  end
2977
2982
 
@@ -2994,6 +2999,206 @@ module Google
2994
2999
  end
2995
3000
  end
2996
3001
 
3002
+ # Font and other text style attributes.
3003
+ class GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo
3004
+ include Google::Apis::Core::Hashable
3005
+
3006
+ # Represents a color in the RGBA color space. This representation is designed
3007
+ # for simplicity of conversion to/from color representations in various
3008
+ # languages over compactness. For example, the fields of this representation can
3009
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3010
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3011
+ # method in iOS; and, with just a little work, it can be easily formatted into a
3012
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3013
+ # information about the absolute color space that should be used to interpret
3014
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3015
+ # applications should assume the sRGB color space. When color equality needs to
3016
+ # be decided, implementations, unless documented otherwise, treat two colors as
3017
+ # equal if all their red, green, blue, and alpha values each differ by at most
3018
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3019
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3020
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3021
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3022
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3023
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3024
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3025
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3026
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3027
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3028
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3029
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3030
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3031
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3032
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3033
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3034
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3035
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3036
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3037
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3038
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3039
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3040
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3041
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3042
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3043
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3044
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3045
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3046
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3047
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3048
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3049
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3050
+ # / ...
3051
+ # Corresponds to the JSON property `backgroundColor`
3052
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
3053
+ attr_accessor :background_color
3054
+
3055
+ # Whether the text is bold (equivalent to font_weight is at least `700`).
3056
+ # Corresponds to the JSON property `bold`
3057
+ # @return [Boolean]
3058
+ attr_accessor :bold
3059
+ alias_method :bold?, :bold
3060
+
3061
+ # Font size in points (`1` point is `¹⁄₇₂` inches).
3062
+ # Corresponds to the JSON property `fontSize`
3063
+ # @return [Fixnum]
3064
+ attr_accessor :font_size
3065
+
3066
+ # Name or style of the font.
3067
+ # Corresponds to the JSON property `fontType`
3068
+ # @return [String]
3069
+ attr_accessor :font_type
3070
+
3071
+ # TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `
3072
+ # 400`, bold is `700`.
3073
+ # Corresponds to the JSON property `fontWeight`
3074
+ # @return [Fixnum]
3075
+ attr_accessor :font_weight
3076
+
3077
+ # Whether the text is handwritten.
3078
+ # Corresponds to the JSON property `handwritten`
3079
+ # @return [Boolean]
3080
+ attr_accessor :handwritten
3081
+ alias_method :handwritten?, :handwritten
3082
+
3083
+ # Whether the text is italic.
3084
+ # Corresponds to the JSON property `italic`
3085
+ # @return [Boolean]
3086
+ attr_accessor :italic
3087
+ alias_method :italic?, :italic
3088
+
3089
+ # Letter spacing in points.
3090
+ # Corresponds to the JSON property `letterSpacing`
3091
+ # @return [Float]
3092
+ attr_accessor :letter_spacing
3093
+
3094
+ # Font size in pixels, equal to _unrounded font_size_ * _resolution_ ÷ `72.0`.
3095
+ # Corresponds to the JSON property `pixelFontSize`
3096
+ # @return [Float]
3097
+ attr_accessor :pixel_font_size
3098
+
3099
+ # Whether the text is in small caps.
3100
+ # Corresponds to the JSON property `smallcaps`
3101
+ # @return [Boolean]
3102
+ attr_accessor :smallcaps
3103
+ alias_method :smallcaps?, :smallcaps
3104
+
3105
+ # Whether the text is strikethrough.
3106
+ # Corresponds to the JSON property `strikeout`
3107
+ # @return [Boolean]
3108
+ attr_accessor :strikeout
3109
+ alias_method :strikeout?, :strikeout
3110
+
3111
+ # Whether the text is a subscript.
3112
+ # Corresponds to the JSON property `subscript`
3113
+ # @return [Boolean]
3114
+ attr_accessor :subscript
3115
+ alias_method :subscript?, :subscript
3116
+
3117
+ # Whether the text is a superscript.
3118
+ # Corresponds to the JSON property `superscript`
3119
+ # @return [Boolean]
3120
+ attr_accessor :superscript
3121
+ alias_method :superscript?, :superscript
3122
+
3123
+ # Represents a color in the RGBA color space. This representation is designed
3124
+ # for simplicity of conversion to/from color representations in various
3125
+ # languages over compactness. For example, the fields of this representation can
3126
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3127
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3128
+ # method in iOS; and, with just a little work, it can be easily formatted into a
3129
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3130
+ # information about the absolute color space that should be used to interpret
3131
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3132
+ # applications should assume the sRGB color space. When color equality needs to
3133
+ # be decided, implementations, unless documented otherwise, treat two colors as
3134
+ # equal if all their red, green, blue, and alpha values each differ by at most
3135
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3136
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3137
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3138
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3139
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3140
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3141
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3142
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3143
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3144
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3145
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3146
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3147
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3148
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3149
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3150
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3151
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3152
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3153
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3154
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3155
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3156
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3157
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3158
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3159
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3160
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3161
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3162
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3163
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3164
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3165
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3166
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3167
+ # / ...
3168
+ # Corresponds to the JSON property `textColor`
3169
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
3170
+ attr_accessor :text_color
3171
+
3172
+ # Whether the text is underlined.
3173
+ # Corresponds to the JSON property `underlined`
3174
+ # @return [Boolean]
3175
+ attr_accessor :underlined
3176
+ alias_method :underlined?, :underlined
3177
+
3178
+ def initialize(**args)
3179
+ update!(**args)
3180
+ end
3181
+
3182
+ # Update properties of this object
3183
+ def update!(**args)
3184
+ @background_color = args[:background_color] if args.key?(:background_color)
3185
+ @bold = args[:bold] if args.key?(:bold)
3186
+ @font_size = args[:font_size] if args.key?(:font_size)
3187
+ @font_type = args[:font_type] if args.key?(:font_type)
3188
+ @font_weight = args[:font_weight] if args.key?(:font_weight)
3189
+ @handwritten = args[:handwritten] if args.key?(:handwritten)
3190
+ @italic = args[:italic] if args.key?(:italic)
3191
+ @letter_spacing = args[:letter_spacing] if args.key?(:letter_spacing)
3192
+ @pixel_font_size = args[:pixel_font_size] if args.key?(:pixel_font_size)
3193
+ @smallcaps = args[:smallcaps] if args.key?(:smallcaps)
3194
+ @strikeout = args[:strikeout] if args.key?(:strikeout)
3195
+ @subscript = args[:subscript] if args.key?(:subscript)
3196
+ @superscript = args[:superscript] if args.key?(:superscript)
3197
+ @text_color = args[:text_color] if args.key?(:text_color)
3198
+ @underlined = args[:underlined] if args.key?(:underlined)
3199
+ end
3200
+ end
3201
+
2997
3202
  # Detected non-text visual elements e.g. checkbox, signature etc. on the page.
2998
3203
  class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
2999
3204
  include Google::Apis::Core::Hashable
@@ -3862,9 +4067,9 @@ module Google
3862
4067
  attr_accessor :text_styles
3863
4068
 
3864
4069
  # Optional. Currently supports Google Cloud Storage URI of the form `gs://
3865
- # bucket_name/object_name`. Object versioning is not supported. See [Google
3866
- # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
3867
- # uris) for more info.
4070
+ # bucket_name/object_name`. Object versioning is not supported. For more
4071
+ # information, refer to [Google Cloud Storage Request URIs](https://cloud.google.
4072
+ # com/storage/docs/reference-uris).
3868
4073
  # Corresponds to the JSON property `uri`
3869
4074
  # @return [String]
3870
4075
  attr_accessor :uri
@@ -4905,6 +5110,11 @@ module Google
4905
5110
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance]
4906
5111
  attr_accessor :provenance
4907
5112
 
5113
+ # Font and other text style attributes.
5114
+ # Corresponds to the JSON property `styleInfo`
5115
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo]
5116
+ attr_accessor :style_info
5117
+
4908
5118
  def initialize(**args)
4909
5119
  update!(**args)
4910
5120
  end
@@ -4915,6 +5125,7 @@ module Google
4915
5125
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4916
5126
  @layout = args[:layout] if args.key?(:layout)
4917
5127
  @provenance = args[:provenance] if args.key?(:provenance)
5128
+ @style_info = args[:style_info] if args.key?(:style_info)
4918
5129
  end
4919
5130
  end
4920
5131
 
@@ -4937,6 +5148,206 @@ module Google
4937
5148
  end
4938
5149
  end
4939
5150
 
5151
+ # Font and other text style attributes.
5152
+ class GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
5153
+ include Google::Apis::Core::Hashable
5154
+
5155
+ # Represents a color in the RGBA color space. This representation is designed
5156
+ # for simplicity of conversion to/from color representations in various
5157
+ # languages over compactness. For example, the fields of this representation can
5158
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5159
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5160
+ # method in iOS; and, with just a little work, it can be easily formatted into a
5161
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5162
+ # information about the absolute color space that should be used to interpret
5163
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5164
+ # applications should assume the sRGB color space. When color equality needs to
5165
+ # be decided, implementations, unless documented otherwise, treat two colors as
5166
+ # equal if all their red, green, blue, and alpha values each differ by at most
5167
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5168
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5169
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5170
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5171
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5172
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5173
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5174
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5175
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5176
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5177
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5178
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5179
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5180
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5181
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5182
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5183
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5184
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5185
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5186
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5187
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5188
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5189
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5190
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5191
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5192
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5193
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5194
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5195
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5196
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5197
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5198
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5199
+ # / ...
5200
+ # Corresponds to the JSON property `backgroundColor`
5201
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
5202
+ attr_accessor :background_color
5203
+
5204
+ # Whether the text is bold (equivalent to font_weight is at least `700`).
5205
+ # Corresponds to the JSON property `bold`
5206
+ # @return [Boolean]
5207
+ attr_accessor :bold
5208
+ alias_method :bold?, :bold
5209
+
5210
+ # Font size in points (`1` point is `¹⁄₇₂` inches).
5211
+ # Corresponds to the JSON property `fontSize`
5212
+ # @return [Fixnum]
5213
+ attr_accessor :font_size
5214
+
5215
+ # Name or style of the font.
5216
+ # Corresponds to the JSON property `fontType`
5217
+ # @return [String]
5218
+ attr_accessor :font_type
5219
+
5220
+ # TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `
5221
+ # 400`, bold is `700`.
5222
+ # Corresponds to the JSON property `fontWeight`
5223
+ # @return [Fixnum]
5224
+ attr_accessor :font_weight
5225
+
5226
+ # Whether the text is handwritten.
5227
+ # Corresponds to the JSON property `handwritten`
5228
+ # @return [Boolean]
5229
+ attr_accessor :handwritten
5230
+ alias_method :handwritten?, :handwritten
5231
+
5232
+ # Whether the text is italic.
5233
+ # Corresponds to the JSON property `italic`
5234
+ # @return [Boolean]
5235
+ attr_accessor :italic
5236
+ alias_method :italic?, :italic
5237
+
5238
+ # Letter spacing in points.
5239
+ # Corresponds to the JSON property `letterSpacing`
5240
+ # @return [Float]
5241
+ attr_accessor :letter_spacing
5242
+
5243
+ # Font size in pixels, equal to _unrounded font_size_ * _resolution_ ÷ `72.0`.
5244
+ # Corresponds to the JSON property `pixelFontSize`
5245
+ # @return [Float]
5246
+ attr_accessor :pixel_font_size
5247
+
5248
+ # Whether the text is in small caps.
5249
+ # Corresponds to the JSON property `smallcaps`
5250
+ # @return [Boolean]
5251
+ attr_accessor :smallcaps
5252
+ alias_method :smallcaps?, :smallcaps
5253
+
5254
+ # Whether the text is strikethrough.
5255
+ # Corresponds to the JSON property `strikeout`
5256
+ # @return [Boolean]
5257
+ attr_accessor :strikeout
5258
+ alias_method :strikeout?, :strikeout
5259
+
5260
+ # Whether the text is a subscript.
5261
+ # Corresponds to the JSON property `subscript`
5262
+ # @return [Boolean]
5263
+ attr_accessor :subscript
5264
+ alias_method :subscript?, :subscript
5265
+
5266
+ # Whether the text is a superscript.
5267
+ # Corresponds to the JSON property `superscript`
5268
+ # @return [Boolean]
5269
+ attr_accessor :superscript
5270
+ alias_method :superscript?, :superscript
5271
+
5272
+ # Represents a color in the RGBA color space. This representation is designed
5273
+ # for simplicity of conversion to/from color representations in various
5274
+ # languages over compactness. For example, the fields of this representation can
5275
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5276
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5277
+ # method in iOS; and, with just a little work, it can be easily formatted into a
5278
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5279
+ # information about the absolute color space that should be used to interpret
5280
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5281
+ # applications should assume the sRGB color space. When color equality needs to
5282
+ # be decided, implementations, unless documented otherwise, treat two colors as
5283
+ # equal if all their red, green, blue, and alpha values each differ by at most
5284
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5285
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5286
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5287
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5288
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5289
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5290
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5291
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5292
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5293
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5294
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5295
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5296
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5297
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5298
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5299
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5300
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5301
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5302
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5303
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5304
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5305
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5306
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5307
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5308
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5309
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5310
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5311
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5312
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5313
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5314
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5315
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5316
+ # / ...
5317
+ # Corresponds to the JSON property `textColor`
5318
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
5319
+ attr_accessor :text_color
5320
+
5321
+ # Whether the text is underlined.
5322
+ # Corresponds to the JSON property `underlined`
5323
+ # @return [Boolean]
5324
+ attr_accessor :underlined
5325
+ alias_method :underlined?, :underlined
5326
+
5327
+ def initialize(**args)
5328
+ update!(**args)
5329
+ end
5330
+
5331
+ # Update properties of this object
5332
+ def update!(**args)
5333
+ @background_color = args[:background_color] if args.key?(:background_color)
5334
+ @bold = args[:bold] if args.key?(:bold)
5335
+ @font_size = args[:font_size] if args.key?(:font_size)
5336
+ @font_type = args[:font_type] if args.key?(:font_type)
5337
+ @font_weight = args[:font_weight] if args.key?(:font_weight)
5338
+ @handwritten = args[:handwritten] if args.key?(:handwritten)
5339
+ @italic = args[:italic] if args.key?(:italic)
5340
+ @letter_spacing = args[:letter_spacing] if args.key?(:letter_spacing)
5341
+ @pixel_font_size = args[:pixel_font_size] if args.key?(:pixel_font_size)
5342
+ @smallcaps = args[:smallcaps] if args.key?(:smallcaps)
5343
+ @strikeout = args[:strikeout] if args.key?(:strikeout)
5344
+ @subscript = args[:subscript] if args.key?(:subscript)
5345
+ @superscript = args[:superscript] if args.key?(:superscript)
5346
+ @text_color = args[:text_color] if args.key?(:text_color)
5347
+ @underlined = args[:underlined] if args.key?(:underlined)
5348
+ end
5349
+ end
5350
+
4940
5351
  # Detected non-text visual elements e.g. checkbox, signature etc. on the page.
4941
5352
  class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
4942
5353
  include Google::Apis::Core::Hashable
@@ -5713,7 +6124,7 @@ module Google
5713
6124
  end
5714
6125
  end
5715
6126
 
5716
- # The long running operation metadata for batch process method.
6127
+ # The long-running operation metadata for BatchProcessDocuments.
5717
6128
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
5718
6129
  include Google::Apis::Core::Hashable
5719
6130
 
@@ -5762,8 +6173,8 @@ module Google
5762
6173
  include Google::Apis::Core::Hashable
5763
6174
 
5764
6175
  # The name of the operation triggered by the processed document. If the human
5765
- # review process is not triggered, this field will be empty. It has the same
5766
- # response type and metadata as the long running operation returned by
6176
+ # review process isn't triggered, this field will be empty. It has the same
6177
+ # response type and metadata as the long-running operation returned by the
5767
6178
  # ReviewDocument method.
5768
6179
  # Corresponds to the JSON property `humanReviewOperation`
5769
6180
  # @return [String]
@@ -5774,16 +6185,15 @@ module Google
5774
6185
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3HumanReviewStatus]
5775
6186
  attr_accessor :human_review_status
5776
6187
 
5777
- # The source of the document, same as the [input_gcs_source] field in the
5778
- # request when the batch process started. The batch process is started by take
5779
- # snapshot of that document, since a user can move or change that document
5780
- # during the process.
6188
+ # The source of the document, same as the input_gcs_source field in the request
6189
+ # when the batch process started.
5781
6190
  # Corresponds to the JSON property `inputGcsSource`
5782
6191
  # @return [String]
5783
6192
  attr_accessor :input_gcs_source
5784
6193
 
5785
- # The output_gcs_destination (in the request as `output_gcs_destination`) of the
5786
- # processed document if it was successful, otherwise empty.
6194
+ # The Cloud Storage output destination (in the request as DocumentOutputConfig.
6195
+ # GcsOutputConfig.gcs_uri) of the processed document if it was successful,
6196
+ # otherwise empty.
5787
6197
  # Corresponds to the JSON property `outputGcsDestination`
5788
6198
  # @return [String]
5789
6199
  attr_accessor :output_gcs_destination
@@ -5812,7 +6222,7 @@ module Google
5812
6222
  end
5813
6223
  end
5814
6224
 
5815
- # Request message for batch process document method.
6225
+ # Request message for BatchProcessDocuments.
5816
6226
  class GoogleCloudDocumentaiV1beta3BatchProcessRequest
5817
6227
  include Google::Apis::Core::Hashable
5818
6228
 
@@ -5832,7 +6242,7 @@ module Google
5832
6242
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig]
5833
6243
  attr_accessor :input_documents
5834
6244
 
5835
- # The message for output config in batch process.
6245
+ # The output configuration in the BatchProcessDocuments method.
5836
6246
  # Corresponds to the JSON property `outputConfig`
5837
6247
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig]
5838
6248
  attr_accessor :output_config
@@ -5873,9 +6283,10 @@ module Google
5873
6283
  # @return [String]
5874
6284
  attr_accessor :gcs_source
5875
6285
 
5876
- # Mimetype of the input. If the input is a raw document, the supported mimetypes
5877
- # are application/pdf, image/tiff, and image/gif. If the input is a [Document]
5878
- # proto, the type should be application/json.
6286
+ # Media type (MIME type) of the input. If the input is a raw document, refer to [
6287
+ # supported file types](https://cloud.google.com/document-ai/docs/file-types)
6288
+ # for the list of media types. If the input is a Document, the type should be `
6289
+ # application/json`.
5879
6290
  # Corresponds to the JSON property `mimeType`
5880
6291
  # @return [String]
5881
6292
  attr_accessor :mime_type
@@ -5891,7 +6302,7 @@ module Google
5891
6302
  end
5892
6303
  end
5893
6304
 
5894
- # The message for output config in batch process.
6305
+ # The output configuration in the BatchProcessDocuments method.
5895
6306
  class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig
5896
6307
  include Google::Apis::Core::Hashable
5897
6308
 
@@ -5910,7 +6321,7 @@ module Google
5910
6321
  end
5911
6322
  end
5912
6323
 
5913
- # Response message for batch process document method.
6324
+ # Response message for BatchProcessDocuments.
5914
6325
  class GoogleCloudDocumentaiV1beta3BatchProcessResponse
5915
6326
  include Google::Apis::Core::Hashable
5916
6327
 
@@ -5991,7 +6402,7 @@ module Google
5991
6402
  end
5992
6403
  end
5993
6404
 
5994
- # The long running operation metadata for delete processor method.
6405
+ # The long-running operation metadata for the DeleteProcessor method.
5995
6406
  class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
5996
6407
  include Google::Apis::Core::Hashable
5997
6408
 
@@ -6010,7 +6421,7 @@ module Google
6010
6421
  end
6011
6422
  end
6012
6423
 
6013
- # The long running operation metadata for delete processor version method.
6424
+ # The long-running operation metadata for the DeleteProcessorVersion method.
6014
6425
  class GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata
6015
6426
  include Google::Apis::Core::Hashable
6016
6427
 
@@ -6029,7 +6440,7 @@ module Google
6029
6440
  end
6030
6441
  end
6031
6442
 
6032
- # The long running operation metadata for deploy processor version method.
6443
+ # The long-running operation metadata for the DeployProcessorVersion method.
6033
6444
  class GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata
6034
6445
  include Google::Apis::Core::Hashable
6035
6446
 
@@ -6048,7 +6459,7 @@ module Google
6048
6459
  end
6049
6460
  end
6050
6461
 
6051
- # Request message for the deploy processor version method.
6462
+ # Request message for the DeployProcessorVersion method.
6052
6463
  class GoogleCloudDocumentaiV1beta3DeployProcessorVersionRequest
6053
6464
  include Google::Apis::Core::Hashable
6054
6465
 
@@ -6061,7 +6472,7 @@ module Google
6061
6472
  end
6062
6473
  end
6063
6474
 
6064
- # Response message for the deploy processor version method.
6475
+ # Response message for the DeployProcessorVersion method.
6065
6476
  class GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse
6066
6477
  include Google::Apis::Core::Hashable
6067
6478
 
@@ -6074,7 +6485,7 @@ module Google
6074
6485
  end
6075
6486
  end
6076
6487
 
6077
- # The long running operation metadata for disable processor method.
6488
+ # The long-running operation metadata for the DisableProcessor method.
6078
6489
  class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
6079
6490
  include Google::Apis::Core::Hashable
6080
6491
 
@@ -6093,7 +6504,7 @@ module Google
6093
6504
  end
6094
6505
  end
6095
6506
 
6096
- # Request message for the disable processor method.
6507
+ # Request message for the DisableProcessor method.
6097
6508
  class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
6098
6509
  include Google::Apis::Core::Hashable
6099
6510
 
@@ -6106,7 +6517,7 @@ module Google
6106
6517
  end
6107
6518
  end
6108
6519
 
6109
- # Response message for the disable processor method. Intentionally empty proto
6520
+ # Response message for the DisableProcessor method. Intentionally empty proto
6110
6521
  # for adding fields in future.
6111
6522
  class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
6112
6523
  include Google::Apis::Core::Hashable
@@ -6197,9 +6608,9 @@ module Google
6197
6608
  attr_accessor :text_styles
6198
6609
 
6199
6610
  # Optional. Currently supports Google Cloud Storage URI of the form `gs://
6200
- # bucket_name/object_name`. Object versioning is not supported. See [Google
6201
- # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
6202
- # uris) for more info.
6611
+ # bucket_name/object_name`. Object versioning is not supported. For more
6612
+ # information, refer to [Google Cloud Storage Request URIs](https://cloud.google.
6613
+ # com/storage/docs/reference-uris).
6203
6614
  # Corresponds to the JSON property `uri`
6204
6615
  # @return [String]
6205
6616
  attr_accessor :uri
@@ -7280,6 +7691,11 @@ module Google
7280
7691
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance]
7281
7692
  attr_accessor :provenance
7282
7693
 
7694
+ # Font and other text style attributes.
7695
+ # Corresponds to the JSON property `styleInfo`
7696
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo]
7697
+ attr_accessor :style_info
7698
+
7283
7699
  def initialize(**args)
7284
7700
  update!(**args)
7285
7701
  end
@@ -7290,6 +7706,7 @@ module Google
7290
7706
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7291
7707
  @layout = args[:layout] if args.key?(:layout)
7292
7708
  @provenance = args[:provenance] if args.key?(:provenance)
7709
+ @style_info = args[:style_info] if args.key?(:style_info)
7293
7710
  end
7294
7711
  end
7295
7712
 
@@ -7312,6 +7729,206 @@ module Google
7312
7729
  end
7313
7730
  end
7314
7731
 
7732
+ # Font and other text style attributes.
7733
+ class GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo
7734
+ include Google::Apis::Core::Hashable
7735
+
7736
+ # Represents a color in the RGBA color space. This representation is designed
7737
+ # for simplicity of conversion to/from color representations in various
7738
+ # languages over compactness. For example, the fields of this representation can
7739
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
7740
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
7741
+ # method in iOS; and, with just a little work, it can be easily formatted into a
7742
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
7743
+ # information about the absolute color space that should be used to interpret
7744
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
7745
+ # applications should assume the sRGB color space. When color equality needs to
7746
+ # be decided, implementations, unless documented otherwise, treat two colors as
7747
+ # equal if all their red, green, blue, and alpha values each differ by at most
7748
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
7749
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
7750
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
7751
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
7752
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
7753
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
7754
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
7755
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
7756
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
7757
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
7758
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
7759
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
7760
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
7761
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
7762
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
7763
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
7764
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
7765
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
7766
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
7767
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
7768
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
7769
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
7770
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
7771
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
7772
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
7773
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
7774
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
7775
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
7776
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
7777
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
7778
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
7779
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
7780
+ # / ...
7781
+ # Corresponds to the JSON property `backgroundColor`
7782
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
7783
+ attr_accessor :background_color
7784
+
7785
+ # Whether the text is bold (equivalent to font_weight is at least `700`).
7786
+ # Corresponds to the JSON property `bold`
7787
+ # @return [Boolean]
7788
+ attr_accessor :bold
7789
+ alias_method :bold?, :bold
7790
+
7791
+ # Font size in points (`1` point is `¹⁄₇₂` inches).
7792
+ # Corresponds to the JSON property `fontSize`
7793
+ # @return [Fixnum]
7794
+ attr_accessor :font_size
7795
+
7796
+ # Name or style of the font.
7797
+ # Corresponds to the JSON property `fontType`
7798
+ # @return [String]
7799
+ attr_accessor :font_type
7800
+
7801
+ # TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `
7802
+ # 400`, bold is `700`.
7803
+ # Corresponds to the JSON property `fontWeight`
7804
+ # @return [Fixnum]
7805
+ attr_accessor :font_weight
7806
+
7807
+ # Whether the text is handwritten.
7808
+ # Corresponds to the JSON property `handwritten`
7809
+ # @return [Boolean]
7810
+ attr_accessor :handwritten
7811
+ alias_method :handwritten?, :handwritten
7812
+
7813
+ # Whether the text is italic.
7814
+ # Corresponds to the JSON property `italic`
7815
+ # @return [Boolean]
7816
+ attr_accessor :italic
7817
+ alias_method :italic?, :italic
7818
+
7819
+ # Letter spacing in points.
7820
+ # Corresponds to the JSON property `letterSpacing`
7821
+ # @return [Float]
7822
+ attr_accessor :letter_spacing
7823
+
7824
+ # Font size in pixels, equal to _unrounded font_size_ * _resolution_ ÷ `72.0`.
7825
+ # Corresponds to the JSON property `pixelFontSize`
7826
+ # @return [Float]
7827
+ attr_accessor :pixel_font_size
7828
+
7829
+ # Whether the text is in small caps.
7830
+ # Corresponds to the JSON property `smallcaps`
7831
+ # @return [Boolean]
7832
+ attr_accessor :smallcaps
7833
+ alias_method :smallcaps?, :smallcaps
7834
+
7835
+ # Whether the text is strikethrough.
7836
+ # Corresponds to the JSON property `strikeout`
7837
+ # @return [Boolean]
7838
+ attr_accessor :strikeout
7839
+ alias_method :strikeout?, :strikeout
7840
+
7841
+ # Whether the text is a subscript.
7842
+ # Corresponds to the JSON property `subscript`
7843
+ # @return [Boolean]
7844
+ attr_accessor :subscript
7845
+ alias_method :subscript?, :subscript
7846
+
7847
+ # Whether the text is a superscript.
7848
+ # Corresponds to the JSON property `superscript`
7849
+ # @return [Boolean]
7850
+ attr_accessor :superscript
7851
+ alias_method :superscript?, :superscript
7852
+
7853
+ # Represents a color in the RGBA color space. This representation is designed
7854
+ # for simplicity of conversion to/from color representations in various
7855
+ # languages over compactness. For example, the fields of this representation can
7856
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
7857
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
7858
+ # method in iOS; and, with just a little work, it can be easily formatted into a
7859
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
7860
+ # information about the absolute color space that should be used to interpret
7861
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
7862
+ # applications should assume the sRGB color space. When color equality needs to
7863
+ # be decided, implementations, unless documented otherwise, treat two colors as
7864
+ # equal if all their red, green, blue, and alpha values each differ by at most
7865
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
7866
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
7867
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
7868
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
7869
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
7870
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
7871
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
7872
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
7873
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
7874
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
7875
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
7876
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
7877
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
7878
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
7879
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
7880
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
7881
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
7882
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
7883
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
7884
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
7885
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
7886
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
7887
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
7888
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
7889
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
7890
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
7891
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
7892
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
7893
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
7894
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
7895
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
7896
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
7897
+ # / ...
7898
+ # Corresponds to the JSON property `textColor`
7899
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
7900
+ attr_accessor :text_color
7901
+
7902
+ # Whether the text is underlined.
7903
+ # Corresponds to the JSON property `underlined`
7904
+ # @return [Boolean]
7905
+ attr_accessor :underlined
7906
+ alias_method :underlined?, :underlined
7907
+
7908
+ def initialize(**args)
7909
+ update!(**args)
7910
+ end
7911
+
7912
+ # Update properties of this object
7913
+ def update!(**args)
7914
+ @background_color = args[:background_color] if args.key?(:background_color)
7915
+ @bold = args[:bold] if args.key?(:bold)
7916
+ @font_size = args[:font_size] if args.key?(:font_size)
7917
+ @font_type = args[:font_type] if args.key?(:font_type)
7918
+ @font_weight = args[:font_weight] if args.key?(:font_weight)
7919
+ @handwritten = args[:handwritten] if args.key?(:handwritten)
7920
+ @italic = args[:italic] if args.key?(:italic)
7921
+ @letter_spacing = args[:letter_spacing] if args.key?(:letter_spacing)
7922
+ @pixel_font_size = args[:pixel_font_size] if args.key?(:pixel_font_size)
7923
+ @smallcaps = args[:smallcaps] if args.key?(:smallcaps)
7924
+ @strikeout = args[:strikeout] if args.key?(:strikeout)
7925
+ @subscript = args[:subscript] if args.key?(:subscript)
7926
+ @superscript = args[:superscript] if args.key?(:superscript)
7927
+ @text_color = args[:text_color] if args.key?(:text_color)
7928
+ @underlined = args[:underlined] if args.key?(:underlined)
7929
+ end
7930
+ end
7931
+
7315
7932
  # Detected non-text visual elements e.g. checkbox, signature etc. on the page.
7316
7933
  class GoogleCloudDocumentaiV1beta3DocumentPageVisualElement
7317
7934
  include Google::Apis::Core::Hashable
@@ -7985,7 +8602,7 @@ module Google
7985
8602
  end
7986
8603
  end
7987
8604
 
7988
- # The long running operation metadata for enable processor method.
8605
+ # The long-running operation metadata for the EnableProcessor method.
7989
8606
  class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
7990
8607
  include Google::Apis::Core::Hashable
7991
8608
 
@@ -8004,7 +8621,7 @@ module Google
8004
8621
  end
8005
8622
  end
8006
8623
 
8007
- # Request message for the enable processor method.
8624
+ # Request message for the EnableProcessor method.
8008
8625
  class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
8009
8626
  include Google::Apis::Core::Hashable
8010
8627
 
@@ -8017,8 +8634,8 @@ module Google
8017
8634
  end
8018
8635
  end
8019
8636
 
8020
- # Response message for the enable processor method. Intentionally empty proto
8021
- # for adding fields in future.
8637
+ # Response message for the EnableProcessor method. Intentionally empty proto for
8638
+ # adding fields in future.
8022
8639
  class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
8023
8640
  include Google::Apis::Core::Hashable
8024
8641
 
@@ -8069,7 +8686,7 @@ module Google
8069
8686
  end
8070
8687
  end
8071
8688
 
8072
- # Metadata of the EvaluateProcessorVersion method.
8689
+ # Response of the EvaluateProcessorVersion method.
8073
8690
  class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
8074
8691
  include Google::Apis::Core::Hashable
8075
8692
 
@@ -8383,7 +9000,7 @@ module Google
8383
9000
  end
8384
9001
  end
8385
9002
 
8386
- # Response message for fetch processor types.
9003
+ # Response message for the FetchProcessorTypes method.
8387
9004
  class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
8388
9005
  include Google::Apis::Core::Hashable
8389
9006
 
@@ -8470,9 +9087,9 @@ module Google
8470
9087
  include Google::Apis::Core::Hashable
8471
9088
 
8472
9089
  # The name of the operation triggered by the processed document. This field is
8473
- # populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same
8474
- # response type and metadata as the long running operation returned by [
8475
- # ReviewDocument] method.
9090
+ # populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same
9091
+ # response type and metadata as the long-running operation returned by
9092
+ # ReviewDocument.
8476
9093
  # Corresponds to the JSON property `humanReviewOperation`
8477
9094
  # @return [String]
8478
9095
  attr_accessor :human_review_operation
@@ -8499,7 +9116,7 @@ module Google
8499
9116
  end
8500
9117
  end
8501
9118
 
8502
- # The long running operation metadata for the ImportProcessorVersion method.
9119
+ # The long-running operation metadata for the ImportProcessorVersion method.
8503
9120
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
8504
9121
  include Google::Apis::Core::Hashable
8505
9122
 
@@ -8518,14 +9135,13 @@ module Google
8518
9135
  end
8519
9136
  end
8520
9137
 
8521
- # The request message for the ImportProcessorVersion method. This method
8522
- # requires source processor version and destination processor are in the same
8523
- # location. This method requires Document AI Service Agent of the destination
8524
- # project in the source project's IAM with [Document AI Editor role](https://
8525
- # cloud.google.com/document-ai/docs/access-control/iam-roles). The destination
8526
- # project is specified as part of the `parent` field. The source project is
8527
- # specified as part of `source` field. The Service Agent for Document AI can be
8528
- # found in https://cloud.google.com/iam/docs/service-agents.
9138
+ # The request message for the ImportProcessorVersion method. Requirements: - The
9139
+ # source processor version and destination processor must be in the same
9140
+ # location. - The Document AI [Service Agent](https://cloud.google.com/iam/docs/
9141
+ # service-agents) of the destination project must have [Document AI Editor role](
9142
+ # https://cloud.google.com/document-ai/docs/access-control/iam-roles) on the
9143
+ # source project. The destination project is specified as part of the parent
9144
+ # field. The source project is specified as part of the source field.
8529
9145
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
8530
9146
  include Google::Apis::Core::Hashable
8531
9147
 
@@ -8563,7 +9179,7 @@ module Google
8563
9179
  end
8564
9180
  end
8565
9181
 
8566
- # The response from ListEvaluations.
9182
+ # The response from `ListEvaluations`.
8567
9183
  class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
8568
9184
  include Google::Apis::Core::Hashable
8569
9185
 
@@ -8589,7 +9205,7 @@ module Google
8589
9205
  end
8590
9206
  end
8591
9207
 
8592
- # Response message for list processor types.
9208
+ # Response message for the ListProcessorTypes method.
8593
9209
  class GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse
8594
9210
  include Google::Apis::Core::Hashable
8595
9211
 
@@ -8614,7 +9230,7 @@ module Google
8614
9230
  end
8615
9231
  end
8616
9232
 
8617
- # Response message for list processors.
9233
+ # Response message for the ListProcessorVersions method.
8618
9234
  class GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse
8619
9235
  include Google::Apis::Core::Hashable
8620
9236
 
@@ -8639,7 +9255,7 @@ module Google
8639
9255
  end
8640
9256
  end
8641
9257
 
8642
- # Response message for list processors.
9258
+ # Response message for the ListProcessors method.
8643
9259
  class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
8644
9260
  include Google::Apis::Core::Hashable
8645
9261
 
@@ -8703,6 +9319,12 @@ module Google
8703
9319
  # @return [Array<String>]
8704
9320
  attr_accessor :advanced_ocr_options
8705
9321
 
9322
+ # Turn on font id model and returns font style information.
9323
+ # Corresponds to the JSON property `computeStyleInfo`
9324
+ # @return [Boolean]
9325
+ attr_accessor :compute_style_info
9326
+ alias_method :compute_style_info?, :compute_style_info
9327
+
8706
9328
  # Enables intelligent document quality scores after OCR. Can help with
8707
9329
  # diagnosing why OCR responses are of poor quality for a given input. Adds
8708
9330
  # additional latency comparable to regular OCR to the process call.
@@ -8736,6 +9358,7 @@ module Google
8736
9358
  # Update properties of this object
8737
9359
  def update!(**args)
8738
9360
  @advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
9361
+ @compute_style_info = args[:compute_style_info] if args.key?(:compute_style_info)
8739
9362
  @enable_image_quality_scores = args[:enable_image_quality_scores] if args.key?(:enable_image_quality_scores)
8740
9363
  @enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
8741
9364
  @enable_symbol = args[:enable_symbol] if args.key?(:enable_symbol)
@@ -8786,7 +9409,7 @@ module Google
8786
9409
  end
8787
9410
  end
8788
9411
 
8789
- # Request message for the process document method.
9412
+ # Request message for the ProcessDocument method.
8790
9413
  class GoogleCloudDocumentaiV1beta3ProcessRequest
8791
9414
  include Google::Apis::Core::Hashable
8792
9415
 
@@ -8798,8 +9421,8 @@ module Google
8798
9421
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
8799
9422
  attr_accessor :document
8800
9423
 
8801
- # Specifies which fields to include in ProcessResponse's document. Only supports
8802
- # top level document and pages field so it must be in the form of ``
9424
+ # Specifies which fields to include in the ProcessResponse.document output. Only
9425
+ # supports top-level document and pages field, so it must be in the form of ``
8803
9426
  # document_field_name`` or `pages.`page_field_name``.
8804
9427
  # Corresponds to the JSON property `fieldMask`
8805
9428
  # @return [String]
@@ -8845,7 +9468,7 @@ module Google
8845
9468
  end
8846
9469
  end
8847
9470
 
8848
- # Response message for the process document method.
9471
+ # Response message for the ProcessDocument method.
8849
9472
  class GoogleCloudDocumentaiV1beta3ProcessResponse
8850
9473
  include Google::Apis::Core::Hashable
8851
9474
 
@@ -8858,9 +9481,8 @@ module Google
8858
9481
  attr_accessor :document
8859
9482
 
8860
9483
  # The name of the operation triggered by the processed document. If the human
8861
- # review process is not triggered, this field will be empty. It has the same
8862
- # response type and metadata as the long running operation returned by
8863
- # ReviewDocument method.
9484
+ # review process isn't triggered, this field is empty. It has the same response
9485
+ # type and metadata as the long-running operation returned by ReviewDocument.
8864
9486
  # Corresponds to the JSON property `humanReviewOperation`
8865
9487
  # @return [String]
8866
9488
  attr_accessor :human_review_operation
@@ -8925,8 +9547,8 @@ module Google
8925
9547
  # @return [String]
8926
9548
  attr_accessor :state
8927
9549
 
8928
- # The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. To get a
8929
- # list of processors types, see FetchProcessorTypes.
9550
+ # The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a
9551
+ # list of processor types, see FetchProcessorTypes.
8930
9552
  # Corresponds to the JSON property `type`
8931
9553
  # @return [String]
8932
9554
  attr_accessor :type
@@ -8986,7 +9608,7 @@ module Google
8986
9608
  # @return [Array<String>]
8987
9609
  attr_accessor :sample_document_uris
8988
9610
 
8989
- # The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
9611
+ # The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
8990
9612
  # Corresponds to the JSON property `type`
8991
9613
  # @return [String]
8992
9614
  attr_accessor :type
@@ -9157,7 +9779,7 @@ module Google
9157
9779
  end
9158
9780
  end
9159
9781
 
9160
- # The long running operation metadata for review document method.
9782
+ # The long-running operation metadata for the ReviewDocument method.
9161
9783
  class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
9162
9784
  include Google::Apis::Core::Hashable
9163
9785
 
@@ -9207,7 +9829,7 @@ module Google
9207
9829
  end
9208
9830
  end
9209
9831
 
9210
- # Request message for review document method.
9832
+ # Request message for the ReviewDocument method.
9211
9833
  class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
9212
9834
  include Google::Apis::Core::Hashable
9213
9835
 
@@ -9257,7 +9879,7 @@ module Google
9257
9879
  end
9258
9880
  end
9259
9881
 
9260
- # Response message for review document method.
9882
+ # Response message for the ReviewDocument method.
9261
9883
  class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
9262
9884
  include Google::Apis::Core::Hashable
9263
9885
 
@@ -9289,7 +9911,7 @@ module Google
9289
9911
  end
9290
9912
  end
9291
9913
 
9292
- # The long running operation metadata for set default processor version method.
9914
+ # The long-running operation metadata for the SetDefaultProcessorVersion method.
9293
9915
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
9294
9916
  include Google::Apis::Core::Hashable
9295
9917
 
@@ -9308,7 +9930,7 @@ module Google
9308
9930
  end
9309
9931
  end
9310
9932
 
9311
- # Request message for the set default processor version method.
9933
+ # Request message for the SetDefaultProcessorVersion method.
9312
9934
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest
9313
9935
  include Google::Apis::Core::Hashable
9314
9936
 
@@ -9329,7 +9951,7 @@ module Google
9329
9951
  end
9330
9952
  end
9331
9953
 
9332
- # Response message for set default processor version method.
9954
+ # Response message for the SetDefaultProcessorVersion method.
9333
9955
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse
9334
9956
  include Google::Apis::Core::Hashable
9335
9957
 
@@ -9416,7 +10038,7 @@ module Google
9416
10038
  end
9417
10039
  end
9418
10040
 
9419
- # Request message for the create processor version method.
10041
+ # Request message for the TrainProcessorVersion method.
9420
10042
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
9421
10043
  include Google::Apis::Core::Hashable
9422
10044
 
@@ -9432,7 +10054,7 @@ module Google
9432
10054
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
9433
10055
  attr_accessor :document_schema
9434
10056
 
9435
- # The input data used to train a new `ProcessorVersion`.
10057
+ # The input data used to train a new ProcessorVersion.
9436
10058
  # Corresponds to the JSON property `inputData`
9437
10059
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData]
9438
10060
  attr_accessor :input_data
@@ -9459,7 +10081,7 @@ module Google
9459
10081
  end
9460
10082
  end
9461
10083
 
9462
- # The input data used to train a new `ProcessorVersion`.
10084
+ # The input data used to train a new ProcessorVersion.
9463
10085
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
9464
10086
  include Google::Apis::Core::Hashable
9465
10087
 
@@ -9484,7 +10106,7 @@ module Google
9484
10106
  end
9485
10107
  end
9486
10108
 
9487
- # The response for the TrainProcessorVersion method.
10109
+ # The response for TrainProcessorVersion.
9488
10110
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
9489
10111
  include Google::Apis::Core::Hashable
9490
10112
 
@@ -9503,7 +10125,7 @@ module Google
9503
10125
  end
9504
10126
  end
9505
10127
 
9506
- # The long running operation metadata for the undeploy processor version method.
10128
+ # The long-running operation metadata for the UndeployProcessorVersion method.
9507
10129
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
9508
10130
  include Google::Apis::Core::Hashable
9509
10131
 
@@ -9522,7 +10144,7 @@ module Google
9522
10144
  end
9523
10145
  end
9524
10146
 
9525
- # Request message for the undeploy processor version method.
10147
+ # Request message for the UndeployProcessorVersion method.
9526
10148
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionRequest
9527
10149
  include Google::Apis::Core::Hashable
9528
10150
 
@@ -9535,7 +10157,7 @@ module Google
9535
10157
  end
9536
10158
  end
9537
10159
 
9538
- # Response message for the undeploy processor version method.
10160
+ # Response message for the UndeployProcessorVersion method.
9539
10161
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse
9540
10162
  include Google::Apis::Core::Hashable
9541
10163
 
@@ -9599,7 +10221,7 @@ module Google
9599
10221
  end
9600
10222
  end
9601
10223
 
9602
- # A resource that represents Google Cloud Platform location.
10224
+ # A resource that represents a Google Cloud location.
9603
10225
  class GoogleCloudLocationLocation
9604
10226
  include Google::Apis::Core::Hashable
9605
10227