{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-commit-cursor-request-schema.json",
  "title": "CommitCursorRequest",
  "description": "Request for CommitCursor.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-pubsub-pubsublite-cursor-api-openapi.yml#/components/schemas/CommitCursorRequest",
  "type": "object",
  "properties": {
    "cursor": {
      "$ref": "#/$defs/Cursor",
      "description": "The new value for the committed cursor."
    },
    "partition": {
      "format": "int64",
      "description": "The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).",
      "type": "string"
    }
  },
  "$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."
    }
  }
}