@@ -12108,6 +12108,11 @@ class GoogleCloudDocumentaiV1beta3ProcessorVersion
1210812108 # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
1210912109 attr_accessor :document_schema
1211012110
12111+ # Information about Generative AI model-based processor versions.
12112+ # Corresponds to the JSON property `genAiModelInfo`
12113+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo]
12114+ attr_accessor :gen_ai_model_info
12115+
1211112116 # Output only. Denotes that this `ProcessorVersion` is managed by Google.
1211212117 # Corresponds to the JSON property `googleManaged`
1211312118 # @return [Boolean]
@@ -12168,6 +12173,7 @@ def update!(**args)
1216812173 @deprecation_info = args[:deprecation_info] if args.key?(:deprecation_info)
1216912174 @display_name = args[:display_name] if args.key?(:display_name)
1217012175 @document_schema = args[:document_schema] if args.key?(:document_schema)
12176+ @gen_ai_model_info = args[:gen_ai_model_info] if args.key?(:gen_ai_model_info)
1217112177 @google_managed = args[:google_managed] if args.key?(:google_managed)
1217212178 @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1217312179 @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
@@ -12230,6 +12236,87 @@ def update!(**args)
1223012236 end
1223112237 end
1223212238
12239+ # Information about Generative AI model-based processor versions.
12240+ class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo
12241+ include Google::Apis::Core::Hashable
12242+
12243+ # Information for a custom Generative AI model created by the user. These are
12244+ # created with `Create New Version` in either the `Call foundation model` or `
12245+ # Fine tuning` tabs.
12246+ # Corresponds to the JSON property `customGenAiModelInfo`
12247+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo]
12248+ attr_accessor :custom_gen_ai_model_info
12249+
12250+ # Information for a pretrained Google-managed foundation model.
12251+ # Corresponds to the JSON property `foundationGenAiModelInfo`
12252+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo]
12253+ attr_accessor :foundation_gen_ai_model_info
12254+
12255+ def initialize(**args)
12256+ update!(**args)
12257+ end
12258+
12259+ # Update properties of this object
12260+ def update!(**args)
12261+ @custom_gen_ai_model_info = args[:custom_gen_ai_model_info] if args.key?(:custom_gen_ai_model_info)
12262+ @foundation_gen_ai_model_info = args[:foundation_gen_ai_model_info] if args.key?(:foundation_gen_ai_model_info)
12263+ end
12264+ end
12265+
12266+ # Information for a custom Generative AI model created by the user. These are
12267+ # created with `Create New Version` in either the `Call foundation model` or `
12268+ # Fine tuning` tabs.
12269+ class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
12270+ include Google::Apis::Core::Hashable
12271+
12272+ # The base processor version ID for the custom model.
12273+ # Corresponds to the JSON property `baseProcessorVersionId`
12274+ # @return [String]
12275+ attr_accessor :base_processor_version_id
12276+
12277+ # The type of custom model created by the user.
12278+ # Corresponds to the JSON property `customModelType`
12279+ # @return [String]
12280+ attr_accessor :custom_model_type
12281+
12282+ def initialize(**args)
12283+ update!(**args)
12284+ end
12285+
12286+ # Update properties of this object
12287+ def update!(**args)
12288+ @base_processor_version_id = args[:base_processor_version_id] if args.key?(:base_processor_version_id)
12289+ @custom_model_type = args[:custom_model_type] if args.key?(:custom_model_type)
12290+ end
12291+ end
12292+
12293+ # Information for a pretrained Google-managed foundation model.
12294+ class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
12295+ include Google::Apis::Core::Hashable
12296+
12297+ # Whether finetuning is allowed for this base processor version.
12298+ # Corresponds to the JSON property `finetuningAllowed`
12299+ # @return [Boolean]
12300+ attr_accessor :finetuning_allowed
12301+ alias_method :finetuning_allowed?, :finetuning_allowed
12302+
12303+ # The minimum number of labeled documents in the training dataset required for
12304+ # finetuning.
12305+ # Corresponds to the JSON property `minTrainLabeledDocuments`
12306+ # @return [Fixnum]
12307+ attr_accessor :min_train_labeled_documents
12308+
12309+ def initialize(**args)
12310+ update!(**args)
12311+ end
12312+
12313+ # Update properties of this object
12314+ def update!(**args)
12315+ @finetuning_allowed = args[:finetuning_allowed] if args.key?(:finetuning_allowed)
12316+ @min_train_labeled_documents = args[:min_train_labeled_documents] if args.key?(:min_train_labeled_documents)
12317+ end
12318+ end
12319+
1223312320 # Metadata about a property.
1223412321 class GoogleCloudDocumentaiV1beta3PropertyMetadata
1223512322 include Google::Apis::Core::Hashable
0 commit comments