google-apis-documentai_v1beta3 0.8.0 → 0.9.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: 6cebc5b2a930caf22126e1cd4f80188f82c5458b49da07ccab402e2611d2008d
4
- data.tar.gz: dae720ed2bf556cce29af34557eabdc41f9aced868cdf5900075bac0122c0992
3
+ metadata.gz: f47eb993a9e4dccd9f637947d7f6207c9f3d866b503c6f7f0181b9e4f5ce0b1c
4
+ data.tar.gz: '08c64bb4c92ceb007df09cd5f9bcf042a4ad915fe0a4cece3f01f666eb75e5d4'
5
5
  SHA512:
6
- metadata.gz: ab3a8d136a06d532ee72b38b4e7af5f34e3d70d16cbede11a2a55b79e1d71c6f67dacb6802a98c8656294b7d706b38693385db12d00968d8d5f055b38d8002dc
7
- data.tar.gz: f719f84fa0bf62c5637e67a1824081071cc785769c09dd7d188839867760ced6a7f1d223a85d72d546fef63f265b79ac0359a8001180c64ad1826a35e71c0bea
6
+ metadata.gz: 37533a944fa8050789d9bcaffb605c88bd3845afebd285e66964b5022eaeec5aa1d118c54494cdf2621a1512dd8cef98418be2d13ba79da4826aac583c76f9ef
7
+ data.tar.gz: 3f0483bf770e0ef4019e6bd79f9fec2027e82159cb6f8c7dacc3686fad6df329a92ba1977d5e699cb354ac1f73d7e20d3f2f5589d8e3c257f41ae1f8652b67a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.9.0 (2021-03-31)
4
+
5
+ * Regenerated from discovery document revision 20210329
6
+
3
7
  ### v0.8.0 (2021-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20210320
@@ -31,7 +31,7 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V1beta3'
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::DocumentaiV1beta3::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
@@ -1876,98 +1857,98 @@ module Google
1876
1857
 
1877
1858
  # Represents a color in the RGBA color space. This representation is designed
1878
1859
  # 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"
1860
+ # languages over compactness. For example, the fields of this representation can
1861
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1862
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1882
1863
  # 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
1864
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1884
1865
  # information about the absolute color space that should be used to interpret
1885
1866
  # 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;
1867
+ # applications should assume the sRGB color space. When color equality needs to
1868
+ # be decided, implementations, unless documented otherwise, treat two colors as
1869
+ # equal if all their red, green, blue, and alpha values each differ by at most
1870
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1871
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1872
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1873
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1874
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1875
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1876
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1877
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1878
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1879
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1880
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1881
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1882
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1883
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1884
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1885
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1886
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1887
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1888
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1889
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1890
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1891
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1911
1892
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1912
1893
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1913
1894
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1914
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1895
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1915
1896
  # 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(''); `; // ...
1897
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1898
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1899
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1900
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1901
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1902
+ # / ...
1922
1903
  # Corresponds to the JSON property `backgroundColor`
1923
1904
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
1924
1905
  attr_accessor :background_color
1925
1906
 
1926
1907
  # Represents a color in the RGBA color space. This representation is designed
1927
1908
  # 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"
1909
+ # languages over compactness. For example, the fields of this representation can
1910
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1911
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1931
1912
  # 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
1913
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1933
1914
  # information about the absolute color space that should be used to interpret
1934
1915
  # 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;
1916
+ # applications should assume the sRGB color space. When color equality needs to
1917
+ # be decided, implementations, unless documented otherwise, treat two colors as
1918
+ # equal if all their red, green, blue, and alpha values each differ by at most
1919
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1920
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1921
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1922
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1923
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1924
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1925
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1926
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1927
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1928
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1929
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1930
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1931
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1932
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1933
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1934
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1935
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1936
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1937
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1938
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1939
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1940
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1960
1941
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1961
1942
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1962
1943
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1963
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1944
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1964
1945
  # 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(''); `; // ...
1946
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1947
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1948
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1949
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1950
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1951
+ # / ...
1971
1952
  # Corresponds to the JSON property `color`
1972
1953
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
1973
1954
  attr_accessor :color
@@ -2201,7 +2182,7 @@ module Google
2201
2182
  # @return [Float]
2202
2183
  attr_accessor :x
2203
2184
 
2204
- # Y coordinate.
2185
+ # Y coordinate (starts from the top of the image).
2205
2186
  # Corresponds to the JSON property `y`
2206
2187
  # @return [Float]
2207
2188
  attr_accessor :y
@@ -2322,7 +2303,7 @@ module Google
2322
2303
  # @return [Fixnum]
2323
2304
  attr_accessor :x
2324
2305
 
2325
- # Y coordinate.
2306
+ # Y coordinate (starts from the top of the image).
2326
2307
  # Corresponds to the JSON property `y`
2327
2308
  # @return [Fixnum]
2328
2309
  attr_accessor :y
@@ -3571,98 +3552,98 @@ module Google
3571
3552
 
3572
3553
  # Represents a color in the RGBA color space. This representation is designed
3573
3554
  # for simplicity of conversion to/from color representations in various
3574
- # languages over compactness; for example, the fields of this representation can
3575
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3576
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3555
+ # languages over compactness. For example, the fields of this representation can
3556
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3557
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3577
3558
  # method in iOS; and, with just a little work, it can be easily formatted into a
3578
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3559
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3579
3560
  # information about the absolute color space that should be used to interpret
3580
3561
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3581
- # applications SHOULD assume the sRGB color space. Note: when color equality
3582
- # needs to be decided, implementations, unless documented otherwise, will treat
3583
- # two colors to be equal if all their red, green, blue and alpha values each
3584
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3585
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3586
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3587
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3588
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3589
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3590
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3591
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3592
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3593
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3594
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3595
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3596
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3597
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3598
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3599
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3600
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3601
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3602
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3603
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3604
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3605
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3562
+ # applications should assume the sRGB color space. When color equality needs to
3563
+ # be decided, implementations, unless documented otherwise, treat two colors as
3564
+ # equal if all their red, green, blue, and alpha values each differ by at most
3565
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3566
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3567
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3568
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3569
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3570
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3571
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3572
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3573
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3574
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3575
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3576
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3577
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3578
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3579
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3580
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3581
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3582
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3583
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3584
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3585
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3586
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3606
3587
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3607
3588
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3608
3589
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3609
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3590
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3610
3591
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3611
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3612
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3613
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3614
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3615
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3616
- # join(''); `; // ...
3592
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3593
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3594
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3595
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3596
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3597
+ # / ...
3617
3598
  # Corresponds to the JSON property `backgroundColor`
3618
3599
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
3619
3600
  attr_accessor :background_color
3620
3601
 
3621
3602
  # Represents a color in the RGBA color space. This representation is designed
3622
3603
  # for simplicity of conversion to/from color representations in various
3623
- # languages over compactness; for example, the fields of this representation can
3624
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3625
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3604
+ # languages over compactness. For example, the fields of this representation can
3605
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3606
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3626
3607
  # method in iOS; and, with just a little work, it can be easily formatted into a
3627
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3608
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3628
3609
  # information about the absolute color space that should be used to interpret
3629
3610
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3630
- # applications SHOULD assume the sRGB color space. Note: when color equality
3631
- # needs to be decided, implementations, unless documented otherwise, will treat
3632
- # two colors to be equal if all their red, green, blue and alpha values each
3633
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3634
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3635
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3636
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3637
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3638
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3639
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3640
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3641
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3642
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3643
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3644
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3645
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3646
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3647
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3648
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3649
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3650
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3651
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3652
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3653
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3654
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3611
+ # applications should assume the sRGB color space. When color equality needs to
3612
+ # be decided, implementations, unless documented otherwise, treat two colors as
3613
+ # equal if all their red, green, blue, and alpha values each differ by at most
3614
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3615
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3616
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3617
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3618
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3619
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3620
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3621
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3622
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3623
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3624
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3625
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3626
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3627
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3628
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3629
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3630
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3631
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3632
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3633
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3634
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3635
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3655
3636
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3656
3637
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3657
3638
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3658
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3639
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3659
3640
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3660
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3661
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3662
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3663
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3664
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3665
- # join(''); `; // ...
3641
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3642
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3643
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3644
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3645
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3646
+ # / ...
3666
3647
  # Corresponds to the JSON property `color`
3667
3648
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
3668
3649
  attr_accessor :color
@@ -3906,7 +3887,7 @@ module Google
3906
3887
  # @return [Float]
3907
3888
  attr_accessor :x
3908
3889
 
3909
- # Y coordinate.
3890
+ # Y coordinate (starts from the top of the image).
3910
3891
  # Corresponds to the JSON property `y`
3911
3892
  # @return [Float]
3912
3893
  attr_accessor :y
@@ -4027,7 +4008,7 @@ module Google
4027
4008
  # @return [Fixnum]
4028
4009
  attr_accessor :x
4029
4010
 
4030
- # Y coordinate.
4011
+ # Y coordinate (starts from the top of the image).
4031
4012
  # Corresponds to the JSON property `y`
4032
4013
  # @return [Fixnum]
4033
4014
  attr_accessor :y
@@ -5518,98 +5499,98 @@ module Google
5518
5499
 
5519
5500
  # Represents a color in the RGBA color space. This representation is designed
5520
5501
  # for simplicity of conversion to/from color representations in various
5521
- # languages over compactness; for example, the fields of this representation can
5522
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
5523
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5502
+ # languages over compactness. For example, the fields of this representation can
5503
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5504
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5524
5505
  # method in iOS; and, with just a little work, it can be easily formatted into a
5525
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
5506
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5526
5507
  # information about the absolute color space that should be used to interpret
5527
5508
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5528
- # applications SHOULD assume the sRGB color space. Note: when color equality
5529
- # needs to be decided, implementations, unless documented otherwise, will treat
5530
- # two colors to be equal if all their red, green, blue and alpha values each
5531
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
5532
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
5533
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
5534
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
5535
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
5536
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
5537
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
5538
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
5539
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
5540
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
5541
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
5542
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
5543
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
5544
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
5545
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
5546
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
5547
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
5548
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
5549
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
5550
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
5551
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
5552
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5509
+ # applications should assume the sRGB color space. When color equality needs to
5510
+ # be decided, implementations, unless documented otherwise, treat two colors as
5511
+ # equal if all their red, green, blue, and alpha values each differ by at most
5512
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5513
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5514
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5515
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5516
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5517
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5518
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5519
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5520
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5521
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5522
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5523
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5524
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5525
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5526
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5527
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5528
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5529
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5530
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5531
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5532
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5533
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5553
5534
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5554
5535
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5555
5536
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5556
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5537
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5557
5538
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5558
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
5559
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
5560
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
5561
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
5562
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
5563
- # join(''); `; // ...
5539
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5540
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5541
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5542
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5543
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5544
+ # / ...
5564
5545
  # Corresponds to the JSON property `backgroundColor`
5565
5546
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
5566
5547
  attr_accessor :background_color
5567
5548
 
5568
5549
  # Represents a color in the RGBA color space. This representation is designed
5569
5550
  # for simplicity of conversion to/from color representations in various
5570
- # languages over compactness; for example, the fields of this representation can
5571
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
5572
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5551
+ # languages over compactness. For example, the fields of this representation can
5552
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5553
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5573
5554
  # method in iOS; and, with just a little work, it can be easily formatted into a
5574
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
5555
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5575
5556
  # information about the absolute color space that should be used to interpret
5576
5557
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5577
- # applications SHOULD assume the sRGB color space. Note: when color equality
5578
- # needs to be decided, implementations, unless documented otherwise, will treat
5579
- # two colors to be equal if all their red, green, blue and alpha values each
5580
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
5581
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
5582
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
5583
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
5584
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
5585
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
5586
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
5587
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
5588
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
5589
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
5590
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
5591
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
5592
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
5593
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
5594
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
5595
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
5596
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
5597
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
5598
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
5599
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
5600
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
5601
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5558
+ # applications should assume the sRGB color space. When color equality needs to
5559
+ # be decided, implementations, unless documented otherwise, treat two colors as
5560
+ # equal if all their red, green, blue, and alpha values each differ by at most
5561
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5562
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5563
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5564
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5565
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5566
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5567
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5568
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5569
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5570
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5571
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5572
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5573
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5574
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5575
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5576
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5577
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5578
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5579
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5580
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5581
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5582
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5602
5583
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5603
5584
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5604
5585
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5605
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5586
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5606
5587
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5607
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
5608
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
5609
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
5610
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
5611
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
5612
- # join(''); `; // ...
5588
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5589
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5590
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5591
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5592
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5593
+ # / ...
5613
5594
  # Corresponds to the JSON property `color`
5614
5595
  # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor]
5615
5596
  attr_accessor :color
@@ -5874,7 +5855,7 @@ module Google
5874
5855
  # @return [Float]
5875
5856
  attr_accessor :x
5876
5857
 
5877
- # Y coordinate.
5858
+ # Y coordinate (starts from the top of the image).
5878
5859
  # Corresponds to the JSON property `y`
5879
5860
  # @return [Float]
5880
5861
  attr_accessor :y
@@ -6102,7 +6083,7 @@ module Google
6102
6083
  # @return [Fixnum]
6103
6084
  attr_accessor :x
6104
6085
 
6105
- # Y coordinate.
6086
+ # Y coordinate (starts from the top of the image).
6106
6087
  # Corresponds to the JSON property `y`
6107
6088
  # @return [Fixnum]
6108
6089
  attr_accessor :y
@@ -6310,61 +6291,60 @@ module Google
6310
6291
 
6311
6292
  # Represents a color in the RGBA color space. This representation is designed
6312
6293
  # for simplicity of conversion to/from color representations in various
6313
- # languages over compactness; for example, the fields of this representation can
6314
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
6315
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
6294
+ # languages over compactness. For example, the fields of this representation can
6295
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
6296
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
6316
6297
  # method in iOS; and, with just a little work, it can be easily formatted into a
6317
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
6298
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
6318
6299
  # information about the absolute color space that should be used to interpret
6319
6300
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
6320
- # applications SHOULD assume the sRGB color space. Note: when color equality
6321
- # needs to be decided, implementations, unless documented otherwise, will treat
6322
- # two colors to be equal if all their red, green, blue and alpha values each
6323
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
6324
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
6325
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
6326
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
6327
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
6328
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
6329
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
6330
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
6331
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
6332
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
6333
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
6334
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
6335
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
6336
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
6337
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
6338
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
6339
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
6340
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
6341
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
6342
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
6343
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
6344
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6301
+ # applications should assume the sRGB color space. When color equality needs to
6302
+ # be decided, implementations, unless documented otherwise, treat two colors as
6303
+ # equal if all their red, green, blue, and alpha values each differ by at most
6304
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
6305
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
6306
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
6307
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
6308
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
6309
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
6310
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
6311
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
6312
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
6313
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
6314
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
6315
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
6316
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
6317
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
6318
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
6319
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
6320
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
6321
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
6322
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
6323
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
6324
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
6325
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6345
6326
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
6346
6327
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
6347
6328
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
6348
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6329
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6349
6330
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
6350
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
6351
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
6352
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
6353
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
6354
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
6355
- # join(''); `; // ...
6331
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
6332
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
6333
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
6334
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
6335
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
6336
+ # / ...
6356
6337
  class GoogleTypeColor
6357
6338
  include Google::Apis::Core::Hashable
6358
6339
 
6359
6340
  # The fraction of this color that should be applied to the pixel. That is, the
6360
- # final pixel color is defined by the equation: pixel color = alpha * (this
6361
- # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
6341
+ # final pixel color is defined by the equation: `pixel color = alpha * (this
6342
+ # color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
6362
6343
  # corresponds to a solid color, whereas a value of 0.0 corresponds to a
6363
6344
  # completely transparent color. This uses a wrapper message rather than a simple
6364
6345
  # float scalar so that it is possible to distinguish between a default value and
6365
- # the value being unset. If omitted, this color object is to be rendered as a
6366
- # solid color (as if the alpha value had been explicitly given with a value of 1.
6367
- # 0).
6346
+ # the value being unset. If omitted, this color object is rendered as a solid
6347
+ # color (as if the alpha value had been explicitly given a value of 1.0).
6368
6348
  # Corresponds to the JSON property `alpha`
6369
6349
  # @return [Float]
6370
6350
  attr_accessor :alpha
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta3
18
18
  # Version of the google-apis-documentai_v1beta3 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210320"
25
+ REVISION = "20210329"
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
 
@@ -1207,14 +1201,6 @@ module Google
1207
1201
  end
1208
1202
  end
1209
1203
 
1210
- class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
1211
- # @private
1212
- class Representation < Google::Apis::Core::JsonRepresentation
1213
- property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1214
-
1215
- end
1216
- end
1217
-
1218
1204
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1219
1205
  # @private
1220
1206
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.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-04-05 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_v1beta3/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.8.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.9.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta3
57
57
  post_install_message:
58
58
  rdoc_options: []