{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-gdata-media-schema.json",
  "title": "GdataMedia",
  "description": "gdata",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtubereporting-media-api-openapi.yml#/components/schemas/GdataMedia",
  "type": "object",
  "properties": {
    "algorithm": {
      "description": "gdata",
      "type": "string",
      "deprecated": true
    },
    "diffVersionResponse": {
      "$ref": "#/$defs/GdataDiffVersionResponse",
      "description": "gdata"
    },
    "referenceType": {
      "type": "string",
      "enum": [
        "PATH",
        "BLOB_REF",
        "INLINE",
        "GET_MEDIA",
        "COMPOSITE_MEDIA",
        "BIGSTORE_REF",
        "DIFF_VERSION_RESPONSE",
        "DIFF_CHECKSUMS_RESPONSE",
        "DIFF_DOWNLOAD_RESPONSE",
        "DIFF_UPLOAD_REQUEST",
        "DIFF_UPLOAD_RESPONSE",
        "COSMO_BINARY_REFERENCE",
        "ARBITRARY_BYTES"
      ],
      "description": "gdata"
    },
    "inline": {
      "type": "string",
      "format": "byte",
      "description": "gdata"
    },
    "isPotentialRetry": {
      "type": "boolean",
      "description": "gdata"
    },
    "blobRef": {
      "type": "string",
      "description": "gdata",
      "format": "byte",
      "deprecated": true
    },
    "sha1Hash": {
      "format": "byte",
      "type": "string",
      "description": "gdata"
    },
    "bigstoreObjectRef": {
      "description": "gdata",
      "type": "string",
      "format": "byte",
      "deprecated": true
    },
    "downloadParameters": {
      "$ref": "#/$defs/GdataDownloadParameters",
      "description": "gdata"
    },
    "filename": {
      "description": "gdata",
      "type": "string"
    },
    "sha256Hash": {
      "type": "string",
      "description": "gdata",
      "format": "byte"
    },
    "diffDownloadResponse": {
      "$ref": "#/$defs/GdataDiffDownloadResponse",
      "description": "gdata"
    },
    "length": {
      "format": "int64",
      "type": "string",
      "description": "gdata"
    },
    "crc32cHash": {
      "format": "uint32",
      "type": "integer",
      "description": "gdata"
    },
    "hash": {
      "type": "string",
      "description": "gdata",
      "deprecated": true
    },
    "mediaId": {
      "description": "gdata",
      "format": "byte",
      "type": "string"
    },
    "token": {
      "type": "string",
      "description": "gdata"
    },
    "contentType": {
      "type": "string",
      "description": "gdata"
    },
    "hashVerified": {
      "description": "gdata",
      "type": "boolean"
    },
    "md5Hash": {
      "description": "gdata",
      "type": "string",
      "format": "byte"
    },
    "diffUploadRequest": {
      "$ref": "#/$defs/GdataDiffUploadRequest",
      "description": "gdata"
    },
    "timestamp": {
      "description": "gdata",
      "format": "uint64",
      "type": "string"
    },
    "cosmoBinaryReference": {
      "type": "string",
      "format": "byte",
      "description": "gdata"
    },
    "compositeMedia": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GdataCompositeMedia"
      },
      "description": "gdata"
    },
    "path": {
      "type": "string",
      "description": "gdata"
    },
    "diffChecksumsResponse": {
      "$ref": "#/$defs/GdataDiffChecksumsResponse",
      "description": "gdata"
    },
    "sha512Hash": {
      "type": "string",
      "format": "byte",
      "description": "gdata"
    },
    "contentTypeInfo": {
      "$ref": "#/$defs/GdataContentTypeInfo",
      "description": "gdata"
    },
    "diffUploadResponse": {
      "$ref": "#/$defs/GdataDiffUploadResponse",
      "description": "gdata"
    },
    "objectId": {
      "$ref": "#/$defs/GdataObjectId",
      "description": "gdata"
    },
    "blobstore2Info": {
      "$ref": "#/$defs/GdataBlobstore2Info",
      "description": "gdata"
    }
  },
  "$defs": {
    "GdataBlobstore2Info": {
      "properties": {
        "blobId": {
          "type": "string",
          "description": "gdata"
        },
        "readToken": {
          "description": "gdata",
          "type": "string"
        },
        "uploadFragmentListCreationInfo": {
          "format": "byte",
          "type": "string",
          "description": "gdata"
        },
        "blobGeneration": {
          "format": "int64",
          "description": "gdata",
          "type": "string"
        },
        "uploadMetadataContainer": {
          "type": "string",
          "description": "gdata",
          "format": "byte"
        },
        "downloadExternalReadToken": {
          "type": "string",
          "format": "byte",
          "description": "gdata"
        },
        "downloadReadHandle": {
          "format": "byte",
          "description": "gdata",
          "type": "string"
        }
      },
      "type": "object",
      "description": "gdata"
    },
    "GdataCompositeMedia": {
      "description": "gdata",
      "type": "object",
      "properties": {
        "blobstore2Info": {
          "$ref": "#/$defs/GdataBlobstore2Info",
          "description": "gdata"
        },
        "referenceType": {
          "type": "string",
          "enum": [
            "PATH",
            "BLOB_REF",
            "INLINE",
            "BIGSTORE_REF",
            "COSMO_BINARY_REFERENCE"
          ],
          "description": "gdata"
        },
        "path": {
          "description": "gdata",
          "type": "string"
        },
        "sha1Hash": {
          "format": "byte",
          "type": "string",
          "description": "gdata"
        },
        "crc32cHash": {
          "type": "integer",
          "description": "gdata",
          "format": "uint32"
        },
        "cosmoBinaryReference": {
          "description": "gdata",
          "type": "string",
          "format": "byte"
        },
        "inline": {
          "type": "string",
          "format": "byte",
          "description": "gdata"
        },
        "objectId": {
          "$ref": "#/$defs/GdataObjectId",
          "description": "gdata"
        },
        "blobRef": {
          "format": "byte",
          "description": "gdata",
          "type": "string",
          "deprecated": true
        },
        "md5Hash": {
          "description": "gdata",
          "format": "byte",
          "type": "string"
        },
        "length": {
          "format": "int64",
          "type": "string",
          "description": "gdata"
        }
      }
    },
    "GdataContentTypeInfo": {
      "type": "object",
      "description": "gdata",
      "properties": {
        "fromFileName": {
          "description": "gdata",
          "type": "string"
        },
        "fromBytes": {
          "description": "gdata",
          "type": "string"
        },
        "fromUrlPath": {
          "description": "gdata",
          "type": "string"
        },
        "fusionIdDetectionMetadata": {
          "description": "gdata",
          "format": "byte",
          "type": "string"
        },
        "fromHeader": {
          "description": "gdata",
          "type": "string"
        },
        "bestGuess": {
          "description": "gdata",
          "type": "string"
        },
        "fromFusionId": {
          "type": "string",
          "description": "gdata"
        }
      }
    },
    "GdataDiffChecksumsResponse": {
      "type": "object",
      "description": "gdata",
      "properties": {
        "objectLocation": {
          "$ref": "#/$defs/GdataCompositeMedia",
          "description": "gdata"
        },
        "objectVersion": {
          "type": "string",
          "description": "gdata"
        },
        "chunkSizeBytes": {
          "description": "gdata",
          "format": "int64",
          "type": "string"
        },
        "checksumsLocation": {
          "$ref": "#/$defs/GdataCompositeMedia",
          "description": "gdata"
        },
        "objectSizeBytes": {
          "description": "gdata",
          "type": "string",
          "format": "int64"
        }
      }
    },
    "GdataDiffDownloadResponse": {
      "properties": {
        "objectLocation": {
          "$ref": "#/$defs/GdataCompositeMedia",
          "description": "gdata"
        }
      },
      "type": "object",
      "description": "gdata"
    },
    "GdataDiffUploadRequest": {
      "description": "gdata",
      "properties": {
        "checksumsInfo": {
          "$ref": "#/$defs/GdataCompositeMedia",
          "description": "gdata"
        },
        "objectInfo": {
          "$ref": "#/$defs/GdataCompositeMedia",
          "description": "gdata"
        },
        "objectVersion": {
          "description": "gdata",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GdataDiffUploadResponse": {
      "properties": {
        "originalObject": {
          "$ref": "#/$defs/GdataCompositeMedia",
          "description": "gdata"
        },
        "objectVersion": {
          "type": "string",
          "description": "gdata"
        }
      },
      "description": "gdata",
      "type": "object"
    },
    "GdataDiffVersionResponse": {
      "properties": {
        "objectVersion": {
          "description": "gdata",
          "type": "string"
        },
        "objectSizeBytes": {
          "format": "int64",
          "description": "gdata",
          "type": "string"
        }
      },
      "type": "object",
      "description": "gdata"
    },
    "GdataDownloadParameters": {
      "description": "gdata",
      "properties": {
        "ignoreRange": {
          "description": "gdata",
          "type": "boolean"
        },
        "allowGzipCompression": {
          "description": "gdata",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "GdataObjectId": {
      "description": "gdata",
      "properties": {
        "objectName": {
          "description": "gdata",
          "type": "string"
        },
        "generation": {
          "format": "int64",
          "type": "string",
          "description": "gdata"
        },
        "bucketName": {
          "type": "string",
          "description": "gdata"
        }
      },
      "type": "object"
    }
  }
}