Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: A new message FoundationModelTuningOptions is added #24825

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def initialize
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, document: nil, skip_human_review: nil, field_mask: nil, process_options: nil)
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, document: nil, skip_human_review: nil, field_mask: nil, process_options: nil, labels: nil)
# Pass arguments to `process_document` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand Down Expand Up @@ -257,6 +257,13 @@ def initialize
# the form of `{document_field_name}` or `pages.{page_field_name}`.
# @param process_options [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions, ::Hash]
# Inference-time options for the process API
# @param labels [::Hash{::String => ::String}]
# Optional. The labels with user-defined metadata for the request.
#
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints) and can only contain lowercase letters, numeric
# characters, underscores, and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::DocumentAI::V1beta3::ProcessResponse]
Expand Down Expand Up @@ -336,7 +343,7 @@ def process_document request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
# @overload batch_process_documents(name: nil, input_configs: nil, output_config: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil)
# @overload batch_process_documents(name: nil, input_configs: nil, output_config: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil, labels: nil)
# Pass arguments to `batch_process_documents` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand Down Expand Up @@ -365,6 +372,13 @@ def process_document request, options = nil
# `false`.
# @param process_options [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions, ::Hash]
# Inference-time options for the process API
# @param labels [::Hash{::String => ::String}]
# Optional. The labels with user-defined metadata for the request.
#
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints) and can only contain lowercase letters, numeric
# characters, underscores, and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::Operation]
Expand Down Expand Up @@ -906,13 +920,15 @@ def get_processor request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
# @overload train_processor_version(custom_document_extraction_options: nil, foundation_model_tuning_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
# Options to control Custom Document Extraction (CDE) Processor.
# @param foundation_model_tuning_options [::Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest::FoundationModelTuningOptions, ::Hash]
# Options to control foundation model tuning of a processor.
# @param parent [::String]
# Required. The parent (project, location and processor) to create the new
# version for. Format:
Expand Down Expand Up @@ -1491,7 +1507,8 @@ def undeploy_processor_version request, options = nil
# @param processor [::Google::Cloud::DocumentAI::V1beta3::Processor, ::Hash]
# Required. The processor to be created, requires
# {::Google::Cloud::DocumentAI::V1beta3::Processor#type Processor.type} and
# [Processor.display_name]][] to be set. Also, the
# {::Google::Cloud::DocumentAI::V1beta3::Processor#display_name Processor.display_name}
# to be set. Also, the
# {::Google::Cloud::DocumentAI::V1beta3::Processor#kms_key_name Processor.kms_key_name}
# field must be set if the processor is under CMEK.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def initialize
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, document: nil, skip_human_review: nil, field_mask: nil, process_options: nil)
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, document: nil, skip_human_review: nil, field_mask: nil, process_options: nil, labels: nil)
# Pass arguments to `process_document` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand Down Expand Up @@ -251,6 +251,13 @@ def initialize
# the form of `{document_field_name}` or `pages.{page_field_name}`.
# @param process_options [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions, ::Hash]
# Inference-time options for the process API
# @param labels [::Hash{::String => ::String}]
# Optional. The labels with user-defined metadata for the request.
#
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints) and can only contain lowercase letters, numeric
# characters, underscores, and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Google::Cloud::DocumentAI::V1beta3::ProcessResponse]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
Expand Down Expand Up @@ -323,7 +330,7 @@ def process_document request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @overload batch_process_documents(name: nil, input_configs: nil, output_config: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil)
# @overload batch_process_documents(name: nil, input_configs: nil, output_config: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil, labels: nil)
# Pass arguments to `batch_process_documents` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand Down Expand Up @@ -352,6 +359,13 @@ def process_document request, options = nil
# `false`.
# @param process_options [::Google::Cloud::DocumentAI::V1beta3::ProcessOptions, ::Hash]
# Inference-time options for the process API
# @param labels [::Hash{::String => ::String}]
# Optional. The labels with user-defined metadata for the request.
#
# Label keys and values can be no longer than 63 characters
# (Unicode codepoints) and can only contain lowercase letters, numeric
# characters, underscores, and dashes. International characters are allowed.
# Label values are optional. Label keys must start with a letter.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Gapic::Operation]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
Expand Down Expand Up @@ -851,13 +865,15 @@ def get_processor request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
# @overload train_processor_version(custom_document_extraction_options: nil, foundation_model_tuning_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
# Options to control Custom Document Extraction (CDE) Processor.
# @param foundation_model_tuning_options [::Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest::FoundationModelTuningOptions, ::Hash]
# Options to control foundation model tuning of a processor.
# @param parent [::String]
# Required. The parent (project, location and processor) to create the new
# version for. Format:
Expand Down Expand Up @@ -1394,7 +1410,8 @@ def undeploy_processor_version request, options = nil
# @param processor [::Google::Cloud::DocumentAI::V1beta3::Processor, ::Hash]
# Required. The processor to be created, requires
# {::Google::Cloud::DocumentAI::V1beta3::Processor#type Processor.type} and
# [Processor.display_name]][] to be set. Also, the
# {::Google::Cloud::DocumentAI::V1beta3::Processor#display_name Processor.display_name}
# to be set. Also, the
# {::Google::Cloud::DocumentAI::V1beta3::Processor#kms_key_name Processor.kms_key_name}
# field must be set if the processor is under CMEK.
# @yield [result, operation] Access the result along with the TransportOperation object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,19 +530,23 @@ def get_document request, options = nil
# e.g. `EntityType=a AND EntityType=b` is NOT supported.
# - String match is case sensitive (for filter `DisplayName` & `EntityType`).
# @param return_total_size [::Boolean]
# Optional. Controls if the ListDocuments request requires a total size
# of matched documents. See ListDocumentsResponse.total_size.
# Optional. Controls if the request requires a total size of matched
# documents. See
# {::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse#total_size ListDocumentsResponse.total_size}.
#
# Enabling this flag may adversely impact performance.
#
# Defaults to false.
# @param skip [::Integer]
# Optional. Number of results to skip beginning from the `page_token` if
# provided. https://google.aip.dev/158#skipping-results. It must be a
# non-negative integer. Negative values wil be rejected. Note that this is
# non-negative integer. Negative values will be rejected. Note that this is
# not the number of pages to skip. If this value causes the cursor to move
# past the end of results, `ListDocumentsResponse.document_metadata` and
# `ListDocumentsResponse.next_page_token` will be empty.
# past the end of results,
# {::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse#document_metadata ListDocumentsResponse.document_metadata}
# and
# {::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse#next_page_token ListDocumentsResponse.next_page_token}
# will be empty.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DocumentAI::V1beta3::DocumentMetadata>]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,19 +503,23 @@ def get_document request, options = nil
# e.g. `EntityType=a AND EntityType=b` is NOT supported.
# - String match is case sensitive (for filter `DisplayName` & `EntityType`).
# @param return_total_size [::Boolean]
# Optional. Controls if the ListDocuments request requires a total size
# of matched documents. See ListDocumentsResponse.total_size.
# Optional. Controls if the request requires a total size of matched
# documents. See
# {::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse#total_size ListDocumentsResponse.total_size}.
#
# Enabling this flag may adversely impact performance.
#
# Defaults to false.
# @param skip [::Integer]
# Optional. Number of results to skip beginning from the `page_token` if
# provided. https://google.aip.dev/158#skipping-results. It must be a
# non-negative integer. Negative values wil be rejected. Note that this is
# non-negative integer. Negative values will be rejected. Note that this is
# not the number of pages to skip. If this value causes the cursor to move
# past the end of results, `ListDocumentsResponse.document_metadata` and
# `ListDocumentsResponse.next_page_token` will be empty.
# past the end of results,
# {::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse#document_metadata ListDocumentsResponse.document_metadata}
# and
# {::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse#next_page_token ListDocumentsResponse.next_page_token}
# will be empty.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1beta3::DocumentMetadata>]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
Expand Down
Loading