@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (blockReason_
          != com.google.cloud.vertexai.api.GenerateContentResponse.PromptFeedback.BlockedReason
              .BLOCKED_REASON_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, blockReason_);
      }
      for (int i = 0; i < safetyRatings_.size(); i++) {
        output.writeMessage(2, safetyRatings_.get(i));
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blockReasonMessage_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, blockReasonMessage_);
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Output only. A readable block reason message.
</pre>

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

@return The bytes for blockReasonMessage.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentResponse.java