[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface MachineSpecOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.MachineSpecOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.visionai.v1.MachineSpecOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.visionai.v1.MachineSpecOrBuilder) \n\n public interface MachineSpecOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAcceleratorCount()\n\n public abstract int getAcceleratorCount()\n\nThe number of accelerators to attach to the machine.\n\n`int32 accelerator_count = 3;`\n\n### getAcceleratorType()\n\n public abstract AcceleratorType getAcceleratorType()\n\nImmutable. The type of accelerator(s) that may be attached to the machine\nas per\naccelerator_count.\n\n`.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;`\n\n### getAcceleratorTypeValue()\n\n public abstract int getAcceleratorTypeValue()\n\nImmutable. The type of accelerator(s) that may be attached to the machine\nas per\naccelerator_count.\n\n`.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;`\n\n### getMachineType()\n\n public abstract String getMachineType()\n\nImmutable. The type of the machine.\nSee the [list of machine types supported for\nprediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)\nSee the [list of machine types supported for custom\ntraining](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).\nFor \\[DeployedModel\\]\\[\\] this field is optional, and the default\nvalue is `n1-standard-2`. For \\[BatchPredictionJob\\]\\[\\] or as part of\n\\[WorkerPoolSpec\\]\\[\\] this field is required.\n\n`string machine_type = 1;`\n\n### getMachineTypeBytes()\n\n public abstract ByteString getMachineTypeBytes()\n\nImmutable. The type of the machine.\nSee the [list of machine types supported for\nprediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)\nSee the [list of machine types supported for custom\ntraining](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).\nFor \\[DeployedModel\\]\\[\\] this field is optional, and the default\nvalue is `n1-standard-2`. For \\[BatchPredictionJob\\]\\[\\] or as part of\n\\[WorkerPoolSpec\\]\\[\\] this field is required.\n\n`string machine_type = 1;`"]]