google-apis-documentai_v1 0.15.0 → 0.16.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: 78235f12579d80ad89c1dcb4bea8fb8045c8907803ae8efcdbb6490b9d82bffc
4
- data.tar.gz: f912f29bda80336c6d9f0e07f62be5ffe446231a098247d2096ce7057e7eb064
3
+ metadata.gz: f264ac28085a288888d36a8d842159ee449ca745e7ae692cadb17da9d2c636c7
4
+ data.tar.gz: 3bb077e571a3532ecbd1b32bf9c6fd3d4afb4d2414c38fe18f36ac3610e612cb
5
5
  SHA512:
6
- metadata.gz: 74954f183bbeaa624a3a04bd97912bcc45642b03ef049ad32b62ab7b2ab465b55f9d627df70b24c7c91a9868cb43441e876ea0c470e4a8145396ea74527431f4
7
- data.tar.gz: 87ac868fcd0854168d1de9eda3cdebc06a8dcd1b3eeb5b23ae641894486220dde1804002c32479073e2affb10782af650d4fec0f7e026eb4d0b62d0689b58f62
6
+ metadata.gz: 68abb0dd167efd16904758a8a23f121e2ff67ccdefc9376df1358a4ec9e725e04142196d7859e297572e1c690725efc8260626a7e214bf9b06d7608eaf09796b
7
+ data.tar.gz: 7671ca8d23a377ff654e7f22cdafb1fda84187267ac332a9c8eda351b01460ab64e739931d35961d54f5e51700d2436316f0a64c0604a7ad86a03caff905abf4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.16.0 (2021-09-15)
4
+
5
+ * Regenerated from discovery document revision 20210911
6
+
3
7
  ### v0.15.0 (2021-09-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20210907
@@ -901,6 +901,19 @@ module Google
901
901
  end
902
902
  end
903
903
 
904
+ # Request message for the deploy processor version method.
905
+ class GoogleCloudDocumentaiV1DeployProcessorVersionRequest
906
+ include Google::Apis::Core::Hashable
907
+
908
+ def initialize(**args)
909
+ update!(**args)
910
+ end
911
+
912
+ # Update properties of this object
913
+ def update!(**args)
914
+ end
915
+ end
916
+
904
917
  # Response message for the deploy processor version method.
905
918
  class GoogleCloudDocumentaiV1DeployProcessorVersionResponse
906
919
  include Google::Apis::Core::Hashable
@@ -933,6 +946,19 @@ module Google
933
946
  end
934
947
  end
935
948
 
949
+ # Request message for the disable processor method.
950
+ class GoogleCloudDocumentaiV1DisableProcessorRequest
951
+ include Google::Apis::Core::Hashable
952
+
953
+ def initialize(**args)
954
+ update!(**args)
955
+ end
956
+
957
+ # Update properties of this object
958
+ def update!(**args)
959
+ end
960
+ end
961
+
936
962
  # Response message for the disable processor method. Intentionally empty proto
937
963
  # for adding fields in future.
938
964
  class GoogleCloudDocumentaiV1DisableProcessorResponse
@@ -2460,6 +2486,19 @@ module Google
2460
2486
  end
2461
2487
  end
2462
2488
 
2489
+ # Request message for the enable processor method.
2490
+ class GoogleCloudDocumentaiV1EnableProcessorRequest
2491
+ include Google::Apis::Core::Hashable
2492
+
2493
+ def initialize(**args)
2494
+ update!(**args)
2495
+ end
2496
+
2497
+ # Update properties of this object
2498
+ def update!(**args)
2499
+ end
2500
+ end
2501
+
2463
2502
  # Response message for the enable processor method. Intentionally empty proto
2464
2503
  # for adding fields in future.
2465
2504
  class GoogleCloudDocumentaiV1EnableProcessorResponse
@@ -2474,6 +2513,123 @@ module Google
2474
2513
  end
2475
2514
  end
2476
2515
 
2516
+ # Evaluation metrics, either in aggregate or about a specific entity.
2517
+ class GoogleCloudDocumentaiV1EvaluationMetrics
2518
+ include Google::Apis::Core::Hashable
2519
+
2520
+ # The calculated f1 score.
2521
+ # Corresponds to the JSON property `f1Score`
2522
+ # @return [Float]
2523
+ attr_accessor :f1_score
2524
+
2525
+ # The amount of false negatives.
2526
+ # Corresponds to the JSON property `falseNegativesCount`
2527
+ # @return [Fixnum]
2528
+ attr_accessor :false_negatives_count
2529
+
2530
+ # The amount of false positives.
2531
+ # Corresponds to the JSON property `falsePositivesCount`
2532
+ # @return [Fixnum]
2533
+ attr_accessor :false_positives_count
2534
+
2535
+ # The amount of occurrences in ground truth documents.
2536
+ # Corresponds to the JSON property `groundTruthOccurrencesCount`
2537
+ # @return [Fixnum]
2538
+ attr_accessor :ground_truth_occurrences_count
2539
+
2540
+ # The calculated precision.
2541
+ # Corresponds to the JSON property `precision`
2542
+ # @return [Float]
2543
+ attr_accessor :precision
2544
+
2545
+ # The amount of occurrences in predicted documents.
2546
+ # Corresponds to the JSON property `predictedOccurrencesCount`
2547
+ # @return [Fixnum]
2548
+ attr_accessor :predicted_occurrences_count
2549
+
2550
+ # The calculated recall.
2551
+ # Corresponds to the JSON property `recall`
2552
+ # @return [Float]
2553
+ attr_accessor :recall
2554
+
2555
+ # The amount of documents that had an occurrence of this label.
2556
+ # Corresponds to the JSON property `totalDocumentsCount`
2557
+ # @return [Fixnum]
2558
+ attr_accessor :total_documents_count
2559
+
2560
+ # The amount of true positives.
2561
+ # Corresponds to the JSON property `truePositivesCount`
2562
+ # @return [Fixnum]
2563
+ attr_accessor :true_positives_count
2564
+
2565
+ def initialize(**args)
2566
+ update!(**args)
2567
+ end
2568
+
2569
+ # Update properties of this object
2570
+ def update!(**args)
2571
+ @f1_score = args[:f1_score] if args.key?(:f1_score)
2572
+ @false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
2573
+ @false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
2574
+ @ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
2575
+ @precision = args[:precision] if args.key?(:precision)
2576
+ @predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
2577
+ @recall = args[:recall] if args.key?(:recall)
2578
+ @total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
2579
+ @true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
2580
+ end
2581
+ end
2582
+
2583
+ # Gives a short summary of an evaluation, and links to the evaluation itself.
2584
+ class GoogleCloudDocumentaiV1EvaluationReference
2585
+ include Google::Apis::Core::Hashable
2586
+
2587
+ # Evaluation metrics, either in aggregate or about a specific entity.
2588
+ # Corresponds to the JSON property `aggregateMetrics`
2589
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics]
2590
+ attr_accessor :aggregate_metrics
2591
+
2592
+ # The resource name of the evaluation.
2593
+ # Corresponds to the JSON property `evaluation`
2594
+ # @return [String]
2595
+ attr_accessor :evaluation
2596
+
2597
+ # The resource name of the Long Running Operation for the evaluation.
2598
+ # Corresponds to the JSON property `operation`
2599
+ # @return [String]
2600
+ attr_accessor :operation
2601
+
2602
+ def initialize(**args)
2603
+ update!(**args)
2604
+ end
2605
+
2606
+ # Update properties of this object
2607
+ def update!(**args)
2608
+ @aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
2609
+ @evaluation = args[:evaluation] if args.key?(:evaluation)
2610
+ @operation = args[:operation] if args.key?(:operation)
2611
+ end
2612
+ end
2613
+
2614
+ # Response message for fetch processor types.
2615
+ class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
2616
+ include Google::Apis::Core::Hashable
2617
+
2618
+ # The list of processor types.
2619
+ # Corresponds to the JSON property `processorTypes`
2620
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType>]
2621
+ attr_accessor :processor_types
2622
+
2623
+ def initialize(**args)
2624
+ update!(**args)
2625
+ end
2626
+
2627
+ # Update properties of this object
2628
+ def update!(**args)
2629
+ @processor_types = args[:processor_types] if args.key?(:processor_types)
2630
+ end
2631
+ end
2632
+
2477
2633
  # Specifies a document stored on Cloud Storage.
2478
2634
  class GoogleCloudDocumentaiV1GcsDocument
2479
2635
  include Google::Apis::Core::Hashable
@@ -2571,6 +2727,56 @@ module Google
2571
2727
  end
2572
2728
  end
2573
2729
 
2730
+ # Response message for list processors.
2731
+ class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
2732
+ include Google::Apis::Core::Hashable
2733
+
2734
+ # Points to the next processor, otherwise empty.
2735
+ # Corresponds to the JSON property `nextPageToken`
2736
+ # @return [String]
2737
+ attr_accessor :next_page_token
2738
+
2739
+ # The list of processors.
2740
+ # Corresponds to the JSON property `processorVersions`
2741
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersion>]
2742
+ attr_accessor :processor_versions
2743
+
2744
+ def initialize(**args)
2745
+ update!(**args)
2746
+ end
2747
+
2748
+ # Update properties of this object
2749
+ def update!(**args)
2750
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2751
+ @processor_versions = args[:processor_versions] if args.key?(:processor_versions)
2752
+ end
2753
+ end
2754
+
2755
+ # Response message for list processors.
2756
+ class GoogleCloudDocumentaiV1ListProcessorsResponse
2757
+ include Google::Apis::Core::Hashable
2758
+
2759
+ # Points to the next processor, otherwise empty.
2760
+ # Corresponds to the JSON property `nextPageToken`
2761
+ # @return [String]
2762
+ attr_accessor :next_page_token
2763
+
2764
+ # The list of processors.
2765
+ # Corresponds to the JSON property `processors`
2766
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Processor>]
2767
+ attr_accessor :processors
2768
+
2769
+ def initialize(**args)
2770
+ update!(**args)
2771
+ end
2772
+
2773
+ # Update properties of this object
2774
+ def update!(**args)
2775
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2776
+ @processors = args[:processors] if args.key?(:processors)
2777
+ end
2778
+ end
2779
+
2574
2780
  # A vertex represents a 2D point in the image. NOTE: the normalized vertex
2575
2781
  # coordinates are relative to the original image and range from 0 to 1.
2576
2782
  class GoogleCloudDocumentaiV1NormalizedVertex
@@ -2661,6 +2867,206 @@ module Google
2661
2867
  end
2662
2868
  end
2663
2869
 
2870
+ # The first-class citizen for DAI. Each processor defines how to extract
2871
+ # structural information from a document.
2872
+ class GoogleCloudDocumentaiV1Processor
2873
+ include Google::Apis::Core::Hashable
2874
+
2875
+ # The time the processor was created.
2876
+ # Corresponds to the JSON property `createTime`
2877
+ # @return [String]
2878
+ attr_accessor :create_time
2879
+
2880
+ # The default processor version.
2881
+ # Corresponds to the JSON property `defaultProcessorVersion`
2882
+ # @return [String]
2883
+ attr_accessor :default_processor_version
2884
+
2885
+ # The display name of the processor.
2886
+ # Corresponds to the JSON property `displayName`
2887
+ # @return [String]
2888
+ attr_accessor :display_name
2889
+
2890
+ # The KMS key used for encryption/decryption in CMEK scenarios. See https://
2891
+ # cloud.google.com/security-key-management.
2892
+ # Corresponds to the JSON property `kmsKeyName`
2893
+ # @return [String]
2894
+ attr_accessor :kms_key_name
2895
+
2896
+ # Output only. Immutable. The resource name of the processor. Format: projects/`
2897
+ # project`/locations/`location`/processors/`processor`
2898
+ # Corresponds to the JSON property `name`
2899
+ # @return [String]
2900
+ attr_accessor :name
2901
+
2902
+ # Output only. Immutable. The http endpoint that can be called to invoke
2903
+ # processing.
2904
+ # Corresponds to the JSON property `processEndpoint`
2905
+ # @return [String]
2906
+ attr_accessor :process_endpoint
2907
+
2908
+ # Output only. The state of the processor.
2909
+ # Corresponds to the JSON property `state`
2910
+ # @return [String]
2911
+ attr_accessor :state
2912
+
2913
+ # The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc.
2914
+ # Corresponds to the JSON property `type`
2915
+ # @return [String]
2916
+ attr_accessor :type
2917
+
2918
+ def initialize(**args)
2919
+ update!(**args)
2920
+ end
2921
+
2922
+ # Update properties of this object
2923
+ def update!(**args)
2924
+ @create_time = args[:create_time] if args.key?(:create_time)
2925
+ @default_processor_version = args[:default_processor_version] if args.key?(:default_processor_version)
2926
+ @display_name = args[:display_name] if args.key?(:display_name)
2927
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
2928
+ @name = args[:name] if args.key?(:name)
2929
+ @process_endpoint = args[:process_endpoint] if args.key?(:process_endpoint)
2930
+ @state = args[:state] if args.key?(:state)
2931
+ @type = args[:type] if args.key?(:type)
2932
+ end
2933
+ end
2934
+
2935
+ # A processor type is responsible for performing a certain document
2936
+ # understanding task on a certain type of document. All processor types are
2937
+ # created by the documentai service internally. User will only list all
2938
+ # available processor types via UI. For different users (projects), the
2939
+ # available processor types may be different since we'll expose the access of
2940
+ # some types via EAP whitelisting. We make the ProcessorType a resource under
2941
+ # location so we have a unified API and keep the possibility that UI will load
2942
+ # different available processor types from different regions. But for alpha the
2943
+ # behavior is that the user will always get the union of all available processor
2944
+ # types among all regions no matter which regionalized endpoint is called, and
2945
+ # then we use the 'available_locations' field to show under which regions a
2946
+ # processor type is available. For example, users can call either the 'US' or '
2947
+ # EU' endpoint to feach processor types. In the return, we will have an 'invoice
2948
+ # parsing' processor with 'available_locations' field only containing 'US'. So
2949
+ # the user can try to create an 'invoice parsing' processor under the location '
2950
+ # US'. Such attempt of creating under the location 'EU' will fail. Next ID: 8.
2951
+ class GoogleCloudDocumentaiV1ProcessorType
2952
+ include Google::Apis::Core::Hashable
2953
+
2954
+ # Whether the processor type allows creation. If yes, user can create a
2955
+ # processor of this processor type. Otherwise, user needs to request access.
2956
+ # Corresponds to the JSON property `allowCreation`
2957
+ # @return [Boolean]
2958
+ attr_accessor :allow_creation
2959
+ alias_method :allow_creation?, :allow_creation
2960
+
2961
+ # The locations in which this processor is available.
2962
+ # Corresponds to the JSON property `availableLocations`
2963
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorTypeLocationInfo>]
2964
+ attr_accessor :available_locations
2965
+
2966
+ # The processor category, used by UI to group processor types.
2967
+ # Corresponds to the JSON property `category`
2968
+ # @return [String]
2969
+ attr_accessor :category
2970
+
2971
+ # The resource name of the processor type. Format: projects/`project`/
2972
+ # processorTypes/`processor_type`
2973
+ # Corresponds to the JSON property `name`
2974
+ # @return [String]
2975
+ attr_accessor :name
2976
+
2977
+ # The type of the processor, e.g, "invoice_parsing".
2978
+ # Corresponds to the JSON property `type`
2979
+ # @return [String]
2980
+ attr_accessor :type
2981
+
2982
+ def initialize(**args)
2983
+ update!(**args)
2984
+ end
2985
+
2986
+ # Update properties of this object
2987
+ def update!(**args)
2988
+ @allow_creation = args[:allow_creation] if args.key?(:allow_creation)
2989
+ @available_locations = args[:available_locations] if args.key?(:available_locations)
2990
+ @category = args[:category] if args.key?(:category)
2991
+ @name = args[:name] if args.key?(:name)
2992
+ @type = args[:type] if args.key?(:type)
2993
+ end
2994
+ end
2995
+
2996
+ # The location information about where the processor is available.
2997
+ class GoogleCloudDocumentaiV1ProcessorTypeLocationInfo
2998
+ include Google::Apis::Core::Hashable
2999
+
3000
+ # The location id, currently must be one of [us, eu].
3001
+ # Corresponds to the JSON property `locationId`
3002
+ # @return [String]
3003
+ attr_accessor :location_id
3004
+
3005
+ def initialize(**args)
3006
+ update!(**args)
3007
+ end
3008
+
3009
+ # Update properties of this object
3010
+ def update!(**args)
3011
+ @location_id = args[:location_id] if args.key?(:location_id)
3012
+ end
3013
+ end
3014
+
3015
+ # A processor version is an implementation of a processor. Each processor can
3016
+ # have multiple versions, pre-trained by Google internally or up-trained by the
3017
+ # customer. At a time, a processor can only have one default version version. So
3018
+ # the processor's behavior (when processing documents) is defined by a default
3019
+ # version.
3020
+ class GoogleCloudDocumentaiV1ProcessorVersion
3021
+ include Google::Apis::Core::Hashable
3022
+
3023
+ # The time the processor version was created.
3024
+ # Corresponds to the JSON property `createTime`
3025
+ # @return [String]
3026
+ attr_accessor :create_time
3027
+
3028
+ # The display name of the processor version.
3029
+ # Corresponds to the JSON property `displayName`
3030
+ # @return [String]
3031
+ attr_accessor :display_name
3032
+
3033
+ # Gives a short summary of an evaluation, and links to the evaluation itself.
3034
+ # Corresponds to the JSON property `latestEvaluation`
3035
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference]
3036
+ attr_accessor :latest_evaluation
3037
+
3038
+ # The resource name of the processor version. Format: projects/`project`/
3039
+ # locations/`location`/processors/`processor`/processorVersions/`
3040
+ # processor_version`
3041
+ # Corresponds to the JSON property `name`
3042
+ # @return [String]
3043
+ attr_accessor :name
3044
+
3045
+ # The schema defines the output of the processed document by a processor.
3046
+ # Corresponds to the JSON property `schema`
3047
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema]
3048
+ attr_accessor :schema
3049
+
3050
+ # The state of the processor version.
3051
+ # Corresponds to the JSON property `state`
3052
+ # @return [String]
3053
+ attr_accessor :state
3054
+
3055
+ def initialize(**args)
3056
+ update!(**args)
3057
+ end
3058
+
3059
+ # Update properties of this object
3060
+ def update!(**args)
3061
+ @create_time = args[:create_time] if args.key?(:create_time)
3062
+ @display_name = args[:display_name] if args.key?(:display_name)
3063
+ @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
3064
+ @name = args[:name] if args.key?(:name)
3065
+ @schema = args[:schema] if args.key?(:schema)
3066
+ @state = args[:state] if args.key?(:state)
3067
+ end
3068
+ end
3069
+
2664
3070
  # Payload message of raw document content (bytes).
2665
3071
  class GoogleCloudDocumentaiV1RawDocument
2666
3072
  include Google::Apis::Core::Hashable
@@ -2760,6 +3166,105 @@ module Google
2760
3166
  end
2761
3167
  end
2762
3168
 
3169
+ # The schema defines the output of the processed document by a processor.
3170
+ class GoogleCloudDocumentaiV1Schema
3171
+ include Google::Apis::Core::Hashable
3172
+
3173
+ # Description of the schema.
3174
+ # Corresponds to the JSON property `description`
3175
+ # @return [String]
3176
+ attr_accessor :description
3177
+
3178
+ # Display name to show to users.
3179
+ # Corresponds to the JSON property `displayName`
3180
+ # @return [String]
3181
+ attr_accessor :display_name
3182
+
3183
+ # Entity types of the schema.
3184
+ # Corresponds to the JSON property `entityTypes`
3185
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
3186
+ attr_accessor :entity_types
3187
+
3188
+ def initialize(**args)
3189
+ update!(**args)
3190
+ end
3191
+
3192
+ # Update properties of this object
3193
+ def update!(**args)
3194
+ @description = args[:description] if args.key?(:description)
3195
+ @display_name = args[:display_name] if args.key?(:display_name)
3196
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
3197
+ end
3198
+ end
3199
+
3200
+ # EntityType is the wrapper of a label of the corresponding model with detailed
3201
+ # attributes and limitations for entity-based processors. Multiple types can
3202
+ # also compose a dependency tree to represent nested types.
3203
+ class GoogleCloudDocumentaiV1SchemaEntityType
3204
+ include Google::Apis::Core::Hashable
3205
+
3206
+ # Type of the entity. It must be one of the following: `document` - the entity
3207
+ # represents a classification of a logical document. `object` - if the entity
3208
+ # has properties it is likely an object (or or a document.) `datetime` - the
3209
+ # entity is a date or time value. `money` - the entity represents a money value
3210
+ # amount. `number` - the entity is a number - integer or floating point. `string`
3211
+ # - the entity is a string value. `boolean` - the entity is a boolean value. `
3212
+ # address` - the entity is a location address.
3213
+ # Corresponds to the JSON property `baseType`
3214
+ # @return [String]
3215
+ attr_accessor :base_type
3216
+
3217
+ # Description of the entity type.
3218
+ # Corresponds to the JSON property `description`
3219
+ # @return [String]
3220
+ attr_accessor :description
3221
+
3222
+ # If specified, lists all the possible values for this entity.
3223
+ # Corresponds to the JSON property `enumValues`
3224
+ # @return [Array<String>]
3225
+ attr_accessor :enum_values
3226
+
3227
+ # Occurrence type limits the number of times an entity type appears in the
3228
+ # document.
3229
+ # Corresponds to the JSON property `occurrenceType`
3230
+ # @return [String]
3231
+ attr_accessor :occurrence_type
3232
+
3233
+ # Describing the nested structure of an entity. An EntityType may consist of
3234
+ # several other EntityTypes. For example, in a document there can be an
3235
+ # EntityType 'ID', which consists of EntityType 'name' and 'address', with
3236
+ # corresponding attributes, such as TEXT for both types and ONCE for occurrence
3237
+ # types.
3238
+ # Corresponds to the JSON property `properties`
3239
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
3240
+ attr_accessor :properties
3241
+
3242
+ # Source of this entity type.
3243
+ # Corresponds to the JSON property `source`
3244
+ # @return [String]
3245
+ attr_accessor :source
3246
+
3247
+ # Name of the type. It must be unique within the set of same level types.
3248
+ # Corresponds to the JSON property `type`
3249
+ # @return [String]
3250
+ attr_accessor :type
3251
+
3252
+ def initialize(**args)
3253
+ update!(**args)
3254
+ end
3255
+
3256
+ # Update properties of this object
3257
+ def update!(**args)
3258
+ @base_type = args[:base_type] if args.key?(:base_type)
3259
+ @description = args[:description] if args.key?(:description)
3260
+ @enum_values = args[:enum_values] if args.key?(:enum_values)
3261
+ @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
3262
+ @properties = args[:properties] if args.key?(:properties)
3263
+ @source = args[:source] if args.key?(:source)
3264
+ @type = args[:type] if args.key?(:type)
3265
+ end
3266
+ end
3267
+
2763
3268
  # The long running operation metadata for set default processor version method.
2764
3269
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
2765
3270
  include Google::Apis::Core::Hashable
@@ -2779,6 +3284,25 @@ module Google
2779
3284
  end
2780
3285
  end
2781
3286
 
3287
+ # Request message for the set default processor version method.
3288
+ class GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest
3289
+ include Google::Apis::Core::Hashable
3290
+
3291
+ # Required. The resource name of child ProcessorVersion to use as default.
3292
+ # Corresponds to the JSON property `defaultProcessorVersion`
3293
+ # @return [String]
3294
+ attr_accessor :default_processor_version
3295
+
3296
+ def initialize(**args)
3297
+ update!(**args)
3298
+ end
3299
+
3300
+ # Update properties of this object
3301
+ def update!(**args)
3302
+ @default_processor_version = args[:default_processor_version] if args.key?(:default_processor_version)
3303
+ end
3304
+ end
3305
+
2782
3306
  # Response message for set default processor version method.
2783
3307
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse
2784
3308
  include Google::Apis::Core::Hashable
@@ -2811,6 +3335,19 @@ module Google
2811
3335
  end
2812
3336
  end
2813
3337
 
3338
+ # Request message for the undeploy processor version method.
3339
+ class GoogleCloudDocumentaiV1UndeployProcessorVersionRequest
3340
+ include Google::Apis::Core::Hashable
3341
+
3342
+ def initialize(**args)
3343
+ update!(**args)
3344
+ end
3345
+
3346
+ # Update properties of this object
3347
+ def update!(**args)
3348
+ end
3349
+ end
3350
+
2814
3351
  # Response message for the undeploy processor version method.
2815
3352
  class GoogleCloudDocumentaiV1UndeployProcessorVersionResponse
2816
3353
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1
18
18
  # Version of the google-apis-documentai_v1 gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210907"
25
+ REVISION = "20210911"
26
26
  end
27
27
  end
28
28
  end