CreateCustomClassRequest

Message sent by the client for the `CreateCustomClass` method.

Audio ProcessingGoogle CloudMachine LearningSpeech RecognitionTranscription

Properties

Name Type Description
customClass object Required. The custom class to create.
customClassId string Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first char
View JSON Schema on GitHub

JSON Schema

google-cloud-speech-to-text-create-custom-class-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-speech-to-text/json-schema/google-cloud-speech-to-text-create-custom-class-request-schema.json",
  "title": "CreateCustomClassRequest",
  "description": "Message sent by the client for the `CreateCustomClass` method.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-speech-to-text-projects-api-openapi.yml#/components/schemas/CreateCustomClassRequest",
  "type": "object",
  "properties": {
    "customClass": {
      "$ref": "#/$defs/CustomClass",
      "description": "Required. The custom class to create."
    },
    "customClassId": {
      "description": "Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.",
      "type": "string"
    }
  },
  "$defs": {
    "ClassItem": {
      "type": "object",
      "description": "An item of the class.",
      "properties": {
        "value": {
          "description": "The class item's value.",
          "type": "string"
        }
      }
    },
    "CustomClass": {
      "properties": {
        "displayName": {
          "readOnly": true,
          "description": "Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.",
          "type": "string"
        },
        "customClassId": {
          "description": "If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.",
          "type": "string"
        },
        "etag": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used."
        },
        "kmsKeyVersionName": {
          "description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The resource name of the custom class.",
          "type": "string"
        },
        "uid": {
          "description": "Output only. System-assigned unique identifier for the CustomClass. This field is not used.",
          "type": "string",
          "readOnly": true
        },
        "items": {
          "items": {
            "$ref": "#/$defs/ClassItem"
          },
          "type": "array",
          "description": "A collection of class items."
        },
        "reconciling": {
          "type": "boolean",
          "readOnly": true,
          "description": "Output only. Whether or not this CustomClass is in the process of being updated. This field is not used."
        },
        "expireTime": {
          "type": "string",
          "description": "Output only. The time at which this resource will be purged. This field is not used.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "kmsKeyName": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`."
        },
        "annotations": {
          "description": "Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true,
          "type": "object"
        },
        "state": {
          "description": "Output only. The CustomClass lifecycle state. This field is not used.",
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "DELETED"
          ],
          "readOnly": true,
          "type": "string"
        },
        "deleteTime": {
          "type": "string",
          "description": "Output only. The time at which this resource was requested for deletion. This field is not used.",
          "readOnly": true,
          "format": "google-datetime"
        }
      },
      "type": "object",
      "description": "A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-speech-to-text-create-custom-class-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.