@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (maxQps_ != 0) {
      output.writeInt32(3, maxQps_);
    }
    for (int i = 0; i < startingUrls_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, startingUrls_.getRaw(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(5, getAuthentication());
    }
    if (userAgent_
        != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, userAgent_);
    }
    for (int i = 0; i < blacklistPatterns_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, blacklistPatterns_.getRaw(i));
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(8, getSchedule());
    }
    if (getTargetPlatformsList().size() > 0) {
      output.writeUInt32NoTag(74);
      output.writeUInt32NoTag(targetPlatformsMemoizedSerializedSize);
    }
    for (int i = 0; i < targetPlatforms_.size(); i++) {
      output.writeEnumNoTag(targetPlatforms_.get(i));
    }
    if (exportToSecurityCommandCenter_
        != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter
            .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(10, exportToSecurityCommandCenter_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(11, getLatestRun());
    }
    if (riskLevel_
        != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(12, riskLevel_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
The risk level selected for the scan
</pre>

<code>.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12;</code>

@return The riskLevel.
java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java