@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (category_
        != com.google.cloud.vertexai.api.HarmCategory.HARM_CATEGORY_UNSPECIFIED.getNumber()) {
      output.writeEnum(1, category_);
    }
    if (probability_
        != com.google.cloud.vertexai.api.SafetyRating.HarmProbability.HARM_PROBABILITY_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(2, probability_);
    }
    if (blocked_ != false) {
      output.writeBool(3, blocked_);
    }
    if (java.lang.Float.floatToRawIntBits(probabilityScore_) != 0) {
      output.writeFloat(5, probabilityScore_);
    }
    if (severity_
        != com.google.cloud.vertexai.api.SafetyRating.HarmSeverity.HARM_SEVERITY_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, severity_);
    }
    if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) {
      output.writeFloat(7, severityScore_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. Indicates whether the content was filtered out because of this
rating.
</pre>

<code>bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

@return The blocked.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SafetyRating.java