google-apis-documentai_v1beta2 0.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 831938999e0daa7c9771de59c087be50d4c66e73de01e04a3fa5816c10539ff4
|
4
|
+
data.tar.gz: 491c06fe0da4e23cdf78c2b70e9bda3c35d1ae0d97400b76bfe469a024968dc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a9ee823926958427cb36a8576e95b71d3832ac0ed35022d73443f50277c5a5d9660ccec87af9d2a46d9dea69ca90a43bcb2e738266abab874202088a4fb70c
|
7
|
+
data.tar.gz: fabb642f1b149e5361aedad4753ca8091b243c0047ed46e3efad2442f8593fda234521406527718edb43457213561c8f9c2562834e190cc0c172ccc19a8d9adc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1beta2
|
2
2
|
|
3
|
+
### v0.9.0 (2021-05-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210507
|
6
|
+
|
7
|
+
### v0.8.0 (2021-03-31)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210329
|
10
|
+
|
11
|
+
### v0.7.0 (2021-03-24)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210320
|
14
|
+
|
15
|
+
### v0.6.0 (2021-03-09)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210308
|
18
|
+
* Regenerated using generator version 0.2.0
|
19
|
+
|
20
|
+
### v0.5.0 (2021-03-04)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210226
|
23
|
+
|
3
24
|
### v0.4.0 (2021-02-24)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210222
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# This is NOT the gem version.
|
32
32
|
VERSION = 'V1beta2'
|
33
33
|
|
34
|
-
#
|
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,6 +271,38 @@ module Google
|
|
271
271
|
end
|
272
272
|
end
|
273
273
|
|
274
|
+
# The long running operation metadata for set default processor version method.
|
275
|
+
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
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
|
+
# Response message for set default processor version method.
|
294
|
+
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
|
295
|
+
include Google::Apis::Core::Hashable
|
296
|
+
|
297
|
+
def initialize(**args)
|
298
|
+
update!(**args)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update properties of this object
|
302
|
+
def update!(**args)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
274
306
|
# The metadata that represents a processor version being created.
|
275
307
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
|
276
308
|
include Google::Apis::Core::Hashable
|
@@ -309,12 +341,22 @@ module Google
|
|
309
341
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
|
310
342
|
include Google::Apis::Core::Hashable
|
311
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
|
+
|
312
349
|
# Error information for the dataset as a whole. A maximum of 10 dataset errors
|
313
350
|
# will be returned. A single dataset error is terminal for training.
|
314
351
|
# Corresponds to the JSON property `datasetErrors`
|
315
352
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
|
316
353
|
attr_accessor :dataset_errors
|
317
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
|
+
|
318
360
|
# Error information pertaining to specific documents. A maximum of 10 document
|
319
361
|
# errors will be returned. Any document with errors will not be used throughout
|
320
362
|
# training.
|
@@ -328,7 +370,9 @@ module Google
|
|
328
370
|
|
329
371
|
# Update properties of this object
|
330
372
|
def update!(**args)
|
373
|
+
@dataset_error_count = args[:dataset_error_count] if args.key?(:dataset_error_count)
|
331
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)
|
332
376
|
@document_errors = args[:document_errors] if args.key?(:document_errors)
|
333
377
|
end
|
334
378
|
end
|
@@ -687,9 +731,9 @@ module Google
|
|
687
731
|
class GoogleCloudDocumentaiV1beta1Document
|
688
732
|
include Google::Apis::Core::Hashable
|
689
733
|
|
690
|
-
# Inline document content, represented as a stream of bytes. Note: As
|
691
|
-
# bytes` fields, protobuffers use a pure binary representation,
|
692
|
-
# representations use base64.
|
734
|
+
# Optional. Inline document content, represented as a stream of bytes. Note: As
|
735
|
+
# with all `bytes` fields, protobuffers use a pure binary representation,
|
736
|
+
# whereas JSON representations use base64.
|
693
737
|
# Corresponds to the JSON property `content`
|
694
738
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
695
739
|
# @return [String]
|
@@ -739,7 +783,7 @@ module Google
|
|
739
783
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentShardInfo]
|
740
784
|
attr_accessor :shard_info
|
741
785
|
|
742
|
-
# UTF-8 encoded text in reading order from the document.
|
786
|
+
# Optional. UTF-8 encoded text in reading order from the document.
|
743
787
|
# Corresponds to the JSON property `text`
|
744
788
|
# @return [String]
|
745
789
|
attr_accessor :text
|
@@ -756,16 +800,10 @@ module Google
|
|
756
800
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
|
757
801
|
attr_accessor :text_styles
|
758
802
|
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
#
|
763
|
-
attr_accessor :translations
|
764
|
-
|
765
|
-
# Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
|
766
|
-
# object_name`. Object versioning is not supported. See [Google Cloud Storage
|
767
|
-
# Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
|
768
|
-
# info.
|
803
|
+
# Optional. Currently supports Google Cloud Storage URI of the form `gs://
|
804
|
+
# bucket_name/object_name`. Object versioning is not supported. See [Google
|
805
|
+
# Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
|
806
|
+
# uris) for more info.
|
769
807
|
# Corresponds to the JSON property `uri`
|
770
808
|
# @return [String]
|
771
809
|
attr_accessor :uri
|
@@ -787,7 +825,6 @@ module Google
|
|
787
825
|
@text = args[:text] if args.key?(:text)
|
788
826
|
@text_changes = args[:text_changes] if args.key?(:text_changes)
|
789
827
|
@text_styles = args[:text_styles] if args.key?(:text_styles)
|
790
|
-
@translations = args[:translations] if args.key?(:translations)
|
791
828
|
@uri = args[:uri] if args.key?(:uri)
|
792
829
|
end
|
793
830
|
end
|
@@ -808,12 +845,12 @@ module Google
|
|
808
845
|
# @return [String]
|
809
846
|
attr_accessor :id
|
810
847
|
|
811
|
-
# Deprecated. Use `id` field instead.
|
848
|
+
# Optional. Deprecated. Use `id` field instead.
|
812
849
|
# Corresponds to the JSON property `mentionId`
|
813
850
|
# @return [String]
|
814
851
|
attr_accessor :mention_id
|
815
852
|
|
816
|
-
# Text value in the document e.g. `1600 Amphitheatre Pkwy`.
|
853
|
+
# Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
|
817
854
|
# Corresponds to the JSON property `mentionText`
|
818
855
|
# @return [String]
|
819
856
|
attr_accessor :mention_text
|
@@ -1121,6 +1158,11 @@ module Google
|
|
1121
1158
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
|
1122
1159
|
attr_accessor :bounding_poly
|
1123
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
|
+
|
1124
1166
|
# Optional. Deprecated. Use PageRef.bounding_poly instead.
|
1125
1167
|
# Corresponds to the JSON property `layoutId`
|
1126
1168
|
# @return [String]
|
@@ -1144,6 +1186,7 @@ module Google
|
|
1144
1186
|
# Update properties of this object
|
1145
1187
|
def update!(**args)
|
1146
1188
|
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
1189
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1147
1190
|
@layout_id = args[:layout_id] if args.key?(:layout_id)
|
1148
1191
|
@layout_type = args[:layout_type] if args.key?(:layout_type)
|
1149
1192
|
@page = args[:page] if args.key?(:page)
|
@@ -1698,6 +1741,12 @@ module Google
|
|
1698
1741
|
# @return [Fixnum]
|
1699
1742
|
attr_accessor :id
|
1700
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
|
+
|
1701
1750
|
# The index of the [Document.revisions] identifying the parent revision.
|
1702
1751
|
# Corresponds to the JSON property `revision`
|
1703
1752
|
# @return [Fixnum]
|
@@ -1710,6 +1759,7 @@ module Google
|
|
1710
1759
|
# Update properties of this object
|
1711
1760
|
def update!(**args)
|
1712
1761
|
@id = args[:id] if args.key?(:id)
|
1762
|
+
@index = args[:index] if args.key?(:index)
|
1713
1763
|
@revision = args[:revision] if args.key?(:revision)
|
1714
1764
|
end
|
1715
1765
|
end
|
@@ -1832,98 +1882,98 @@ module Google
|
|
1832
1882
|
|
1833
1883
|
# Represents a color in the RGBA color space. This representation is designed
|
1834
1884
|
# for simplicity of conversion to/from color representations in various
|
1835
|
-
# languages over compactness
|
1836
|
-
# be trivially provided to the constructor of
|
1837
|
-
# also be trivially provided to UIColor's
|
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`
|
1838
1888
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1839
|
-
# CSS
|
1889
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
1840
1890
|
# information about the absolute color space that should be used to interpret
|
1841
1891
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
1842
|
-
# applications
|
1843
|
-
#
|
1844
|
-
#
|
1845
|
-
#
|
1846
|
-
#
|
1847
|
-
# protocolor.
|
1848
|
-
#
|
1849
|
-
#
|
1850
|
-
# float
|
1851
|
-
# float
|
1852
|
-
#
|
1853
|
-
#
|
1854
|
-
#
|
1855
|
-
#
|
1856
|
-
#
|
1857
|
-
#
|
1858
|
-
#
|
1859
|
-
#
|
1860
|
-
#
|
1861
|
-
#
|
1862
|
-
#
|
1863
|
-
#
|
1864
|
-
#
|
1865
|
-
#
|
1866
|
-
#
|
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;
|
1867
1917
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
1868
1918
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
1869
1919
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
1870
|
-
#
|
1920
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
1871
1921
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
1872
|
-
# ', alphaFrac, ')'].join(''); `; var
|
1873
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
1874
|
-
#
|
1875
|
-
#
|
1876
|
-
#
|
1877
|
-
#
|
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
|
+
# / ...
|
1878
1928
|
# Corresponds to the JSON property `backgroundColor`
|
1879
1929
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
1880
1930
|
attr_accessor :background_color
|
1881
1931
|
|
1882
1932
|
# Represents a color in the RGBA color space. This representation is designed
|
1883
1933
|
# for simplicity of conversion to/from color representations in various
|
1884
|
-
# languages over compactness
|
1885
|
-
# be trivially provided to the constructor of
|
1886
|
-
# also be trivially provided to UIColor's
|
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`
|
1887
1937
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1888
|
-
# CSS
|
1938
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
1889
1939
|
# information about the absolute color space that should be used to interpret
|
1890
1940
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
1891
|
-
# applications
|
1892
|
-
#
|
1893
|
-
#
|
1894
|
-
#
|
1895
|
-
#
|
1896
|
-
# protocolor.
|
1897
|
-
#
|
1898
|
-
#
|
1899
|
-
# float
|
1900
|
-
# float
|
1901
|
-
#
|
1902
|
-
#
|
1903
|
-
#
|
1904
|
-
#
|
1905
|
-
#
|
1906
|
-
#
|
1907
|
-
#
|
1908
|
-
#
|
1909
|
-
#
|
1910
|
-
#
|
1911
|
-
#
|
1912
|
-
#
|
1913
|
-
#
|
1914
|
-
#
|
1915
|
-
#
|
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;
|
1916
1966
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
1917
1967
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
1918
1968
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
1919
|
-
#
|
1969
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
1920
1970
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
1921
|
-
# ', alphaFrac, ')'].join(''); `; var
|
1922
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
1923
|
-
#
|
1924
|
-
#
|
1925
|
-
#
|
1926
|
-
#
|
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
|
+
# / ...
|
1927
1977
|
# Corresponds to the JSON property `color`
|
1928
1978
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
1929
1979
|
attr_accessor :color
|
@@ -2081,44 +2131,6 @@ module Google
|
|
2081
2131
|
end
|
2082
2132
|
end
|
2083
2133
|
|
2084
|
-
# A translation of the text segment.
|
2085
|
-
class GoogleCloudDocumentaiV1beta1DocumentTranslation
|
2086
|
-
include Google::Apis::Core::Hashable
|
2087
|
-
|
2088
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
2089
|
-
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
2090
|
-
# Corresponds to the JSON property `languageCode`
|
2091
|
-
# @return [String]
|
2092
|
-
attr_accessor :language_code
|
2093
|
-
|
2094
|
-
# The history of this annotation.
|
2095
|
-
# Corresponds to the JSON property `provenance`
|
2096
|
-
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
|
2097
|
-
attr_accessor :provenance
|
2098
|
-
|
2099
|
-
# Text reference indexing into the Document.text.
|
2100
|
-
# Corresponds to the JSON property `textAnchor`
|
2101
|
-
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
|
2102
|
-
attr_accessor :text_anchor
|
2103
|
-
|
2104
|
-
# Text translated into the target language.
|
2105
|
-
# Corresponds to the JSON property `translatedText`
|
2106
|
-
# @return [String]
|
2107
|
-
attr_accessor :translated_text
|
2108
|
-
|
2109
|
-
def initialize(**args)
|
2110
|
-
update!(**args)
|
2111
|
-
end
|
2112
|
-
|
2113
|
-
# Update properties of this object
|
2114
|
-
def update!(**args)
|
2115
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
2116
|
-
@provenance = args[:provenance] if args.key?(:provenance)
|
2117
|
-
@text_anchor = args[:text_anchor] if args.key?(:text_anchor)
|
2118
|
-
@translated_text = args[:translated_text] if args.key?(:translated_text)
|
2119
|
-
end
|
2120
|
-
end
|
2121
|
-
|
2122
2134
|
# The Google Cloud Storage location where the output file will be written to.
|
2123
2135
|
class GoogleCloudDocumentaiV1beta1GcsDestination
|
2124
2136
|
include Google::Apis::Core::Hashable
|
@@ -2195,7 +2207,7 @@ module Google
|
|
2195
2207
|
# @return [Float]
|
2196
2208
|
attr_accessor :x
|
2197
2209
|
|
2198
|
-
# Y coordinate.
|
2210
|
+
# Y coordinate (starts from the top of the image).
|
2199
2211
|
# Corresponds to the JSON property `y`
|
2200
2212
|
# @return [Float]
|
2201
2213
|
attr_accessor :y
|
@@ -2316,7 +2328,7 @@ module Google
|
|
2316
2328
|
# @return [Fixnum]
|
2317
2329
|
attr_accessor :x
|
2318
2330
|
|
2319
|
-
# Y coordinate.
|
2331
|
+
# Y coordinate (starts from the top of the image).
|
2320
2332
|
# Corresponds to the JSON property `y`
|
2321
2333
|
# @return [Fixnum]
|
2322
2334
|
attr_accessor :y
|
@@ -2424,9 +2436,9 @@ module Google
|
|
2424
2436
|
class GoogleCloudDocumentaiV1beta2Document
|
2425
2437
|
include Google::Apis::Core::Hashable
|
2426
2438
|
|
2427
|
-
# Inline document content, represented as a stream of bytes. Note: As
|
2428
|
-
# bytes` fields, protobuffers use a pure binary representation,
|
2429
|
-
# representations use base64.
|
2439
|
+
# Optional. Inline document content, represented as a stream of bytes. Note: As
|
2440
|
+
# with all `bytes` fields, protobuffers use a pure binary representation,
|
2441
|
+
# whereas JSON representations use base64.
|
2430
2442
|
# Corresponds to the JSON property `content`
|
2431
2443
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2432
2444
|
# @return [String]
|
@@ -2481,7 +2493,7 @@ module Google
|
|
2481
2493
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
|
2482
2494
|
attr_accessor :shard_info
|
2483
2495
|
|
2484
|
-
# UTF-8 encoded text in reading order from the document.
|
2496
|
+
# Optional. UTF-8 encoded text in reading order from the document.
|
2485
2497
|
# Corresponds to the JSON property `text`
|
2486
2498
|
# @return [String]
|
2487
2499
|
attr_accessor :text
|
@@ -2498,16 +2510,10 @@ module Google
|
|
2498
2510
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
|
2499
2511
|
attr_accessor :text_styles
|
2500
2512
|
|
2501
|
-
#
|
2502
|
-
#
|
2503
|
-
#
|
2504
|
-
#
|
2505
|
-
attr_accessor :translations
|
2506
|
-
|
2507
|
-
# Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
|
2508
|
-
# object_name`. Object versioning is not supported. See [Google Cloud Storage
|
2509
|
-
# Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
|
2510
|
-
# info.
|
2513
|
+
# Optional. Currently supports Google Cloud Storage URI of the form `gs://
|
2514
|
+
# bucket_name/object_name`. Object versioning is not supported. See [Google
|
2515
|
+
# Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
|
2516
|
+
# uris) for more info.
|
2511
2517
|
# Corresponds to the JSON property `uri`
|
2512
2518
|
# @return [String]
|
2513
2519
|
attr_accessor :uri
|
@@ -2530,7 +2536,6 @@ module Google
|
|
2530
2536
|
@text = args[:text] if args.key?(:text)
|
2531
2537
|
@text_changes = args[:text_changes] if args.key?(:text_changes)
|
2532
2538
|
@text_styles = args[:text_styles] if args.key?(:text_styles)
|
2533
|
-
@translations = args[:translations] if args.key?(:translations)
|
2534
2539
|
@uri = args[:uri] if args.key?(:uri)
|
2535
2540
|
end
|
2536
2541
|
end
|
@@ -2551,12 +2556,12 @@ module Google
|
|
2551
2556
|
# @return [String]
|
2552
2557
|
attr_accessor :id
|
2553
2558
|
|
2554
|
-
# Deprecated. Use `id` field instead.
|
2559
|
+
# Optional. Deprecated. Use `id` field instead.
|
2555
2560
|
# Corresponds to the JSON property `mentionId`
|
2556
2561
|
# @return [String]
|
2557
2562
|
attr_accessor :mention_id
|
2558
2563
|
|
2559
|
-
# Text value in the document e.g. `1600 Amphitheatre Pkwy`.
|
2564
|
+
# Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
|
2560
2565
|
# Corresponds to the JSON property `mentionText`
|
2561
2566
|
# @return [String]
|
2562
2567
|
attr_accessor :mention_text
|
@@ -2901,6 +2906,11 @@ module Google
|
|
2901
2906
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
|
2902
2907
|
attr_accessor :bounding_poly
|
2903
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
|
+
|
2904
2914
|
# Optional. Deprecated. Use PageRef.bounding_poly instead.
|
2905
2915
|
# Corresponds to the JSON property `layoutId`
|
2906
2916
|
# @return [String]
|
@@ -2924,6 +2934,7 @@ module Google
|
|
2924
2934
|
# Update properties of this object
|
2925
2935
|
def update!(**args)
|
2926
2936
|
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
2937
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2927
2938
|
@layout_id = args[:layout_id] if args.key?(:layout_id)
|
2928
2939
|
@layout_type = args[:layout_type] if args.key?(:layout_type)
|
2929
2940
|
@page = args[:page] if args.key?(:page)
|
@@ -3478,6 +3489,12 @@ module Google
|
|
3478
3489
|
# @return [Fixnum]
|
3479
3490
|
attr_accessor :id
|
3480
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
|
+
|
3481
3498
|
# The index of the [Document.revisions] identifying the parent revision.
|
3482
3499
|
# Corresponds to the JSON property `revision`
|
3483
3500
|
# @return [Fixnum]
|
@@ -3490,6 +3507,7 @@ module Google
|
|
3490
3507
|
# Update properties of this object
|
3491
3508
|
def update!(**args)
|
3492
3509
|
@id = args[:id] if args.key?(:id)
|
3510
|
+
@index = args[:index] if args.key?(:index)
|
3493
3511
|
@revision = args[:revision] if args.key?(:revision)
|
3494
3512
|
end
|
3495
3513
|
end
|
@@ -3612,98 +3630,98 @@ module Google
|
|
3612
3630
|
|
3613
3631
|
# Represents a color in the RGBA color space. This representation is designed
|
3614
3632
|
# for simplicity of conversion to/from color representations in various
|
3615
|
-
# languages over compactness
|
3616
|
-
# be trivially provided to the constructor of
|
3617
|
-
# also be trivially provided to UIColor's
|
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`
|
3618
3636
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
3619
|
-
# CSS
|
3637
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
3620
3638
|
# information about the absolute color space that should be used to interpret
|
3621
3639
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
3622
|
-
# applications
|
3623
|
-
#
|
3624
|
-
#
|
3625
|
-
#
|
3626
|
-
#
|
3627
|
-
# protocolor.
|
3628
|
-
#
|
3629
|
-
#
|
3630
|
-
# float
|
3631
|
-
# float
|
3632
|
-
#
|
3633
|
-
#
|
3634
|
-
#
|
3635
|
-
#
|
3636
|
-
#
|
3637
|
-
#
|
3638
|
-
#
|
3639
|
-
#
|
3640
|
-
#
|
3641
|
-
#
|
3642
|
-
#
|
3643
|
-
#
|
3644
|
-
#
|
3645
|
-
#
|
3646
|
-
#
|
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;
|
3647
3665
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
3648
3666
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
3649
3667
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
3650
|
-
#
|
3668
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
3651
3669
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
3652
|
-
# ', alphaFrac, ')'].join(''); `; var
|
3653
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
3654
|
-
#
|
3655
|
-
#
|
3656
|
-
#
|
3657
|
-
#
|
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
|
+
# / ...
|
3658
3676
|
# Corresponds to the JSON property `backgroundColor`
|
3659
3677
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
3660
3678
|
attr_accessor :background_color
|
3661
3679
|
|
3662
3680
|
# Represents a color in the RGBA color space. This representation is designed
|
3663
3681
|
# for simplicity of conversion to/from color representations in various
|
3664
|
-
# languages over compactness
|
3665
|
-
# be trivially provided to the constructor of
|
3666
|
-
# also be trivially provided to UIColor's
|
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`
|
3667
3685
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
3668
|
-
# CSS
|
3686
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
3669
3687
|
# information about the absolute color space that should be used to interpret
|
3670
3688
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
3671
|
-
# applications
|
3672
|
-
#
|
3673
|
-
#
|
3674
|
-
#
|
3675
|
-
#
|
3676
|
-
# protocolor.
|
3677
|
-
#
|
3678
|
-
#
|
3679
|
-
# float
|
3680
|
-
# float
|
3681
|
-
#
|
3682
|
-
#
|
3683
|
-
#
|
3684
|
-
#
|
3685
|
-
#
|
3686
|
-
#
|
3687
|
-
#
|
3688
|
-
#
|
3689
|
-
#
|
3690
|
-
#
|
3691
|
-
#
|
3692
|
-
#
|
3693
|
-
#
|
3694
|
-
#
|
3695
|
-
#
|
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;
|
3696
3714
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
3697
3715
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
3698
3716
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
3699
|
-
#
|
3717
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
3700
3718
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
3701
|
-
# ', alphaFrac, ')'].join(''); `; var
|
3702
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
3703
|
-
#
|
3704
|
-
#
|
3705
|
-
#
|
3706
|
-
#
|
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
|
+
# / ...
|
3707
3725
|
# Corresponds to the JSON property `color`
|
3708
3726
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
3709
3727
|
attr_accessor :color
|
@@ -3861,44 +3879,6 @@ module Google
|
|
3861
3879
|
end
|
3862
3880
|
end
|
3863
3881
|
|
3864
|
-
# A translation of the text segment.
|
3865
|
-
class GoogleCloudDocumentaiV1beta2DocumentTranslation
|
3866
|
-
include Google::Apis::Core::Hashable
|
3867
|
-
|
3868
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
3869
|
-
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
3870
|
-
# Corresponds to the JSON property `languageCode`
|
3871
|
-
# @return [String]
|
3872
|
-
attr_accessor :language_code
|
3873
|
-
|
3874
|
-
# The history of this annotation.
|
3875
|
-
# Corresponds to the JSON property `provenance`
|
3876
|
-
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
|
3877
|
-
attr_accessor :provenance
|
3878
|
-
|
3879
|
-
# Text reference indexing into the Document.text.
|
3880
|
-
# Corresponds to the JSON property `textAnchor`
|
3881
|
-
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
|
3882
|
-
attr_accessor :text_anchor
|
3883
|
-
|
3884
|
-
# Text translated into the target language.
|
3885
|
-
# Corresponds to the JSON property `translatedText`
|
3886
|
-
# @return [String]
|
3887
|
-
attr_accessor :translated_text
|
3888
|
-
|
3889
|
-
def initialize(**args)
|
3890
|
-
update!(**args)
|
3891
|
-
end
|
3892
|
-
|
3893
|
-
# Update properties of this object
|
3894
|
-
def update!(**args)
|
3895
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
3896
|
-
@provenance = args[:provenance] if args.key?(:provenance)
|
3897
|
-
@text_anchor = args[:text_anchor] if args.key?(:text_anchor)
|
3898
|
-
@translated_text = args[:translated_text] if args.key?(:translated_text)
|
3899
|
-
end
|
3900
|
-
end
|
3901
|
-
|
3902
3882
|
# Parameters to control entity extraction behavior.
|
3903
3883
|
class GoogleCloudDocumentaiV1beta2EntityExtractionParams
|
3904
3884
|
include Google::Apis::Core::Hashable
|
@@ -4075,7 +4055,7 @@ module Google
|
|
4075
4055
|
# @return [Float]
|
4076
4056
|
attr_accessor :x
|
4077
4057
|
|
4078
|
-
# Y coordinate.
|
4058
|
+
# Y coordinate (starts from the top of the image).
|
4079
4059
|
# Corresponds to the JSON property `y`
|
4080
4060
|
# @return [Float]
|
4081
4061
|
attr_accessor :y
|
@@ -4359,7 +4339,7 @@ module Google
|
|
4359
4339
|
# @return [Fixnum]
|
4360
4340
|
attr_accessor :x
|
4361
4341
|
|
4362
|
-
# Y coordinate.
|
4342
|
+
# Y coordinate (starts from the top of the image).
|
4363
4343
|
# Corresponds to the JSON property `y`
|
4364
4344
|
# @return [Fixnum]
|
4365
4345
|
attr_accessor :y
|
@@ -4741,61 +4721,60 @@ module Google
|
|
4741
4721
|
|
4742
4722
|
# Represents a color in the RGBA color space. This representation is designed
|
4743
4723
|
# for simplicity of conversion to/from color representations in various
|
4744
|
-
# languages over compactness
|
4745
|
-
# be trivially provided to the constructor of
|
4746
|
-
# also be trivially provided to UIColor's
|
4724
|
+
# languages over compactness. For example, the fields of this representation can
|
4725
|
+
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
4726
|
+
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
4747
4727
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
4748
|
-
# CSS
|
4728
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
4749
4729
|
# information about the absolute color space that should be used to interpret
|
4750
4730
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
4751
|
-
# applications
|
4752
|
-
#
|
4753
|
-
#
|
4754
|
-
#
|
4755
|
-
#
|
4756
|
-
# protocolor.
|
4757
|
-
#
|
4758
|
-
#
|
4759
|
-
# float
|
4760
|
-
# float
|
4761
|
-
#
|
4762
|
-
#
|
4763
|
-
#
|
4764
|
-
#
|
4765
|
-
#
|
4766
|
-
#
|
4767
|
-
#
|
4768
|
-
#
|
4769
|
-
#
|
4770
|
-
#
|
4771
|
-
#
|
4772
|
-
#
|
4773
|
-
#
|
4774
|
-
#
|
4775
|
-
#
|
4731
|
+
# applications should assume the sRGB color space. When color equality needs to
|
4732
|
+
# be decided, implementations, unless documented otherwise, treat two colors as
|
4733
|
+
# equal if all their red, green, blue, and alpha values each differ by at most
|
4734
|
+
# 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
|
4735
|
+
# awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
|
4736
|
+
# protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
|
4737
|
+
# getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
|
4738
|
+
# Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
|
4739
|
+
# float green = (float) color.getGreen(); float blue = (float) color.getBlue();
|
4740
|
+
# float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
|
4741
|
+
# setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
|
4742
|
+
# denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
|
4743
|
+
# setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
|
4744
|
+
# build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
|
4745
|
+
# . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
|
4746
|
+
# float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
|
4747
|
+
# alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
|
4748
|
+
# nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
|
4749
|
+
# green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
|
4750
|
+
# CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
|
4751
|
+
# blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
|
4752
|
+
# result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
|
4753
|
+
# = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
|
4754
|
+
# autorelease]; return result; ` // ... Example (JavaScript): // ... var
|
4755
|
+
# protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
4776
4756
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
4777
4757
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
4778
4758
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
4779
|
-
#
|
4759
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
4780
4760
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
4781
|
-
# ', alphaFrac, ')'].join(''); `; var
|
4782
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
4783
|
-
#
|
4784
|
-
#
|
4785
|
-
#
|
4786
|
-
#
|
4761
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
|
4762
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
|
4763
|
+
# = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
|
4764
|
+
# resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
|
4765
|
+
# push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
|
4766
|
+
# / ...
|
4787
4767
|
class GoogleTypeColor
|
4788
4768
|
include Google::Apis::Core::Hashable
|
4789
4769
|
|
4790
4770
|
# The fraction of this color that should be applied to the pixel. That is, the
|
4791
|
-
# final pixel color is defined by the equation: pixel color = alpha * (this
|
4792
|
-
# color) + (1.0 - alpha) * (background color) This means that a value of 1.0
|
4771
|
+
# final pixel color is defined by the equation: `pixel color = alpha * (this
|
4772
|
+
# color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
|
4793
4773
|
# corresponds to a solid color, whereas a value of 0.0 corresponds to a
|
4794
4774
|
# completely transparent color. This uses a wrapper message rather than a simple
|
4795
4775
|
# float scalar so that it is possible to distinguish between a default value and
|
4796
|
-
# the value being unset. If omitted, this color object is
|
4797
|
-
#
|
4798
|
-
# 0).
|
4776
|
+
# the value being unset. If omitted, this color object is rendered as a solid
|
4777
|
+
# color (as if the alpha value had been explicitly given a value of 1.0).
|
4799
4778
|
# Corresponds to the JSON property `alpha`
|
4800
4779
|
# @return [Float]
|
4801
4780
|
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.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210507"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,18 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
103
115
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
117
|
|
@@ -388,12 +400,6 @@ module Google
|
|
388
400
|
include Google::Apis::Core::JsonObjectSupport
|
389
401
|
end
|
390
402
|
|
391
|
-
class GoogleCloudDocumentaiV1beta1DocumentTranslation
|
392
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
-
|
394
|
-
include Google::Apis::Core::JsonObjectSupport
|
395
|
-
end
|
396
|
-
|
397
403
|
class GoogleCloudDocumentaiV1beta1GcsDestination
|
398
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
405
|
|
@@ -664,12 +670,6 @@ module Google
|
|
664
670
|
include Google::Apis::Core::JsonObjectSupport
|
665
671
|
end
|
666
672
|
|
667
|
-
class GoogleCloudDocumentaiV1beta2DocumentTranslation
|
668
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
669
|
-
|
670
|
-
include Google::Apis::Core::JsonObjectSupport
|
671
|
-
end
|
672
|
-
|
673
673
|
class GoogleCloudDocumentaiV1beta2EntityExtractionParams
|
674
674
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
675
675
|
|
@@ -955,6 +955,20 @@ module Google
|
|
955
955
|
end
|
956
956
|
end
|
957
957
|
|
958
|
+
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
959
|
+
# @private
|
960
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
961
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
|
962
|
+
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
966
|
+
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse
|
967
|
+
# @private
|
968
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
969
|
+
end
|
970
|
+
end
|
971
|
+
|
958
972
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
|
959
973
|
# @private
|
960
974
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -970,8 +984,10 @@ module Google
|
|
970
984
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
|
971
985
|
# @private
|
972
986
|
class Representation < Google::Apis::Core::JsonRepresentation
|
987
|
+
property :dataset_error_count, as: 'datasetErrorCount'
|
973
988
|
collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
|
974
989
|
|
990
|
+
property :document_error_count, as: 'documentErrorCount'
|
975
991
|
collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
|
976
992
|
|
977
993
|
end
|
@@ -1118,8 +1134,6 @@ module Google
|
|
1118
1134
|
|
1119
1135
|
collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle::Representation
|
1120
1136
|
|
1121
|
-
collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation::Representation
|
1122
|
-
|
1123
1137
|
property :uri, as: 'uri'
|
1124
1138
|
end
|
1125
1139
|
end
|
@@ -1215,6 +1229,7 @@ module Google
|
|
1215
1229
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1216
1230
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation
|
1217
1231
|
|
1232
|
+
property :confidence, as: 'confidence'
|
1218
1233
|
property :layout_id, as: 'layoutId'
|
1219
1234
|
property :layout_type, as: 'layoutType'
|
1220
1235
|
property :page, :numeric_string => true, as: 'page'
|
@@ -1402,6 +1417,7 @@ module Google
|
|
1402
1417
|
# @private
|
1403
1418
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1404
1419
|
property :id, as: 'id'
|
1420
|
+
property :index, as: 'index'
|
1405
1421
|
property :revision, as: 'revision'
|
1406
1422
|
end
|
1407
1423
|
end
|
@@ -1489,18 +1505,6 @@ module Google
|
|
1489
1505
|
end
|
1490
1506
|
end
|
1491
1507
|
|
1492
|
-
class GoogleCloudDocumentaiV1beta1DocumentTranslation
|
1493
|
-
# @private
|
1494
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1495
|
-
property :language_code, as: 'languageCode'
|
1496
|
-
collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
1497
|
-
|
1498
|
-
property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation
|
1499
|
-
|
1500
|
-
property :translated_text, as: 'translatedText'
|
1501
|
-
end
|
1502
|
-
end
|
1503
|
-
|
1504
1508
|
class GoogleCloudDocumentaiV1beta1GcsDestination
|
1505
1509
|
# @private
|
1506
1510
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1626,8 +1630,6 @@ module Google
|
|
1626
1630
|
|
1627
1631
|
collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle::Representation
|
1628
1632
|
|
1629
|
-
collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation::Representation
|
1630
|
-
|
1631
1633
|
property :uri, as: 'uri'
|
1632
1634
|
end
|
1633
1635
|
end
|
@@ -1732,6 +1734,7 @@ module Google
|
|
1732
1734
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1733
1735
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation
|
1734
1736
|
|
1737
|
+
property :confidence, as: 'confidence'
|
1735
1738
|
property :layout_id, as: 'layoutId'
|
1736
1739
|
property :layout_type, as: 'layoutType'
|
1737
1740
|
property :page, :numeric_string => true, as: 'page'
|
@@ -1919,6 +1922,7 @@ module Google
|
|
1919
1922
|
# @private
|
1920
1923
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1921
1924
|
property :id, as: 'id'
|
1925
|
+
property :index, as: 'index'
|
1922
1926
|
property :revision, as: 'revision'
|
1923
1927
|
end
|
1924
1928
|
end
|
@@ -2006,18 +2010,6 @@ module Google
|
|
2006
2010
|
end
|
2007
2011
|
end
|
2008
2012
|
|
2009
|
-
class GoogleCloudDocumentaiV1beta2DocumentTranslation
|
2010
|
-
# @private
|
2011
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2012
|
-
property :language_code, as: 'languageCode'
|
2013
|
-
collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2014
|
-
|
2015
|
-
property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation
|
2016
|
-
|
2017
|
-
property :translated_text, as: 'translatedText'
|
2018
|
-
end
|
2019
|
-
end
|
2020
|
-
|
2021
2013
|
class GoogleCloudDocumentaiV1beta2EntityExtractionParams
|
2022
2014
|
# @private
|
2023
2015
|
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.
|
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-
|
11
|
+
date: 2021-05-18 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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.9.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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
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
|