{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-head-cursor-response-schema.json",
  "title": "ComputeHeadCursorResponse",
  "description": "Response containing the head cursor for the requested topic and partition.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-pubsub-pubsublite-topic-stats-api-openapi.yml#/components/schemas/ComputeHeadCursorResponse",
  "properties": {
    "headCursor": {
      "$ref": "#/$defs/Cursor",
      "description": "The head cursor."
    }
  },
  "type": "object",
  "$defs": {
    "Cursor": {
      "type": "object",
      "properties": {
        "offset": {
          "description": "The offset of a message within a topic partition. Must be greater than or equal 0.",
          "format": "int64",
          "type": "string"
        }
      },
      "description": "A cursor that describes the position of a message within a topic partition."
    }
  }
}