toPublic method
Implementation
public_types.HarmCategory toPublic() {
switch (this) {
case InternalHarmCategory.HARASSMENT:
return public_types.HarmCategory.HARASSMENT;
case InternalHarmCategory.HATE_SPEECH:
return public_types.HarmCategory.HATE_SPEECH;
case InternalHarmCategory.SEXUALLY_EXPLICIT:
return public_types.HarmCategory.SEXUALLY_EXPLICIT;
case InternalHarmCategory.DANGEROUS_CONTENT:
return public_types.HarmCategory.DANGEROUS_CONTENT;
case InternalHarmCategory.UNKNOWN:
return public_types.HarmCategory.UNKNOWN;
}
}