toPublic method

BlockThreshold toPublic()

Implementation

public_types.BlockThreshold toPublic() {
  switch (this) {
    case InternalHarmBlockThreshold.BLOCK_NONE:
      return public_types.BlockThreshold.NONE;
    case InternalHarmBlockThreshold.BLOCK_ONLY_HIGH:
      return public_types.BlockThreshold.ONLY_HIGH;
    case InternalHarmBlockThreshold.BLOCK_MEDIUM_AND_ABOVE:
      return public_types.BlockThreshold.MEDIUM_AND_ABOVE;
    case InternalHarmBlockThreshold.BLOCK_LOW_AND_ABOVE:
      return public_types.BlockThreshold.LOW_AND_ABOVE;
    case InternalHarmBlockThreshold.UNSPECIFIED:
      return public_types.BlockThreshold.UNSPECIFIED;
  }
}