google-apis-documentai_v1beta2 0.5.0 → 0.6.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: 922068c13b3ef847b4054bde944fddc2533f38ddd91ebd7dd4d4ec7779dac1b3
4
- data.tar.gz: 246833a73dbcfdfb3af21343e6b5c38c58b4d04f15ad336a82827264e68cb272
3
+ metadata.gz: 0a6867f3d5e5f32a1fa933ec0bac6ce6698b2e3447cca0c7e585e5f8a2e40aff
4
+ data.tar.gz: 4d8ef32531afab339eb91c30984b86e7e9a7d2462228cb83d05771d31ba2e02b
5
5
  SHA512:
6
- metadata.gz: c7c581c2ff04ccc8e09db783635c4b473e69ba009595fe350565b31fbab240f5a639670d48b9b3c456e083ad720b9b3682a1212bd69f7ec1cf5ce62cab02d18c
7
- data.tar.gz: 70d529e6cc8bb1222d9fc65094b2c980893a7ce336cbf2ecd75473f322f4ef682ca7712f853de8bc3606df98150b03094fb54e4d5b99bf4bea8d935b48ace9e7
6
+ metadata.gz: 694b342cf80e1d162c0a5b2b5a9c10342c77391303091ea5668f15566d790d92d45a92219eaff18dbf23ca617f537e050144c9d64338c0de2ed7f130c42a370b
7
+ data.tar.gz: b71e60079085a90ed4310410d06bc6b73c28f7f58e55aba579cf15751a9863619b32076f21318937da031483736f0f810c83f2b66f28b12b77aa3aae59735b24
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.6.0 (2021-03-09)
4
+
5
+ * Regenerated from discovery document revision 20210308
6
+ * Regenerated using generator version 0.2.0
7
+
3
8
  ### v0.5.0 (2021-03-04)
4
9
 
5
10
  * Regenerated from discovery document revision 20210226
@@ -271,6 +271,25 @@ module Google
271
271
  end
272
272
  end
273
273
 
274
+ # The long running operation metadata for SampleDataset.
275
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # The common metadata for long running operations.
279
+ # Corresponds to the JSON property `commonMetadata`
280
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
281
+ attr_accessor :common_metadata
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
290
+ end
291
+ end
292
+
274
293
  # The long running operation metadata for set default processor version method.
275
294
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
276
295
  include Google::Apis::Core::Hashable
@@ -719,9 +738,9 @@ module Google
719
738
  class GoogleCloudDocumentaiV1beta1Document
720
739
  include Google::Apis::Core::Hashable
721
740
 
722
- # Inline document content, represented as a stream of bytes. Note: As with all `
723
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
724
- # representations use base64.
741
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
742
+ # with all `bytes` fields, protobuffers use a pure binary representation,
743
+ # whereas JSON representations use base64.
725
744
  # Corresponds to the JSON property `content`
726
745
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
727
746
  # @return [String]
@@ -771,7 +790,7 @@ module Google
771
790
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentShardInfo]
772
791
  attr_accessor :shard_info
773
792
 
774
- # UTF-8 encoded text in reading order from the document.
793
+ # Optional. UTF-8 encoded text in reading order from the document.
775
794
  # Corresponds to the JSON property `text`
776
795
  # @return [String]
777
796
  attr_accessor :text
@@ -788,16 +807,10 @@ module Google
788
807
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
789
808
  attr_accessor :text_styles
790
809
 
791
- # A list of translations on Document.text. For document shards, translations in
792
- # this list may cross shard boundaries.
793
- # Corresponds to the JSON property `translations`
794
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation>]
795
- attr_accessor :translations
796
-
797
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
798
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
799
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
800
- # info.
810
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
811
+ # bucket_name/object_name`. Object versioning is not supported. See [Google
812
+ # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
813
+ # uris) for more info.
801
814
  # Corresponds to the JSON property `uri`
802
815
  # @return [String]
803
816
  attr_accessor :uri
@@ -819,7 +832,6 @@ module Google
819
832
  @text = args[:text] if args.key?(:text)
820
833
  @text_changes = args[:text_changes] if args.key?(:text_changes)
821
834
  @text_styles = args[:text_styles] if args.key?(:text_styles)
822
- @translations = args[:translations] if args.key?(:translations)
823
835
  @uri = args[:uri] if args.key?(:uri)
824
836
  end
825
837
  end
@@ -840,12 +852,12 @@ module Google
840
852
  # @return [String]
841
853
  attr_accessor :id
842
854
 
843
- # Deprecated. Use `id` field instead.
855
+ # Optional. Deprecated. Use `id` field instead.
844
856
  # Corresponds to the JSON property `mentionId`
845
857
  # @return [String]
846
858
  attr_accessor :mention_id
847
859
 
848
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
860
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
849
861
  # Corresponds to the JSON property `mentionText`
850
862
  # @return [String]
851
863
  attr_accessor :mention_text
@@ -2113,44 +2125,6 @@ module Google
2113
2125
  end
2114
2126
  end
2115
2127
 
2116
- # A translation of the text segment.
2117
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
2118
- include Google::Apis::Core::Hashable
2119
-
2120
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2121
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2122
- # Corresponds to the JSON property `languageCode`
2123
- # @return [String]
2124
- attr_accessor :language_code
2125
-
2126
- # The history of this annotation.
2127
- # Corresponds to the JSON property `provenance`
2128
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
2129
- attr_accessor :provenance
2130
-
2131
- # Text reference indexing into the Document.text.
2132
- # Corresponds to the JSON property `textAnchor`
2133
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
2134
- attr_accessor :text_anchor
2135
-
2136
- # Text translated into the target language.
2137
- # Corresponds to the JSON property `translatedText`
2138
- # @return [String]
2139
- attr_accessor :translated_text
2140
-
2141
- def initialize(**args)
2142
- update!(**args)
2143
- end
2144
-
2145
- # Update properties of this object
2146
- def update!(**args)
2147
- @language_code = args[:language_code] if args.key?(:language_code)
2148
- @provenance = args[:provenance] if args.key?(:provenance)
2149
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
2150
- @translated_text = args[:translated_text] if args.key?(:translated_text)
2151
- end
2152
- end
2153
-
2154
2128
  # The Google Cloud Storage location where the output file will be written to.
2155
2129
  class GoogleCloudDocumentaiV1beta1GcsDestination
2156
2130
  include Google::Apis::Core::Hashable
@@ -2456,9 +2430,9 @@ module Google
2456
2430
  class GoogleCloudDocumentaiV1beta2Document
2457
2431
  include Google::Apis::Core::Hashable
2458
2432
 
2459
- # Inline document content, represented as a stream of bytes. Note: As with all `
2460
- # bytes` fields, protobuffers use a pure binary representation, whereas JSON
2461
- # representations use base64.
2433
+ # Optional. Inline document content, represented as a stream of bytes. Note: As
2434
+ # with all `bytes` fields, protobuffers use a pure binary representation,
2435
+ # whereas JSON representations use base64.
2462
2436
  # Corresponds to the JSON property `content`
2463
2437
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2464
2438
  # @return [String]
@@ -2513,7 +2487,7 @@ module Google
2513
2487
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
2514
2488
  attr_accessor :shard_info
2515
2489
 
2516
- # UTF-8 encoded text in reading order from the document.
2490
+ # Optional. UTF-8 encoded text in reading order from the document.
2517
2491
  # Corresponds to the JSON property `text`
2518
2492
  # @return [String]
2519
2493
  attr_accessor :text
@@ -2530,16 +2504,10 @@ module Google
2530
2504
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
2531
2505
  attr_accessor :text_styles
2532
2506
 
2533
- # A list of translations on Document.text. For document shards, translations in
2534
- # this list may cross shard boundaries.
2535
- # Corresponds to the JSON property `translations`
2536
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation>]
2537
- attr_accessor :translations
2538
-
2539
- # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
2540
- # object_name`. Object versioning is not supported. See [Google Cloud Storage
2541
- # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
2542
- # info.
2507
+ # Optional. Currently supports Google Cloud Storage URI of the form `gs://
2508
+ # bucket_name/object_name`. Object versioning is not supported. See [Google
2509
+ # Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-
2510
+ # uris) for more info.
2543
2511
  # Corresponds to the JSON property `uri`
2544
2512
  # @return [String]
2545
2513
  attr_accessor :uri
@@ -2562,7 +2530,6 @@ module Google
2562
2530
  @text = args[:text] if args.key?(:text)
2563
2531
  @text_changes = args[:text_changes] if args.key?(:text_changes)
2564
2532
  @text_styles = args[:text_styles] if args.key?(:text_styles)
2565
- @translations = args[:translations] if args.key?(:translations)
2566
2533
  @uri = args[:uri] if args.key?(:uri)
2567
2534
  end
2568
2535
  end
@@ -2583,12 +2550,12 @@ module Google
2583
2550
  # @return [String]
2584
2551
  attr_accessor :id
2585
2552
 
2586
- # Deprecated. Use `id` field instead.
2553
+ # Optional. Deprecated. Use `id` field instead.
2587
2554
  # Corresponds to the JSON property `mentionId`
2588
2555
  # @return [String]
2589
2556
  attr_accessor :mention_id
2590
2557
 
2591
- # Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2558
+ # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
2592
2559
  # Corresponds to the JSON property `mentionText`
2593
2560
  # @return [String]
2594
2561
  attr_accessor :mention_text
@@ -3893,44 +3860,6 @@ module Google
3893
3860
  end
3894
3861
  end
3895
3862
 
3896
- # A translation of the text segment.
3897
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
3898
- include Google::Apis::Core::Hashable
3899
-
3900
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
3901
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3902
- # Corresponds to the JSON property `languageCode`
3903
- # @return [String]
3904
- attr_accessor :language_code
3905
-
3906
- # The history of this annotation.
3907
- # Corresponds to the JSON property `provenance`
3908
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
3909
- attr_accessor :provenance
3910
-
3911
- # Text reference indexing into the Document.text.
3912
- # Corresponds to the JSON property `textAnchor`
3913
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
3914
- attr_accessor :text_anchor
3915
-
3916
- # Text translated into the target language.
3917
- # Corresponds to the JSON property `translatedText`
3918
- # @return [String]
3919
- attr_accessor :translated_text
3920
-
3921
- def initialize(**args)
3922
- update!(**args)
3923
- end
3924
-
3925
- # Update properties of this object
3926
- def update!(**args)
3927
- @language_code = args[:language_code] if args.key?(:language_code)
3928
- @provenance = args[:provenance] if args.key?(:provenance)
3929
- @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
3930
- @translated_text = args[:translated_text] if args.key?(:translated_text)
3931
- end
3932
- end
3933
-
3934
3863
  # Parameters to control entity extraction behavior.
3935
3864
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
3936
3865
  include Google::Apis::Core::Hashable
@@ -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.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210226"
25
+ REVISION = "20210308"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ 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
+
103
109
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -400,12 +406,6 @@ module Google
400
406
  include Google::Apis::Core::JsonObjectSupport
401
407
  end
402
408
 
403
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
404
- class Representation < Google::Apis::Core::JsonRepresentation; end
405
-
406
- include Google::Apis::Core::JsonObjectSupport
407
- end
408
-
409
409
  class GoogleCloudDocumentaiV1beta1GcsDestination
410
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
411
 
@@ -676,12 +676,6 @@ module Google
676
676
  include Google::Apis::Core::JsonObjectSupport
677
677
  end
678
678
 
679
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
680
- class Representation < Google::Apis::Core::JsonRepresentation; end
681
-
682
- include Google::Apis::Core::JsonObjectSupport
683
- end
684
-
685
679
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
686
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
687
681
 
@@ -967,6 +961,14 @@ module Google
967
961
  end
968
962
  end
969
963
 
964
+ class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
965
+ # @private
966
+ class Representation < Google::Apis::Core::JsonRepresentation
967
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
968
+
969
+ end
970
+ end
971
+
970
972
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
971
973
  # @private
972
974
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1144,8 +1146,6 @@ module Google
1144
1146
 
1145
1147
  collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle::Representation
1146
1148
 
1147
- collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation::Representation
1148
-
1149
1149
  property :uri, as: 'uri'
1150
1150
  end
1151
1151
  end
@@ -1515,18 +1515,6 @@ module Google
1515
1515
  end
1516
1516
  end
1517
1517
 
1518
- class GoogleCloudDocumentaiV1beta1DocumentTranslation
1519
- # @private
1520
- class Representation < Google::Apis::Core::JsonRepresentation
1521
- property :language_code, as: 'languageCode'
1522
- collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
1523
-
1524
- property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation
1525
-
1526
- property :translated_text, as: 'translatedText'
1527
- end
1528
- end
1529
-
1530
1518
  class GoogleCloudDocumentaiV1beta1GcsDestination
1531
1519
  # @private
1532
1520
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1652,8 +1640,6 @@ module Google
1652
1640
 
1653
1641
  collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle::Representation
1654
1642
 
1655
- collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation::Representation
1656
-
1657
1643
  property :uri, as: 'uri'
1658
1644
  end
1659
1645
  end
@@ -2032,18 +2018,6 @@ module Google
2032
2018
  end
2033
2019
  end
2034
2020
 
2035
- class GoogleCloudDocumentaiV1beta2DocumentTranslation
2036
- # @private
2037
- class Representation < Google::Apis::Core::JsonRepresentation
2038
- property :language_code, as: 'languageCode'
2039
- collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
2040
-
2041
- property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation
2042
-
2043
- property :translated_text, as: 'translatedText'
2044
- end
2045
- end
2046
-
2047
2021
  class GoogleCloudDocumentaiV1beta2EntityExtractionParams
2048
2022
  # @private
2049
2023
  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.5.0
4
+ version: 0.6.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-08 00:00:00.000000000 Z
11
+ date: 2021-03-15 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.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.6.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: []