google-apis-documentai_v1beta2 0.6.0 → 0.11.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: 0a6867f3d5e5f32a1fa933ec0bac6ce6698b2e3447cca0c7e585e5f8a2e40aff
4
- data.tar.gz: 4d8ef32531afab339eb91c30984b86e7e9a7d2462228cb83d05771d31ba2e02b
3
+ metadata.gz: 7c208af4ee4a6ce7b36ee51e0167865f0913849a642a54f4dc3b610ab5622eb8
4
+ data.tar.gz: 1ec6e560b1f1cbd32e175d61d6b4c946ecb5907ecc95adf20f9f655ab87c32a1
5
5
  SHA512:
6
- metadata.gz: 694b342cf80e1d162c0a5b2b5a9c10342c77391303091ea5668f15566d790d92d45a92219eaff18dbf23ca617f537e050144c9d64338c0de2ed7f130c42a370b
7
- data.tar.gz: b71e60079085a90ed4310410d06bc6b73c28f7f58e55aba579cf15751a9863619b32076f21318937da031483736f0f810c83f2b66f28b12b77aa3aae59735b24
6
+ metadata.gz: 04c66982e0a7ad7e52e4e884f2db045f22ec3d5c4e43d45df6f5203e9f3cf1e163a3f78dd69a126bb4ae633a59a6ce968277375427eccfe4f677509363821d34
7
+ data.tar.gz: 3501be76dc2f859235f0ac3f9d28a9a64c4c3bb51772ed1df52c8ec35fd8d32ee292c6b754e5fe4f9c2ba0dd59919ec52449516bf2e6c897d4fdc678859bc61b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.11.0 (2021-06-03)
4
+
5
+ * Regenerated from discovery document revision 20210527
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.10.0 (2021-05-19)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.9.0 (2021-05-12)
13
+
14
+ * Regenerated from discovery document revision 20210507
15
+
16
+ ### v0.8.0 (2021-03-31)
17
+
18
+ * Regenerated from discovery document revision 20210329
19
+
20
+ ### v0.7.0 (2021-03-24)
21
+
22
+ * Regenerated from discovery document revision 20210320
23
+
3
24
  ### v0.6.0 (2021-03-09)
4
25
 
5
26
  * Regenerated from discovery document revision 20210308
@@ -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
@@ -1165,6 +1158,11 @@ module Google
1165
1158
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
1166
1159
  attr_accessor :bounding_poly
1167
1160
 
1161
+ # Optional. Confidence of detected page element, if applicable. Range [0, 1].
1162
+ # Corresponds to the JSON property `confidence`
1163
+ # @return [Float]
1164
+ attr_accessor :confidence
1165
+
1168
1166
  # Optional. Deprecated. Use PageRef.bounding_poly instead.
1169
1167
  # Corresponds to the JSON property `layoutId`
1170
1168
  # @return [String]
@@ -1188,6 +1186,7 @@ module Google
1188
1186
  # Update properties of this object
1189
1187
  def update!(**args)
1190
1188
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1189
+ @confidence = args[:confidence] if args.key?(:confidence)
1191
1190
  @layout_id = args[:layout_id] if args.key?(:layout_id)
1192
1191
  @layout_type = args[:layout_type] if args.key?(:layout_type)
1193
1192
  @page = args[:page] if args.key?(:page)
@@ -1742,6 +1741,12 @@ module Google
1742
1741
  # @return [Fixnum]
1743
1742
  attr_accessor :id
1744
1743
 
1744
+ # The index of the parent revisions corresponding collection of items (eg. list
1745
+ # of entities, properties within entities, etc.)
1746
+ # Corresponds to the JSON property `index`
1747
+ # @return [Fixnum]
1748
+ attr_accessor :index
1749
+
1745
1750
  # The index of the [Document.revisions] identifying the parent revision.
1746
1751
  # Corresponds to the JSON property `revision`
1747
1752
  # @return [Fixnum]
@@ -1754,6 +1759,7 @@ module Google
1754
1759
  # Update properties of this object
1755
1760
  def update!(**args)
1756
1761
  @id = args[:id] if args.key?(:id)
1762
+ @index = args[:index] if args.key?(:index)
1757
1763
  @revision = args[:revision] if args.key?(:revision)
1758
1764
  end
1759
1765
  end
@@ -1876,98 +1882,98 @@ module Google
1876
1882
 
1877
1883
  # Represents a color in the RGBA color space. This representation is designed
1878
1884
  # 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"
1885
+ # languages over compactness. For example, the fields of this representation can
1886
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1887
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1882
1888
  # 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
1889
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1884
1890
  # information about the absolute color space that should be used to interpret
1885
1891
  # 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;
1892
+ # applications should assume the sRGB color space. When color equality needs to
1893
+ # be decided, implementations, unless documented otherwise, treat two colors as
1894
+ # equal if all their red, green, blue, and alpha values each differ by at most
1895
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1896
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1897
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1898
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1899
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1900
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1901
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1902
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1903
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1904
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1905
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1906
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1907
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1908
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1909
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1910
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1911
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1912
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1913
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1914
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1915
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1916
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1911
1917
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1912
1918
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1913
1919
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1914
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1920
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1915
1921
  # 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(''); `; // ...
1922
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1923
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1924
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1925
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1926
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1927
+ # / ...
1922
1928
  # Corresponds to the JSON property `backgroundColor`
1923
1929
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
1924
1930
  attr_accessor :background_color
1925
1931
 
1926
1932
  # Represents a color in the RGBA color space. This representation is designed
1927
1933
  # 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"
1934
+ # languages over compactness. For example, the fields of this representation can
1935
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1936
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1931
1937
  # 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
1938
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1933
1939
  # information about the absolute color space that should be used to interpret
1934
1940
  # 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;
1941
+ # applications should assume the sRGB color space. When color equality needs to
1942
+ # be decided, implementations, unless documented otherwise, treat two colors as
1943
+ # equal if all their red, green, blue, and alpha values each differ by at most
1944
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1945
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1946
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1947
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1948
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1949
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1950
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1951
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1952
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1953
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1954
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1955
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1956
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1957
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1958
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1959
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1960
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1961
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1962
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1963
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1964
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1965
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1960
1966
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1961
1967
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1962
1968
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1963
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1969
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1964
1970
  # 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(''); `; // ...
1971
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1972
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1973
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1974
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1975
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1976
+ # / ...
1971
1977
  # Corresponds to the JSON property `color`
1972
1978
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
1973
1979
  attr_accessor :color
@@ -2201,7 +2207,7 @@ module Google
2201
2207
  # @return [Float]
2202
2208
  attr_accessor :x
2203
2209
 
2204
- # Y coordinate.
2210
+ # Y coordinate (starts from the top of the image).
2205
2211
  # Corresponds to the JSON property `y`
2206
2212
  # @return [Float]
2207
2213
  attr_accessor :y
@@ -2322,7 +2328,7 @@ module Google
2322
2328
  # @return [Fixnum]
2323
2329
  attr_accessor :x
2324
2330
 
2325
- # Y coordinate.
2331
+ # Y coordinate (starts from the top of the image).
2326
2332
  # Corresponds to the JSON property `y`
2327
2333
  # @return [Fixnum]
2328
2334
  attr_accessor :y
@@ -2900,6 +2906,11 @@ module Google
2900
2906
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
2901
2907
  attr_accessor :bounding_poly
2902
2908
 
2909
+ # Optional. Confidence of detected page element, if applicable. Range [0, 1].
2910
+ # Corresponds to the JSON property `confidence`
2911
+ # @return [Float]
2912
+ attr_accessor :confidence
2913
+
2903
2914
  # Optional. Deprecated. Use PageRef.bounding_poly instead.
2904
2915
  # Corresponds to the JSON property `layoutId`
2905
2916
  # @return [String]
@@ -2923,6 +2934,7 @@ module Google
2923
2934
  # Update properties of this object
2924
2935
  def update!(**args)
2925
2936
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2937
+ @confidence = args[:confidence] if args.key?(:confidence)
2926
2938
  @layout_id = args[:layout_id] if args.key?(:layout_id)
2927
2939
  @layout_type = args[:layout_type] if args.key?(:layout_type)
2928
2940
  @page = args[:page] if args.key?(:page)
@@ -3477,6 +3489,12 @@ module Google
3477
3489
  # @return [Fixnum]
3478
3490
  attr_accessor :id
3479
3491
 
3492
+ # The index of the parent revisions corresponding collection of items (eg. list
3493
+ # of entities, properties within entities, etc.)
3494
+ # Corresponds to the JSON property `index`
3495
+ # @return [Fixnum]
3496
+ attr_accessor :index
3497
+
3480
3498
  # The index of the [Document.revisions] identifying the parent revision.
3481
3499
  # Corresponds to the JSON property `revision`
3482
3500
  # @return [Fixnum]
@@ -3489,6 +3507,7 @@ module Google
3489
3507
  # Update properties of this object
3490
3508
  def update!(**args)
3491
3509
  @id = args[:id] if args.key?(:id)
3510
+ @index = args[:index] if args.key?(:index)
3492
3511
  @revision = args[:revision] if args.key?(:revision)
3493
3512
  end
3494
3513
  end
@@ -3611,98 +3630,98 @@ module Google
3611
3630
 
3612
3631
  # Represents a color in the RGBA color space. This representation is designed
3613
3632
  # 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"
3633
+ # languages over compactness. For example, the fields of this representation can
3634
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3635
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3617
3636
  # 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
3637
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3619
3638
  # information about the absolute color space that should be used to interpret
3620
3639
  # 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;
3640
+ # applications should assume the sRGB color space. When color equality needs to
3641
+ # be decided, implementations, unless documented otherwise, treat two colors as
3642
+ # equal if all their red, green, blue, and alpha values each differ by at most
3643
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3644
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3645
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3646
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3647
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3648
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3649
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3650
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3651
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3652
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3653
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3654
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3655
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3656
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3657
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3658
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3659
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3660
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3661
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3662
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3663
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3664
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3646
3665
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3647
3666
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3648
3667
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3649
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3668
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3650
3669
  # 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(''); `; // ...
3670
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3671
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3672
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3673
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3674
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3675
+ # / ...
3657
3676
  # Corresponds to the JSON property `backgroundColor`
3658
3677
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
3659
3678
  attr_accessor :background_color
3660
3679
 
3661
3680
  # Represents a color in the RGBA color space. This representation is designed
3662
3681
  # 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"
3682
+ # languages over compactness. For example, the fields of this representation can
3683
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3684
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3666
3685
  # 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
3686
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3668
3687
  # information about the absolute color space that should be used to interpret
3669
3688
  # 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;
3689
+ # applications should assume the sRGB color space. When color equality needs to
3690
+ # be decided, implementations, unless documented otherwise, treat two colors as
3691
+ # equal if all their red, green, blue, and alpha values each differ by at most
3692
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3693
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3694
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3695
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3696
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3697
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3698
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3699
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3700
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3701
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3702
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3703
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3704
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3705
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3706
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3707
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3708
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3709
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3710
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3711
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3712
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3713
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3695
3714
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3696
3715
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3697
3716
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3698
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3717
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3699
3718
  # 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(''); `; // ...
3719
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3720
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3721
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3722
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3723
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3724
+ # / ...
3706
3725
  # Corresponds to the JSON property `color`
3707
3726
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
3708
3727
  attr_accessor :color
@@ -4036,7 +4055,7 @@ module Google
4036
4055
  # @return [Float]
4037
4056
  attr_accessor :x
4038
4057
 
4039
- # Y coordinate.
4058
+ # Y coordinate (starts from the top of the image).
4040
4059
  # Corresponds to the JSON property `y`
4041
4060
  # @return [Float]
4042
4061
  attr_accessor :y
@@ -4320,7 +4339,7 @@ module Google
4320
4339
  # @return [Fixnum]
4321
4340
  attr_accessor :x
4322
4341
 
4323
- # Y coordinate.
4342
+ # Y coordinate (starts from the top of the image).
4324
4343
  # Corresponds to the JSON property `y`
4325
4344
  # @return [Fixnum]
4326
4345
  attr_accessor :y
@@ -4485,6 +4504,91 @@ module Google
4485
4504
  end
4486
4505
  end
4487
4506
 
4507
+ # The long running operation metadata for delete processor method.
4508
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
4509
+ include Google::Apis::Core::Hashable
4510
+
4511
+ # The common metadata for long running operations.
4512
+ # Corresponds to the JSON property `commonMetadata`
4513
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
4514
+ attr_accessor :common_metadata
4515
+
4516
+ def initialize(**args)
4517
+ update!(**args)
4518
+ end
4519
+
4520
+ # Update properties of this object
4521
+ def update!(**args)
4522
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
4523
+ end
4524
+ end
4525
+
4526
+ # The long running operation metadata for disable processor method.
4527
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
4528
+ include Google::Apis::Core::Hashable
4529
+
4530
+ # The common metadata for long running operations.
4531
+ # Corresponds to the JSON property `commonMetadata`
4532
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
4533
+ attr_accessor :common_metadata
4534
+
4535
+ def initialize(**args)
4536
+ update!(**args)
4537
+ end
4538
+
4539
+ # Update properties of this object
4540
+ def update!(**args)
4541
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
4542
+ end
4543
+ end
4544
+
4545
+ # Response message for the disable processor method. Intentionally empty proto
4546
+ # for adding fields in future.
4547
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
4548
+ include Google::Apis::Core::Hashable
4549
+
4550
+ def initialize(**args)
4551
+ update!(**args)
4552
+ end
4553
+
4554
+ # Update properties of this object
4555
+ def update!(**args)
4556
+ end
4557
+ end
4558
+
4559
+ # The long running operation metadata for enable processor method.
4560
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
4561
+ include Google::Apis::Core::Hashable
4562
+
4563
+ # The common metadata for long running operations.
4564
+ # Corresponds to the JSON property `commonMetadata`
4565
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
4566
+ attr_accessor :common_metadata
4567
+
4568
+ def initialize(**args)
4569
+ update!(**args)
4570
+ end
4571
+
4572
+ # Update properties of this object
4573
+ def update!(**args)
4574
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
4575
+ end
4576
+ end
4577
+
4578
+ # Response message for the enable processor method. Intentionally empty proto
4579
+ # for adding fields in future.
4580
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
4581
+ include Google::Apis::Core::Hashable
4582
+
4583
+ def initialize(**args)
4584
+ update!(**args)
4585
+ end
4586
+
4587
+ # Update properties of this object
4588
+ def update!(**args)
4589
+ end
4590
+ end
4591
+
4488
4592
  # The status of human review on a processed document.
4489
4593
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
4490
4594
  include Google::Apis::Core::Hashable
@@ -4702,61 +4806,60 @@ module Google
4702
4806
 
4703
4807
  # Represents a color in the RGBA color space. This representation is designed
4704
4808
  # 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"
4809
+ # languages over compactness. For example, the fields of this representation can
4810
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
4811
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
4708
4812
  # 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
4813
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
4710
4814
  # information about the absolute color space that should be used to interpret
4711
4815
  # 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;
4816
+ # applications should assume the sRGB color space. When color equality needs to
4817
+ # be decided, implementations, unless documented otherwise, treat two colors as
4818
+ # equal if all their red, green, blue, and alpha values each differ by at most
4819
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
4820
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
4821
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
4822
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
4823
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
4824
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
4825
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
4826
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
4827
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
4828
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
4829
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
4830
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
4831
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
4832
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
4833
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
4834
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
4835
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
4836
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
4837
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
4838
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
4839
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
4840
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
4737
4841
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
4738
4842
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
4739
4843
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
4740
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
4844
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
4741
4845
  # 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(''); `; // ...
4846
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
4847
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
4848
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
4849
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
4850
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
4851
+ # / ...
4748
4852
  class GoogleTypeColor
4749
4853
  include Google::Apis::Core::Hashable
4750
4854
 
4751
4855
  # 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
4856
+ # final pixel color is defined by the equation: `pixel color = alpha * (this
4857
+ # color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
4754
4858
  # corresponds to a solid color, whereas a value of 0.0 corresponds to a
4755
4859
  # completely transparent color. This uses a wrapper message rather than a simple
4756
4860
  # 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).
4861
+ # the value being unset. If omitted, this color object is rendered as a solid
4862
+ # color (as if the alpha value had been explicitly given a value of 1.0).
4760
4863
  # Corresponds to the JSON property `alpha`
4761
4864
  # @return [Float]
4762
4865
  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.6.0"
19
+ GEM_VERSION = "0.11.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 = "20210308"
25
+ REVISION = "20210527"
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
@@ -1241,6 +1259,7 @@ module Google
1241
1259
  class Representation < Google::Apis::Core::JsonRepresentation
1242
1260
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation
1243
1261
 
1262
+ property :confidence, as: 'confidence'
1244
1263
  property :layout_id, as: 'layoutId'
1245
1264
  property :layout_type, as: 'layoutType'
1246
1265
  property :page, :numeric_string => true, as: 'page'
@@ -1428,6 +1447,7 @@ module Google
1428
1447
  # @private
1429
1448
  class Representation < Google::Apis::Core::JsonRepresentation
1430
1449
  property :id, as: 'id'
1450
+ property :index, as: 'index'
1431
1451
  property :revision, as: 'revision'
1432
1452
  end
1433
1453
  end
@@ -1744,6 +1764,7 @@ module Google
1744
1764
  class Representation < Google::Apis::Core::JsonRepresentation
1745
1765
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation
1746
1766
 
1767
+ property :confidence, as: 'confidence'
1747
1768
  property :layout_id, as: 'layoutId'
1748
1769
  property :layout_type, as: 'layoutType'
1749
1770
  property :page, :numeric_string => true, as: 'page'
@@ -1931,6 +1952,7 @@ module Google
1931
1952
  # @private
1932
1953
  class Representation < Google::Apis::Core::JsonRepresentation
1933
1954
  property :id, as: 'id'
1955
+ property :index, as: 'index'
1934
1956
  property :revision, as: 'revision'
1935
1957
  end
1936
1958
  end
@@ -2203,6 +2225,42 @@ module Google
2203
2225
  end
2204
2226
  end
2205
2227
 
2228
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
2229
+ # @private
2230
+ class Representation < Google::Apis::Core::JsonRepresentation
2231
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2232
+
2233
+ end
2234
+ end
2235
+
2236
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
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 GoogleCloudDocumentaiV1beta3DisableProcessorResponse
2245
+ # @private
2246
+ class Representation < Google::Apis::Core::JsonRepresentation
2247
+ end
2248
+ end
2249
+
2250
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
2251
+ # @private
2252
+ class Representation < Google::Apis::Core::JsonRepresentation
2253
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2254
+
2255
+ end
2256
+ end
2257
+
2258
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
2259
+ # @private
2260
+ class Representation < Google::Apis::Core::JsonRepresentation
2261
+ end
2262
+ end
2263
+
2206
2264
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
2207
2265
  # @private
2208
2266
  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.6.0
4
+ version: 0.11.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-15 00:00:00.000000000 Z
11
+ date: 2021-06-07 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.6.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.11.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