@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (category_
        != com.google.cloud.vertexai.api.HarmCategory.HARM_CATEGORY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_);
    }
    if (probability_
        != com.google.cloud.vertexai.api.SafetyRating.HarmProbability.HARM_PROBABILITY_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, probability_);
    }
    if (blocked_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, blocked_);
    }
    if (java.lang.Float.floatToRawIntBits(probabilityScore_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, probabilityScore_);
    }
    if (severity_
        != com.google.cloud.vertexai.api.SafetyRating.HarmSeverity.HARM_SEVERITY_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, severity_);
    }
    if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, severityScore_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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