google-apis-documentai_v1beta2 0.7.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41e1abb01271fd1fc8c7319f8e563556468ecdc689d4c039fb7ac7329ea2df5c
4
- data.tar.gz: 7d3cab6496982015a9711afdebc2fcd4df27a6454af64a2b5b78794c3453eb47
3
+ metadata.gz: 1ee257956e9ab55a165e04aef53323f5dd44ada73a8b653bf9540ffbd52692d7
4
+ data.tar.gz: e08205d016441e264452065503e55eebfe948a428608c6bb87b6d094e77afe37
5
5
  SHA512:
6
- metadata.gz: de5d00cc82d48b257bebac15ab5f11cb66b58bf131718625088f5be6ac2f9699067cb37186a9e6e17f14a2a8ca407dfbecb93815289d6781c4f538877d310f3a
7
- data.tar.gz: 633c71ad8a9ff82001b49625ce29a912b9395ca2f6fde07bc4fbc2c544d324cdeeda9fd96200ff759213349db7342809cca4adf08441b99cb732695055b427f0
6
+ metadata.gz: 7ca0c9aef246c6883ecb4771386813fead2c41764f590e52a7f42f1eba41882c55b27468d329388dc11b6cb8e59ffbb339b60aaab88cbf376c1446f1a7d0ab89
7
+ data.tar.gz: 8ca5514dcf093a3ffdec72374096be649c39ad7e423872f0425e4fd62ea5743f666618a00a828841f194871a9181ce75b4b8e85738d01f8b56207a1cad056c3b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.12.0 (2021-06-09)
4
+
5
+ * Regenerated from discovery document revision 20210607
6
+
7
+ ### v0.11.0 (2021-06-03)
8
+
9
+ * Regenerated from discovery document revision 20210527
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.10.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.9.0 (2021-05-12)
17
+
18
+ * Regenerated from discovery document revision 20210507
19
+
20
+ ### v0.8.0 (2021-03-31)
21
+
22
+ * Regenerated from discovery document revision 20210329
23
+
3
24
  ### v0.7.0 (2021-03-24)
4
25
 
5
26
  * Regenerated from discovery document revision 20210320
@@ -31,7 +31,7 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V1beta2'
33
33
 
34
- # View and manage your data across Google Cloud Platform services
34
+ # See, edit, configure, and delete your Google Cloud Platform data
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
36
  end
37
37
  end
@@ -271,25 +271,6 @@ module Google
271
271
  end
272
272
  end
273
273
 
274
- # The long running operation metadata for SampleDataset.
275
- class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
276
- include Google::Apis::Core::Hashable
277
-
278
- # The common metadata for long running operations.
279
- # Corresponds to the JSON property `commonMetadata`
280
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
281
- attr_accessor :common_metadata
282
-
283
- def initialize(**args)
284
- update!(**args)
285
- end
286
-
287
- # Update properties of this object
288
- def update!(**args)
289
- @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
290
- end
291
- end
292
-
293
274
  # The long running operation metadata for set default processor version method.
294
275
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
295
276
  include Google::Apis::Core::Hashable
@@ -360,12 +341,22 @@ module Google
360
341
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
361
342
  include Google::Apis::Core::Hashable
362
343
 
344
+ # The total number of dataset errors.
345
+ # Corresponds to the JSON property `datasetErrorCount`
346
+ # @return [Fixnum]
347
+ attr_accessor :dataset_error_count
348
+
363
349
  # Error information for the dataset as a whole. A maximum of 10 dataset errors
364
350
  # will be returned. A single dataset error is terminal for training.
365
351
  # Corresponds to the JSON property `datasetErrors`
366
352
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
367
353
  attr_accessor :dataset_errors
368
354
 
355
+ # The total number of document errors.
356
+ # Corresponds to the JSON property `documentErrorCount`
357
+ # @return [Fixnum]
358
+ attr_accessor :document_error_count
359
+
369
360
  # Error information pertaining to specific documents. A maximum of 10 document
370
361
  # errors will be returned. Any document with errors will not be used throughout
371
362
  # training.
@@ -379,7 +370,9 @@ module Google
379
370
 
380
371
  # Update properties of this object
381
372
  def update!(**args)
373
+ @dataset_error_count = args[:dataset_error_count] if args.key?(:dataset_error_count)
382
374
  @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
375
+ @document_error_count = args[:document_error_count] if args.key?(:document_error_count)
383
376
  @document_errors = args[:document_errors] if args.key?(:document_errors)
384
377
  end
385
378
  end
@@ -1091,6 +1084,12 @@ module Google
1091
1084
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
1092
1085
  attr_accessor :paragraphs
1093
1086
 
1087
+ # Structure to identify provenance relationships between annotations in
1088
+ # different revisions.
1089
+ # Corresponds to the JSON property `provenance`
1090
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
1091
+ attr_accessor :provenance
1092
+
1094
1093
  # A list of visually detected tables on the page.
1095
1094
  # Corresponds to the JSON property `tables`
1096
1095
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
@@ -1128,6 +1127,7 @@ module Google
1128
1127
  @lines = args[:lines] if args.key?(:lines)
1129
1128
  @page_number = args[:page_number] if args.key?(:page_number)
1130
1129
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1130
+ @provenance = args[:provenance] if args.key?(:provenance)
1131
1131
  @tables = args[:tables] if args.key?(:tables)
1132
1132
  @tokens = args[:tokens] if args.key?(:tokens)
1133
1133
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -1165,6 +1165,11 @@ module Google
1165
1165
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
1166
1166
  attr_accessor :bounding_poly
1167
1167
 
1168
+ # Optional. Confidence of detected page element, if applicable. Range [0, 1].
1169
+ # Corresponds to the JSON property `confidence`
1170
+ # @return [Float]
1171
+ attr_accessor :confidence
1172
+
1168
1173
  # Optional. Deprecated. Use PageRef.bounding_poly instead.
1169
1174
  # Corresponds to the JSON property `layoutId`
1170
1175
  # @return [String]
@@ -1176,7 +1181,9 @@ module Google
1176
1181
  attr_accessor :layout_type
1177
1182
 
1178
1183
  # Required. Index into the Document.pages element, for example using Document.
1179
- # pages to locate the related page element.
1184
+ # pages to locate the related page element. This field is skipped when its value
1185
+ # is the default 0. See https://developers.google.com/protocol-buffers/docs/
1186
+ # proto3#json.
1180
1187
  # Corresponds to the JSON property `page`
1181
1188
  # @return [Fixnum]
1182
1189
  attr_accessor :page
@@ -1188,6 +1195,7 @@ module Google
1188
1195
  # Update properties of this object
1189
1196
  def update!(**args)
1190
1197
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1198
+ @confidence = args[:confidence] if args.key?(:confidence)
1191
1199
  @layout_id = args[:layout_id] if args.key?(:layout_id)
1192
1200
  @layout_type = args[:layout_type] if args.key?(:layout_type)
1193
1201
  @page = args[:page] if args.key?(:page)
@@ -1303,6 +1311,12 @@ module Google
1303
1311
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
1304
1312
  attr_accessor :name_detected_languages
1305
1313
 
1314
+ # Structure to identify provenance relationships between annotations in
1315
+ # different revisions.
1316
+ # Corresponds to the JSON property `provenance`
1317
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
1318
+ attr_accessor :provenance
1319
+
1306
1320
  # A list of detected languages for value together with confidence.
1307
1321
  # Corresponds to the JSON property `valueDetectedLanguages`
1308
1322
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
@@ -1324,6 +1338,7 @@ module Google
1324
1338
  @field_name = args[:field_name] if args.key?(:field_name)
1325
1339
  @field_value = args[:field_value] if args.key?(:field_value)
1326
1340
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
1341
+ @provenance = args[:provenance] if args.key?(:provenance)
1327
1342
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
1328
1343
  @value_type = args[:value_type] if args.key?(:value_type)
1329
1344
  end
@@ -1742,6 +1757,12 @@ module Google
1742
1757
  # @return [Fixnum]
1743
1758
  attr_accessor :id
1744
1759
 
1760
+ # The index of the parent revisions corresponding collection of items (eg. list
1761
+ # of entities, properties within entities, etc.)
1762
+ # Corresponds to the JSON property `index`
1763
+ # @return [Fixnum]
1764
+ attr_accessor :index
1765
+
1745
1766
  # The index of the [Document.revisions] identifying the parent revision.
1746
1767
  # Corresponds to the JSON property `revision`
1747
1768
  # @return [Fixnum]
@@ -1754,6 +1775,7 @@ module Google
1754
1775
  # Update properties of this object
1755
1776
  def update!(**args)
1756
1777
  @id = args[:id] if args.key?(:id)
1778
+ @index = args[:index] if args.key?(:index)
1757
1779
  @revision = args[:revision] if args.key?(:revision)
1758
1780
  end
1759
1781
  end
@@ -1876,98 +1898,98 @@ module Google
1876
1898
 
1877
1899
  # Represents a color in the RGBA color space. This representation is designed
1878
1900
  # for simplicity of conversion to/from color representations in various
1879
- # languages over compactness; for example, the fields of this representation can
1880
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
1881
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1901
+ # languages over compactness. For example, the fields of this representation can
1902
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1903
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1882
1904
  # method in iOS; and, with just a little work, it can be easily formatted into a
1883
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
1905
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1884
1906
  # information about the absolute color space that should be used to interpret
1885
1907
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
1886
- # applications SHOULD assume the sRGB color space. Note: when color equality
1887
- # needs to be decided, implementations, unless documented otherwise, will treat
1888
- # two colors to be equal if all their red, green, blue and alpha values each
1889
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
1890
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
1891
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
1892
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
1893
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1894
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1895
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1896
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1897
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1898
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1899
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1900
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1901
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1902
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1903
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1904
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1905
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1906
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1907
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1908
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1909
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1910
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1908
+ # applications should assume the sRGB color space. When color equality needs to
1909
+ # be decided, implementations, unless documented otherwise, treat two colors as
1910
+ # equal if all their red, green, blue, and alpha values each differ by at most
1911
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1912
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1913
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1914
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1915
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1916
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1917
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1918
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1919
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1920
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1921
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1922
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1923
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1924
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1925
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1926
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1927
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1928
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1929
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1930
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1931
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1932
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1911
1933
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1912
1934
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1913
1935
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1914
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1936
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1915
1937
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1916
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1917
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1918
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1919
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1920
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1921
- # join(''); `; // ...
1938
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1939
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1940
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1941
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1942
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1943
+ # / ...
1922
1944
  # Corresponds to the JSON property `backgroundColor`
1923
1945
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
1924
1946
  attr_accessor :background_color
1925
1947
 
1926
1948
  # Represents a color in the RGBA color space. This representation is designed
1927
1949
  # for simplicity of conversion to/from color representations in various
1928
- # languages over compactness; for example, the fields of this representation can
1929
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
1930
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1950
+ # languages over compactness. For example, the fields of this representation can
1951
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1952
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1931
1953
  # method in iOS; and, with just a little work, it can be easily formatted into a
1932
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
1954
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1933
1955
  # information about the absolute color space that should be used to interpret
1934
1956
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
1935
- # applications SHOULD assume the sRGB color space. Note: when color equality
1936
- # needs to be decided, implementations, unless documented otherwise, will treat
1937
- # two colors to be equal if all their red, green, blue and alpha values each
1938
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
1939
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
1940
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
1941
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
1942
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1943
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1944
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1945
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1946
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1947
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1948
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1949
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1950
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1951
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1952
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1953
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1954
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1955
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1956
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1957
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1958
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1959
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1957
+ # applications should assume the sRGB color space. When color equality needs to
1958
+ # be decided, implementations, unless documented otherwise, treat two colors as
1959
+ # equal if all their red, green, blue, and alpha values each differ by at most
1960
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1961
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1962
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1963
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1964
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1965
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1966
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1967
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1968
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1969
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1970
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1971
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1972
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1973
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1974
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1975
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1976
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1977
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1978
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1979
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1980
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1981
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1960
1982
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1961
1983
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1962
1984
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1963
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1985
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1964
1986
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1965
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1966
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1967
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1968
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1969
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1970
- # join(''); `; // ...
1987
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1988
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1989
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1990
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1991
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1992
+ # / ...
1971
1993
  # Corresponds to the JSON property `color`
1972
1994
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
1973
1995
  attr_accessor :color
@@ -2201,7 +2223,7 @@ module Google
2201
2223
  # @return [Float]
2202
2224
  attr_accessor :x
2203
2225
 
2204
- # Y coordinate.
2226
+ # Y coordinate (starts from the top of the image).
2205
2227
  # Corresponds to the JSON property `y`
2206
2228
  # @return [Float]
2207
2229
  attr_accessor :y
@@ -2322,7 +2344,7 @@ module Google
2322
2344
  # @return [Fixnum]
2323
2345
  attr_accessor :x
2324
2346
 
2325
- # Y coordinate.
2347
+ # Y coordinate (starts from the top of the image).
2326
2348
  # Corresponds to the JSON property `y`
2327
2349
  # @return [Fixnum]
2328
2350
  attr_accessor :y
@@ -2826,6 +2848,12 @@ module Google
2826
2848
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageParagraph>]
2827
2849
  attr_accessor :paragraphs
2828
2850
 
2851
+ # Structure to identify provenance relationships between annotations in
2852
+ # different revisions.
2853
+ # Corresponds to the JSON property `provenance`
2854
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
2855
+ attr_accessor :provenance
2856
+
2829
2857
  # A list of visually detected tables on the page.
2830
2858
  # Corresponds to the JSON property `tables`
2831
2859
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
@@ -2863,6 +2891,7 @@ module Google
2863
2891
  @lines = args[:lines] if args.key?(:lines)
2864
2892
  @page_number = args[:page_number] if args.key?(:page_number)
2865
2893
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
2894
+ @provenance = args[:provenance] if args.key?(:provenance)
2866
2895
  @tables = args[:tables] if args.key?(:tables)
2867
2896
  @tokens = args[:tokens] if args.key?(:tokens)
2868
2897
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -2900,6 +2929,11 @@ module Google
2900
2929
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
2901
2930
  attr_accessor :bounding_poly
2902
2931
 
2932
+ # Optional. Confidence of detected page element, if applicable. Range [0, 1].
2933
+ # Corresponds to the JSON property `confidence`
2934
+ # @return [Float]
2935
+ attr_accessor :confidence
2936
+
2903
2937
  # Optional. Deprecated. Use PageRef.bounding_poly instead.
2904
2938
  # Corresponds to the JSON property `layoutId`
2905
2939
  # @return [String]
@@ -2911,7 +2945,9 @@ module Google
2911
2945
  attr_accessor :layout_type
2912
2946
 
2913
2947
  # Required. Index into the Document.pages element, for example using Document.
2914
- # pages to locate the related page element.
2948
+ # pages to locate the related page element. This field is skipped when its value
2949
+ # is the default 0. See https://developers.google.com/protocol-buffers/docs/
2950
+ # proto3#json.
2915
2951
  # Corresponds to the JSON property `page`
2916
2952
  # @return [Fixnum]
2917
2953
  attr_accessor :page
@@ -2923,6 +2959,7 @@ module Google
2923
2959
  # Update properties of this object
2924
2960
  def update!(**args)
2925
2961
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2962
+ @confidence = args[:confidence] if args.key?(:confidence)
2926
2963
  @layout_id = args[:layout_id] if args.key?(:layout_id)
2927
2964
  @layout_type = args[:layout_type] if args.key?(:layout_type)
2928
2965
  @page = args[:page] if args.key?(:page)
@@ -3038,6 +3075,12 @@ module Google
3038
3075
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
3039
3076
  attr_accessor :name_detected_languages
3040
3077
 
3078
+ # Structure to identify provenance relationships between annotations in
3079
+ # different revisions.
3080
+ # Corresponds to the JSON property `provenance`
3081
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
3082
+ attr_accessor :provenance
3083
+
3041
3084
  # A list of detected languages for value together with confidence.
3042
3085
  # Corresponds to the JSON property `valueDetectedLanguages`
3043
3086
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
@@ -3059,6 +3102,7 @@ module Google
3059
3102
  @field_name = args[:field_name] if args.key?(:field_name)
3060
3103
  @field_value = args[:field_value] if args.key?(:field_value)
3061
3104
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
3105
+ @provenance = args[:provenance] if args.key?(:provenance)
3062
3106
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
3063
3107
  @value_type = args[:value_type] if args.key?(:value_type)
3064
3108
  end
@@ -3477,6 +3521,12 @@ module Google
3477
3521
  # @return [Fixnum]
3478
3522
  attr_accessor :id
3479
3523
 
3524
+ # The index of the parent revisions corresponding collection of items (eg. list
3525
+ # of entities, properties within entities, etc.)
3526
+ # Corresponds to the JSON property `index`
3527
+ # @return [Fixnum]
3528
+ attr_accessor :index
3529
+
3480
3530
  # The index of the [Document.revisions] identifying the parent revision.
3481
3531
  # Corresponds to the JSON property `revision`
3482
3532
  # @return [Fixnum]
@@ -3489,6 +3539,7 @@ module Google
3489
3539
  # Update properties of this object
3490
3540
  def update!(**args)
3491
3541
  @id = args[:id] if args.key?(:id)
3542
+ @index = args[:index] if args.key?(:index)
3492
3543
  @revision = args[:revision] if args.key?(:revision)
3493
3544
  end
3494
3545
  end
@@ -3611,98 +3662,98 @@ module Google
3611
3662
 
3612
3663
  # Represents a color in the RGBA color space. This representation is designed
3613
3664
  # for simplicity of conversion to/from color representations in various
3614
- # languages over compactness; for example, the fields of this representation can
3615
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3616
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3665
+ # languages over compactness. For example, the fields of this representation can
3666
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3667
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3617
3668
  # method in iOS; and, with just a little work, it can be easily formatted into a
3618
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3669
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3619
3670
  # information about the absolute color space that should be used to interpret
3620
3671
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3621
- # applications SHOULD assume the sRGB color space. Note: when color equality
3622
- # needs to be decided, implementations, unless documented otherwise, will treat
3623
- # two colors to be equal if all their red, green, blue and alpha values each
3624
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3625
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3626
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3627
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3628
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3629
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3630
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3631
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3632
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3633
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3634
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3635
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3636
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3637
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3638
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3639
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3640
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3641
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3642
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3643
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3644
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3645
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3672
+ # applications should assume the sRGB color space. When color equality needs to
3673
+ # be decided, implementations, unless documented otherwise, treat two colors as
3674
+ # equal if all their red, green, blue, and alpha values each differ by at most
3675
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3676
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3677
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3678
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3679
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3680
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3681
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3682
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3683
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3684
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3685
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3686
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3687
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3688
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3689
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3690
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3691
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3692
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3693
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3694
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3695
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3696
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3646
3697
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3647
3698
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3648
3699
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3649
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3700
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3650
3701
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3651
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3652
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3653
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3654
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3655
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3656
- # join(''); `; // ...
3702
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3703
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3704
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3705
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3706
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3707
+ # / ...
3657
3708
  # Corresponds to the JSON property `backgroundColor`
3658
3709
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
3659
3710
  attr_accessor :background_color
3660
3711
 
3661
3712
  # Represents a color in the RGBA color space. This representation is designed
3662
3713
  # for simplicity of conversion to/from color representations in various
3663
- # languages over compactness; for example, the fields of this representation can
3664
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3665
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3714
+ # languages over compactness. For example, the fields of this representation can
3715
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3716
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3666
3717
  # method in iOS; and, with just a little work, it can be easily formatted into a
3667
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3718
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3668
3719
  # information about the absolute color space that should be used to interpret
3669
3720
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3670
- # applications SHOULD assume the sRGB color space. Note: when color equality
3671
- # needs to be decided, implementations, unless documented otherwise, will treat
3672
- # two colors to be equal if all their red, green, blue and alpha values each
3673
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3674
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3675
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3676
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3677
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3678
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3679
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3680
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3681
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3682
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3683
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3684
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3685
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3686
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3687
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3688
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3689
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3690
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3691
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3692
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3693
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3694
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3721
+ # applications should assume the sRGB color space. When color equality needs to
3722
+ # be decided, implementations, unless documented otherwise, treat two colors as
3723
+ # equal if all their red, green, blue, and alpha values each differ by at most
3724
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3725
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3726
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3727
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3728
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3729
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3730
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3731
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3732
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3733
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3734
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3735
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3736
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3737
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3738
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3739
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3740
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3741
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3742
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3743
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3744
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3745
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3695
3746
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3696
3747
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3697
3748
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3698
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3749
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3699
3750
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3700
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3701
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3702
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3703
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3704
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3705
- # join(''); `; // ...
3751
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3752
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3753
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3754
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3755
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3756
+ # / ...
3706
3757
  # Corresponds to the JSON property `color`
3707
3758
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
3708
3759
  attr_accessor :color
@@ -4036,7 +4087,7 @@ module Google
4036
4087
  # @return [Float]
4037
4088
  attr_accessor :x
4038
4089
 
4039
- # Y coordinate.
4090
+ # Y coordinate (starts from the top of the image).
4040
4091
  # Corresponds to the JSON property `y`
4041
4092
  # @return [Float]
4042
4093
  attr_accessor :y
@@ -4320,7 +4371,7 @@ module Google
4320
4371
  # @return [Fixnum]
4321
4372
  attr_accessor :x
4322
4373
 
4323
- # Y coordinate.
4374
+ # Y coordinate (starts from the top of the image).
4324
4375
  # Corresponds to the JSON property `y`
4325
4376
  # @return [Fixnum]
4326
4377
  attr_accessor :y
@@ -4485,6 +4536,91 @@ module Google
4485
4536
  end
4486
4537
  end
4487
4538
 
4539
+ # The long running operation metadata for delete processor method.
4540
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
4541
+ include Google::Apis::Core::Hashable
4542
+
4543
+ # The common metadata for long running operations.
4544
+ # Corresponds to the JSON property `commonMetadata`
4545
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
4546
+ attr_accessor :common_metadata
4547
+
4548
+ def initialize(**args)
4549
+ update!(**args)
4550
+ end
4551
+
4552
+ # Update properties of this object
4553
+ def update!(**args)
4554
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
4555
+ end
4556
+ end
4557
+
4558
+ # The long running operation metadata for disable processor method.
4559
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
4560
+ include Google::Apis::Core::Hashable
4561
+
4562
+ # The common metadata for long running operations.
4563
+ # Corresponds to the JSON property `commonMetadata`
4564
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
4565
+ attr_accessor :common_metadata
4566
+
4567
+ def initialize(**args)
4568
+ update!(**args)
4569
+ end
4570
+
4571
+ # Update properties of this object
4572
+ def update!(**args)
4573
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
4574
+ end
4575
+ end
4576
+
4577
+ # Response message for the disable processor method. Intentionally empty proto
4578
+ # for adding fields in future.
4579
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
4580
+ include Google::Apis::Core::Hashable
4581
+
4582
+ def initialize(**args)
4583
+ update!(**args)
4584
+ end
4585
+
4586
+ # Update properties of this object
4587
+ def update!(**args)
4588
+ end
4589
+ end
4590
+
4591
+ # The long running operation metadata for enable processor method.
4592
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
4593
+ include Google::Apis::Core::Hashable
4594
+
4595
+ # The common metadata for long running operations.
4596
+ # Corresponds to the JSON property `commonMetadata`
4597
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
4598
+ attr_accessor :common_metadata
4599
+
4600
+ def initialize(**args)
4601
+ update!(**args)
4602
+ end
4603
+
4604
+ # Update properties of this object
4605
+ def update!(**args)
4606
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
4607
+ end
4608
+ end
4609
+
4610
+ # Response message for the enable processor method. Intentionally empty proto
4611
+ # for adding fields in future.
4612
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
4613
+ include Google::Apis::Core::Hashable
4614
+
4615
+ def initialize(**args)
4616
+ update!(**args)
4617
+ end
4618
+
4619
+ # Update properties of this object
4620
+ def update!(**args)
4621
+ end
4622
+ end
4623
+
4488
4624
  # The status of human review on a processed document.
4489
4625
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4490
4626
  include Google::Apis::Core::Hashable
@@ -4702,61 +4838,60 @@ module Google
4702
4838
 
4703
4839
  # Represents a color in the RGBA color space. This representation is designed
4704
4840
  # for simplicity of conversion to/from color representations in various
4705
- # languages over compactness; for example, the fields of this representation can
4706
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
4707
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
4841
+ # languages over compactness. For example, the fields of this representation can
4842
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
4843
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
4708
4844
  # method in iOS; and, with just a little work, it can be easily formatted into a
4709
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
4845
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
4710
4846
  # information about the absolute color space that should be used to interpret
4711
4847
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
4712
- # applications SHOULD assume the sRGB color space. Note: when color equality
4713
- # needs to be decided, implementations, unless documented otherwise, will treat
4714
- # two colors to be equal if all their red, green, blue and alpha values each
4715
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
4716
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
4717
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
4718
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
4719
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
4720
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
4721
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
4722
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
4723
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
4724
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
4725
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
4726
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
4727
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
4728
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
4729
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
4730
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
4731
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
4732
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
4733
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
4734
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
4735
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
4736
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
4848
+ # applications should assume the sRGB color space. When color equality needs to
4849
+ # be decided, implementations, unless documented otherwise, treat two colors as
4850
+ # equal if all their red, green, blue, and alpha values each differ by at most
4851
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
4852
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
4853
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
4854
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
4855
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
4856
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
4857
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
4858
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
4859
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
4860
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
4861
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
4862
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
4863
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
4864
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
4865
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
4866
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
4867
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
4868
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
4869
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
4870
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
4871
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
4872
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
4737
4873
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
4738
4874
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
4739
4875
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
4740
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
4876
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
4741
4877
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
4742
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
4743
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
4744
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
4745
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
4746
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
4747
- # join(''); `; // ...
4878
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
4879
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
4880
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
4881
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
4882
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
4883
+ # / ...
4748
4884
  class GoogleTypeColor
4749
4885
  include Google::Apis::Core::Hashable
4750
4886
 
4751
4887
  # The fraction of this color that should be applied to the pixel. That is, the
4752
- # final pixel color is defined by the equation: pixel color = alpha * (this
4753
- # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
4888
+ # final pixel color is defined by the equation: `pixel color = alpha * (this
4889
+ # color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
4754
4890
  # corresponds to a solid color, whereas a value of 0.0 corresponds to a
4755
4891
  # completely transparent color. This uses a wrapper message rather than a simple
4756
4892
  # float scalar so that it is possible to distinguish between a default value and
4757
- # the value being unset. If omitted, this color object is to be rendered as a
4758
- # solid color (as if the alpha value had been explicitly given with a value of 1.
4759
- # 0).
4893
+ # the value being unset. If omitted, this color object is rendered as a solid
4894
+ # color (as if the alpha value had been explicitly given a value of 1.0).
4760
4895
  # Corresponds to the JSON property `alpha`
4761
4896
  # @return [Float]
4762
4897
  attr_accessor :alpha
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210320"
25
+ REVISION = "20210607"
26
26
  end
27
27
  end
28
28
  end
@@ -100,12 +100,6 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
103
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
110
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
105
 
@@ -790,6 +784,36 @@ module Google
790
784
  include Google::Apis::Core::JsonObjectSupport
791
785
  end
792
786
 
787
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
788
+ class Representation < Google::Apis::Core::JsonRepresentation; end
789
+
790
+ include Google::Apis::Core::JsonObjectSupport
791
+ end
792
+
793
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
799
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
800
+ class Representation < Google::Apis::Core::JsonRepresentation; end
801
+
802
+ include Google::Apis::Core::JsonObjectSupport
803
+ end
804
+
805
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
806
+ class Representation < Google::Apis::Core::JsonRepresentation; end
807
+
808
+ include Google::Apis::Core::JsonObjectSupport
809
+ end
810
+
811
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
812
+ class Representation < Google::Apis::Core::JsonRepresentation; end
813
+
814
+ include Google::Apis::Core::JsonObjectSupport
815
+ end
816
+
793
817
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
794
818
  class Representation < Google::Apis::Core::JsonRepresentation; end
795
819
 
@@ -961,14 +985,6 @@ module Google
961
985
  end
962
986
  end
963
987
 
964
- class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
965
- # @private
966
- class Representation < Google::Apis::Core::JsonRepresentation
967
- property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
968
-
969
- end
970
- end
971
-
972
988
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
973
989
  # @private
974
990
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -998,8 +1014,10 @@ module Google
998
1014
  class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
999
1015
  # @private
1000
1016
  class Representation < Google::Apis::Core::JsonRepresentation
1017
+ property :dataset_error_count, as: 'datasetErrorCount'
1001
1018
  collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1002
1019
 
1020
+ property :document_error_count, as: 'documentErrorCount'
1003
1021
  collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1004
1022
 
1005
1023
  end
@@ -1217,6 +1235,8 @@ module Google
1217
1235
  property :page_number, as: 'pageNumber'
1218
1236
  collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageParagraph::Representation
1219
1237
 
1238
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
1239
+
1220
1240
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
1221
1241
 
1222
1242
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
@@ -1241,6 +1261,7 @@ module Google
1241
1261
  class Representation < Google::Apis::Core::JsonRepresentation
1242
1262
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation
1243
1263
 
1264
+ property :confidence, as: 'confidence'
1244
1265
  property :layout_id, as: 'layoutId'
1245
1266
  property :layout_type, as: 'layoutType'
1246
1267
  property :page, :numeric_string => true, as: 'page'
@@ -1285,6 +1306,8 @@ module Google
1285
1306
 
1286
1307
  collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
1287
1308
 
1309
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
1310
+
1288
1311
  collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
1289
1312
 
1290
1313
  property :value_type, as: 'valueType'
@@ -1428,6 +1451,7 @@ module Google
1428
1451
  # @private
1429
1452
  class Representation < Google::Apis::Core::JsonRepresentation
1430
1453
  property :id, as: 'id'
1454
+ property :index, as: 'index'
1431
1455
  property :revision, as: 'revision'
1432
1456
  end
1433
1457
  end
@@ -1720,6 +1744,8 @@ module Google
1720
1744
  property :page_number, as: 'pageNumber'
1721
1745
  collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageParagraph::Representation
1722
1746
 
1747
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
1748
+
1723
1749
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
1724
1750
 
1725
1751
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
@@ -1744,6 +1770,7 @@ module Google
1744
1770
  class Representation < Google::Apis::Core::JsonRepresentation
1745
1771
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation
1746
1772
 
1773
+ property :confidence, as: 'confidence'
1747
1774
  property :layout_id, as: 'layoutId'
1748
1775
  property :layout_type, as: 'layoutType'
1749
1776
  property :page, :numeric_string => true, as: 'page'
@@ -1788,6 +1815,8 @@ module Google
1788
1815
 
1789
1816
  collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
1790
1817
 
1818
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
1819
+
1791
1820
  collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
1792
1821
 
1793
1822
  property :value_type, as: 'valueType'
@@ -1931,6 +1960,7 @@ module Google
1931
1960
  # @private
1932
1961
  class Representation < Google::Apis::Core::JsonRepresentation
1933
1962
  property :id, as: 'id'
1963
+ property :index, as: 'index'
1934
1964
  property :revision, as: 'revision'
1935
1965
  end
1936
1966
  end
@@ -2203,6 +2233,42 @@ module Google
2203
2233
  end
2204
2234
  end
2205
2235
 
2236
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
2237
+ # @private
2238
+ class Representation < Google::Apis::Core::JsonRepresentation
2239
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2240
+
2241
+ end
2242
+ end
2243
+
2244
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
2245
+ # @private
2246
+ class Representation < Google::Apis::Core::JsonRepresentation
2247
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2248
+
2249
+ end
2250
+ end
2251
+
2252
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
2253
+ # @private
2254
+ class Representation < Google::Apis::Core::JsonRepresentation
2255
+ end
2256
+ end
2257
+
2258
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
2259
+ # @private
2260
+ class Representation < Google::Apis::Core::JsonRepresentation
2261
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2262
+
2263
+ end
2264
+ end
2265
+
2266
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
2267
+ # @private
2268
+ class Representation < Google::Apis::Core::JsonRepresentation
2269
+ end
2270
+ end
2271
+
2206
2272
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
2207
2273
  # @private
2208
2274
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.7.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.12.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Document AI API V1beta2