{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-data-catalog/json-schema/google-cloud-data-catalog-google-cloud-datacatalog-lineage-v1-search-links-request-schema.json",
  "title": "GoogleCloudDatacatalogLineageV1SearchLinksRequest",
  "description": "Request message for SearchLinks.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-data-catalog-datalineage-projects-api-openapi.yml#/components/schemas/GoogleCloudDatacatalogLineageV1SearchLinksRequest",
  "type": "object",
  "properties": {
    "pageSize": {
      "description": "Optional. The maximum number of links to return in a single page of the response. A page may contain fewer links than this value. If unspecified, at most 10 links are returned. Maximum value is 100; values greater than 100 are reduced to 100.",
      "format": "int32",
      "type": "integer"
    },
    "target": {
      "$ref": "#/$defs/GoogleCloudDatacatalogLineageV1EntityReference",
      "description": "Optional. Send asset information in the **target** field to retrieve all links that lead from upstream assets to the specified asset."
    },
    "source": {
      "$ref": "#/$defs/GoogleCloudDatacatalogLineageV1EntityReference",
      "description": "Optional. Send asset information in the **source** field to retrieve all links that lead from the specified asset to downstream assets."
    },
    "pageToken": {
      "type": "string",
      "description": "Optional. The page token received from a previous `SearchLinksRequest` call. Use it to get the next page. When requesting subsequent pages of a response, remember that all parameters must match the values you provided in the original request."
    },
    "targets": {
      "$ref": "#/$defs/GoogleCloudDatacatalogLineageV1MultipleEntityReference",
      "description": "Optional. Send a list of asset information in the **targets** field to retrieve all links that lead from upstream assets to the specified assets. This field is similar to the `target` target field but allows providing multiple entities. All entities within the `MultipleEntityReference` must have the same `fully_qualified_name`."
    },
    "sources": {
      "$ref": "#/$defs/GoogleCloudDatacatalogLineageV1MultipleEntityReference",
      "description": "Optional. Send a list of asset information in the **sources** field to retrieve all links that lead from the specified assets to downstream assets. This field is similar to the `source` source field but allows providing multiple entities. All entities within the `MultipleEntityReference` must have the same `fully_qualified_name`."
    }
  },
  "$defs": {
    "GoogleCloudDatacatalogLineageV1EntityReference": {
      "type": "object",
      "description": "The soft reference to everything you can attach a lineage event to.",
      "properties": {
        "field": {
          "description": "Optional. Field path within the entity. Each nesting level should be a separate value in the repeated field. The order matters. Must be empty for asset level lineage For example to address \"salary.net\" subfield where \"salary\" is a column and \"net\" is a proto field two values in the `field` should be reported, the first is \"salary\" and the second is \"net\". Each field length is limited to 500 characters. Maximum supported nesting level is 20.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fullyQualifiedName": {
          "description": "Required. [Fully Qualified Name (FQN)](https://cloud.google.com/dataplex/docs/fully-qualified-names) of the entity.",
          "type": "string"
        }
      }
    },
    "GoogleCloudDatacatalogLineageV1MultipleEntityReference": {
      "type": "object",
      "description": "Multiple entity reference for SearchLinksRequest.",
      "properties": {
        "entities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDatacatalogLineageV1EntityReference"
          },
          "description": "Optional. The list of entities to search for links. The maximum number of entities is 20."
        }
      }
    }
  }
}