google-apis-documentai_v1beta3 0.113.0 → 0.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a0d567d8996a938ff50798bb9ee38f7a0e269f84ae7132172ee17ccda1f3b85
4
- data.tar.gz: 8fbc0efc1533f0f9867d0bb6d32b82525cb9d03d9709f7d388ed5845dbd6555a
3
+ metadata.gz: ac3a0af57274749ac43e33b08ce11511c2b5727d48da4b0ec1846622bb47c7b8
4
+ data.tar.gz: '018205408e9a697748c0b8aab27eeefe24552e2cbf463c973917d0ddd1804999'
5
5
  SHA512:
6
- metadata.gz: 05b5c7bbee00bbb4cad6466994d8f078c6947ea2abad717e39d42a221004a78080f99441a31ec46fba7e09da9ff7c4a19b20b5cca410bffa7228d29d301279cb
7
- data.tar.gz: 7001a1b95300827da340a96e18c9e500273fd9f4da1051211ab2dd437ba2dd182f3df2d3645433897263f28977bd02b54d2da52f37822379214c86555a2c3247
6
+ metadata.gz: 8ba865af4b7401defc545849ada170f5cabc543b1f37c4b0aafadd845bed74198ce23a04a727d4d972d88c727fb612d95c3b068be6b6bb866f1a5d245399c358
7
+ data.tar.gz: da8980c0eb9d88eb3180a2e390c4be7284ea3b207bee1913a84daee30e2df9b842ee6ee3b4389611fbc347ceb1dc3620745b4a88653053c3df2e620a8c031ce7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.114.0 (2025-10-12)
4
+
5
+ * Regenerated from discovery document revision 20251007
6
+
3
7
  ### v0.113.0 (2025-10-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20250929
@@ -3155,11 +3155,32 @@ module Google
3155
3155
  # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity>]
3156
3156
  attr_accessor :entities
3157
3157
 
3158
+ # The entity revision id that `document.entities` field is based on. If this
3159
+ # field is set and `entities_revisions` is not empty, the entities in `document.
3160
+ # entities` field are the entities in the entity revision with this id and `
3161
+ # document.entity_validation_output` field is the `entity_validation_output`
3162
+ # field in this entity revision.
3163
+ # Corresponds to the JSON property `entitiesRevisionId`
3164
+ # @return [String]
3165
+ attr_accessor :entities_revision_id
3166
+
3167
+ # A list of entity revisions. The entity revisions are appended to the document
3168
+ # in the processing order. This field can be used for comparing the entity
3169
+ # extraction results at different stages of the processing.
3170
+ # Corresponds to the JSON property `entitiesRevisions`
3171
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision>]
3172
+ attr_accessor :entities_revisions
3173
+
3158
3174
  # Placeholder. Relationship among Document.entities.
3159
3175
  # Corresponds to the JSON property `entityRelations`
3160
3176
  # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityRelation>]
3161
3177
  attr_accessor :entity_relations
3162
3178
 
3179
+ # The output of the validation given the document and the validation rules.
3180
+ # Corresponds to the JSON property `entityValidationOutput`
3181
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput]
3182
+ attr_accessor :entity_validation_output
3183
+
3163
3184
  # The `Status` type defines a logical error model that is suitable for different
3164
3185
  # programming environments, including REST APIs and RPC APIs. It is used by [
3165
3186
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -3229,7 +3250,10 @@ module Google
3229
3250
  @docid = args[:docid] if args.key?(:docid)
3230
3251
  @document_layout = args[:document_layout] if args.key?(:document_layout)
3231
3252
  @entities = args[:entities] if args.key?(:entities)
3253
+ @entities_revision_id = args[:entities_revision_id] if args.key?(:entities_revision_id)
3254
+ @entities_revisions = args[:entities_revisions] if args.key?(:entities_revisions)
3232
3255
  @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
3256
+ @entity_validation_output = args[:entity_validation_output] if args.key?(:entity_validation_output)
3233
3257
  @error = args[:error] if args.key?(:error)
3234
3258
  @mime_type = args[:mime_type] if args.key?(:mime_type)
3235
3259
  @pages = args[:pages] if args.key?(:pages)
@@ -3858,6 +3882,37 @@ module Google
3858
3882
  end
3859
3883
  end
3860
3884
 
3885
+ # Entity revision.
3886
+ class GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision
3887
+ include Google::Apis::Core::Hashable
3888
+
3889
+ # The entities in this revision.
3890
+ # Corresponds to the JSON property `entities`
3891
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity>]
3892
+ attr_accessor :entities
3893
+
3894
+ # The output of the validation given the document and the validation rules.
3895
+ # Corresponds to the JSON property `entityValidationOutput`
3896
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput]
3897
+ attr_accessor :entity_validation_output
3898
+
3899
+ # The revision id.
3900
+ # Corresponds to the JSON property `revisionId`
3901
+ # @return [String]
3902
+ attr_accessor :revision_id
3903
+
3904
+ def initialize(**args)
3905
+ update!(**args)
3906
+ end
3907
+
3908
+ # Update properties of this object
3909
+ def update!(**args)
3910
+ @entities = args[:entities] if args.key?(:entities)
3911
+ @entity_validation_output = args[:entity_validation_output] if args.key?(:entity_validation_output)
3912
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
3913
+ end
3914
+ end
3915
+
3861
3916
  # An entity that could be a phrase in the text or a property that belongs to the
3862
3917
  # document. It is a known entity type, such as a person, an organization, or
3863
3918
  # location.
@@ -4088,6 +4143,70 @@ module Google
4088
4143
  end
4089
4144
  end
4090
4145
 
4146
+ # The output of the validation given the document and the validation rules.
4147
+ class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput
4148
+ include Google::Apis::Core::Hashable
4149
+
4150
+ # The overall result of the validation, true if all applicable rules are valid.
4151
+ # Corresponds to the JSON property `passAllRules`
4152
+ # @return [Boolean]
4153
+ attr_accessor :pass_all_rules
4154
+ alias_method :pass_all_rules?, :pass_all_rules
4155
+
4156
+ # The result of each validation rule.
4157
+ # Corresponds to the JSON property `validationResults`
4158
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult>]
4159
+ attr_accessor :validation_results
4160
+
4161
+ def initialize(**args)
4162
+ update!(**args)
4163
+ end
4164
+
4165
+ # Update properties of this object
4166
+ def update!(**args)
4167
+ @pass_all_rules = args[:pass_all_rules] if args.key?(:pass_all_rules)
4168
+ @validation_results = args[:validation_results] if args.key?(:validation_results)
4169
+ end
4170
+ end
4171
+
4172
+ # Validation result for a single validation rule.
4173
+ class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult
4174
+ include Google::Apis::Core::Hashable
4175
+
4176
+ # The description of the validation rule.
4177
+ # Corresponds to the JSON property `ruleDescription`
4178
+ # @return [String]
4179
+ attr_accessor :rule_description
4180
+
4181
+ # The name of the validation rule.
4182
+ # Corresponds to the JSON property `ruleName`
4183
+ # @return [String]
4184
+ attr_accessor :rule_name
4185
+
4186
+ # The detailed information of the running the validation process using the
4187
+ # entity from the document based on the validation rule.
4188
+ # Corresponds to the JSON property `validationDetails`
4189
+ # @return [String]
4190
+ attr_accessor :validation_details
4191
+
4192
+ # The result of the validation rule.
4193
+ # Corresponds to the JSON property `validationResultType`
4194
+ # @return [String]
4195
+ attr_accessor :validation_result_type
4196
+
4197
+ def initialize(**args)
4198
+ update!(**args)
4199
+ end
4200
+
4201
+ # Update properties of this object
4202
+ def update!(**args)
4203
+ @rule_description = args[:rule_description] if args.key?(:rule_description)
4204
+ @rule_name = args[:rule_name] if args.key?(:rule_name)
4205
+ @validation_details = args[:validation_details] if args.key?(:validation_details)
4206
+ @validation_result_type = args[:validation_result_type] if args.key?(:validation_result_type)
4207
+ end
4208
+ end
4209
+
4091
4210
  # Document Identifier.
4092
4211
  class GoogleCloudDocumentaiV1beta3DocumentId
4093
4212
  include Google::Apis::Core::Hashable
@@ -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.113.0"
19
+ GEM_VERSION = "0.114.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250929"
25
+ REVISION = "20251007"
26
26
  end
27
27
  end
28
28
  end
@@ -886,6 +886,12 @@ module Google
886
886
  include Google::Apis::Core::JsonObjectSupport
887
887
  end
888
888
 
889
+ class GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision
890
+ class Representation < Google::Apis::Core::JsonRepresentation; end
891
+
892
+ include Google::Apis::Core::JsonObjectSupport
893
+ end
894
+
889
895
  class GoogleCloudDocumentaiV1beta3DocumentEntity
890
896
  class Representation < Google::Apis::Core::JsonRepresentation; end
891
897
 
@@ -904,6 +910,18 @@ module Google
904
910
  include Google::Apis::Core::JsonObjectSupport
905
911
  end
906
912
 
913
+ class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput
914
+ class Representation < Google::Apis::Core::JsonRepresentation; end
915
+
916
+ include Google::Apis::Core::JsonObjectSupport
917
+ end
918
+
919
+ class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult
920
+ class Representation < Google::Apis::Core::JsonRepresentation; end
921
+
922
+ include Google::Apis::Core::JsonObjectSupport
923
+ end
924
+
907
925
  class GoogleCloudDocumentaiV1beta3DocumentId
908
926
  class Representation < Google::Apis::Core::JsonRepresentation; end
909
927
 
@@ -2812,8 +2830,13 @@ module Google
2812
2830
 
2813
2831
  collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity::Representation
2814
2832
 
2833
+ property :entities_revision_id, as: 'entitiesRevisionId'
2834
+ collection :entities_revisions, as: 'entitiesRevisions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision::Representation
2835
+
2815
2836
  collection :entity_relations, as: 'entityRelations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityRelation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityRelation::Representation
2816
2837
 
2838
+ property :entity_validation_output, as: 'entityValidationOutput', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput::Representation
2839
+
2817
2840
  property :error, as: 'error', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
2818
2841
 
2819
2842
  property :mime_type, as: 'mimeType'
@@ -3036,6 +3059,17 @@ module Google
3036
3059
  end
3037
3060
  end
3038
3061
 
3062
+ class GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision
3063
+ # @private
3064
+ class Representation < Google::Apis::Core::JsonRepresentation
3065
+ collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity::Representation
3066
+
3067
+ property :entity_validation_output, as: 'entityValidationOutput', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput::Representation
3068
+
3069
+ property :revision_id, as: 'revisionId'
3070
+ end
3071
+ end
3072
+
3039
3073
  class GoogleCloudDocumentaiV1beta3DocumentEntity
3040
3074
  # @private
3041
3075
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3087,6 +3121,25 @@ module Google
3087
3121
  end
3088
3122
  end
3089
3123
 
3124
+ class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput
3125
+ # @private
3126
+ class Representation < Google::Apis::Core::JsonRepresentation
3127
+ property :pass_all_rules, as: 'passAllRules'
3128
+ collection :validation_results, as: 'validationResults', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult::Representation
3129
+
3130
+ end
3131
+ end
3132
+
3133
+ class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult
3134
+ # @private
3135
+ class Representation < Google::Apis::Core::JsonRepresentation
3136
+ property :rule_description, as: 'ruleDescription'
3137
+ property :rule_name, as: 'ruleName'
3138
+ property :validation_details, as: 'validationDetails'
3139
+ property :validation_result_type, as: 'validationResultType'
3140
+ end
3141
+ end
3142
+
3090
3143
  class GoogleCloudDocumentaiV1beta3DocumentId
3091
3144
  # @private
3092
3145
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.113.0
4
+ version: 0.114.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.113.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.114.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
62
62
  rdoc_options: []
63
63
  require_paths: