class Protobuf::Field::BytesField

def acceptable?(val)

def acceptable?(val)
  if val.nil? || val.is_a?(::Protobuf::Message) || val.instance_of?(String)
    return true
  else
    raise TypeError, "Cannot set field : #{name} to value : #{val}"
  end
end