HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/lib/surface/ml/vision/detect_text_tiff.yaml
- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: Detect and transcribe text from TIFF files stored in Google Cloud Storage.
    description: |
      Detect and transcribe text from TIFF files stored in Google Cloud Storage.

      The Vision API accepts TIFF files up to 2000 pages.
      Larger files will return an error.
    examples: |
      To detect text for input TIFF file `gs://my_bucket/input_file` and store output in `gs://my_bucket/out_put_prefix`:

        $ {command} gs://my_bucket/input_file
        gs://my_bucket/out_put_prefix

  request:
    collection: vision.files
    method: asyncBatchAnnotate
    api_version: v1
    static_fields:
      requests.features.type: DOCUMENT_TEXT_DETECTION
      requests.inputConfig.mimeType: 'image/tiff'

  response:
    error:
      field: error
      code: code
      message: message

  arguments:
    params:
    - api_field: requests.inputConfig.gcsSource
      arg_name: input_file
      is_positional: true
      help_text: |
        Google Cloud Storage location to read the input from. It must be in
        Google Cloud Storage format (gs://bucket/object)
      processor: googlecloudsdk.command_lib.ml.vision.util:GetGcsSourceFromPath
    - api_field: requests.outputConfig.gcsDestination
      arg_name: output_path
      is_positional: true
      help_text: |
        Google Cloud Storage location to store the output file. It must be in
        Google Cloud Storage format (gs://bucket/object)
      processor: googlecloudsdk.command_lib.ml.vision.util:GetGcsDestinationFromPath
    - api_field: requests.outputConfig.batchSize
      arg_name: batch-size
      help_text: |
        Maximum number of response protos to put into each output JSON file on
        Google Cloud Storage.
        The valid range is [1, 100]. If not specified, the default value is 20.
    - _COMMON_: args.model_field

  output:
    format: json