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

      size = 0;
      if (blockReason_
          != com.google.cloud.vertexai.api.GenerateContentResponse.PromptFeedback.BlockedReason
              .BLOCKED_REASON_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, blockReason_);
      }
      for (int i = 0; i < safetyRatings_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, safetyRatings_.get(i));
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blockReasonMessage_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, blockReasonMessage_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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