- release_tracks: [GA]

  help_text:
    brief: Detect entities in an image from similar images on the web.
    description: |
      Detect entities in an image from similar images on the web.
    examples: |
      To detect entities in an image `gs://my_bucket/input_file`:

        $ {command} gs://my_bucket/input_file

  request:
    _COMMON_: request
    static_fields:
      requests.features.type: WEB_DETECTION

  response:
    _COMMON_: response

  arguments:
    params:
    - _COMMON_: args.image_field
    - _COMMON_: args.max_results_field

  output:
    format: json

- release_tracks: [ALPHA, BETA]

  help_text:
    brief: Detect entities in an image from similar images on the web.
    description: |
      Detect entities in an image from similar images on the web.
    examples: |
      To detect entities in an image `gs://my_bucket/input_file`:

        $ {command} gs://my_bucket/input_file

  request:
    _COMMON_: request
    static_fields:
      requests.features.type: WEB_DETECTION

  response:
    _COMMON_: response

  arguments:
    params:
    - _COMMON_: args.image_field
    - _COMMON_: args.max_results_field
    - _COMMON_: args.model_field
    - api_field: requests.imageContext.webDetectionParams.includeGeoResults
      arg_name: include-geo-results
      action: store_true
      help_text: Whether to include results derived from the geo information in the
        image.

  output:
    format: json
