Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
[[["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-16 UTC."],[],[],null,["# Interface SafetyRatingOrBuilder (1.32.0)\n\n public interface SafetyRatingOrBuilder 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### getBlocked()\n\n public abstract boolean getBlocked()\n\nOutput only. Indicates whether the content was filtered out because of this\nrating.\n\n`bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getCategory()\n\n public abstract HarmCategory getCategory()\n\nOutput only. Harm category.\n\n`\n.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCategoryValue()\n\n public abstract int getCategoryValue()\n\nOutput only. Harm category.\n\n`\n.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getProbability()\n\n public abstract SafetyRating.HarmProbability getProbability()\n\nOutput only. Harm probability levels in the content.\n\n`\n.google.cloud.vertexai.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getProbabilityScore()\n\n public abstract float getProbabilityScore()\n\nOutput only. Harm probability score.\n\n`float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getProbabilityValue()\n\n public abstract int getProbabilityValue()\n\nOutput only. Harm probability levels in the content.\n\n`\n.google.cloud.vertexai.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getSeverity()\n\n public abstract SafetyRating.HarmSeverity getSeverity()\n\nOutput only. Harm severity levels in the content.\n\n`\n.google.cloud.vertexai.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getSeverityScore()\n\n public abstract float getSeverityScore()\n\nOutput only. Harm severity score.\n\n`float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getSeverityValue()\n\n public abstract int getSeverityValue()\n\nOutput only. Harm severity levels in the content.\n\n`\n.google.cloud.vertexai.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`"]]